1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5947],{18821:function(e,t,n){"use strict";function r(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function i(e,t){var n={};if("object"==typeof t)!function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={};for(var o in t){var s=t[o],a=[...r,o];"string"==typeof s||"number"==typeof s||null==s?i[o]=n(s,a):"object"!=typeof s||Array.isArray(s)?console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(s)?"Array":typeof s,'"')):i[o]=e(s,n,a)}return i}(t,(t,i)=>{null!=t&&(n[r(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,i))]=String(t))});else for(var i in e){var o=e[i];null!=o&&(n[r(i)]=o)}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),n}n.d(t,{L:function(){return i}})},77854:function(e,t,n){"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(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)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{$:function(){return a}});var o=e=>function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Object.assign({},...n.map(e=>e.styles)),s=Object.keys(o),a=s.filter(e=>"mappings"in o[e]);return Object.assign(t=>{var n=[],r={},s=i({},t),c=!1;for(var u of a){var l=t[u];if(null!=l)for(var d of(c=!0,o[u].mappings))r[d]=l,null==s[d]&&delete s[d]}var f=c?i(i({},r),s):t;for(var h in f)if(function(){var e=f[h],t=o[h];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 i=e[r];if(null!=i){var s=t.responsiveArray[r];n.push(t.values[i].conditions[s])}}else for(var a in e){var c=e[a];null!=c&&n.push(t.values[c].conditions[a])}}catch(e){throw e}}())continue;return e(n.join(" "))},{properties:new Set(s)})},s=e=>e,a=function(){return o(s)(...arguments)}},47714:function(e,t,n){"use strict";n.d(t,{d:function(){return o},M:function(){return i}});var r=function(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e};function i(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");return r(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 o(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");var n=i(e);return r(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 i=Array.isArray(e)?n(e):e,o={};for(var s in i)null!=i[s]&&(o[s]=r(i[s],s));return o},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}},7117:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var a=new i(r,o||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.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 i=0,o=r.length,s=Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],d=arguments.length;
1if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,s),!0}for(u=1,c=Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var f,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(f=1,c=Array(d-1);f<d;f++)c[f-1]=arguments[f];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||i&&!a[c].once||r&&a[c].context!==r)&&u.push(a[c]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},62601:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(58960)},80867:function(){},58960:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c=[],u=!1,l=-1;function d(){u&&r&&(u=!1,r.length?c=r.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(r=c,c=[];++l<t;)r&&r[l].run();l=-1,t=c.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},30622:function(e,t,n){"use strict";var r=n(2265),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:l,props:o,_owner:a.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},57437:function(e,t,n){"use strict";e.exports=n(30622)},24033:function(e,t,n){e.exports=n(15313)},17552:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});var r,i,o,s,a,c,u=n(50044),l=n(2265),d="right-scroll-bar-position",f="width-before-scroll-bar";function h(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var p="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,b=new WeakMap,m=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],s=!1,a={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,s);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){s=!0;var t=[];if(o.length){var n=o;
1o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.__assign)({async:!0,ssr:!1},r),a),y=function(){},w=l.forwardRef(function(e,t){var n,r,i,o,s=l.useRef(null),a=l.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),c=a[0],d=a[1],f=e.forwardProps,w=e.children,g=e.className,v=e.removeScrollBar,A=e.enabled,x=e.shards,C=e.sideCar,E=e.noIsolation,k=e.inert,I=e.allowPinchZoom,P=e.as,B=e.gapMode,O=(0,u.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[s,t],r=function(e){return n.forEach(function(t){return h(t,e)})},(i=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,p(function(){var e=b.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||h(e,null)}),r.forEach(function(e){t.has(e)||h(e,i)})}b.set(o,n)},[n]),o),M=(0,u.__assign)((0,u.__assign)({},O),c);return l.createElement(l.Fragment,null,A&&l.createElement(C,{sideCar:m,removeScrollBar:v,shards:x,noIsolation:E,inert:k,setCallbacks:d,allowPinchZoom:!!I,lockRef:s,gapMode:B}),f?l.cloneElement(l.Children.only(w),(0,u.__assign)((0,u.__assign)({},M),{ref:S})):l.createElement(void 0===P?"div":P,(0,u.__assign)({},M,{className:g,ref:S}),w))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:f,zeroRight:d};var g=function(e){var t=e.sideCar,n=(0,u.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,(0,u.__assign)({},n))};g.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A=function(){var e=v();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=A();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},k=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(r),E(i)]},I=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return C;var t=k(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])}},P=x(),B="data-scroll-locked",O=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(B,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(B,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},S=function(){var e=parseInt(document.body.getAttribute(B)||"0",10);return isFinite(e)?e:0},M=function(){l.useEffect(function(){return document.body.setAttribute(B,(S()+1).toString()),function(){var e=S()-1;e<=0?document.body.removeAttribute(B):document.body.setAttribute(B,e.toString())}},[])},R=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;M();var o=l.useMemo(function(){return I(i)},[i]);return l.createElement(P,{styles:O(o,!t,i,n?"":"!important")})},T=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return T=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){T=!1}var F=!!T&&{passive:!1},U=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])},D=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),q(e,r)){var i=G(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},q=function(e,t){return"v"===e?U(t,"overflowY"):U(t,"overflowX")},G=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=function(e,t,n,r,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,c=n.target,u=t.contains(c),l=!1,d=a>0,f=0,h=0;do{var p=G(e,c),b=p[0],m=p[1]-p[2]-s*b;(b||m)&&q(e,c)&&(f+=m,h+=b),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return d&&(i&&1>Math.abs(f)||!i&&a>f)?l=!0:!d&&(i&&1>Math.abs(h)||!i&&-a>h)&&(l=!0),l},j=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},Q=function(e){return e&&"current"in e?e.current:e},W=0,$=[],_=(m.useMedium(function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(W++)[0],o=l.useState(x)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.__spreadArray)([e.lockRef.current],(e.shards||[]).map(Q),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=j(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=D(d,l);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=D(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(c||u)&&(r.current=i),!i)return!0;var h=r.current||i;return L(h,t,e,"h"===h?c:u,!0)},[]),c=l.useCallback(function(e){if($.length&&$[$.length-1]===o){var n="deltaY"in e?z(e):j(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 i=(s.current.shards||[]).map(Q).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?a(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,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)},[]),f=l.useCallback(function(e){n.current=j(e),r.current=void 0},[]),h=l.useCallback(function(t){d(t.type,z(t),t.target,a(t,e.lockRef.current))},[]),p=l.useCallback(function(t){d(t.type,j(t),t.target,a(t,e.lockRef.current))},[]);l.useEffect(function(){return $.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,F),document.addEventListener("touchmove",c,F),document.addEventListener("touchstart",f,F),function(){$=$.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,F),document.removeEventListener("touchmove",c,F),document.removeEventListener("touchstart",f,F)}},[]);var b=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,b?l.createElement(R,{gapMode:e.gapMode}):null)}),g),H=l.forwardRef(function(e,t){return l.createElement(w,(0,u.__assign)({},e,{ref:t,sideCar:_}))});H.classNames=w.classNames;var K=H},45936:function(e,t,n){var r;!function(i,o){"use strict";var s="function",a="undefined",c="object",u="string",l="major",d="model",f="name",h="type",p="vendor",b="version",m="architecture",y="console",w="mobile",g="tablet",v="smarttv",A="wearable",x="embedded",C="Amazon",E="Apple",k="ASUS",I="BlackBerry",P="Browser",B="Chrome",O="Firefox",S="Google",M="Honor",R="Huawei",T="Microsoft",N="Motorola",F="Nvidia",U="OnePlus",D="Opera",q="OPPO",G="Samsung",L="Sharp",j="Sony",z="Xiaomi",Q="Zebra",W="Facebook",$="Chromium OS",_="Mac OS",H=" Browser",K=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},V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Z=function(e,t){return typeof e===u&&-1!==J(t).indexOf(J(e))},J=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},X=function(e,t){for(var n,r,i,a,u,l,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(i=0;i<h.length;i++)l=u[++r],typeof(a=h[i])===c&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,l):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=l?l.replace(a[1],a[2]):o:this[a[0]]=l?a[1].call(this,l,a[2]):o:4===a.length&&(this[a[0]]=l?a[3].call(this,l.replace(a[1],a[2])):o):this[a]=l||o;d+=2}},ee=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Z(t[n][r],e))return"?"===n?o:n}else if(Z(t[n],e))return"?"===n?o:n;return t.hasOwnProperty("*")?t["*"]:e},et={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"},en={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,b],[/opios[\/ ]+([\w\.]+)/i],[b,[f,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[f,D+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[f,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[f,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[f,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[f,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[f,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[f,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[f,"MIUI"+H]],[/fxios\/([\w\.-]+)/i],[b,[f,O]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+H],b],[/samsungbrowser\/([\w\.]+)/i],[b,[f,G+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,W],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\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,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[f,"GSA"]],[/musical_ly(?:.
1+app_?version\/|_)([\w\.]+)/i],[b,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[f,B+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,B+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[f,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[b,ee,{"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,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[f,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[f,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[b,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",J]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,J]]],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,[p,G],[h,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,G],[h,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,E],[h,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,E],[h,g]],[/(macintosh);/i],[d,[p,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,L],[h,w]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[p,M],[h,g]],[/honor([-\w ]+)[;\)]/i],[d,[p,M],[h,w]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[p,R],[h,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,R],[h,w]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[p,z],[h,g]],[/\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|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[d,/_/g," "],[p,z],[h,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,[p,q],[h,w]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[p,ee,{OnePlus:["304","403","203"],"*":q}],[h,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,N],[h,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,N],[h,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,"LG"],[h,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,"LG"],[h,w]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[p,"Lenovo"],[h,g]],[/(nokia) (t[12][01])/i],[p,d,[h,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[h,w],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[p,S],[h,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,S],[h,w]],[/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,[p,j],[h,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,j],[h,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,U],[h,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,C],[h,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,C],[h,w]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,I],[h,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,k],[h,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,k],[h,w]],[/(nexus 9)/i],[d,[p,"HTC"],[h,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,w]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[p,"TCL"],[h,g]],[/(itel) ((\w+))/i],[[p,J],d,[h,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[h,w]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[p,"Energizer"],[h,w]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[p,"Cat"],[h,w]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[p,"Smartfren"],[h,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[p,"Nothing"],[h,w]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[p,"Archos"],[h,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[p,"Archos"],[h,w]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,d,[h,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,w]],[/(kobo)\s(ereader|touch)/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],[p,d,[h,g]],[/(surface duo)/i],[d,[p,T],[h,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,w]],[/(u304aa)/i],[d,[p,"AT&T"],[h,w]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,w]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,g]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,g]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,g]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,g]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,g]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,w]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,w]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,g]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,g]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,w]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,g]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,g]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[p,F],[h,g]],[/(sprint) (\w+)/i],[p,d,[h,w]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,T],[h,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,Q],[h,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,Q],[h,w]],[/smart-tv.+(samsung)/i],[p,[h,v]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,G],[h,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[h,v]],[/(apple) ?tv/i],[p,[d,E+" TV"],[h,v]],[/crkey/i],[[d,B+"cast"],[p,S],[h,v]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,C],[h,v]],[/(shield \w+ tv)/i],[d,[p,F],[h,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,L],[h,v]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,j],[h,v]],[/(mi(tv|box)-?\w+) bui/i],[d,[p,z],[h,v]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,Y],[d,Y],[h,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[h,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,y]],[/droid.+; (shield)( bui|\))/i],[d,[p,F],[h,y]],[/(playstation \w+)/i],[d,[p,j],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,T],[h,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[p,G],[h,A]],[/((pebble))app/i,/(asu
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,d,[h,A]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[p,q],[h,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,E],[h,A]],[/(opwwe\d{3})/i],[d,[p,U],[h,A]],[/(moto 360)/i],[d,[p,N],[h,A]],[/(smartwatch 3)/i],[d,[p,j],[h,A]],[/(g watch r)/i],[d,[p,"LG"],[h,A]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,Q],[h,A]],[/droid.+; (glass) \d/i],[d,[p,S],[h,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,d,[h,A]],[/; (quest( \d| pro)?)/i],[d,[p,W],[h,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,x]],[/(aeobc)\b/i],[d,[p,C],[h,x]],[/(homepod).+mac os/i],[d,[p,E],[h,x]],[/windows iot/i],[[h,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,w]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,b],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,b],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[b,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,ee,et],[f,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,_],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],b],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,b],[/\(bb(10);/i],[b,[f,I]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[b,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[f,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[f,B+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,$],b],[/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)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,b],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,b]]},er=function(e,t){if(typeof e===c&&(t=e,e=o),!(this instanceof er))return new er(e,t).getResult();var n=typeof i!==a&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:o,v=t?K(en,t):en,A=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=o,t[b]=o,X.call(t,r,v.browser),t[l]=typeof(e=t[b])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,A&&n&&n.brave&&typeof n.brave.isBrave==s&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=o,X.call(e,r,v.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[d]=o,e[h]=o,X.call(e,r,v.device),A&&!e[h]&&y&&y.mobile&&(e[h]=w),A&&"Macintosh"==e[d]&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=g),e},this.getEngine=function(){var e={};return e[f]=o,e[b]=o,X.call(e,r,v.engine),e},this.getOS=function(){var e={};return e[f]=o,e[b]=o,X.call(e,r,v.os),A&&!e[f]&&y&&y.platform&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,$).replace(/macos/i,_)),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===u&&e.length>500?Y(e,500):e,this},this.setUA(r),this};er.VERSION="1.0.41",er.BROWSER=V([f,b,l]),er.CPU=V([m]),er.DEVICE=V([d,p,h,y,w,v,g,A,x]),er.ENGINE=er.OS=V([f,b]),typeof t!==a?(e.exports&&(t=e.exports=er),t.UAParser=er):n.amdO?o!==(r=(function(){return er}).call(t,n,t,e))&&(e.exports=r):typeof i!==a&&(i.UAParser=er);var ei=typeof i!==a&&(i.jQuery||i.Zepto);if(ei&&!ei.ua){var eo=new er;ei.ua=eo.getResult(),ei.ua.get=function(){return eo.getUA()},ei.ua.set=function(e){eo.setUA(e);var t=eo.getResult();for(var n in t)ei.ua[n]=t[n]}}}("object"==typeof window?window:this)},99808:function(e,t,n){"use strict";/** 2 * @license React 3 * use-sync-external-store-shim.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var r=n(2265),i="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,s=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="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}}),i=r[0].inst,l=r[1];return a(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),s(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},53176:function(e,t,n){"use strict";/** 10 * @license React 11 * use-sync-external-store-shim/with-selector.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var r=n(2265),i=n(26272),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=s(e,(d=u(function(){function e(e){if(!c){if(c=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,a=n)}var s,a,c=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return c(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},26272:function(e,t,n){"use strict";e.exports=n(99808)},65401:function(e,t,n){"use strict";e.exports=n(53176)},75440:function(e,t,n){"use strict";n.d(t,{_:function(){return I}});var r=n(32305);class i extends r.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.z3)(e);let n=(0,r.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 i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?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,r.ru)(o)}update(e){return(0,r.$h)(this),this.iHash.update(e),this}digestInto(e){(0,r.$h)(this),(0,r.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:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,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 o=(e,t,n)=>new i(e,t).update(n).digest();o.create=(e,t)=>
17new i(e,t);var s=n(52948),a=n(57843);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let c=BigInt(0),u=BigInt(1);function l(e,t){let n=t.negate();return e?n:t}function d(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function f(e,t){d(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:(0,a.dQ)(e),maxNumber:i,shiftBy:BigInt(e)}}function h(e,t,n){let{windowSize:r,mask:i,maxNumber:o,shiftBy:s}=n,a=Number(e&i),c=e>>s;a>r&&(a-=o,c+=u);let l=t*r,d=l+Math.abs(a)-1;return{nextN:c,offset:d,isZero:0===a,isNeg:a<0,isNegF:t%2!=0,offsetF:l}}let p=new WeakMap,b=new WeakMap;function m(e){return b.get(e)||1}function y(e){return(0,s.OP)(e.Fp),(0,a.FF)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,s.kK)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function w(e){void 0!==e.lowS&&(0,a.uw)("lowS",e.lowS),void 0!==e.prehash&&(0,a.uw)("prehash",e.prehash)}class g extends Error{constructor(e=""){super(e)}}let v={Err:g,_tlv:{encode:(e,t)=>{let{Err:n}=v;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,i=(0,a.uz)(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");let o=r>127?(0,a.uz)(i.length/2|128):"";return(0,a.uz)(e)+o+i+t},decode(e,t){let{Err:n}=v,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 i=t[r++],o=0;if(128&i){let e=127&i;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 s=t.subarray(r,r+e);if(s.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===s[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of s)o=o<<8|e;if(r+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=i;let s=t.subarray(r,r+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:t.subarray(r+o)}}},_int:{encode(e){let{Err:t}=v;if(e<x)throw new t("integer: negative integers are not allowed");let n=(0,a.uz)(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}=v;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(0,a.Hv)(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=v,i=(0,a.ql)("signature",e),{v:o,l:s}=r.decode(48,i);if(s.length)throw new t("invalid signature: left bytes after parsing");let{v:c,l:u}=r.decode(2,o),{v:l,l:d}=r.decode(2,u);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(l)}},hexFromSig(e){let{_tlv:t,_int:n}=v,r=t.encode(2,n.encode(e.r)),i=t.encode(2,n.encode(e.s));return t.encode(48,r+i)}};function A(e,t){return(0,a.ci)((0,a.tL)(e,t))}let x=BigInt(0),C=BigInt(1),E=(BigInt(2),BigInt(3)),k=BigInt(4);function I(e,t){let n=t=>(function(e){let t=function(e){let t=y(e);return(0,a.FF)(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:i,nBitLength:o}=t,g=n.BYTES+1,I=2*n.BYTES+1;function P(e){return(0,s.wQ)(e,r)}function B(e){return(0,s.U_)(e,r)}let{ProjectivePoint:O,normPrivateKeyToScalar:S,weierstrassEquation:M,isWithinCurveOrder:R}=function(e){var t;let n=function(e){let t=y(e);(0,a.FF)(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:i}=t;if(n){if(!r.eql(i,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,i=(0,s.gN)(n.n,n.nBitLength),o=n.toBytes||((e,t,n)=>{let i=t.toAffine();return(0,a.eV)(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),w=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 g(e){let{a:t,b:i}=n,o=r.sqr(e),s=r.mul(o,e);return r.add(r.add(s,r.mul(e,t)),i)}function v(e,t){let n=r.sqr(t),i=g(e);return r.eql(n,i)}if(!v(n.Gx,n.Gy))throw Error("bad curve params: generator point");let A=r.mul(r.pow(n.a,E),k),I=r.mul(r.sqr(n.b),BigInt(27));if(r.is0(r.add(A,I)))throw Error("bad curve params: a or b");function P(e){let t;let{allowedPrivateKeyLengths:r,nByteLength:i,wrapPrivateKey:o,n:c}=n;if(r&&"bigint"!=typeof e){if((0,a._t)(e)&&(e=(0,a.ci)(e)),"string"!=typeof e||!r.includes(e.length))throw Error("invalid private key");e=e.padStart(2*i,"0")}try{t="bigint"==typeof e?e:(0,a.Hv)((0,a.ql)("private key",e,i))}catch(t){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof e)}return o&&(t=(0,s.wQ)(t,c)),(0,a.Fy)("private key",t,C,c),t}function B(e){if(!(e instanceof M))throw Error("ProjectivePoint expected")}let O=(0,a.H9)((e,t)=>{let{px:n,py:i,pz:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};let s=e.is0();null==t&&(t=s?r.ONE:r.inv(o));let a=r.mul(n,t),c=r.mul(i,t),u=r.mul(o,t);if(s)return{x:r.ZERO,y:r.ZERO};
17if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:a,y:c}}),S=(0,a.H9)(e=>{if(e.is0()){if(n.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:i}=e.toAffine();if(!r.isValid(t)||!r.isValid(i))throw Error("bad point: x or y not FE");if(!v(t,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class M{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 M)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?M.ZERO:new M(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=(0,s.Eg)(r,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(M.fromAffine)}static fromHex(e){let t=M.fromAffine(w((0,a.ql)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return M.BASE.multiply(P(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 i=n.length,o=r.length;if(i!==o)throw Error("arrays of points and scalars must have equal length");let s=e.ZERO,c=(0,a.Dd)(BigInt(i)),u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);let l=(0,a.dQ)(u),d=Array(Number(l)+1).fill(s),f=Math.floor((t.BITS-1)/u)*u,h=s;for(let e=f;e>=0;e-=u){d.fill(s);for(let t=0;t<o;t++){let i=Number(r[t]>>BigInt(e)&l);d[i]=d[i].add(n[t])}let t=s;for(let e=d.length-1,n=s;e>0;e--)n=n.add(d[e]),t=t.add(n);if(h=h.add(t),0!==e)for(let e=0;e<u;e++)h=h.double()}return h}(M,i,e,t)}_setWindowSize(e){N.setWindowSize(this,e)}assertValidity(){S(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){B(e);let{px:t,py:n,pz:i}=this,{px:o,py:s,pz:a}=e,c=r.eql(r.mul(t,a),r.mul(o,i)),u=r.eql(r.mul(n,a),r.mul(s,i));return c&&u}negate(){return new M(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:t}=n,i=r.mul(t,E),{px:o,py:s,pz:a}=this,c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(o,o),f=r.mul(s,s),h=r.mul(a,a),p=r.mul(o,s);return p=r.add(p,p),l=r.mul(o,a),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,h),u=r.add(c,u),c=r.sub(f,u),u=r.add(f,u),u=r.mul(c,u),c=r.mul(p,c),l=r.mul(i,l),h=r.mul(e,h),p=r.sub(d,h),p=r.mul(e,p),p=r.add(p,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,h),d=r.mul(d,p),u=r.add(u,d),h=r.mul(s,a),h=r.add(h,h),d=r.mul(h,p),c=r.sub(c,d),l=r.mul(h,f),l=r.add(l,l),new M(c,u,l=r.add(l,l))}add(e){B(e);let{px:t,py:i,pz:o}=this,{px:s,py:a,pz:c}=e,u=r.ZERO,l=r.ZERO,d=r.ZERO,f=n.a,h=r.mul(n.b,E),p=r.mul(t,s),b=r.mul(i,a),m=r.mul(o,c),y=r.add(t,i),w=r.add(s,a);y=r.mul(y,w),w=r.add(p,b),y=r.sub(y,w),w=r.add(t,o);let g=r.add(s,c);return w=r.mul(w,g),g=r.add(p,m),w=r.sub(w,g),g=r.add(i,o),u=r.add(a,c),g=r.mul(g,u),u=r.add(b,m),g=r.sub(g,u),d=r.mul(f,w),u=r.mul(h,m),d=r.add(u,d),u=r.sub(b,d),d=r.add(b,d),l=r.mul(u,d),b=r.add(p,p),b=r.add(b,p),m=r.mul(f,m),w=r.mul(h,w),b=r.add(b,m),m=r.sub(p,m),m=r.mul(f,m),w=r.add(w,m),p=r.mul(b,w),l=r.add(l,p),p=r.mul(g,w),u=r.mul(y,u),u=r.sub(u,p),p=r.mul(y,b),d=r.mul(g,d),new M(u,l,d=r.add(d,p))}subtract(e){return this.add(e.negate())}is0(){return this.equals(M.ZERO)}wNAF(e){return N.wNAFCached(this,e,M.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:i}=n;(0,a.Fy)("scalar",e,x,i);let o=M.ZERO;if(e===x)return o;if(this.is0()||e===C)return this;if(!t||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,e,M.normalizeZ);let{k1neg:s,k1:c,k2neg:u,k2:l}=t.splitScalar(e),d=o,f=o,h=this;for(;c>x||l>x;)c&C&&(d=d.add(h)),l&C&&(f=f.add(h)),h=h.double(),c>>=C,l>>=C;return s&&(d=d.negate()),u&&(f=f.negate()),f=new M(r.mul(f.px,t.beta),f.py,f.pz),d.add(f)}multiply(e){let t,i;let{endo:o,n:s}=n;
vendor: 1,709 bytes, line 17
17if((0,a.Fy)("scalar",e,C,s),o){let{k1neg:n,k1:s,k2neg:a,k2:c}=o.splitScalar(e),{p:u,f:l}=this.wNAF(s),{p:d,f:f}=this.wNAF(c);u=N.constTimeNegate(n,u),d=N.constTimeNegate(a,d),d=new M(r.mul(d.px,o.beta),d.py,d.pz),t=u.add(d),i=l.add(f)}else{let{p:n,f:r}=this.wNAF(e);t=n,i=r}return M.normalizeZ([t,i])[0]}multiplyAndAddUnsafe(e,t,n){let r=M.BASE,i=(e,t)=>t!==x&&t!==C&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,n));return o.is0()?void 0:o}toAffine(e){return O(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=n;if(e===C)return!0;if(t)return t(M,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=n;return e===C?this:t?t(M,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return(0,a.uw)("isCompressed",e),this.assertValidity(),o(M,this,e)}toHex(e=!0){return(0,a.uw)("isCompressed",e),(0,a.ci)(this.toRawBytes(e))}}M.BASE=new M(n.Gx,n.Gy,r.ONE),M.ZERO=new M(r.ZERO,r.ONE,r.ZERO);let{endo:R,nBitLength:T}=n,N=(t=R?Math.ceil(T/2):T,{constTimeNegate:l,hasPrecomputes:e=>1!==m(e),unsafeLadder(e,t,n=M.ZERO){let r=e;for(;t>c;)t&u&&(n=n.add(r)),r=r.double(),t>>=u;return n},precomputeWindow(e,n){let{windows:r,windowSize:i}=f(n,t),o=[],s=e,a=s;for(let e=0;e<r;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(e,n,r){let i=M.ZERO,o=M.BASE,s=f(e,t);for(let e=0;e<s.windows;e++){let{nextN:t,offset:a,isZero:c,isNeg:u,isNegF:d,offsetF:f}=h(r,e,s);r=t,c?o=o.add(l(d,n[f])):i=i.add(l(u,n[a]))}return{p:i,f:o}},wNAFUnsafe(e,n,r,i=M.ZERO){let o=f(e,t);for(let e=0;e<o.windows&&r!==c;e++){let{nextN:t,offset:s,isZero:a,isNeg:c}=h(r,e,o);if(r=t,!a){let e=n[s];i=i.add(c?e.negate():e)}}return i}
17,getPrecomputes(e,t,n){let r=p.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&p.set(t,n(r))),r},wNAFCached(e,t,n){let r=m(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){let i=m(e);return 1===i?this.unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)},setWindowSize(e,n){d(n,t),b.set(e,n),p.delete(e)}});return{CURVE:n,ProjectivePoint:M,normPrivateKeyToScalar:P,weierstrassEquation:g,isWithinCurveOrder:function(e){return(0,a.Z2)(e,C,n.n)}}}({...t,toBytes(e,t,r){let i=t.toAffine(),o=n.toBytes(i.x),s=a.eV;return((0,a.uw)("isCompressed",r),r)?s(Uint8Array.from([t.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,n.toBytes(i.y))},fromBytes(e){let t=e.length,r=e[0],i=e.subarray(1);if(t===g&&(2===r||3===r)){let e;let t=(0,a.Hv)(i);if(!(0,a.Z2)(t,C,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&C)===C)&&(e=n.neg(e)),{x:t,y:e}}if(t===I&&4===r)return{x:n.fromBytes(i.subarray(0,n.BYTES)),y:n.fromBytes(i.subarray(n.BYTES,2*n.BYTES))};throw Error("invalid Point, expected length of "+g+", or uncompressed "+I+", got "+t)}}),T=(e,t,n)=>(0,a.Hv)(e.slice(t,n));class N{constructor(e,t,n){(0,a.Fy)("r",e,C,r),(0,a.Fy)("s",t,C,r),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){return new N(T(e=(0,a.ql)("compactSignature",e,2*i),0,i),T(e,i,2*i))}static fromDER(e){let{r:t,s:n}=v.toSig((0,a.ql)("DER",e));return new N(t,n)}assertValidity(){}addRecoveryBit(e){return new N(this.r,this.s,e)}recoverPublicKey(e){let{r,s:i,recovery:o}=this,s=D((0,a.ql)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let c=2===o||3===o?r+t.n:r;if(c>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&o)==0?"02":"03",l=O.fromHex(u+A(c,n.BYTES)),d=B(c),f=P(-s*d),h=P(i*d),p=O.BASE.multiplyAndAddUnsafe(l,f,h);if(!p)throw Error("point at infinify");return p.assertValidity(),p}hasHighS(){return this.s>r>>C}normalizeS(){return this.hasHighS()?new N(this.r,P(-this.s),this.recovery):this}toDERRawBytes(){return(0,a.nr)(this.toDERHex())}toDERHex(){return v.hexFromSig(this)}toCompactRawBytes(){return(0,a.nr)(this.toCompactHex())}toCompactHex(){return A(this.r,i)+A(this.s,i)}}function F(e){if("bigint"==typeof e)return!1;if(e instanceof O)return!0;let r=(0,a.ql)("key",e).length,o=n.BYTES,s=o+1;if(!t.allowedPrivateKeyLengths&&i!==s)return r===s||r===2*o+1}let U=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=(0,a.Hv)(e),n=8*e.length-o;return n>0?t>>BigInt(n):t},D=t.bits2int_modN||function(e){return P(U(e))},q=(0,a.dQ)(o);function G(e){return(0,a.Fy)("num < 2^"+o,e,x,q),(0,a.tL)(e,i)}let L={lowS:t.lowS,prehash:!1},j={lowS:t.lowS,prehash:!1};return O.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return O.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===F(e))throw Error("first arg must be private key");if(!1===F(t))throw Error("second arg must be public key");return O.fromHex(t).multiply(S(e)).toRawBytes(n)},sign:function(e,i,o=L){let{seed:s,k2sig:c}=function(e,i,o=L){if(["recovered","canonical"].some(e=>e in o))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:c}=t,{lowS:u,prehash:l,extraEntropy:d}=o;null==u&&(u=!0),e=(0,a.ql)("msgHash",e),w(o),l&&(e=(0,a.ql)("prehashed msgHash",s(e)));let f=D(e),h=S(i),p=[G(h),G(f)];if(null!=d&&!1!==d){let e=!0===d?c(n.BYTES):d;p.push((0,a.ql)("extraEntropy",e))}return{seed:(0,a.eV)(...p),k2sig:function(e){let t=U(e);if(!R(t))return;let n=B(t),i=O.BASE.multiply(t).toAffine(),o=P(i.x);if(o===x)return;let s=P(n*P(f+o*h));if(s===x)return;let a=(i.x===o?0:2)|Number(i.y&C),c=s;if(u&&s>r>>C)c=s>r>>C?P(-s):s,a^=1;return new N(o,c,a)}}}(e,i,o);return(0,a.n$)(t.hash.outputLen,t.nByteLength,t.hmac)(s,c)},verify:function(e,n,r,i=j){let o,s;n=(0,a.ql)("msgHash",n),r=(0,a.ql)("publicKey",r);let{lowS:c,prehash:u,format:l}=i;if(w(i),"strict"in i)throw Error("options.strict was renamed to lowS");if(void 0!==l&&"compact"!==l&&"der"!==l)throw Error("format must be compact or der");let d="string"==typeof e||(0,a._t)(e),f=!d&&!l&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!d&&!f)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(f&&(s=new N(e.r,e.s)),d){try{"compact"!==l&&(s=N.fromDER(e))}catch(e){if(!(e instanceof v.Err))throw e}s||"der"===l||(s=N.fromCompact(e))}o=O.fromHex(r)}catch(e){return!1}if(!s||c&&s.hasHighS())return!1;u&&(n=t.hash(n));
17let{r:h,s:p}=s,b=D(n),m=B(p),y=P(b*m),g=P(h*m),A=O.BASE.multiplyAndAddUnsafe(o,y,g)?.toAffine();return!!A&&P(A.x)===h},ProjectivePoint:O,Signature:N,utils:{isValidPrivateKey(e){try{return S(e),!0}catch(e){return!1}},normPrivateKeyToScalar:S,randomPrivateKey:()=>{let e=(0,s.PS)(t.n);return(0,s.Us)(t.randomBytes(e),t.n)},precompute:(e=8,t=O.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...n)=>o(t,e,(0,r.eV)(...n)),randomBytes:r.O6});return{...n(t),create:n}}},52948:function(e,t,n){"use strict";n.d(t,{Eg:function(){return g},OP:function(){return w},PS:function(){return C},U_:function(){return p},Us:function(){return E},gN:function(){return function e(t,n,r=!1,h={}){let y;if(t<=o)throw Error("invalid field: expected ORDER > 0, got "+t);let{nBitLength:w,nByteLength:x}=A(t,n);if(x>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let C=Object.freeze({ORDER:t,isLE:r,BITS:w,BYTES:x,MASK:(0,i.dQ)(w),ZERO:o,ONE:s,create:e=>f(e,t),isValid:e=>{if("bigint"!=typeof e)throw Error("invalid field element: expected bigint, got "+typeof e);return o<=e&&e<t},is0:e=>e===o,isOdd:e=>(e&s)===s,neg:e=>f(-e,t),eql:(e,t)=>e===t,sqr:e=>f(e*e,t),add:(e,n)=>f(e+n,t),sub:(e,n)=>f(e-n,t),mul:(e,n)=>f(e*n,t),pow:(e,t)=>(function(e,t,n){if(n<o)throw Error("invalid exponent, negatives unsupported");if(n===o)return e.ONE;if(n===s)return t;let r=e.ONE,i=t;for(;n>o;)n&s&&(r=e.mul(r,i)),i=e.sqr(i),n>>=s;return r})(C,e,t),div:(e,n)=>f(e*p(n,t),t),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:e=>p(e,t),sqrt:h.sqrt||(n=>(!y&&(y=t%u===c?b:t%d===l?m:function(t){if(t<BigInt(3))throw Error("sqrt is not defined for small field");let n=t-s,r=0;for(;n%a===o;)n/=a,r++;let i=a,c=e(t);for(;1===v(c,i);)if(i++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return b;let u=c.pow(i,n),l=(n+s)/a;return function(e,t){if(e.is0(t))return t;if(1!==v(e,t))throw Error("Cannot find square root");let i=r,o=e.mul(e.ONE,u),a=e.pow(t,n),c=e.pow(t,l);for(;!e.eql(a,e.ONE);){if(e.is0(a))return e.ZERO;let t=1,n=e.sqr(a);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw Error("Cannot find square root");let r=s<<BigInt(i-t-1),u=e.pow(o,r);i=t,o=e.sqr(u),a=e.mul(a,o),c=e.mul(c,u)}return c}}(t)),y(C,n))),toBytes:e=>r?(0,i.S5)(e,x):(0,i.tL)(e,x),fromBytes:e=>{if(e.length!==x)throw Error("Field.fromBytes: expected "+x+" bytes, got "+e.length);return r?(0,i.ty)(e):(0,i.Hv)(e)},invertBatch:e=>g(C,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(C)}},kK:function(){return A},oA:function(){return h},wQ:function(){return f}});var r=n(32305),i=n(57843);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(3),u=BigInt(4),l=BigInt(5),d=BigInt(8);function f(e,t){let n=e%t;return n>=o?n:t+n}function h(e,t,n){let r=e;for(;t-- >o;)r*=r,r%=n;return r}function p(e,t){if(e===o)throw Error("invert: expected non-zero number");if(t<=o)throw Error("invert: expected positive modulus, got "+t);let n=f(e,t),r=t,i=o,a=s,c=s,u=o;for(;n!==o;){let e=r/n,t=r%n,o=i-c*e,s=a-u*e;r=n,n=t,i=c,a=u,c=o,u=s}if(r!==s)throw Error("invert: does not exist");return f(i,t)}function b(e,t){let n=(e.ORDER+s)/u,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw Error("Cannot find square root");return r}function m(e,t){let n=(e.ORDER-l)/d,r=e.mul(t,a),i=e.pow(r,n),o=e.mul(t,i),s=e.mul(e.mul(o,a),i),c=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(c),t))throw Error("Cannot find square root");return c}let y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function w(e){let t=y.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,i.FF)(e,t)}function g(e,t,n=!1){let r=Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),o=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),o),r}function v(e,t){let n=(e.ORDER-s)/a,r=e.pow(t,n),i=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),c=e.eql(r,e.neg(e.ONE));if(!i&&!o&&!c)throw Error("invalid Legendre symbol result");return i?1:o?0:-1}function A(e,t){void 0!==t&&(0,r.k8)(t);let n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function x(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function C(e){let t=x(e);return t+Math.ceil(t/2)}function E(e,t,n=!1){let r=e.length,o=x(t),a=C(t);if(r<16||r<a||r>1024)throw Error("expected "+a+"-1024 bytes of input, got "+r);let c=f(n?(0,i.ty)(e):(0,i.Hv)(e),t-s)+s;return n?(0,i.S5)(c,o):(0,i.tL)(c,o)}},57843:function(e,t,n){"use strict";n.d(t,{Dd:function(){return k},FF:function(){return M},Fy:function(){return E},H9:function(){return R},Hv:function(){return m},S5:function(){return g},Z2:function(){return C},_t:function(){return o},ci:function(){return f},dQ:function(){return I},eV:function(){return A},n$:function(){return O},nr:function(){return b},ql:function(){return v},tL:function(){return w},ty:function(){return y},uw:function(){return a},uz:function(){return c}});/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let r=BigInt(0),i=BigInt(1);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!o(e))throw Error("Uint8Array expected")}function a(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function c(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function u(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}let l="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e){if(s(e),l)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=d[e[n]];return t}let h={_0:48,_9:57,A:65,F:70,a:97,f:102};function p(e){return e>=h._0&&e<=h._9?e-h._0:e>=h.A&&e<=h.F?e-(h.A-10):e>=h.a&&e<=h.f?e-(h.a-10):void 0}function b(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(l)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,i=0;t<n;t++,i+=2){let n=p(e.charCodeAt(i)),o=p(e.charCodeAt(i+1));if(void 0===n||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);r[t]=16*n+o}return r}function m(e){return u(f(e))}function y(e){return s(e),u(f(Uint8Array.from(e).reverse()))}function w(e,t){return b(e.toString(16).padStart(2*t,"0"))}function g(e,t){return w(e,t).reverse()}function v(e,t,n){let r;if("string"==typeof t)try{r=b(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(o(t))r=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=r.length;if("number"==typeof n&&i!==n)throw Error(e+" of length "+n+" expected, got "+i);return r}function A(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];s(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}let x=e=>"bigint"==typeof e&&r<=e;
17function C(e,t,n){return x(e)&&x(t)&&x(n)&&t<=e&&e<n}function E(e,t,n,r){if(!C(t,n,r))throw Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function k(e){let t;for(t=0;e>r;e>>=i,t+=1);return t}let I=e=>(i<<BigInt(e))-i,P=e=>new Uint8Array(e),B=e=>Uint8Array.from(e);function O(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=P(e),i=P(e),o=0,s=()=>{r.fill(1),i.fill(0),o=0},a=(...e)=>n(i,r,...e),c=(e=P(0))=>{i=a(B([0]),e),r=a(),0!==e.length&&(i=a(B([1]),e),r=a())},u=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e<t;){let t=(r=a()).slice();n.push(t),e+=r.length}return A(...n)};return(e,t)=>{let n;for(s(),c(e);!(n=t(u()));)c();return s(),n}}let S={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||o(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 i=S[n];if("function"!=typeof i)throw Error("invalid validator function");let o=e[t];if((!r||void 0!==o)&&!i(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 R(e){let t=new WeakMap;return(n,...r)=>{let i=t.get(n);if(void 0!==i)return i;let o=e(n,...r);return t.set(n,o),o}}},2347:function(e,t,n){"use strict";n.d(t,{secp256k1:function(){return h}});var r=n(83078),i=n(75440),o=n(52948);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let s=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),a=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),c=BigInt(0),u=BigInt(1),l=BigInt(2),d=(e,t)=>(e+t/l)/t,f=(0,o.gN)(s,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),d=e*e*e%s,h=d*d*e%s,p=(0,o.oA)(h,t,s)*h%s,b=(0,o.oA)(p,t,s)*h%s,m=(0,o.oA)(b,l,s)*d%s,y=(0,o.oA)(m,r,s)*m%s,w=(0,o.oA)(y,i,s)*y%s,g=(0,o.oA)(w,c,s)*w%s,v=(0,o.oA)(g,u,s)*g%s,A=(0,o.oA)(v,c,s)*w%s,x=(0,o.oA)(A,t,s)*h%s,C=(0,o.oA)(x,a,s)*y%s,E=(0,o.oA)(C,n,s)*d%s,k=(0,o.oA)(E,l,s);if(!f.eql(f.sqr(k),e))throw Error("Cannot find square root");return k}}),h=(0,i._)({a:c,b:BigInt(7),Fp:f,n:a,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-u*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),s=d(t*e,a),c=d(-n*e,a),l=(0,o.wQ)(e-s*t-c*r,a),f=(0,o.wQ)(-s*n-c*t,a),h=l>i,p=f>i;if(h&&(l=a-l),p&&(f=a-f),l>i||f>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:h,k1:l,k2neg:p,k2:f}}}},r.JQ)},10606:function(e,t,n){"use strict";n.d(t,{$p:function(){return d},EP:function(){return f},FL:function(){return l},Fn:function(){return w},IH:function(){return m},Iq:function(){return a},NI:function(){return s},Ou:function(){return u},SD:function(){return p},Vl:function(){return o},Xb:function(){return g},ac:function(){return y},gm:function(){return h},m_:function(){return c},mk:function(){return b},pp:function(){return x},u8:function(){return v},zP:function(){return A}});let r=BigInt(4294967296-1),i=BigInt(32);function o(e,t=!1){let n=e.length,o=new Uint32Array(n),s=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:c}=function(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}(e[a],t);[o[a],s[a]]=[n,c]}return[o,s]}let s=(e,t,n)=>e>>>n,a=(e,t,n)=>e<<32-n|t>>>n,c=(e,t,n)=>e>>>
17n|t<<32-n,u=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n,f=(e,t,n)=>e<<n|t>>>32-n,h=(e,t,n)=>t<<n|e>>>32-n,p=(e,t,n)=>t<<n-32|e>>>64-n,b=(e,t,n)=>e<<n-32|t>>>64-n;function m(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/4294967296|0)|0,l:0|i}}let y=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),w=(e,t,n,r)=>t+n+r+(e/4294967296|0)|0,g=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),v=(e,t,n,r,i)=>t+n+r+i+(e/4294967296|0)|0,A=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),x=(e,t,n,r,i,o)=>t+n+r+i+o+(e/4294967296|0)|0},83078:function(e,t,n){"use strict";n.d(t,{JQ:function(){return g},iC:function(){return A},o:function(){return v}});var r=n(32305);class i extends r.kb{constructor(e,t,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,r.GL)(this.buffer)}update(e){(0,r.$h)(this),e=(0,r.O0)(e),(0,r.gk)(e);let{view:t,buffer:n,blockLen:i}=this,o=e.length;for(let s=0;s<o;){let a=Math.min(i-this.pos,o-s);if(a===i){let t=(0,r.GL)(e);for(;i<=o-s;s+=i)this.process(t,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.$h)(this),(0,r.eB)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:i,isLE:o}=this,{pos:s}=this;t[s++]=128,(0,r.ru)(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(n,0),s=0);for(let e=s;e<i;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,u=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+u,a,r)}(n,i-8,BigInt(8*this.length),o),this.process(n,0);let a=(0,r.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,l=this.get();if(u>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)a.setUint32(4*e,l[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}let o=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),a=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);var c=n(10606);let u=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),l=new Uint32Array(64);class d extends i{constructor(e=32){super(64,e,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4],this.F=0|o[5],this.G=0|o[6],this.H=0|o[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)l[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=l[e-15],n=l[e-2],i=(0,r.np)(t,7)^(0,r.np)(t,18)^t>>>3,o=(0,r.np)(n,17)^(0,r.np)(n,19)^n>>>10;l[e]=o+l[e-7]+i+l[e-16]|0}let{A:n,B:i,C:o,D:s,E:a,F:c,G:d,H:f}=this;for(let e=0;e<64;e++){var h,p,b,m;let t=f+((0,r.np)(a,6)^(0,r.np)(a,11)^(0,r.np)(a,25))+((h=a)&c^~h&d)+u[e]+l[e]|0,y=((0,r.np)(n,2)^(0,r.np)(n,13)^(0,r.np)(n,22))+((p=n)&(b=i)^p&(m=o)^b&m)|0;f=d,d=c,c=a,a=s+t|0,s=o,o=i,i=n,n=t+y|0}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(n,i,o,s,a,c,d,f)}roundClean(){(0,r.ru)(l)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,r.ru)(this.buffer)}}let f=c.Vl(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
176f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),h=f[0],p=f[1],b=new Uint32Array(80),m=new Uint32Array(80);class y extends i{constructor(e=64){super(128,e,16,!1),this.Ah=0|a[0],this.Al=0|a[1],this.Bh=0|a[2],this.Bl=0|a[3],this.Ch=0|a[4],this.Cl=0|a[5],this.Dh=0|a[6],this.Dl=0|a[7],this.Eh=0|a[8],this.El=0|a[9],this.Fh=0|a[10],this.Fl=0|a[11],this.Gh=0|a[12],this.Gl=0|a[13],this.Hh=0|a[14],this.Hl=0|a[15]}get(){let{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:u,Fh:l,Fl:d,Gh:f,Gl:h,Hh:p,Hl:b}=this;return[e,t,n,r,i,o,s,a,c,u,l,d,f,h,p,b]}set(e,t,n,r,i,o,s,a,c,u,l,d,f,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let n=0;n<16;n++,t+=4)b[n]=e.getUint32(t),m[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|b[e-15],n=0|m[e-15],r=c.m_(t,n,1)^c.m_(t,n,8)^c.NI(t,n,7),i=c.Ou(t,n,1)^c.Ou(t,n,8)^c.Iq(t,n,7),o=0|b[e-2],s=0|m[e-2],a=c.m_(o,s,19)^c.FL(o,s,61)^c.NI(o,s,6),u=c.Ou(o,s,19)^c.$p(o,s,61)^c.Iq(o,s,6),l=c.Xb(i,u,m[e-7],m[e-16]),d=c.u8(l,r,a,b[e-7],b[e-16]);b[e]=0|d,m[e]=0|l}let{Ah:n,Al:r,Bh:i,Bl:o,Ch:s,Cl:a,Dh:u,Dl:l,Eh:d,El:f,Fh:y,Fl:w,Gh:g,Gl:v,Hh:A,Hl:x}=this;for(let e=0;e<80;e++){let t=c.m_(d,f,14)^c.m_(d,f,18)^c.FL(d,f,41),C=c.Ou(d,f,14)^c.Ou(d,f,18)^c.$p(d,f,41),E=d&y^~d&g,k=f&w^~f&v,I=c.zP(x,C,k,p[e],m[e]),P=c.pp(I,A,t,E,h[e],b[e]),B=0|I,O=c.m_(n,r,28)^c.FL(n,r,34)^c.FL(n,r,39),S=c.Ou(n,r,28)^c.$p(n,r,34)^c.$p(n,r,39),M=n&i^n&s^i&s,R=r&o^r&a^o&a;A=0|g,x=0|v,g=0|y,v=0|w,y=0|d,w=0|f,({h:d,l:f}=c.IH(0|u,0|l,0|P,0|B)),u=0|s,l=0|a,s=0|i,a=0|o,i=0|n,o=0|r;let T=c.ac(B,S,R);n=c.Fn(T,P,O,M),r=0|T}({h:n,l:r}=c.IH(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:o}=c.IH(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=c.IH(0|this.Ch,0|this.Cl,0|s,0|a)),({h:u,l:l}=c.IH(0|this.Dh,0|this.Dl,0|u,0|l)),({h:d,l:f}=c.IH(0|this.Eh,0|this.El,0|d,0|f)),({h:y,l:w}=c.IH(0|this.Fh,0|this.Fl,0|y,0|w)),({h:g,l:v}=c.IH(0|this.Gh,0|this.Gl,0|g,0|v)),({h:A,l:x}=c.IH(0|this.Hh,0|this.Hl,0|A,0|x)),this.set(n,r,i,o,s,a,u,l,d,f,y,w,g,v,A,x)}roundClean(){(0,r.ru)(b,m)}destroy(){(0,r.ru)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class w extends y{constructor(){super(48),this.Ah=0|s[0],this.Al=0|s[1],this.Bh=0|s[2],this.Bl=0|s[3],this.Ch=0|s[4],this.Cl=0|s[5],this.Dh=0|s[6],this.Dl=0|s[7],this.Eh=0|s[8],this.El=0|s[9],this.Fh=0|s[10],this.Fl=0|s[11],this.Gh=0|s[12],this.Gl=0|s[13],this.Hh=0|s[14],this.Hl=0|s[15]}}let g=(0,r.V1)(()=>new d),v=(0,r.V1)(()=>new y),A=(0,r.V1)(()=>new w)},49658:function(e,t,n){"use strict";n.d(t,{fr:function(){return v}});var r=n(10606),i=n(32305);let o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(7),u=BigInt(256),l=BigInt(113),d=[],f=[],h=[];for(let e=0,t=s,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],d.push(2*(5*r+n)),f.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)(t=(t<<s^(t>>c)*l)%u)&a&&(i^=s<<(s<<BigInt(e))-s);h.push(i)}let p=(0,r.Vl)(h,!0),b=p[0],m=p[1],y=(e,t,n)=>n>
vendor: 5,963 bytes, lines 17-46
1732?(0,r.SD)(e,t,n):(0,r.EP)(e,t,n),w=(e,t,n)=>n>32?(0,r.mk)(e,t,n):(0,r.gm)(e,t,n);class g extends i.kb{constructor(e,t,n,r=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=o,(0,i.k8)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.Jq)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.Ux)(this.state32),function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,o=n[i],s=n[i+1],a=y(o,s,1)^n[r],c=w(o,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=a,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=f[n],o=y(t,i,r),s=w(t,i,r),a=d[n];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=b[r],e[1]^=m[r]}(0,i.ru)(n)}(this.state32,this.rounds),(0,i.Ux)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.$h)(this),e=(0,i.O0)(e),(0,i.gk)(e);let{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){let o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,i.$h)(this,!1),(0,i.gk)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.k8)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.eB)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.ru)(this.state)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new g(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}let v=(0,i.V1)(()=>new g(136,1,32))},32305:function(e,t,n){"use strict";n.d(t,{kb:function(){return m},gk:function(){return o},$h:function(){return a},z3:function(){return s},k8:function(){return i},eB:function(){return c},ru:function(){return l},eV:function(){return b},V1:function(){return y},GL:function(){return d},O6:function(){return w},np:function(){return f},Ux:function(){return h},O0:function(){return p},Jq:function(){return u}});let r="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function o(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function c(e,t){o(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}function u(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function l(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}let h=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}return e};function p(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),o(e),e}function b(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];o(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}class m{}function y(e){let t=t=>e().update(p(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function w(e=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"==typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}},12691:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=`{ 18 "connect_wallet": { 19 "label": "Connect Wallet", 20 "wrong_network": { 21 "label": "Wrong network" 22 } 23 }, 24 25 "intro": { 26 "title": "What is a Wallet?", 27 "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.", 28 "digital_asset": { 29 "title": "A Home for your Digital Assets", 30 "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs." 31 }, 32 "login": { 33 "title": "A New Way to Log In", 34 "description": "Instead of creating new accounts and passwords on every website, just connect your wallet." 35 }, 36 "get": { 37 "label": "Get a Wallet" 38 }, 39 "learn_more": { 40 "label": "Learn More" 41 } 42 }, 43 44 "sign_in": { 45 "label": "Verify your account", 46 "description": "To finish connecting, you must sign a message in y
46our wallet to verify that you are the owner of this account.", 47 "message": { 48 "send": "Sign message", 49 "preparing": "Preparing message...", 50 "cancel": "Cancel", 51 "preparing_error": "Error preparing message, please retry!" 52 }, 53 "signature": { 54 "waiting": "Waiting for signature...", 55 "verifying": "Verifying signature...", 56 "signing_error": "Error signing message, please retry!", 57 "verifying_error": "Error verifying signature, please retry!", 58 "oops_error": "Oops, something went wrong!" 59 } 60 }, 61 62 "connect": { 63 "label": "Connect", 64 "title": "Connect a Wallet", 65 "new_to_ethereum": { 66 "description": "New to Ethereum wallets?", 67 "learn_more": { 68 "label": "Learn More" 69 } 70 }, 71 "learn_more": { 72 "label": "Learn more" 73 }, 74 "recent": "Recent", 75 "status": { 76 "opening": "Opening %{wallet}...", 77 "connecting": "Connecting", 78 "connect_mobile": "Continue in %{wallet}", 79 "not_installed": "%{wallet} is not installed", 80 "not_available": "%{wallet} is not available", 81 "confirm": "Confirm connection in the extension", 82 "confirm_mobile": "Accept connection request in the wallet" 83 }, 84 "secondary_action": { 85 "get": { 86 "description": "Don't have %{wallet}?", 87 "label": "GET" 88 }, 89 "install": { 90 "label": "INSTALL" 91 }, 92 "retry": { 93 "label": "RETRY" 94 } 95 }, 96 "walletconnect": { 97 "description": { 98 "full": "Need the official WalletConnect modal?", 99 "compact": "Need the WalletConnect modal?" 100 }, 101 "open": { 102 "label": "OPEN" 103 } 104 } 105 }, 106 107 "connect_scan": { 108 "title": "Scan with %{wallet}", 109 "fallback_title": "Scan with your phone" 110 }, 111 112 "connector_group": { 113 "installed": "Installed", 114 "recommended": "Recommended", 115 "other": "Other", 116 "popular": "Popular", 117 "more": "More", 118 "others": "Others" 119 }, 120 121 "get": { 122 "title": "Get a Wallet", 123 "action": { 124 "label": "GET" 125 }, 126 "mobile": { 127 "description": "Mobile Wallet" 128 }, 129 "extension": { 130 "description": "Browser Extension" 131 }, 132 "mobile_and_extension": { 133 "description": "Mobile Wallet and Extension" 134 }, 135 "mobile_and_desktop": { 136 "description": "Mobile and Desktop Wallet" 137 }, 138 "looking_for": { 139 "title": "Not what you're looking for?", 140 "mobile": { 141 "description": "Select a wallet on the main screen to get started with a different wallet provider." 142 }, 143 "desktop": { 144 "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.", 145 "wide_description": "Select a wallet on the left to get started with a different wallet provider." 146 } 147 } 148 }, 149 150 "get_options": { 151 "title": "Get started with %{wallet}", 152 "short_title": "Get %{wallet}", 153 "mobile": { 154 "title": "%{wallet} for Mobile", 155 "description": "Use the mobile wallet to explore the world of Ethereum.", 156 "download": { 157 "label": "Get the app" 158 } 159 }, 160 "extension": { 161 "title": "%{wallet} for %{browser}", 162 "description": "Access your wallet right from your favorite web browser.", 163 "download": { 164 "label": "Add to %{browser}" 165 } 166 }, 167 "desktop": { 168 "title": "%{wallet} for %{platform}", 169 "description": "Access your wallet natively from your powerful desktop.", 170 "download": { 171 "label": "Add to %{platform}" 172 } 173 } 174 }, 175 176 "get_mobile": { 177 "title": "Install %{wallet}", 178 "description": "Scan with your phone to download on iOS or Android", 179 "continue": { 180 "label": "Continue" 181 } 182 }, 183 184 "get_instructions": { 185 "mobile": { 186 "connect": { 187 "label": "Connect" 188 }, 189 "learn_more": { 190 "label": "Learn More" 191 } 192 }, 193 "extension": { 194 "refresh": { 195 "label": "Refresh" 196 }, 197 "learn_more": { 198 "label": "Learn More" 199 } 200 }, 201 "desktop": { 202 "connect": { 203 "label": "Connect" 204 }, 205 "learn_more": { 206 "label": "Learn More" 207 } 208 } 209 }, 210 211 "chains": { 212 "title": "Switch Networks", 213 "wrong_network": "Wrong network detected, switch or disconnect to continue.", 214 "confirm": "Confirm in Wallet", 215 "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.", 216 "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.", 217 "disconnect": "Disconnect", 218 "connected": "Connected" 219 }, 220 221 "profile": { 222 "disconnect": { 223 "label": "Disconnect" 224 }, 225 "copy_address": { 226 "label": "Copy Address", 227 "copied": "Copied!" 228 }, 229 "explorer": { 230 "label": "View more on explorer" 231 }, 232 "transactions": { 233 "description": "%{appName} transactions will appear here...", 234 "description_fallback": "Your transactions will appear here...", 235 "recent": { 236 "title": "Recent Transactions" 237 }, 238 "clear": { 239 "label": "Clear All" 240 } 241 } 242 }, 243 244 "wallet_connectors": { 245 "argent": { 246 "qr_code": { 247 "step1": { 248 "description": "Put Argent on your home screen for faster access to your wallet.", 249 "title": "Open the Argent app" 250 }, 251 "step2": { 252 "description": "Create a wallet and username, or import an existing wallet.", 253 "title": "Create or Import a Wallet" 254 }, 255 "step3": { 256 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 257 "title": "Tap the Scan QR button" 258 } 259 } 260 }, 261 262 "berasig": { 263 "extension": { 264 "step1": { 265 "title": "Install the BeraSig extension", 266 "description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet." 267 }, 268 "step2": { 269 "title": "Create a Wallet", 270 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 271 }, 272 "step3": { 273 "title": "Refresh your browser", 274 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 275 } 276 } 277 }, 278 279 "best": { 280 "qr_code": { 281 "step1": { 282 "title": "Open the Best Wallet app", 283 "description": "Add Best Wallet to your home screen for faster access to your wallet." 284 }, 285 "step2": { 286 "title": "Create or Import a Wallet", 287 "description": "Create a new wallet or import an existing one." 288 }, 289 "step3": { 290 "title": "Tap the QR icon and scan", 291 "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." 292 } 293 } 294 }, 295 296 "bifrost": { 297 "qr_code": { 298 "step1": { 299 "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.", 300 "title": "Open the Bifrost Wallet app"
301 }, 302 "step2": { 303 "description": "Create or import a wallet using your recovery phrase.", 304 "title": "Create or Import a Wallet" 305 }, 306 "step3": { 307 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 308 "title": "Tap the scan button" 309 } 310 } 311 }, 312 313 "bitget": { 314 "qr_code": { 315 "step1": { 316 "description": "We recommend putting Bitget Wallet on your home screen for quicker access.", 317 "title": "Open the Bitget Wallet app" 318 }, 319 "step2": { 320 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 321 "title": "Create or Import a Wallet" 322 }, 323 "step3": { 324 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 325 "title": "Tap the scan button" 326 } 327 }, 328 329 "extension": { 330 "step1": { 331 "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.", 332 "title": "Install the Bitget Wallet extension" 333 }, 334 "step2": { 335 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 336 "title": "Create or Import a Wallet" 337 }, 338 "step3": { 339 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 340 "title": "Refresh your browser" 341 } 342 } 343 }, 344 345 "bitski": { 346 "extension": { 347 "step1": { 348 "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.", 349 "title": "Install the Bitski extension" 350 }, 351 "step2": { 352 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 353 "title": "Create or Import a Wallet" 354 }, 355 "step3": { 356 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 357 "title": "Refresh your browser" 358 } 359 } 360 }, 361 362 "bitverse": { 363 "qr_code": { 364 "step1": { 365 "title": "Open the Bitverse Wallet app", 366 "description": "Add Bitverse Wallet to your home screen for faster access to your wallet." 367 }, 368 "step2": { 369 "title": "Create or Import a Wallet", 370 "description": "Create a new wallet or import an existing one." 371 }, 372 "step3": { 373 "title": "Tap the QR icon and scan", 374 "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." 375 } 376 } 377 }, 378 379 "bloom": { 380 "desktop": { 381 "step1": { 382 "title": "Open the Bloom Wallet app", 383 "description": "We recommend putting Bloom Wallet on your home screen for quicker access." 384 }, 385 "step2": { 386 "description": "Create or import a wallet using your recovery phrase.", 387 "title": "Create or Import a Wallet" 388 }, 389 "step3": { 390 "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.", 391 "title": "Click on Connect" 392 } 393 } 394 }, 395 396 "bybit": { 397 "qr_code": { 398 "step1": { 399 "description": "We recommend putting Bybit on your home screen for faster access to your wallet.", 400 "title": "Open the Bybit app" 401 }, 402 "step2": { 403 "description": "You can easily backup your wallet using our backup feature on your phone.", 404 "title": "Create or Import a Wallet" 405 }, 406 "step3": { 407 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 408 "title": "Tap the scan button" 409 } 410 }, 411 412 "extension": { 413 "step1": { 414 "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.", 415 "title": "Install the Bybit Wallet extension" 416 }, 417 "step2": { 418 "description": "Create a new wallet or import an existing one.", 419 "title": "Create or Import a wallet" 420 }, 421 "step3": { 422 "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.", 423 "title": "Refresh your browser" 424 } 425 } 426 }, 427 428 "binance": { 429 "qr_code": { 430 "step1": { 431 "description": "We recommend putting Binance on your home screen for faster access to your wallet.", 432 "title": "Open the Binance app" 433 }, 434 "step2": { 435 "description": "You can easily backup your wallet using our backup feature on your phone.", 436 "title": "Create or Import a Wallet" 437 }, 438 "step3": { 439 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 440 "title": "Tap the WalletConnect button" 441 } 442 } 443 }, 444 445 "coin98": { 446 "qr_code": { 447 "step1": { 448 "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
449 "title": "Open the Coin98 Wallet app" 450 }, 451 "step2": { 452 "description": "You can easily backup your wallet using our backup feature on your phone.", 453 "title": "Create or Import a Wallet" 454 }, 455 "step3": { 456 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 457 "title": "Tap the WalletConnect button" 458 } 459 }, 460 461 "extension": { 462 "step1": { 463 "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.", 464 "title": "Install the Coin98 Wallet extension" 465 }, 466 "step2": { 467 "description": "Create a new wallet or import an existing one.", 468 "title": "Create or Import a wallet" 469 }, 470 "step3": { 471 "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.", 472 "title": "Refresh your browser" 473 } 474 } 475 }, 476 477 "coinbase": { 478 "qr_code": { 479 "step1": { 480 "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.", 481 "title": "Open the Coinbase Wallet app" 482 }, 483 "step2": { 484 "description": "You can easily backup your wallet using the cloud backup feature.", 485 "title": "Create or Import a Wallet" 486 }, 487 "step3": { 488 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 489 "title": "Tap the scan button" 490 } 491 }, 492 493 "extension": { 494 "step1": { 495 "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.", 496 "title": "Install the Coinbase Wallet extension" 497 }, 498 "step2": { 499 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 500 "title": "Create or Import a Wallet" 501 }, 502 "step3": { 503 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 504 "title": "Refresh your browser" 505 } 506 } 507 }, 508 509 "compass": { 510 "extension": { 511 "step1": { 512 "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.", 513 "title": "Install the Compass Wallet extension" 514 }, 515 "step2": { 516 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 517 "title": "Create or Import a Wallet" 518 }, 519 "step3": { 520 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 521 "title": "Refresh your browser" 522 } 523 } 524 }, 525 526 "core": { 527 "qr_code": { 528 "step1": { 529 "description": "We recommend putting Core on your home screen for faster access to your wallet.", 530 "title": "Open the Core app" 531 }, 532 "step2": { 533 "description": "You can easily backup your wallet using our backup feature on your phone.", 534 "title": "Create or Import a Wallet" 535 }, 536 "step3": { 537 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 538 "title": "Tap the WalletConnect button" 539 } 540 }, 541 542 "extension": { 543 "step1": { 544 "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.", 545 "title": "Install the Core extension" 546 }, 547 "step2": { 548 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 549 "title": "Create or Import a Wallet" 550 }, 551 "step3": { 552 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 553 "title": "Refresh your browser" 554 } 555 } 556 }, 557 558 "fox": { 559 "qr_code": { 560 "step1": { 561 "description": "We recommend putting FoxWallet on your home screen for quicker access.", 562 "title": "Open the FoxWallet app"
563 }, 564 "step2": { 565 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 566 "title": "Create or Import a Wallet" 567 }, 568 "step3": { 569 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 570 "title": "Tap the scan button" 571 } 572 } 573 }, 574 575 "frontier": { 576 "qr_code": { 577 "step1": { 578 "description": "We recommend putting Frontier Wallet on your home screen for quicker access.", 579 "title": "Open the Frontier Wallet app" 580 }, 581 "step2": { 582 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 583 "title": "Create or Import a Wallet" 584 }, 585 "step3": { 586 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 587 "title": "Tap the scan button" 588 } 589 }, 590 591 "extension": { 592 "step1": { 593 "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.", 594 "title": "Install the Frontier Wallet extension" 595 }, 596 "step2": { 597 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 598 "title": "Create or Import a Wallet" 599 }, 600 "step3": { 601 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 602 "title": "Refresh your browser" 603 } 604 } 605 }, 606 607 "im_token": { 608 "qr_code": { 609 "step1": { 610 "title": "Open the imToken app", 611 "description": "Put imToken app on your home screen for faster access to your wallet." 612 }, 613 "step2": { 614 "title": "Create or Import a Wallet", 615 "description": "Create a new wallet or import an existing one." 616 }, 617 "step3": { 618 "title": "Tap Scanner Icon in top right corner", 619 "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." 620 } 621 } 622 }, 623 624 "iopay": { 625 "qr_code": { 626 "step1": { 627 "description": "We recommend putting ioPay on your home screen for faster access to your wallet.", 628 "title": "Open the ioPay app" 629 }, 630 "step2": { 631 "description": "You can easily backup your wallet using our backup feature on your phone.", 632 "title": "Create or Import a Wallet" 633 }, 634 "step3": { 635 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 636 "title": "Tap the WalletConnect button" 637 } 638 } 639 }, 640 641 "kaikas": { 642 "extension": { 643 "step1": { 644 "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.", 645 "title": "Install the Kaikas extension" 646 }, 647 "step2": { 648 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 649 "title": "Create or Import a Wallet" 650 }, 651 "step3": { 652 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 653 "title": "Refresh your browser" 654 } 655 }, 656 "qr_code": { 657 "step1": { 658 "title": "Open the Kaikas app", 659 "description": "Put Kaikas app on your home screen for faster access to your wallet." 660 }, 661 "step2": { 662 "title": "Create or Import a Wallet", 663 "description": "Create a new wallet or import an existing one." 664 }, 665 "step3": { 666 "title": "Tap Scanner Icon in top right corner", 667 "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." 668 } 669 } 670 }, 671 672 "kaia": { 673 "extension": { 674 "step1": { 675 "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.", 676 "title": "Install the Kaia extension" 677 }, 678 "step2": { 679 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 680 "title": "Create or Import a Wallet" 681 }, 682 "step3": { 683 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 684 "title": "Refresh your browser" 685 } 686 }, 687 "qr_code": { 688 "step1": { 689 "title": "Open the Kaia app", 690 "description": "Put Kaia app on your home screen for faster access to your wallet." 691 }, 692 "step2": { 693 "title": "Create or Import a Wallet", 694 "description": "Create a new wallet or import an existing one." 695 }, 696 "step3": { 697 "title": "Tap Scanner Icon in top right corner", 698 "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." 699 } 700 } 701 }, 702 703 "kraken": { 704 "qr_code": { 705 "step1": { 706 "title": "Open the Kraken Wallet app", 707 "description": "Add Kraken Wallet to your home screen for faster access to your wallet." 708 }, 709 "step2": { 710 "title": "Create or Import a Wallet", 711 "description": "Create a new wallet or import an existing one." 712 }, 713 "step3": { 714 "title": "Tap the QR icon and scan", 715 "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." 716 } 717 } 718 }, 719 720 "kresus": { 721 "qr_code": { 722 "step1": { 723 "title": "Open the Kresus Wallet app", 724 "description": "Add Kresus Wallet to your home screen for faster access to your wallet." 725 }, 726 "step2": { 727 "title": "Create or Import a Wallet", 728 "description": "Create a new wallet or import an existing one." 729 }, 730 "step3": { 731 "title": "Tap the QR icon and scan", 732 "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." 733 } 734 } 735 }, 736 737 "magicEden": { 738 "extension": { 739 "step1": { 740 "title": "Install the Magic Eden extension", 741 "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet." 742 }, 743 "step2": { 744 "title": "Create or Import a Wallet", 745 "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone." 746 }, 747 "step3": { 748 "title": "Refresh your browser", 749 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 750 } 751 } 752 }, 753 754 "metamask": { 755 "qr_code": { 756 "step1": { 757 "title": "Open the MetaMask app", 758 "description": "We recommend putting MetaMask on your home screen for quicker access." 759 }, 760 "step2": { 761 "title": "Create or Import a Wallet", 762 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 763 }, 764 "step3": { 765 "title": "Tap the scan button", 766 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 767 } 768 }, 769 770 "extension": { 771 "step1": { 772 "title": "Install the MetaMask extension", 773 "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet." 774 }, 775 "step2": { 776 "title": "Create or Import a Wallet", 777 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 778 }, 779 "step3": { 780 "title": "Refresh your browser", 781 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 782 } 783 } 784 }, 785 786 "nestwallet": { 787 "extension": { 788 "step1": { 789 "title": "Install the NestWallet extension", 790 "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet." 791 }, 792 "step2": { 793 "title": "Create or Import a Wallet", 794 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 795 }, 796 "step3": { 797 "title": "Refresh your browser", 798 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 799 } 800 } 801 }, 802 803 "okx": { 804 "qr_code": { 805 "step1": { 806 "title": "Open the OKX Wallet app", 807 "description": "We recommend putting OKX Wallet on your home screen for quicker access." 808 }, 809 "step2": { 810 "title": "Create or Import a Wallet", 811 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 812 }, 813 "step3": { 814 "title": "Tap the scan button", 815 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 816 } 817 }, 818 819 "extension": { 820 "step1": { 821 "title": "Install the OKX Wallet extension", 822 "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet." 823 }, 824 "step2": { 825 "title": "Create or Import a Wallet", 826 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 827 }, 828 "step3": { 829 "title": "Refresh your browser", 830 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 831 } 832 } 833 }, 834 835 "omni": { 836 "qr_code": { 837 "step1": { 838 "title": "Open the Omni app", 839 "description": "Add Omni to your home screen for faster access to your wallet." 840 }, 841 "step2": { 842 "title": "Create or Import a Wallet", 843 "description": "Create a new wallet or import an existing one." 844 }, 845 "step3": { 846 "title": "Tap the QR icon and scan", 847 "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect." 848 } 849 } 850 }, 851 852 "1inch": { 853 "qr_code": { 854 "step1": { 855 "description": "Put 1inch Wallet on your home screen for faster access to your wallet.", 856 "title": "Open the 1inch Wallet app"
857 }, 858 "step2": { 859 "description": "Create a wallet and username, or import an existing wallet.", 860 "title": "Create or Import a Wallet" 861 }, 862 "step3": { 863 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 864 "title": "Tap the Scan QR button" 865 } 866 } 867 }, 868 869 "token_pocket": { 870 "qr_code": { 871 "step1": { 872 "title": "Open the TokenPocket app", 873 "description": "We recommend putting TokenPocket on your home screen for quicker access." 874 }, 875 "step2": { 876 "title": "Create or Import a Wallet", 877 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 878 }, 879 "step3": { 880 "title": "Tap the scan button", 881 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 882 } 883 }, 884 885 "extension": { 886 "step1": { 887 "title": "Install the TokenPocket extension", 888 "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet." 889 }, 890 "step2": { 891 "title": "Create or Import a Wallet", 892 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 893 }, 894 "step3": { 895 "title": "Refresh your browser", 896 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 897 } 898 } 899 }, 900 901 "trust": { 902 "qr_code": { 903 "step1": { 904 "title": "Open the Trust Wallet app", 905 "description": "Put Trust Wallet on your home screen for faster access to your wallet." 906 }, 907 "step2": { 908 "title": "Create or Import a Wallet", 909 "description": "Create a new wallet or import an existing one." 910 }, 911 "step3": { 912 "title": "Tap WalletConnect in Settings", 913 "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." 914 } 915 }, 916 917 "extension": { 918 "step1": { 919 "title": "Install the Trust Wallet extension", 920 "description": "Click at the top right of your browser and pin Trust Wallet for easy access." 921 }, 922 "step2": { 923 "title": "Create or Import a wallet", 924 "description": "Create a new wallet or import an existing one." 925 }, 926 "step3": { 927 "title": "Refresh your browser", 928 "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension." 929 } 930 } 931 }, 932 933 "uniswap": { 934 "qr_code": { 935 "step1": { 936 "title": "Open the Uniswap app", 937 "description": "Add Uniswap Wallet to your home screen for faster access to your wallet." 938 }, 939 "step2": { 940 "title": "Create or Import a Wallet", 941 "description": "Create a new wallet or import an existing one." 942 }, 943 "step3": { 944 "title": "Tap the QR icon and scan", 945 "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." 946 } 947 } 948 }, 949 950 "zerion": { 951 "qr_code": { 952 "step1": { 953 "title": "Open the Zerion app", 954 "description": "We recommend putting Zerion on your home screen for quicker access." 955 }, 956 "step2": { 957 "title": "Create or Import a Wallet", 958 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 959 }, 960 "step3": { 961 "title": "Tap the scan button", 962 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 963 } 964 }, 965 966 "extension": { 967 "step1": { 968 "title": "Install the Zerion extension", 969 "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet." 970 }, 971 "step2": { 972 "title": "Create or Import a Wallet", 973 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 974 }, 975 "step3": { 976 "title": "Refresh your browser", 977 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 978 } 979 } 980 }, 981 982 "rainbow": { 983 "qr_code": { 984 "step1": { 985 "title": "Open the Rainbow app", 986 "description": "We recommend putting Rainbow on your home screen for faster access to your wallet." 987 }, 988 "step2": { 989 "title": "Create or Import a Wallet", 990 "description": "You can easily backup your wallet using our backup feature on your phone." 991 }, 992 "step3": { 993 "title": "Tap the scan button", 994 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 995 } 996 } 997 }, 998 999 "enkrypt": { 1000 "extension": { 1001 "step1": { 1002 "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.", 1003 "title": "Install the Enkrypt Wallet extension" 1004 }, 1005 "step2": { 1006 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 1007 "title": "Create or Import a Wallet" 1008 }, 1009 "step3": { 1010 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 1011 "title": "Refresh your browser" 1012 } 1013 } 1014 }, 1015 1016 "frame": { 1017 "extension": { 1018 "step1": { 1019 "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.", 1020 "title": "Install Frame & the companion extension" 1021 }, 1022 "step2": { 1023 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 1024 "title": "Create or Import a Wallet" 1025 }, 1026 "step3": { 1027 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 1028 "title": "Refresh your browser" 1029 } 1030 } 1031 }, 1032 1033 "one_key": { 1034 "extension": { 1035 "step1": { 1036 "title": "Install the OneKey Wallet extension", 1037 "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet." 1038 }, 1039 "step2": { 1040 "title": "Create or Import a Wallet", 1041 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1042 }, 1043 "step3": { 1044 "title": "Refresh your browser", 1045 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1046 } 1047 } 1048 }, 1049 1050 "paraswap": { 1051 "qr_code": { 1052 "step1": { 1053 "title": "Open the ParaSwap app", 1054 "description": "Add ParaSwap Wallet to your home screen for faster access to your wallet." 1055 }, 1056 "step2": { 1057 "title": "Create or Import a Wallet", 1058 "description": "Create a new wallet or import an existing one." 1059 }, 1060 "step3": { 1061 "title": "Tap the QR icon and scan", 1062 "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." 1063 } 1064 } 1065 }, 1066 1067 "phantom": { 1068 "extension": { 1069 "step1": { 1070 "title": "Install the Phantom extension", 1071 "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet." 1072 }, 1073 "step2": { 1074 "title": "Create or Import a Wallet", 1075 "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone." 1076 }, 1077 "step3": { 1078 "title": "Refresh your browser", 1079 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1080 } 1081 } 1082 }, 1083 1084 "rabby": { 1085 "extension": { 1086 "step1": { 1087 "title": "Install the Rabby extension", 1088 "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet." 1089 }, 1090 "step2": { 1091 "title": "Create or Import a Wallet", 1092 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1093 }, 1094 "step3": { 1095 "title": "Refresh your browser", 1096 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1097 } 1098 } 1099 }, 1100 1101 "ronin": { 1102 "qr_code": { 1103 "step1": { 1104 "description": "We recommend putting Ronin Wallet on your home screen for quicker access.", 1105 "title": "Open the Ronin Wallet app"
1106 }, 1107 "step2": { 1108 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 1109 "title": "Create or Import a Wallet" 1110 }, 1111 "step3": { 1112 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 1113 "title": "Tap the scan button" 1114 } 1115 }, 1116 1117 "extension": { 1118 "step1": { 1119 "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.", 1120 "title": "Install the Ronin Wallet extension" 1121 }, 1122 "step2": { 1123 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.", 1124 "title": "Create or Import a Wallet" 1125 }, 1126 "step3": { 1127 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.", 1128 "title": "Refresh your browser" 1129 } 1130 } 1131 }, 1132 1133 "ramper": { 1134 "extension": { 1135 "step1": { 1136 "title": "Install the Ramper extension", 1137 "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet." 1138 }, 1139 "step2": { 1140 "title": "Create a Wallet", 1141 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1142 }, 1143 "step3": { 1144 "title": "Refresh your browser", 1145 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1146 } 1147 } 1148 }, 1149 1150 "safeheron": { 1151 "extension": { 1152 "step1": { 1153 "title": "Install the Core extension", 1154 "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet." 1155 }, 1156 "step2": { 1157 "title": "Create or Import a Wallet", 1158 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1159 }, 1160 "step3": { 1161 "title": "Refresh your browser", 1162 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1163 } 1164 } 1165 }, 1166 1167 "taho": { 1168 "extension": { 1169 "step1": { 1170 "title": "Install the Taho extension", 1171 "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet." 1172 }, 1173 "step2": { 1174 "title": "Create or Import a Wallet", 1175 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1176 }, 1177 "step3": { 1178 "title": "Refresh your browser", 1179 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1180 } 1181 } 1182 }, 1183 1184 "wigwam": { 1185 "extension": { 1186 "step1": { 1187 "title": "Install the Wigwam extension", 1188 "description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet." 1189 }, 1190 "step2": { 1191 "title": "Create or Import a Wallet", 1192 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1193 }, 1194 "step3": { 1195 "title": "Refresh your browser", 1196 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1197 } 1198 } 1199 }, 1200 1201 "talisman": { 1202 "extension": { 1203 "step1": { 1204 "title": "Install the Talisman extension", 1205 "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet." 1206 }, 1207 "step2": { 1208 "title": "Create or Import an Ethereum Wallet", 1209 "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." 1210 }, 1211 "step3": { 1212 "title": "Refresh your browser", 1213 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1214 } 1215 } 1216 }, 1217 1218 "xdefi": { 1219 "extension": { 1220 "step1": { 1221 "title": "Install the XDEFI Wallet extension", 1222 "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet." 1223 }, 1224 "step2": { 1225 "title": "Create or Import a Wallet", 1226 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1227 }, 1228 "step3": { 1229 "title": "Refresh your browser", 1230 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1231 } 1232 } 1233 }, 1234 1235 "zeal": { 1236 "qr_code": { 1237 "step1": { 1238 "title": "Open the Zeal app", 1239 "description": "Add Zeal Wallet to your home screen for faster access to your wallet." 1240 }, 1241 "step2": { 1242 "title": "Create or Import a Wallet", 1243 "description": "Create a new wallet or import an existing one." 1244 }, 1245 "step3": { 1246 "title": "Tap the QR icon and scan", 1247 "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect." 1248 } 1249 }, 1250 "extension": { 1251 "step1": { 1252 "title": "Install the Zeal extension", 1253 "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet." 1254 }, 1255 "step2": { 1256 "title": "Create or Import a Wallet", 1257 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1258 }, 1259 "step3": { 1260 "title": "Refresh your browser", 1261 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1262 } 1263 } 1264 }, 1265 1266 "safepal": { 1267 "extension": { 1268 "step1": { 1269 "title": "Install the SafePal Wallet extension", 1270 "description": "Click at the top right of your browser and pin SafePal Wallet for easy access." 1271 }, 1272 "step2": { 1273 "title": "Create or Import a wallet", 1274 "description": "Create a new wallet or import an existing one." 1275 }, 1276 "step3": { 1277 "title": "Refresh your browser", 1278 "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension." 1279 } 1280 }, 1281 "qr_code": { 1282 "step1": { 1283 "title": "Open the SafePal Wallet app", 1284 "description": "Put SafePal Wallet on your home screen for faster access to your wallet." 1285 }, 1286 "step2": { 1287 "title": "Create or Import a Wallet", 1288 "description": "Create a new wallet or import an existing one." 1289 }, 1290 "step3": { 1291 "title": "Tap WalletConnect in Settings", 1292 "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect." 1293 } 1294 } 1295 }, 1296 1297 "desig": { 1298 "extension": { 1299 "step1": { 1300 "title": "Install the Desig extension", 1301 "description": "We recommend pinning Desig to your taskbar for easier access to your wallet." 1302 }, 1303 "step2": { 1304 "title": "Create a Wallet", 1305 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1306 }, 1307 "step3": { 1308 "title": "Refresh your browser", 1309 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1310 } 1311 } 1312 }, 1313 1314 "subwallet": { 1315 "extension": { 1316 "step1": { 1317 "title": "Install the SubWallet extension", 1318 "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet." 1319 }, 1320 "step2": { 1321 "title": "Create or Import a Wallet", 1322 "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone." 1323 }, 1324 "step3": { 1325 "title": "Refresh your browser", 1326 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1327 } 1328 }, 1329 "qr_code": { 1330 "step1": { 1331 "title": "Open the SubWallet app", 1332 "description": "We recommend putting SubWallet on your home screen for quicker access." 1333 }, 1334 "step2": { 1335 "title": "Create or Import a Wallet", 1336 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1337 }, 1338 "step3": { 1339 "title": "Tap the scan button", 1340 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 1341 } 1342 } 1343 }, 1344 1345 "clv": { 1346 "extension": { 1347 "step1": { 1348 "title": "Install the CLV Wallet extension", 1349 "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet." 1350 }, 1351 "step2": { 1352 "title": "Create or Import a Wallet", 1353 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1354 }, 1355 "step3": { 1356 "title": "Refresh your browser", 1357 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1358 } 1359 }, 1360 "qr_code": { 1361 "step1": { 1362 "title": "Open the CLV Wallet app", 1363 "description": "We recommend putting CLV Wallet on your home screen for quicker access." 1364 }, 1365 "step2": { 1366 "title": "Create or Import a Wallet", 1367 "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone." 1368 }, 1369 "step3": { 1370 "title": "Tap the scan button", 1371 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 1372 } 1373 } 1374 }, 1375 1376 "okto": { 1377 "qr_code": { 1378 "step1": {
1379 "title": "Open the Okto app", 1380 "description": "Add Okto to your home screen for quick access" 1381 }, 1382 "step2": { 1383 "title": "Create an MPC Wallet", 1384 "description": "Create an account and generate a wallet" 1385 }, 1386 "step3": { 1387 "title": "Tap WalletConnect in Settings", 1388 "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect." 1389 } 1390 } 1391 }, 1392 1393 "ledger": { 1394 "desktop": { 1395 "step1": { 1396 "title": "Open the Ledger Live app", 1397 "description": "We recommend putting Ledger Live on your home screen for quicker access." 1398 }, 1399 "step2": { 1400 "title": "Set up your Ledger", 1401 "description": "Set up a new Ledger or connect to an existing one." 1402 }, 1403 "step3": { 1404 "title": "Connect", 1405 "description": "A connection prompt will appear for you to connect your wallet." 1406 } 1407 }, 1408 "qr_code": { 1409 "step1": { 1410 "title": "Open the Ledger Live app", 1411 "description": "We recommend putting Ledger Live on your home screen for quicker access." 1412 }, 1413 "step2": { 1414 "title": "Set up your Ledger", 1415 "description": "You can either sync with the desktop app or connect your Ledger." 1416 }, 1417 "step3": { 1418 "title": "Scan the code", 1419 "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet." 1420 } 1421 } 1422 }, 1423 1424 "valora": { 1425 "qr_code": { 1426 "step1": { 1427 "title": "Open the Valora app", 1428 "description": "We recommend putting Valora on your home screen for quicker access." 1429 }, 1430 "step2": { 1431 "title": "Create or import a wallet", 1432 "description": "Create a new wallet or import an existing one." 1433 }, 1434 "step3": { 1435 "title": "Tap the scan button", 1436 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 1437 } 1438 } 1439 }, 1440 1441 "gate": { 1442 "qr_code": { 1443 "step1": { 1444 "title": "Open the Gate app", 1445 "description": "We recommend putting Gate on your home screen for quicker access." 1446 }, 1447 "step2": { 1448 "title": "Create or Import a Wallet", 1449 "description": "Create a new wallet or import an existing one." 1450 }, 1451 "step3": { 1452 "title": "Tap the scan button", 1453 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 1454 } 1455 }, 1456 "extension": { 1457 "step1": { 1458 "title": "Install the Gate extension", 1459 "description": "We recommend pinning Gate to your taskbar for easier access to your wallet." 1460 }, 1461 "step2": { 1462 "title": "Create or Import a Wallet", 1463 "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone." 1464 }, 1465 "step3": { 1466 "title": "Refresh your browser", 1467 "description": "Once you set up your wallet, click below to refresh the browser and load up the extension." 1468 } 1469 } 1470 }, 1471 1472 "xportal": { 1473 "qr_code": { 1474 "step1": { 1475 "description": "Put xPortal on your home screen for faster access to your wallet.", 1476 "title": "Open the xPortal app" 1477 }, 1478 "step2": { 1479 "description": "Create a wallet or import an existing one.", 1480 "title": "Create or Import a Wallet" 1481 }, 1482 "step3": { 1483 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 1484 "title": "Tap the Scan QR button" 1485 } 1486 } 1487 }, 1488 1489 "mew": { 1490 "qr_code": { 1491 "step1": { 1492 "description": "We recommend putting MEW Wallet on your home screen for quicker access.", 1493 "title": "Open the MEW Wallet app" 1494 }, 1495 "step2": { 1496 "description": "You can easily backup your wallet using the cloud backup feature.", 1497 "title": "Create or Import a Wallet" 1498 }, 1499 "step3": { 1500 "description": "After you scan, a connection prompt will appear for you to connect your wallet.", 1501 "title": "Tap the scan button" 1502 } 1503 } 1504 } 1505 }, 1506 1507 "zilpay": { 1508 "qr_code": { 1509 "step1": { 1510 "title": "Open the ZilPay app", 1511 "description": "Add ZilPay to your home screen for faster access to your wallet." 1512 }, 1513 "step2": { 1514 "title": "Create or Import a Wallet", 1515 "description": "Create a new wallet or import an existing one." 1516 }, 1517 "step3": { 1518 "title": "Tap the scan button", 1519 "description": "After you scan, a connection prompt will appear for you to connect your wallet." 1520 } 1521 } 1522 } 1523} 1524`},32643:function(e,t,n){"use strict";n.d(t,{W:function(){return l}});var r='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',i={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"}},s={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},a=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:s[n].modalOverlay},fonts:{body:i[t]},radii:{actionButton:o[e].actionButton,connectButton:o[e].connectButton,menuButton:o[e].connectButton,modal:o[e].modal,modalMobile:o[e].modalMobile}}),c={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"}},u=c.blue,l=({accentColor:e=u.accentColor,accentColorForeground:t=u.accentColorForeground,...n}={})=>({...a(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackgroun
1524d:"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)"}});l.accentColors=c},40127:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var r=n(84480),i=n(25413),o=n(16198),s=({appName:e,appIcon:t})=>({id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",rdns:"com.coinbase.wallet",iconUrl:async()=>(await n.e(2424).then(n.bind(n,12424))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:!0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},...(0,r.gn)()?{}:{qrCode:{getUri:e=>e,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}},createConnector:n=>{let{...r}=s,a=(0,o.D)({appName:e,appLogoUrl:t,...r});return(0,i.K)(e=>({...a(e),...n}))}})},60929:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r=n(84480),i=n(45636),o=n(87649),s=({projectId:e,walletConnectParameters:t})=>{let s=(0,o.B)({flag:"isRainbow"}),a=!s,c=e=>(0,r.Dt)()?e:(0,r.gn)()?`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await n.e(9017).then(n.bind(n,9017))).default,iconBackground:"#0c2f78",installed:a?void 0:s,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:a?c:void 0},qrCode:a?{getUri:c,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:a?(0,i.d)({projectId:e,walletConnectParameters:t}):(0,o.K)({flag:"isRainbow"})}}},69025:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var r=n(84480),i=n(45636),o=n(87649),s=({projectId:e,walletConnectParameters:t})=>{let s=(0,o.B)({flag:"isBinance"}),a=!s;return{id:"binance",name:"Binance Wallet",rdns:"com.binance.wallet",iconUrl:async()=>
1524(await n.e(9979).then(n.bind(n,89979))).default,iconBackground:"#000000",installed:a?void 0:s,downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.binance.dev",ios:"https://apps.apple.com/us/app/id1436799971",mobile:"https://www.binance.com/en/download",qrCode:"https://www.binance.com/en/web3wallet"},mobile:a?{getUri:e=>(0,r.Dt)()?e:`bnc://app.binance.com/cedefi/wc?uri=${encodeURIComponent(e)}`}:void 0,qrCode:a?{getUri:e=>e,instructions:{learnMoreUrl:"https://www.binance.com/en/web3wallet",steps:[{description:"wallet_connectors.binance.qr_code.step1.description",step:"install",title:"wallet_connectors.binance.qr_code.step1.title"},{description:"wallet_connectors.binance.qr_code.step2.description",step:"create",title:"wallet_connectors.binance.qr_code.step2.title"},{description:"wallet_connectors.binance.qr_code.step3.description",step:"scan",title:"wallet_connectors.binance.qr_code.step3.title"}]}}:void 0,createConnector:a?(0,i.d)({projectId:e,walletConnectParameters:t}):(0,o.K)({flag:"isBinance"})}}},60537:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(84480),i=n(45636),o=n(25413),s=n(14746),a=({projectId:e,walletConnectParameters:t})=>{var a;let c="undefined"!=typeof window&&(a=window.ethereum,!!a?.isMetaMask&&(!a.isBraveWallet||!!a._events||!!a._state)&&!a.isApexWallet&&!a.isAvalanche&&!a.isBackpack&&!a.isBifrost&&!a.isBitKeep&&!a.isBitski&&!a.isBlockWallet&&!a.isCoinbaseWallet&&!a.isDawn&&!a.isEnkrypt&&!a.isExodus&&!a.isFrame&&!a.isFrontier&&!a.isGamestop&&!a.isHyperPay&&!a.isImToken&&!a.isKuCoinWallet&&!a.isMathWallet&&!a.isNestWallet&&!a.isOkxWallet&&!a.isOKExWallet&&!a.isOneInchIOSWallet&&!a.isOneInchAndroidWallet&&!a.isOpera&&!a.isPhantom&&!a.isPortal&&!a.isRabby&&!a.isRainbow&&!a.isStatus&&!a.isTalisman&&!a.isTally&&!a.isTokenPocket&&!a.isTokenary&&!a.isTrust&&!a.isTrustWallet&&!a.isXDEFI&&!a.isZeal&&!a.isZerion&&!a.__seif),u=!c&&!(0,r.tq)(),l=c||(0,r.tq)();return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await n.e(9277).then(n.bind(n,69277))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:c||void 0,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:l?e=>e:void 0},qrCode:u?{getUri:e=>`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`,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:u?(0,i.d)({projectId:e,walletConnectParameters:t}):e=>(0,o.K)(n=>{let r=(0,s.O)({dappMetadata:{connector:"rainbowkit",name:t?.metadata?.name,iconUrl:t?.metadata?.icons[0],url:t?.metadata?.url},headless:!0,checkInstallationImmediately:!1,enableAnalytics:!1})(n);return{...r,...e,getChainId:async()=>{try{return await r.getChainId()}catch{return n.chains[0]?.id??1}}}})}}},45636:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(25413),i=n(67797),o=new Map,s=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n,rkDetailsIsWalletConnectMod
1524alConnector:r})=>{let s={...t||{},projectId:e,showQrModal:!1};n&&(s={...s,showQrModal:!0}),"customStoragePrefix"in s||(s={...s,customStoragePrefix:r?"clientOne":"clientTwo"});let a=JSON.stringify(s),c=o.get(a);if(c)return c;let u=(0,i.a)(s);return o.set(a,u),u};function a({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,r.K)(r=>({...s({projectId:e,walletConnectParameters:n,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(r),...t}))})({projectId:e,walletDetails:n,walletConnectParameters:t})}},84480:function(e,t,n){"use strict";function r(){return"undefined"!=typeof navigator&&/android/i.test(navigator.userAgent)}function i(){return"undefined"!=typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!=typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function o(){return r()||i()}n.d(t,{Dt:function(){return r},gn:function(){return i},tq:function(){return o}})},70100:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(84480),i=n(45636),o=n(87649),s=({projectId:e,walletConnectParameters:t})=>{let s;let a=(0,r.tq)()?(0,o.B)({flag:"isTrust"}):(0,o.B)({flag:"isTrustWallet"}),c=!a;return c&&(s={getUri:e=>e,instructions:{learnMoreUrl:"https://trustwallet.com/",steps:[{description:"wallet_connectors.trust.qr_code.step1.description",step:"install",title:"wallet_connectors.trust.qr_code.step1.title"},{description:"wallet_connectors.trust.qr_code.step2.description",step:"create",title:"wallet_connectors.trust.qr_code.step2.title"},{description:"wallet_connectors.trust.qr_code.step3.description",step:"scan",title:"wallet_connectors.trust.qr_code.step3.title"}]}}),{id:"trust",name:"Trust Wallet",rdns:"com.trustwallet.app",iconUrl:async()=>(await n.e(8002).then(n.bind(n,48002))).default,installed:a||void 0,iconAccent:"#3375BB",iconBackground:"#fff",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",ios:"https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",mobile:"https://trustwallet.com/download",qrCode:"https://trustwallet.com/download",chrome:"https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",browserExtension:"https://trustwallet.com/browser-extension"},mobile:{getUri:c?e=>`trust://wc?uri=${encodeURIComponent(e)}`:void 0},qrCode:s,extension:{instructions:{learnMoreUrl:"https://trustwallet.com/browser-extension",steps:[{description:"wallet_connectors.trust.extension.step1.description",step:"install",title:"wallet_connectors.trust.extension.step1.title"},{description:"wallet_connectors.trust.extension.step2.description",step:"create",title:"wallet_connectors.trust.extension.step2.title"},{description:"wallet_connectors.trust.extension.step3.description",step:"refresh",title:"wallet_connectors.trust.extension.step3.title"}]}},createConnector:c?(0,i.d)({projectId:e,walletConnectParameters:t}):(0,r.tq)()?(0,o.K)({flag:"isTrust"}):(0,o.K)({flag:"isTrustWallet"})}}},79506:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var r=n(84480),i=n(45636),o=n(87649),s=({projectId:e,walletConnectParameters:t})=>{let s=!(0,o.B)({namespace:"okxwallet"});return{id:"okx",name:"OKX Wallet",rdns:"com.okex.wallet",iconUrl:async()=>(await n.e(1370).then(n.bind(n,71370))).default,iconAccent:"#000",iconBackground:"#000",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.okinc.okex.gp",ios:"https://itunes.apple.com/app/id1327268470?mt=8",mobile:"https://okx.com/download",qrCode:"https://okx.com/download",chrome:"https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",edge:"https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",firefox:"https://addons.mozilla.org/firefox/addon/okexwallet/",browserExtension:"https://okx.c
1524om/download"},mobile:{getUri:s?e=>(0,r.Dt)()?e:`okex://main/wc?uri=${encodeURIComponent(e)}`:void 0},qrCode:s?{getUri:e=>e,instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.qr_code.step1.description",step:"install",title:"wallet_connectors.okx.qr_code.step1.title"},{description:"wallet_connectors.okx.qr_code.step2.description",step:"create",title:"wallet_connectors.okx.qr_code.step2.title"},{description:"wallet_connectors.okx.qr_code.step3.description",step:"scan",title:"wallet_connectors.okx.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.extension.step1.description",step:"install",title:"wallet_connectors.okx.extension.step1.title"},{description:"wallet_connectors.okx.extension.step2.description",step:"create",title:"wallet_connectors.okx.extension.step2.title"},{description:"wallet_connectors.okx.extension.step3.description",step:"refresh",title:"wallet_connectors.okx.extension.step3.title"}]}},createConnector:s?(0,i.d)({projectId:e,walletConnectParameters:t}):(0,o.K)({namespace:"okxwallet"})}}},95141:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(45636),i=({projectId:e,options:t})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await n.e(3033).then(n.bind(n,93033))).default,iconBackground:"#3b99fc",qrCode:{getUri:e=>e},createConnector:(0,r.d)({projectId:e,walletConnectParameters:t})})},87649:function(e,t,n){"use strict";n.d(t,{B:function(){return a},K:function(){return c}});var r=n(25413),i=n(77433);function o(e){let t="undefined"!=typeof window?window: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 s(e){let t=(e,n)=>{let[r,...i]=n.split("."),o=e[r];if(o)return 0===i.length?o:t(o,i.join("."))};if("undefined"!=typeof window)return t(window,e)}function a({flag:e,namespace:t}){return!!t&&void 0!==s(t)||!!e&&void 0!==o(e)}function c({flag:e,namespace:t,target:n}){var a;return a=n||function({flag:e,namespace:t}){let n="undefined"!=typeof window?window:void 0;if(void 0===n)return;if(t){let e=s(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=a?{target:()=>({id:e.rkDetails.id,name:e.rkDetails.name,provider:a})}:{};return(0,r.K)(n=>({...(0,i.L)(t)(n),...e}))}}},79198:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(42996),i=n(40300),o=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},77470:function(e,t,n){"use strict";n.d(t,{R:function(){return a},m:function(){return s}});var r=n(17987),i=n(99024),o=n(11640),s=class extends i.F{#r;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#s({type:"continue"})};this.#o=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let n="pending"===this.state.status,r=!this.#o.canStart();try{if(n)t();else{this.#s({type:"pending",variables:e,isPaused:r}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#s({type:"pending",context:t,variables:e,isPaused:r})}let i=await this.#o.start();return await this.#i.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#i.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#s({type:"success",data:i}),i}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#s({type:"error",error:t})}}finally{this.#i.runNext(this)}}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1524case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.Vr.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},17987:function(e,t,n){"use strict";n.d(t,{Vr:function(){return i}});var r=n(93295).Hp,i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},o=r,s=r=>{t?e.push(r):o(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&o(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},20436:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(42996),i=n(40300),o=new class extends r.l{#a=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}}},33002:function(e,t,n){"use strict";n.d(t,{A:function(){return a},z:function(){return c}});var r=n(40300),i=n(17987),o=n(11640),s=n(99024),a=class extends s.F{#c;#u;#l;#d;#o;#f;#h;constructor(e){super(),this.#h=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#l=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=u(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=u(this.options);void 0!==e.data&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#c=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#c)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.KC)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.Kp)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#h?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#o?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)}
1524)},s=()=>{let e=(0,r.cG)(this.options,t),n=(()=>{let e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#h=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:s};return i(e),e})();this.options.behavior?.onFetch(a,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:"fetch",meta:a.fetchOptions?.meta}),this.#o=(0,o.Mz)({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof o.p8&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#o.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof o.p8){if(e.silent)return this.#o.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#s({type:"error",error:e}),this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...c(t.data,this.options),fetchMeta:e.meta??null};case"success":let n={...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?n:void 0,n;case"error":let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.Vr.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function u(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}},78908:function(e,t,n){"use strict";n.d(t,{S:function(){return b}});var r=n(40300),i=n(33002),o=n(17987),s=n(42996),a=class extends s.l{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){let o=t.queryKey,s=t.queryHash??(0,r.Rm)(o,t),a=this.get(s);return a||(a=new i.A({client:e,queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.Vr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.Vr.batch(()=>
1524{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.Vr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=n(77470),u=class extends s.l{constructor(e={}){super(),this.config=e,this.#b=new Set,this.#m=new Map,this.#y=0}#b;#m;#y;build(e,t,n){let r=new c.m({mutationCache:this,mutationId:++this.#y,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#b.add(e);let t=l(e);if("string"==typeof t){let n=this.#m.get(t);n?n.push(e):this.#m.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#b.delete(e)){let t=l(e);if("string"==typeof t){let n=this.#m.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#m.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=l(e);if("string"!=typeof t)return!0;{let n=this.#m.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=l(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#m.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.Vr.batch(()=>{this.#b.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#b.clear(),this.#m.clear()})}getAll(){return Array.from(this.#b)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>
1524e.state.isPaused);return o.Vr.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function l(e){return e.options.scope?.id}var d=n(79198),f=n(20436);function h(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},u=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.cG)(t.options,t.fetchOptions),f=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let s=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};return l(e),e})(),a=await d(s),{maxPages:c}=t.options,u=o?r.Ht:r.VX;return{pages:u(e.pages,a,c),pageParams:u(e.pageParams,i,c)}};if(o&&s.length){let e="backward"===o,t={pages:s,pageParams:a},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);c=await f(t,n,e)}else{let t=e??s.length;do{let e=0===u?a[0]??i.initialPageParam:p(i,c);if(u>0&&null==e)break;c=await f(c,e),u++}while(u<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var b=class{#w;#i;#f;#g;#v;#A;#x;#C;constructor(e={}){this.#w=e.queryCache||new a,this.#i=e.mutationCache||new u,this.#f=e.defaultOptions||{},this.#g=new Map,this.#v=new Map,this.#A=0}mount(){this.#A++,1===this.#A&&(this.#x=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#w.onFocus())}),this.#C=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#w.onOnline())}))}unmount(){this.#A--,0===this.#A&&(this.#x?.(),this.#x=void 0,this.#C?.(),this.#C=void 0)}isFetching(e){return this.#w.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#w.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#w.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.KC)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#w.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#w.get(i.queryHash),s=o?.state.data,a=(0,r.SE)(t,s);if(void 0!==a)return this.#w.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return o.Vr.batch(()=>this.#w.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#w.get(t.queryHash)?.state}removeQueries(e){let t=this.#w;o.Vr.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#w;return o.Vr.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.Vr.batch(()=>this.#w.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t={}){return o.Vr.batch(()=>(this.#w.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.Vr.batch(()=>this.#w.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#w.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}
1524fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#w}getMutationCache(){return this.#i}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#g.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#g.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#v.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#v.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#w.clear(),this.#i.clear()}}},99024:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(93295),i=n(40300),o=class{#E;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.gcTime)&&(this.#E=r.mr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.sk?1/0:3e5))}clearGcTimeout(){this.#E&&(r.mr.clearTimeout(this.#E),this.#E=void 0)}}},11640:function(e,t,n){"use strict";n.d(t,{Kw:function(){return c},Mz:function(){return l},p8:function(){return u}});var r=n(79198),i=n(20436),o=n(68684),s=n(40300);function a(e){return Math.min(1e3*2**e,3e4)}function c(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){let t,n=!1,l=0,d=(0,o.O)(),f=()=>"pending"!==d.status,h=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),p=()=>c(e.networkMode)&&e.canRun(),b=e=>{f()||(t?.(),d.resolve(e))},m=e=>{f()||(t?.(),d.reject(e))},y=()=>new Promise(n=>{t=e=>{(f()||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,f()||e.onContinue?.()}),w=()=>{let t;if(f())return;let r=0===l?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(b).catch(t=>{if(f())return;let r=e.retry??(s.sk?0:3),i=e.retryDelay??a,o="function"==typeof i?i(l,t):i,c=!0===r||"number"==typeof r&&l<r||"function"==typeof r&&r(l,t);if(n||!c){m(t);return}l++,e.onFail?.(l,t),(0,s._v)(o).then(()=>h()?void 0:y()).then(()=>{n?m(t):w()})})};return{promise:d,status:()=>d.status,cancel:t=>{if(!f()){let n=new u(t);m(n),e.onCancel?.(n)}},continue:()=>(t?.(),d),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?w():y().then(w),d)}}},42996:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},68684:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{O:function(){return r}})},93295:function(e,t,n){"use strict";n.d(t,{Hp:function(){return o},mr:function(){return i}});var r={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#k=r;#I=!1;setTimeoutProvider(e){this.#k=e}setTimeout(e,t){return this.#k.setTimeout(e,t)}clearTimeout(e){this.#k.clearTimeout(e)}setInterval(e,t){return this.#k.setInterval(e,t)}clearInterval(e){this.#k.clearInterval(e)}};function o(e){setTimeout(e,0)}},40300:function(e,t,n){"use strict";n.d(t,{CN:function(){return k},Ht:function(){return E},KC:function(){return u},Kp:function(){return c},L3:function(){return P},Nc:function(){return l},PN:function(){return a},Rm:function(){return h},SE:function(){return s},VS:function(){return y},VX:function(){return C},X7:function(){return f},Ym:function(){return p},ZT:function(){return o},_v:function(){return A},_x:function(){return d},cG:function(){return I},oE:function(){return x},sk:function(){return i},to:function(){return b}});var r=n(93295),i="undefined"==typeof window||"Deno"in globalThis;function o(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function d(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!b(t.queryKey,s))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function f(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(p(t.options.mutationKey)!==p(o))return!1}else if(!b(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>g(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function b(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>b(e[n],t[n]))}var m=Object.prototype.hasOwnProperty;function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){if(!v(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(v(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function A(e){return new Promise(t=>{r.mr.setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=w(t)&&w(n);if(!r&&!(g(t)&&g(n)))return n;let i=(r?t:Object.keys(t)).length,o=r?n:Object.keys(n),s=o.length,a=r?Array(s):{},c=0;for(let u=0;u<s;u++){let s=r?u:o[u],l=t[s],d=n[s];if(l===d){a[s]=l,(r?u<i:m.call(t,s))&&c++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){a[s]=d;continue}let f=e(l,d);a[s]=f,f===l&&c++}return i===s&&c===i?t:a}(e,t):t}function C(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function E(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var k=Symbol();function I(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==k?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function P(e,t){return"function"==typeof e?e(...t):!!e}},38038:function(e,t,n){"use strict";n.d(t,{NL:function(){return s},aH:function(){return a}});var r=n(2265),i=n(57437),o=r.createContext(void 0),s=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(o.Provider,{value:e,children:t}))},23588:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=n(2265),i=n(77470),o=n(17987),s=n(42996),a=n(40300),c=class extends s.l{#d;#P=void 0;#B;#O;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#S()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#d.defaultMutationOptions(e),(0,a.VS)(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#B,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(t.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#B?.state.status==="pending"&&this.#B.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#B?.removeObserver(this)}onMutationUpdate(e){this.#S(),this.#M(e)}getCurrentResult(){return this.#P}reset(){this.#B?.removeObserver(this),this.#B=void 0,this.#S(),this.#M()}mutate(e,t){return this.#O=t,this.#B?.removeObserver(this),this.#B=this.#d.getMutationCache().build(this.#d,this.options),this.#B.addObserver(this),this.#B.execute(e)}#S(){let e=this.#B?.state??(0,i.R)();this.#P={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#M(e){o.Vr.batch(()=>
1524{if(this.#O&&this.hasListeners()){let t=this.#P.variables,n=this.#P.context;e?.type==="success"?(this.#O.onSuccess?.(e.data,t,n),this.#O.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#O.onError?.(e.error,t,n),this.#O.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#P)})})}},u=n(38038);function l(e,t){let n=(0,u.NL)(t),[i]=r.useState(()=>new c(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let s=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.Vr.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=r.useCallback((e,t)=>{i.mutate(e,t).catch(a.ZT)},[i]);if(s.error&&(0,a.L3)(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}},39891:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return O}});var i=n(79198),o=n(17987),s=n(33002),a=n(42996),c=n(68684),u=n(40300),l=n(93295),d=class extends a.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#R=null,this.#T=(0,c.O)(),this.bindMethods(),this.setOptions(t)}#d;#N=void 0;#F=void 0;#P=void 0;#U;#D;#T;#R;#q;#G;#L;#j;#z;#Q;#W=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#N.addObserver(this),f(this.#N,this.options)?this.#$():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#N,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#N,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#K(),this.#N.removeObserver(this)}setOptions(e){let t=this.options,n=this.#N;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Nc)(this.options.enabled,this.#N))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#V(),this.#N.setOptions(this.options),t._defaulted&&!(0,u.VS)(this.options,t)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#N,observer:this});let r=this.hasListeners();r&&p(this.#N,n,this.options,t)&&this.#$(),this.updateResult(),r&&(this.#N!==n||(0,u.Nc)(this.options.enabled,this.#N)!==(0,u.Nc)(t.enabled,this.#N)||(0,u.KC)(this.options.staleTime,this.#N)!==(0,u.KC)(t.staleTime,this.#N))&&this.#Z();let i=this.#J();r&&(this.#N!==n||(0,u.Nc)(this.options.enabled,this.#N)!==(0,u.Nc)(t.enabled,this.#N)||i!==this.#Q)&&this.#Y(i)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,u.VS)(this.getCurrentResult(),n)||(this.#P=n,this.#D=this.options,this.#U=this.#N.state),n}getCurrentResult(){return this.#P}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"!==n||this.options.experimental_prefetchInRender||"pending"!==this.#T.status||this.#T.reject(Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(e,n))})}trackProp(e){this.#W.add(e)}getCurrentQuery(){return this.#N}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#$({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#P))}#$(e){this.#V();let t=this.#N.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.ZT)),t}#Z(){this.#H();let e=(0,u.KC)(this.options.staleTime,this.#N);if(u.sk||this.#P.isStale||!(0,u.PN)(e))return;let t=(0,u.Kp)(this.#P.dataUpdatedAt,e);this.#j=l.mr.setTimeout(()=>{this.#P.isStale||this.updateResult()},t+1)}#J(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#N):this.options.refetchInterval)??!1}
1524#Y(e){this.#K(),this.#Q=e,!u.sk&&!1!==(0,u.Nc)(this.options.enabled,this.#N)&&(0,u.PN)(this.#Q)&&0!==this.#Q&&(this.#z=l.mr.setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#$()},this.#Q))}#_(){this.#Z(),this.#Y(this.#J())}#H(){this.#j&&(l.mr.clearTimeout(this.#j),this.#j=void 0)}#K(){this.#z&&(l.mr.clearInterval(this.#z),this.#z=void 0)}createResult(e,t){let n;let r=this.#N,i=this.options,o=this.#P,a=this.#U,l=this.#D,d=e!==r?e.state:this.#F,{state:h}=e,m={...h},y=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&f(e,t),a=n&&p(e,r,t,i);(o||a)&&(m={...m,...(0,s.z)(h.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:w,errorUpdatedAt:g,status:v}=m;n=m.data;let A=!1;if(void 0!==t.placeholderData&&void 0===n&&"pending"===v){let e;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=o.data,A=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#L?.state.data,this.#L):t.placeholderData,void 0!==e&&(v="success",n=(0,u.oE)(o?.data,e,t),y=!0)}if(t.select&&void 0!==n&&!A){if(o&&n===a?.data&&t.select===this.#q)n=this.#G;else try{this.#q=t.select,n=t.select(n),n=(0,u.oE)(o?.data,n,t),this.#G=n,this.#R=null}catch(e){this.#R=e}}this.#R&&(w=this.#R,n=this.#G,g=Date.now(),v="error");let x="fetching"===m.fetchStatus,C="pending"===v,E="error"===v,k=C&&x,I=void 0!==n,P={status:v,fetchStatus:m.fetchStatus,isPending:C,isSuccess:"success"===v,isError:E,isInitialLoading:k,isLoading:k,data:n,dataUpdatedAt:m.dataUpdatedAt,error:w,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:E&&!I,isPaused:"paused"===m.fetchStatus,isPlaceholderData:y,isRefetchError:E&&I,isStale:b(e,t),refetch:this.refetch,promise:this.#T,isEnabled:!1!==(0,u.Nc)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===P.status?e.reject(P.error):void 0!==P.data&&e.resolve(P.data)},n=()=>{t(this.#T=P.promise=(0,c.O)())},i=this.#T;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===P.status||P.data!==i.value)&&n();break;case"rejected":("error"!==P.status||P.error!==i.reason)&&n()}}return P}updateResult(){let e=this.#P,t=this.createResult(this.#N,this.options);this.#U=this.#N.state,this.#D=this.options,void 0!==this.#U.data&&(this.#L=this.#N),(0,u.VS)(t,e)||(this.#P=t,this.#M({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#W.size)return!0;let r=new Set(n??this.#W);return this.options.throwOnError&&r.add("error"),Object.keys(this.#P).some(t=>this.#P[t]!==e[t]&&r.has(t))})()}))}#V(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#N)return;let t=this.#N;this.#N=e,this.#F=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#M(e){o.Vr.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#P)}),this.#d.getQueryCache().notify({query:this.#N,type:"observerResultsUpdated"})})}};function f(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,n){if(!1!==(0,u.Nc)(t.enabled,e)&&"static"!==(0,u.KC)(t.staleTime,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&b(e,t)}return!1}function p(e,t,n,r){return(e!==t||!1===(0,u.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&b(e,n)}function b(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&e.isStaleByTime((0,u.KC)(t.staleTime,e))}var m=n(2265),y=n(38038);n(57437);var w=m.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),g=()=>m.useContext(w),v=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},A=e=>{m.useEffect(()=>{e.clearReset()},[e])},x=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&void 0===e.data||(0,u.L3)(n,[e.error,r])),C=m.createContext(!1),E=()=>m.useContext(C);C.Provider;var k=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},I=(e,t)=>e.isLoading&&e.isFetching&&!t,P=(e,t)=>e?.suspense&&t.isPending,B=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function O(e,t){return function(e,t,n){let r=E(),i=g(),s=(0,y.NL)(n),a=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",k(a),v(a,i),A(i);let c=!s.getQueryCache().get(a.queryHash),[l]=m.useState(()=>new t(s,a)),d=l.getOptimisticResult(a),f=!r&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=f?l.subscribe(o.Vr.batchCalls(e)):u.ZT;return l.updateResult(),t},[l,f]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(a)},[a,l]),P(a,d))throw B(a,l,i);if(x({result:d,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw d.error;if(s.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!u.sk&&I(d,r)){let e=c?B(a,l,i):s.getQueryCache().get(a.queryHash)?.promise;e?.catch(u.ZT).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?d:l.trackResult(d)}(e,d,t)}},16198:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(25413),i=n(76026),o=n(39803),s=n(48519),a=n(21693);function c(e={}){let t,u,l,d,f,h,p,b,m;return"3"===e.version||e.headlessMode?(0,r.K)(r=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:c.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),n=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,o.K)(e));l||(l=this.onAccountsChanged.bind(this),t.on("accountsChanged",l)),d||(d=this.onChainChanged.bind(this),t.on("chainChanged",d)),f||(f=this.onDisconnect.bind(this),t.on("disconnect",f));let r=await this.getChainId();if(e&&r!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===s.ab.code)throw e;return{id:r}});r=t?.id??r}return{accounts:n,chainId:r}}catch(e){if(/(user closed modal|accounts received is empty|user denied account)/i.test(e.message))throw new s.ab(e);throw e}},async disconnect(){let e=await this.getProvider();l&&(e.removeListener("accountsChanged",l),l=void 0),d&&(e.removeListener("chainChanged",d),d=void 0),f&&(e.removeListener("disconnect",f),f=void 0),e.disconnect(),e.close()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,o.K)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
1524,async getProvider(){if(!u){t=new(await (async()=>{let{default:e}=await Promise.all([n.e(7133),n.e(1493),n.e(2753)]).then(n.t.bind(n,51493,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({...e,reloadOnDisconnect:!1});let i=t.walletExtension?.getChainId(),o=r.chains.find(t=>e.chainId?t.id===e.chainId:t.id===i)||r.chains[0],s=e.chainId||o?.id,a=e.jsonRpcUrl||o?.rpcUrls.default.http[0];u=t.makeWeb3Provider(a,s)}return u},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=r.chains.find(e=>e.id===t);if(!n)throw new s.x3(new i.X4);let o=await this.getProvider();try{return await o.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(n.id)}]}),n}catch(r){if(4902===r.code)try{let r,i;r=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let s={blockExplorerUrls:r,chainId:(0,a.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:i};return await o.request({method:"wallet_addEthereumChain",params:[s]}),n}catch(e){throw new s.ab(e)}throw new s.x3(r)}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(e=>(0,o.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onDisconnect(e){r.emitter.emit("disconnect");let t=await this.getProvider();l&&(t.removeListener("accountsChanged",l),l=void 0),d&&(t.removeListener("chainChanged",d),d=void 0),f&&(t.removeListener("disconnect",f),f=void 0)}})):(0,r.K)(t=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:c.type,async connect({chainId:e,...t}={}){try{let n=await this.getProvider(),r=(await n.request({method:"eth_requestAccounts",params:"instantOnboarding"in t&&t.instantOnboarding?[{onboarding:"instant"}]:[]})).map(e=>(0,o.K)(e));p||(p=this.onAccountsChanged.bind(this),n.on("accountsChanged",p)),b||(b=this.onChainChanged.bind(this),n.on("chainChanged",b)),m||(m=this.onDisconnect.bind(this),n.on("disconnect",m));let i=await this.getChainId();if(e&&i!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===s.ab.code)throw e;return{id:i}});i=t?.id??i}return{accounts:r,chainId:i}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new s.ab(e);throw e}},async disconnect(){let e=await this.getProvider();p&&(e.removeListener("accountsChanged",p),p=void 0),b&&(e.removeListener("chainChanged",b),b=void 0),m&&(e.removeListener("disconnect",m),m=void 0),e.disconnect(),e.close?.()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,o.K)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
1524,async getProvider(){if(!h){let r="string"==typeof e.preference?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createCoinbaseWalletSDK:i}=await Promise.all([n.e(7133),n.e(1942)]).then(n.bind(n,71942));h=i({...e,appChainIds:t.chains.map(e=>e.id),preference:r}).getProvider()}return h},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:n}){let r=t.chains.find(e=>e.id===n);if(!r)throw new s.x3(new i.X4);let o=await this.getProvider();try{return await o.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(r.id)}]}),r}catch(t){if(4902===t.code)try{let t,i;t=e?.blockExplorerUrls?e.blockExplorerUrls:r.blockExplorers?.default.url?[r.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let s={blockExplorerUrls:t,chainId:(0,a.eC)(n),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:i};return await o.request({method:"wallet_addEthereumChain",params:[s]}),r}catch(e){throw new s.ab(e)}throw new s.x3(t)}},onAccountsChanged(e){0===e.length?this.onDisconnect():t.emitter.emit("change",{accounts:e.map(e=>(0,o.K)(e))})},onChainChanged(e){let n=Number(e);t.emitter.emit("change",{chainId:n})},async onDisconnect(e){t.emitter.emit("disconnect");let n=await this.getProvider();p&&(n.removeListener("accountsChanged",p),p=void 0),b&&(n.removeListener("chainChanged",b),b=void 0),m&&(n.removeListener("disconnect",m),m=void 0)}}))}c.type="coinbaseWallet"},14746:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(25413),i=n(30316),o=n(29358),s=n(76026),a=n(39803),c=n(48519),u=n(21693),l=n(36063),d=n(33679),f=n(30838);function h(e={}){let t,p,b,m,y,w,g,v;return(0,r.K)(r=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:h.type,async setup(){let e=await this.getProvider();e?.on&&(w||(w=this.onConnect.bind(this),e.on("connect",w)),m||(m=this.onAccountsChanged.bind(this),e.on("accountsChanged",m)))},async connect({chainId:n,isReconnecting:r}={}){let i=await this.getProvider();g||(g=this.onDisplayUri,i.on("display_uri",g));let o=[];r&&(o=await this.getAccounts().catch(()=>[]));try{let r,s;o?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?r=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(s=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),o=await this.getAccounts()):o=(await t.connect()).map(e=>(0,a.K)(e)));let u=await this.getChainId();if(n&&u!==n){let e=await this.switchChain({chainId:n}).catch(e=>{if(e.code===c.ab.code)throw e;return{id:u}});u=e?.id??u}return g&&(i.removeListener("display_uri",g),g=void 0),r?i.emit("connectAndSign",{accounts:o,chainId:u,signResponse:r}):s&&i.emit("connectWith",{accounts:o,chainId:u,connectWithResponse:s}),w&&(i.removeListener("connect",w),w=void 0),m||(m=this.onAccountsChanged.bind(this),i.on("accountsChanged",m)),y||(y=this.onChainChanged.bind(this),i.on("chainChanged",y)),v||(v=this.onDisconnect.bind(this),i.on("disconnect",v)),{accounts:o,chainId:u}}catch(e){if(e.code===c.ab.code)throw new c.ab(e);if(e.code===c.pT.code)throw new c.pT(e);throw e}},async disconnect(){let e=await this.getProvider();y&&(e.removeListener("chainChanged",y),y=void 0),v&&(e.removeListener("disconnect",v),v=void 0),w||(w=this.onConnect.bind(this),e.on("connect",w)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,a.K)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function s(){let s=await (async()=>{let{default:e}=await Promise.all([n.e(9496),n.e(3082)]).then(n.bind(n,81029));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})(),a={};for(let e of r.chains)a[(0,u.eC)(e.id)]=i.N({chain:e,transports:r.transports})?.[0];t=new s({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:a,dappMetadata:{...e.dappMetadata,name:e.dappMetadata?.name?e.dappMetadata?.name:"wagmi",url:e.dappMetadata?.url?e.dappMetadata?.url:"undefined"!=typeof window?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});let c=await t.init(),l=c?.activeProvider?c.activeProvider:t.getProvider();if(!l)throw new o.M;return l}return p||(b||(b=s()),p=await b),p},async isAuthorized(){try{return!!(await (0,l.J)(()=>(0,d.F)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider(),i=r.chains.find(e=>e.id===t);if(!i)throw new c.x3(new s.X4);try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]}),await o(),await a(t),i}catch(r){if(r.code===c.ab.code)throw new c.ab(r);if(4902===r.code||r?.data?.originalError?.code===4902)try{return await n.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{let{default:t,...n}=i.blockExplorers??{};return e?.blockExplorerUrls?e.blockExplorerUrls:t?[t.url,...Object.values(n).map(e=>e.url)]:void 0})(),chainId:(0,u.eC)(t),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""]}]}),await o(),await a(t),i}catch(e){if(e.code===c.ab.code)throw new c.ab(e);throw new c.x3(e)}throw new c.x3(r)}async function o(){await (0,l.J)(async()=>{let e=(0,f.ly)(await n.request({method:"eth_chainId"}));if(e!==t)throw Error("User rejected switch after adding network.");return e},{delay:50,retryCount:20})}async function a(e){await new Promise(t=>{let n=i=>{"chainId"in i&&i.chainId===e&&(r.emitter.off("change",n),t())};r.emitter.on("change",n),r.emitter.emit("change",{chainId:e})})}},async onAccountsChanged(e){if(0===e.length)t.isExtensionActive()&&this.onDisconnect();else if(r.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else r.emitter.emit("change",{accounts:e.map(e=>(0,a.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);r.emitter.emit("connect",{accounts:t,chainId:n});let i=await this.getProvider();w&&(i.removeListener("connect",w),w=void 0),m||(m=this.onAccountsChanged.bind(this),i.on("accountsChanged",m)),y||(y=this.onChainChanged.bind(this),i.on("chainChanged",y)),v||(v=this.onDisconnect.bind(this),i.on("disconnect",v))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(r.emitter.emit("disconnect"),y&&(t.removeListener("chainChanged",y),y=void 0),v&&(t.removeListener("disconnect",v),v=void 0),w||(w=this.onConnect.bind(this),t.on("connect",w)))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})}}))}h.type="metaMask"},77702:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(25413),i=n(29358),o=n(39803),s=n(33679);function a(e={}){let t,c;let{shimDisconnect:u=!1}=e;return(0,r.K)(r=>({id:"safe",name:"Safe",type:a.type,async connect(){let e=await this.getProvider();if(!e)throw new i.M;let t=await this.getAccounts(),n=await this.getChainId();return c||(c=this.onDisconnect.bind(this),e.on("disconnect",c)),u&&await r.storage?.removeItem("safe.disconnected"),{accounts:t,chainId:n}},async disconnect(){let e=await this.getProvider();if(!e)throw new i.M;c&&(e.removeListener("disconnect",c),c=void 0),u&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new i.M;return(await e.request({method:"eth_accounts"})).map(o.K)}
1524,async getProvider(){if("undefined"!=typeof window&&window?.parent!==window){if(!t){let{default:r}=await Promise.all([n.e(9323),n.e(6827)]).then(n.bind(n,56827)),i=new r(e),o=await (0,s.F)(()=>i.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(9323),n.e(3531)]).then(n.t.bind(n,63531,19));return"function"!=typeof e.SafeAppProvider&&"function"==typeof e.default.SafeAppProvider?e.default.SafeAppProvider:e.SafeAppProvider})())(o,i)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new i.M;return Number(e.chainId)},async isAuthorized(){try{if(u&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}a.type="safe"},67797:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(25413),i=n(29358),o=n(30316),s=n(76026),a=n(39803),c=n(48519),u=n(21693);function l(e){let t,d,f,h,p,b,m,y;let w=e.isNewChainsStale??!0;return(0,r.K)(r=>({id:"walletConnect",name:"WalletConnect",type:l.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 i.M;b||(b=this.onDisplayUri,n.on("display_uri",b));let o=e;if(!o){let e=await r.storage?.getItem("state")??{};o=r.chains.some(t=>t.id===e.chainId)?e.chainId:r.chains[0]?.id}if(!o)throw Error("No chains found on connector.");let s=await this.isChainsStale();if(n.session&&s&&await n.disconnect(),!n.session||s){let e=r.chains.filter(e=>e.id!==o).map(e=>e.id);await n.connect({optionalChains:[o,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(r.chains.map(e=>e.id))}let u=(await n.enable()).map(e=>(0,a.K)(e)),l=await this.getChainId();if(e&&l!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===c.ab.code&&e.cause?.message!=="Missing or invalid. request() method: wallet_addEthereumChain")throw e;return{id:l}});l=t?.id??l}return b&&(n.removeListener("display_uri",b),b=void 0),p&&(n.removeListener("connect",p),p=void 0),f||(f=this.onAccountsChanged.bind(this),n.on("accountsChanged",f)),h||(h=this.onChainChanged.bind(this),n.on("chainChanged",h)),y||(y=this.onDisconnect.bind(this),n.on("disconnect",y)),m||(m=this.onSessionDelete.bind(this),n.on("session_delete",m)),{accounts:u,chainId:l}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new c.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{h&&(e?.removeListener("chainChanged",h),h=void 0),y&&(e?.removeListener("disconnect",y),y=void 0),p||(p=this.onConnect.bind(this),e?.on("connect",p)),f&&(e?.removeListener("accountsChanged",f),f=void 0),m&&(e?.removeListener("session_delete",m),m=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,a.K)(e))},async getProvider(){async function i(){let t=r.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:i}=await Promise.all([n.e(7133),n.e(653)]).then(n.bind(n,80653));return await i.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(r.chains.map(e=>{let[t]=(0,o.N)({chain:e,transports:r.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(d||(d=i()),t=await d,t?.events.setMaxListeners(Number.POSITIVE_INFINITY)),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 i.M;let o=r.chains.find(e=>e.id===t);if(!o)throw new c.x3(new s.X4);try{await Promise.all([new Promise(e=>{let n=({chainId:i})=>{i===t&&(r.emitter.off("change",n),e())};r.emitter.on("change",n)}),n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),o}catch(r){if(/(user rejected)/i.test(r.message))throw new c.ab(r);try{let r,i;r=e?.blockExplorerUrls?e.blockExplorerUrls:o.blockExplorers?.default.url?[o.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[...o.rpcUrls.default.http];let s={blockExplorerUrls:r,chainId:(0,u.eC)(t),chainName:e?.chainName??o.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??o.nativeCurrency,rpcUrls:i};await n.request({method:"wallet_addEthereumChain",params:[s]});let a=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...a,t]),o}catch(e){throw new c.ab(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(e=>(0,a.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),n=await this.getAccounts();r.emitter.emit("connect",{accounts:n,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),r.emitter.emit("disconnect");let t=await this.getProvider();f&&(t.removeListener("accountsChanged",f),f=void 0),h&&(t.removeListener("chainChanged",h),h=void 0),y&&(t.removeListener("disconnect",y),y=void 0),m&&(t.removeListener("session_delete",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))},onDisplayUri(e){r.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 r.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!w)return!1;let e=r.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 r.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}l.type="walletConnect"},23437:function(e,t,n){"use strict";function r(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,i=r?.[0],o=e.chains.find(e=>e.id===n?.chainId),s=e.state.status;switch(s){case"connected":return{address:i,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:s};
1524case"reconnecting":return{address:i,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:s};case"connecting":return{address:i,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:s};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:s}}}n.d(t,{D:function(){return r}})},10815:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r=n(48369),i=n(23437);function o(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,i.D)(e),n,{equalityFn(e,t){let{connector:n,...i}=e,{connector:o,...s}=t;return(0,r.v)(i,s)&&n?.id===o?.id&&n?.uid===o?.uid}})}},25413:function(e,t,n){"use strict";function r(e){return e}n.d(t,{K:function(){return r}})},77433:function(e,t,n){"use strict";n.d(t,{L:function(){return d}});var r=n(39803),i=n(48519),o=n(33679),s=n(36063),a=n(21693),c=n(76026),u=n(29358),l=n(25413);function d(e={}){let t,n,p,b;let{shimDisconnect:m=!0,unstable_shimAsyncInject:y}=e;function w(){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,l.K)(l=>({get icon(){return w().icon},get id(){return w().id},get name(){return w().name},get supportsSimulation(){return!0},type:d.type,async setup(){let n=await this.getProvider();n?.on&&e.target&&(p||(p=this.onConnect.bind(this),n.on("connect",p)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:o,isReconnecting:s}={}){let a=await this.getProvider();if(!a)throw new u.M;let c=[];if(s)c=await this.getAccounts().catch(()=>[]);else if(m)try{let e=await a.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(c=e[0]?.caveats?.[0]?.value?.map(e=>r.K(e))).length>0&&(c=await this.getAccounts())}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw e}try{c?.length||s||(c=(await a.request({method:"eth_requestAccounts"})).map(e=>(0,r.K)(e))),p&&(a.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),a.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),a.on("chainChanged",n)),b||(b=this.onDisconnect.bind(this),a.on("disconnect",b));let u=await this.getChainId();if(o&&u!==o){let e=await this.switchChain({chainId:o}).catch(e=>{if(e.code===i.ab.code)throw e;return{id:u}});u=e?.id??u}return m&&await l.storage?.removeItem(`${this.id}.disconnected`),e.target||await l.storage?.setItem("injected.connected",!0),{accounts:c,chainId:u}}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw new i.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new u.M;n&&(t.removeListener("chainChanged",n),n=void 0),b&&(t.removeListener("disconnect",b),b=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p));try{await (0,o.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}m&&await l.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await l.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new u.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 u.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=w();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?h(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(m&&await l.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await l.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 u.M}return!!(await (0,s.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new u.M;let r=l.chains.find(e=>e.id===t);if(!r)throw new i.x3(new c.X4);let o=new Promise(e=>{let n=r=>{"chainId"in r&&r.chainId===t&&(l.emitter.off("change",n),e())};l.emitter.on("change",n)});try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&l.emitter.emit("change",{chainId:t})}),o]),r}
1524catch(s){if(4902===s.code||s?.data?.originalError?.code===4902)try{let s,c;let{default:u,...d}=r.blockExplorers??{};e?.blockExplorerUrls?s=e.blockExplorerUrls:u&&(s=[u.url,...Object.values(d).map(e=>e.url)]),c=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let f={blockExplorerUrls:s,chainId:(0,a.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:c};return await Promise.all([n.request({method:"wallet_addEthereumChain",params:[f]}).then(async()=>{if(await this.getChainId()===t)l.emitter.emit("change",{chainId:t});else throw new i.ab(Error("User rejected switch after adding network."))}),o]),r}catch(e){throw new i.ab(e)}if(s.code===i.ab.code)throw new i.ab(s);throw new i.x3(s)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(l.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),m&&await l.storage?.removeItem(`${this.id}.disconnected`)}else l.emitter.emit("change",{accounts:e.map(e=>(0,r.K)(e))})},onChainChanged(e){let t=Number(e);l.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let i=Number(e.chainId);l.emitter.emit("connect",{accounts:r,chainId:i});let o=await this.getProvider();o&&(p&&(o.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),o.on("chainChanged",n)),b||(b=this.onDisconnect.bind(this),o.on("disconnect",b)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),b&&(t.removeListener("disconnect",b),b=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))))}}))}d.type="injected";let f={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:h(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>h(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:h(e,"isPhantom")}};function h(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}},66206:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return A}});var i=n(45583);let o=e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());o=n=>{let r=e(n);if(!i(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(o)},e(t,n,r)},s=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>s(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>s(t)(e)}}},a=(e,t)=>(n,r,i)=>{let o,a={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,l=new Set,d=a.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let f=()=>{let e=a.partialize({...r()});return d.setItem(a.name,{state:e,version:a.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let p=e((...e)=>{n(...e),f()},r,i);i.getInitialState=()=>p;let b=()=>{var e,t;if(!d)return;
1524c=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:p)});let i=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=r())?e:p))||void 0;return s(d.getItem.bind(d))(a.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return[!1,e.state];if(a.migrate)return[!0,a.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[i,s]=e;if(n(o=a.merge(s,null!=(t=r())?t:p),!0),i)return f()}).then(()=>{null==i||i(o,void 0),o=r(),c=!0,l.forEach(e=>e(o))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>b(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||b(),o||p},c=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,i,o);return o},u=e=>e?c(e):c;var l=n(77433),d=n(7117);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})}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 h(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 p(e,t){return e.slice(0,t).join(".")||"."}function b(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function m(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,i=[],o=[];return function(s,a){if("object"==typeof a){if(i.length){let e=b(i,this);0===e?i[i.length]=this:(i.splice(e),o.splice(e)),o[o.length]=s;let n=b(i,a);if(0!==n)return r?t.call(this,s,a,p(o,n)):`[ref=${p(o,n)}]`}else i[0]=a,o[0]=s}return n?e.call(this,s,a):a}}((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 w=n(76026);let g=256;var v=n(81784);function A(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:s=function(e){let{deserialize:t=h,key:n="wagmi",serialize:r=m,storage:i=y}=e;function o(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...i,key:n,async getItem(e,r){let s=i.getItem(`${n}.${e}`),a=await o(s);return a?t(a)??null:r??null},async setItem(e,t){let s=`${n}.${e}`;null===t?await o(i.removeItem(s)):await o(i.setItem(s,r(t)))},async removeItem(e){await o(i.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:c=!0,ssr:d=!1,...p}=e,b="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,A=u(()=>p.chains),x=u(()=>{let e=[],t=new Set;for(let n of p.connectors??[]){let r=C(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&&b)for(let n of b.getProviders())t.has(n.info.rdns)||e.push(C(E(n)));return e});function C(e){let t=new f(function(e=11){if(!r||g+e>512){r="",g=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(g,g+++e)}()),n={...e({emitter:t,chains:A.getState(),storage:s,transports:p.transports}),emitter:t,uid:t.uid};return t.on("connect",M),n.setup?.(),n}function E(e){let{info:t}=e,n=e.provider;return(0,l.L)({target:{...t,id:t.rdns,provider:n}})}let k=new Map;function I(){return{chainId:A.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let P="0.0.0-canary-";t=v.i.startsWith(P)?Number.parseInt(v.i.replace(P,"")):Number.parseInt(v.i.split(".")[0]??"0");let B=u(o(s?a(I,{migrate(e,n){if(n===t)return e;let r=I(),i=O(e,r.chainId);return{...r,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:i,uid:o}=t.connector;return[e,{...t,connector:{id:n,name:r,type:i,uid:o}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=O(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:d,storage:s,version:t}):I));function O(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&A.getState().some(t=>t.id===e.chainId)?e.chainId:t}function S(e){B.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 M(e){"connecting"!==B.getState().status&&"reconnecting"!==B.getState().status&&B.setState(t=>{let n=x.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",S),n.emitter.listenerCount("change")||n.emitter.on("change",S),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",R),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function R(e){B.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",S),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",R),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",M)}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 B.setState(I()),c&&B.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(A.getState().some(t=>t.id===e))return B.setState(t=>({...t,chainId:e??t.chainId}))}),b?.subscribe(e=>{let t=new Set,n=new Set;for(let e of x.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 i of e){if(n.has(i.info.rdns))continue;let e=C(E(i));t.has(e.id)||r.push(e)}(!s||B.persist.hasHydrated())&&x.setState(e=>[...e,...r],!0)}),{get chains(){return A.getState()}
1524,get connectors(){return x.getState()},storage:s,getClient:function(e={}){let t;let n=e.chainId??B.getState().chainId,r=A.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new w.X4;{let e=k.get(B.getState().chainId);if(e&&!r)return e;if(!r)throw new w.X4}{let e=k.get(n);if(e)return e}if(p.client)t=p.client({chain:r});else{let e=r.id,n=A.getState().map(e=>e.id),o={};for(let[t,r]of Object.entries(p))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,i.e)({...o,chain:r,batch:o.batch??{multicall:!0},transport:t=>p.transports[e]({...t,connectors:x})})}return k.set(n,t),t},get state(){return B.getState()},setState(e){let t;t="function"==typeof e?e(B.getState()):e;let n=I();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),B.setState(t,!0)},subscribe:(e,t,n)=>B.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:b,async revalidate(){let e=B.getState(),t=e.connections,n=e.current;for(let[,e]of t){let r=e.connector;r.isAuthorized&&await r.isAuthorized()||(t.delete(r.uid),n!==r.uid||(n=null))}B.setState(e=>({...e,connections:t,current:n}))},store:B,ssr:!!d,syncConnectedChain:c,transports:p.transports,chains:{setState(e){let t="function"==typeof e?e(A.getState()):e;if(0!==t.length)return A.setState(t,!0)},subscribe:e=>A.subscribe(e)},connectors:{providerDetailToConnector:E,setup:C,setState:e=>x.setState("function"==typeof e?e(x.getState()):e,!0),subscribe:e=>x.subscribe(e)},events:{change:S,connect:M,disconnect:R}}}}},78306:function(e,t,n){"use strict";n.d(t,{G:function(){return c}});var r,i,o=n(81784);let s=()=>`@wagmi/core@${o.i}`;var a=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 c extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return s()}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 c?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof c&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return a(this,r,"m",i).call(this,this,e)}}r=new WeakSet,i=function e(t,n){return n?.(t)?t:t.cause?a(this,r,"m",e).call(this,t.cause,n):t}},76026:function(e,t,n){"use strict";n.d(t,{$S:function(){return u},JK:function(){return a},X4:function(){return i},XZ:function(){return c},aH:function(){return s},wi:function(){return o}});var r=n(78306);class i 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 s extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class a 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 c 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 u 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"})}}},29358:function(e,t,n){"use strict";n.d(t,{M:function(){return i},O:function(){return o}});var r=n(78306);class i 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"})}}},21637:function(e,t,n){"use strict";function r(e){return JSON.stringify(e,(e,t)=>!function(e){if(!i(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(i(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:o,maxPages:s,meta:a,networkMode:c,queryFn:u,queryHash:l,queryKey:d,queryKeyHashFn:f,retry:h,retryDelay:p,structuralSharing:b,getPreviousPageParam:m,getNextPageParam:y,initialPageParam:w,_optimisticResults:g,enabled:v,notifyOnChangeProps:A,placeholderData:x,refetchInterval:C,refetchIntervalInBackgroun
1524d:E,refetchOnMount:k,refetchOnReconnect:I,refetchOnWindowFocus:P,retryOnMount:B,select:O,staleTime:S,suspense:M,throwOnError:R,config:T,connector:N,query:F,...U}=e;return U}n.d(t,{OP:function(){return o},kq:function(){return r}})},48369:function(e,t,n){"use strict";n.d(t,{v:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,i;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if("function"==typeof t.valueOf&&t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if("function"==typeof t.toString&&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(i=r;0!=i--;)if(!Object.hasOwn(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}}})},30316:function(e,t,n){"use strict";function r(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)}n.d(t,{N:function(){return r}})},46981:function(e,t,n){"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}n.d(t,{s:function(){return r}})},81784:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r="2.20.3"},71900:function(e,t,n){"use strict";n.d(t,{G:function(){return 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,i=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: [email protected]"].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=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},97198:function(e,t,n){"use strict";n.d(t,{F:function(){return o},Hk:function(){return s},a_:function(){return i}});var r=n(71900);class i 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 s 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"})}}},90004:function(e,t,n){"use strict";n.d(t,{$r:function(){return i},TT:function(){return s},_D:function(){return c},aZ:function(){return u},jO:function(){return o},zL:function(){return a}});var r=n(71900);class i 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 s 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 a 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 c 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 u extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
1524d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},11879:function(e,t,n){"use strict";n.d(t,{H6:function(){return s},Vs:function(){return o},wn:function(){return i}});var r=n(71900);class i 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 s 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"})}}},94278:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(67869);function i(e){return"function"===e.type?`function ${e.name}(${(0,r.P)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,r.P)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,r.P)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,r.P)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,r.P)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}},67869:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(12896);let i=/^tuple(?<array>(\[(\d*)\])*)$/;function o(e){let t="",n=e.length;for(let o=0;o<n;o++)t+=function e(t){let n=t.type;if(i.test(t.type)&&"components"in t){n="(";let o=t.components.length;for(let r=0;r<o;r++)n+=e(t.components[r]),r<o-1&&(n+=", ");let s=(0,r.Zw)(i,t.type);return n+=`)${s?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
1524 indexed`),t.name)?`${n} ${t.name}`:n}(e[o]),o!==n-1&&(t+=", ");return t}},61414:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var r=n(19651),i=n(28609),o=n(82275);function s(e){let t=(0,i.D)(e),n=[],s=e.length;for(let i=0;i<s;i++){let s=e[i];(0,r.N0)(s)||n.push((0,o.cK)(s,t))}return n}},19651:function(e,t,n){"use strict";n.d(t,{Dt:function(){return I},EC:function(){return v},LY:function(){return E},N0:function(){return p},PI:function(){return w},QM:function(){return C},SA:function(){return s},Wg:function(){return k},_c:function(){return o},a4:function(){return y},c3:function(){return c},g1:function(){return b},l$:function(){return f},qm:function(){return A},rh:function(){return d},wA:function(){return u}});var r=n(12896);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function o(e){return i.test(e)}function s(e){return(0,r.Zw)(i,e)}let a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function c(e){return a.test(e)}function u(e){return(0,r.Zw)(a,e)}let l=/^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 l.test(e)}function f(e){return(0,r.Zw)(l,e)}let h=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return h.test(e)}function b(e){return(0,r.Zw)(h,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function y(e){return m.test(e)}function w(e){return(0,r.Zw)(m,e)}let g=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function v(e){return g.test(e)}function A(e){return(0,r.Zw)(g,e)}let x=/^receive\(\) external payable$/;function C(e){return x.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),k=new Set(["indexed"]),I=new Set(["calldata","memory","storage"])},28609:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(12896),i=n(97198),o=n(90004),s=n(11879),a=n(71900);class c extends a.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 u=n(19651),l=n(82275);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,u.N0)(n))continue;let i=(0,u.g1)(n);if(!i)throw new s.wn({signature:n,type:"struct"});let o=i.properties.split(";"),a=[],c=o.length;for(let e=0;e<c;e++){let t=o[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});a.push(n)}if(!a.length)throw new s.H6({signature:n});t[i.name]=a}let a={},d=Object.entries(t),h=d.length;for(let e=0;e<h;e++){let[n,s]=d[e];a[n]=function e(t,n,s=new Set){let a=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(r.cN.test(u.type))a.push(u);else{let t=(0,r.Zw)(f,u.type);if(!t?.type)throw new o.aZ({abiParameter:u});let{array:d,type:h}=t;if(h in n){if(s.has(h))throw new c({type:h});a.push({...u,type:`tuple${d??""}`,components:e(n[h]??[],n,new Set([...s,h]))})}else if((0,l.uN)(h))a.push(u);else throw new i.F({type:h})}}return a}(s,t)}return a}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},82275:function(e,t,n){"use strict";n.d(t,{uN:function(){return y},C$:function(){return b},cK:function(){return d},Q4:function(){return m}});var r=n(12896),i=n(97198),o=n(90004),s=n(11879),a=n(71900);class c extends a.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 u=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 l=n(19651);function d(e,t={}){if((0,l.rh)(e))return function(e,t={}){let n=(0,l.l$)(e);if(!n)throw new s.wn({signature:e,type:"function"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let a=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)a.push(b(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:a}}(e,t);if((0,l.c3)(e))return function(e,t={}){let n=(0,l.wA)(e);if(!n)throw new s.wn({signature:e,type:"event"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,t);if((0,l._c)(e))return function(e,t={}){let n=(0,l.SA)(e);if(!n)throw new s.wn({signature:e,type:"error"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}(e,t);if((0,l.a4)(e))return function(e,t={}){let n=(0,l.PI)(e);if(!n)throw new s.wn({signature:e,type:"constructor"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}(e,t);if((0,l.EC)(e))return function(e){let t=(0,l.qm)(e);if(!t)throw new s.wn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new s.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function b(e,t){var n,s;let a;let c=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(u.has(c))return u.get(c);let d=r.cN.test(e),g=(0,r.Zw)(d?h:f,e);if(!g)throw new o.jO({param:e});if(g.name&&("address"===(n=g.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.eL.test(n)||r.lh.test(n)||w.test(n)))throw new o.TT({param:e,name:g.name});let v=g.name?{name:g.name}:{},A="indexed"===g.modifier?{indexed:!0}:{},x=t?.structs??{},C={};if(d){a="tuple";let e=m(g.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(b(e[r],{structs:x}));C={components:t}}else if(g.type in x)a="tuple",C={components:x[g.type]};else if(p.test(g.type))a=`${g.type}256`;else if("address payable"===g.type)a="address";else if(a=g.type,t?.type!=="struct"&&!y(a))throw new i.Hk({type:a});if(g.modifier){if(!t?.modifiers?.has?.(g.modifier))throw new o.zL({param:e,type:t?.type,modifier:g.modifier});if(l.Dt.has(g.modifier)&&(s=a,!g.array&&"bytes"!==s&&"string"!==s&&"tuple"!==s))throw new o._D({param:e,type:t?.type,modifier:g.modifier})}let E={type:`${a}${g.array??""}`,...v,...A,...C};return u.set(c,E),E}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let o=0;o<i;o++){let i=e[o],s=e.slice(o+1);switch(i){case",":return 0===r?m(s,[...t,n.trim()]):m(s,t,`${n}${i}`,r);case"(":return m(s,t,`${n}${i}`,r+1);case")":return m(s,t,`${n}${i}`,r-1);default:return m(s,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new c({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 w=/^(?: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)$/},12896:function(e,t,n){"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return s},eL:function(){return i},lh:function(){return o}});let i=/^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)?$/,s=/^\(.+?\).*?$/},57042:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}},78022:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r=n(57437),i=n(2265);/*! 1525Copyright (c) 2023 Paul Miller (paulmillr.com) 1526The library paulmillr-qr is dual-licensed under the Apache 2.0 OR MIT license. 1527You can select a license of your choice. 1528Licensed under the Apache License, Version 2.0 (the "License"); 1529you may not use this file except in compliance with the License. 1530You may obtain a copy of the License at 1531 1532 http://www.apache.org/licenses/LICENSE-2.0 1533 1534Unless required by applicable law or agreed to in writing, softw
1534are 1535distributed under the License is distributed on an "AS IS" BASIS, 1536WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1537See the License for the specific language governing permissions and 1538limitations under the License. 1539*/let o={newline:10,reset:27};function s(e,t){return e.toString(2).padStart(t,"0")}function a(e,t){let n=e%t;return n>=0?n:t+n}function c(e,t){return Array(e).fill(t)}function u(...e){let t=0;for(let n of e)t=Math.max(t,n.length);let n=[];for(let r=0;r<t;r++)for(let t of e)r>=t.length||n.push(t[r]);return new Uint8Array(n)}function l(e,t,n){if(n<0||n+t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[n+r])return!1;return!0}function d(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(-1===n)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})},encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(!function(e){if(!Number.isSafeInteger(e))throw Error(`integer expected: ${e}`)}(t),t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})}}}class f{static size(e,t){if("number"==typeof e&&(e={height:e,width:e}),!Number.isSafeInteger(e.height)&&e.height!==1/0)throw Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);if(!Number.isSafeInteger(e.width)&&e.width!==1/0)throw Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);return void 0!==t&&(e={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}),e}static fromString(e){let t;let n=(e=e.replace(/^\n+/g,"").replace(/\n+$/g,"")).split(String.fromCharCode(o.newline)),r=n.length,i=Array(r);for(let e of n){let n=e.split("").map(e=>{if("X"===e)return!0;if(" "===e)return!1;if("?"!==e)throw Error(`Bitmap.fromString: unknown symbol=${e}`)});if(t&&n.length!==t)throw Error(`Bitmap.fromString different row sizes: width=${t} cur=${n.length}`);t=n.length,i.push(n)}return t||(t=0),new f({height:r,width:t},i)}data;height;width;constructor(e,t){let{height:n,width:r}=f.size(e);this.data=t||Array.from({length:n},()=>c(r,void 0)),this.height=n,this.width=r}point(e){return this.data[e.y][e.x]}isInside(e){return 0<=e.x&&e.x<this.width&&0<=e.y&&e.y<this.height}size(e){if(!e)return{height:this.height,width:this.width};let{x:t,y:n}=this.xy(e);return{height:this.height-n,width:this.width-t}}xy(e){if("number"==typeof e&&(e={x:e,y:e}),!Number.isSafeInteger(e.x))throw Error(`Bitmap: invalid x=${e.x}`);if(!Number.isSafeInteger(e.y))throw Error(`Bitmap: invalid y=${e.y}`);return e.x=a(e.x,this.width),e.y=a(e.y,this.height),e}rect(e,t,n){let{x:r,y:i}=this.xy(e),{height:o,width:s}=f.size(t,this.size({x:r,y:i}));for(let e=0;e<o;e++)for(let t=0;t<s;t++)this.data[i+e][r+t]="function"==typeof n?n({x:t,y:e},this.data[i+e][r+t]):n;return this}rectRead(e,t,n){return this.rect(e,t,(e,t)=>(n(e,t),t))}hLine(e,t,n){return this.rect(e,{width:t,height:1},n)}vLine(e,t,n){return this.rect(e,{width:1,height:t},n)}border(e=2,t){let n=this.height+2*e,r=this.width+2*e,i=c(e,t),o=Array.from({length:e},()=>c(r,t));return new f({height:n,width:r},[...o,...this.data.map(e=>[...i,...e,...i]),...o])}embed(e,t){return this.rect(e,t.size(),({x:e,y:n})=>t.data[n][e])}rectSlice(e,t=this.size()){let n=new f(f.size(t,this.size(this.xy(e))));return this.rect(e,t,({x:e,y:t},r)=>n.data[t][e]=r),n}inverse(){let{height:e,width:t}=this;return new f({height:t,width:e}).rect({x:0,y:0},1/0,({x:e,y:t})=>this.data[e][t])}scale(e){if(!Number.isSafeInteger(e)||e>1024)throw Error(`invalid scale factor: ${e}`);let{height:t,width:n}=this;return new f({height:e*t,width:e*n}).rect({x:0,y:0},1/0,({x:t,y:n})=>this.data[Math.floor(n/e)][Math.floor(t/e)])}clone(){return new f(this.size()).rect({x:0,y:0},this.size(),({x:e,y:t})=>this.data[t][e])}assertDrawn(){this.rectRead(0,1/0,(e,t)=>{if("boolean"!=typeof t)throw Error(`Invalid color type=${typeof t}`)})}toString(){return this.data.map(e=>e.map(e=>void 0===e?"?":e?"X":" ").join("")).join(String.fromCharCode(o.newline))}toASCII(){let{height:e,width:t,data:n}=this,r="";for(let i=0;i<e;i+=2){for(let o=0;o<t;o++){let t=n[i][o],s=i+1>=e||n[i+1][o];t||s?!t&&s?r+="â":t&&!s?r+="â":t&&s&&(r+=" "):r+="â"}r+=String.fromCharCode(o.newline)}return r}toTerm(){let e=String.fromCharCode(o.reset),t=e+"[0m",n=e+"[1;47m "+t,r=e+"[40m "+t;return this.data.map(e=>e.map(e=>e?r:n).join("")).join(String.fromCharCode(o.newline))}toSVG(e=!0){let t,n=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,r="";
1539return this.rectRead(0,1/0,(i,o)=>{if(!o)return;let{x:s,y:a}=i;if(!e){n+=`<rect x="${s}" y="${a}" width="1" height="1" />`;return}let c=`M${s} ${a}`;if(t){let e=`m${s-t.x} ${a-t.y}`;e.length<=c.length&&(c=e)}let u=s<10?`H${s}`:"h-1";r+=`${c}h1v1${u}Z`,t=i}),e&&(n+=`<path d="${r}"/>`),n+="</svg>"}toGIF(){let e=e=>[255&e,e>>>8&255],t=[...e(this.width),...e(this.height)],n=[];this.rectRead(0,1/0,(e,t)=>n.push(+(!0===t)));let r=[71,73,70,56,55,97,...t,246,0,0,255,255,255,...c(381,0),44,0,0,0,0,...t,0,7],i=Math.floor(n.length/126);for(let e=0;e<i;e++)r.push(127,128,...n.slice(126*e,126*(e+1)).map(e=>+e));return r.push(n.length%126+1,128,...n.slice(126*i).map(e=>+e)),r.push(1,129,0,59),new Uint8Array(r)}toImage(e=!1){let{height:t,width:n}=this.size(),r=new Uint8Array(t*n*(e?3:4)),i=0;for(let o=0;o<t;o++)for(let t=0;t<n;t++){let n=this.data[o][t]?0:255;r[i++]=n,r[i++]=n,r[i++]=n,e||(r[i++]=255)}return{height:t,width:n,data:r}}}let h=["low","medium","quartile","high"],p=["numeric","alphanumeric","byte","kanji","eci"],b=[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],m={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},y={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},w={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(1===e)return[];let t=w.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),i=Math.floor(n/r);i%2?i+=1:n%r*2>=r&&(i+=2);let o=[6];for(let e=1;e<r;e++)o.push(t-(r-e)*i);return o.push(t),o},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){let n=w.ECCode[e]<<3|t,r=n;for(let e=0;e<10;e++)r=r<<1^(r>>9)*1335;return(n<<10|r)^w.formatMask},versionBits(e){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:d("0123456789"),alphanumerc:d("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")},lengthBits:(e,t)=>({numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]})[t][w.sizeType(e)],modeBits:{numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"},capacity(e,t){let n=b[e-1],r=m[t][e-1],i=y[t][e-1],o=Math.floor(n/i)-r,s=i-n%i;return{words:r,numBlocks:i,shortBlocks:s,blockLen:o,capacity:(n-r*i)*8,total:(r+o)*i+i-s}}},g=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],v={tables:(e=>{let t=c(256,0),n=c(256,0);for(let e=0,r=1;e<256;e++)t[e]=r,n[r]=e,256&(r<<=1)&&(r^=285);return{exp:t,log:n}})(0),exp:e=>v.tables.exp[e],log(e){if(0===e)throw Error(`GF.log: invalid arg=${e}`);return v.tables.log[e]%255},mul:(e,t)=>
15390===e||0===t?0:v.tables.exp[(v.tables.log[e]+v.tables.log[t])%255],add:(e,t)=>e^t,pow:(e,t)=>v.tables.exp[v.tables.log[e]*t%255],inv(e){if(0===e)throw Error(`GF.inverse: invalid arg=${e}`);return v.tables.exp[255-v.tables.log[e]]},polynomial(e){if(0==e.length)throw Error("GF.polymomial: invalid length");if(0!==e[0])return e;let t=0;for(;t<e.length-1&&0==e[t];t++);return e.slice(t)},monomial(e,t){if(e<0)throw Error(`GF.monomial: invalid degree=${e}`);if(0==t)return[0];let n=c(e+1,0);return n[0]=t,v.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[v.degree(e)-t],mulPoly(e,t){if(0===e[0]||0===t[0])return[0];let n=c(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=v.add(n[r+i],v.mul(e[r],t[i]));return v.polynomial(n)},mulPolyScalar(e,t){if(0==t)return[0];if(1==t)return e;let n=c(e.length,0);for(let r=0;r<e.length;r++)n[r]=v.mul(e[r],t);return v.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw Error("GF.mulPolyMonomial: invalid degree");if(0==n)return[0];let r=c(e.length+t,0);for(let t=0;t<e.length;t++)r[t]=v.mul(e[t],n);return v.polynomial(r)},addPoly(e,t){if(0===e[0])return t;if(0===t[0])return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=c(r.length,0),o=r.length-n.length,s=r.slice(0,o);for(let e=0;e<s.length;e++)i[e]=s[e];for(let e=o;e<r.length;e++)i[e]=v.add(n[e-o],r[e]);return v.polynomial(i)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let e=n[r];if(0!==e)for(let i=1;i<t.length;i++)0!==t[i]&&(n[r+i]=v.add(n[r+i],v.mul(t[i],e)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=v.mulPoly(t,[1,v.pow(2,n)]);return t},evalPoly(e,t){if(0==t)return v.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=v.add(v.mul(t,n),e[r]);return n},euclidian(e,t,n){v.degree(e)<v.degree(t)&&([e,t]=[t,e]);let r=e,i=t,o=[0],s=[1];for(;2*v.degree(i)>=n;){let e=r,t=o;if(r=i,o=s,0===r[0])throw Error("rLast[0] === 0");i=e;let n=[0],a=v.inv(r[0]);for(;v.degree(i)>=v.degree(r)&&0!==i[0];){let e=v.degree(i)-v.degree(r),t=v.mul(i[0],a);n=v.addPoly(n,v.monomial(e,t)),i=v.addPoly(i,v.mulPolyMonomial(r,e,t))}if(n=v.mulPoly(n,o),s=v.addPoly(n,t),v.degree(i)>=v.degree(r))throw Error(`Division failed r: ${i}, rLast: ${r}`)}let a=v.coefficient(s,0);if(0==a)throw Error("sigmaTilde(0) was zero");let c=v.inv(a);return[v.mulPolyScalar(s,c),v.mulPolyScalar(i,c)]}};function A(e,t,n,r){let i="",o=n.length;if("numeric"===r){let e=w.alphabet.numeric.decode(n.split("")),t=e.length;for(let n=0;n<t-2;n+=3)i+=s(100*e[n]+10*e[n+1]+e[n+2],10);t%3==1?i+=s(e[t-1],4):t%3==2&&(i+=s(10*e[t-2]+e[t-1],7))}else if("alphanumeric"===r){let e=w.alphabet.alphanumerc.decode(n.split("")),t=e.length;for(let n=0;n<t-1;n+=2)i+=s(45*e[n]+e[n+1],11);t%2==1&&(i+=s(e[t-1],6))}else if("byte"===r){let e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(n);o=e.length,i=Array.from(e).map(e=>s(e,8)).join("")}else throw Error("encode: unsupported type");let{capacity:a}=w.capacity(e,t),l=s(o,w.lengthBits(e,r)),d=w.modeBits[r]+l+i;if(d.length>a)throw Error("Capacity overflow");(d+="0".repeat(Math.min(4,Math.max(0,a-d.length)))).length%8&&(d+="0".repeat(8-d.length%8));let f="1110110000010001";for(let e=0;d.length!==a;e++)d+=f[e%f.length];let h=Uint8Array.from(d.match(/(.{8})/g).map(e=>Number(`0b${e}`)));return(function(e,t){let{words:n,shortBlocks:r,numBlocks:i,blockLen:o,total:s}=w.capacity(e,t),a={encode(e){let t=v.divisorPoly(n),r=Array.from(e);return r.push(...t.slice(0,-1).fill(0)),Uint8Array.from(v.remainderPoly(r,t))},decode(e){let t=e.slice(),r=v.polynomial(Array.from(e)),i=c(n,0),o=!1;for(let e=0;e<n;e++){let t=v.evalPoly(r,v.exp(e));i[i.length-1-e]=t,0!==t&&(o=!0)}if(!o)return t;i=v.polynomial(i);let s=v.monomial(n,1),[a,u]=v.euclidian(s,i,n),l=c(v.degree(a),0),d=0;for(let e=1;e<256&&d<l.length;e++)0===v.evalPoly(a,e)&&(l[d++]=v.inv(e));if(d!==l.length)throw Error("RS.decode: invalid errors number");for(let e=0;e<l.length;e++){let n=t.length-1-v.log(l[e]);if(n<0)throw Error("RS.decode: invalid error location");let r=v.inv(l[e]),i=1;for(let t=0;t<l.length;t++)e!==t&&(i=v.mul(i,v.add(1,v.mul(l[t],r))));t[n]=v.add(t[n],v.mul(v.evalPoly(u,r),v.inv(i)))}return t}};return{encode(e){let t=[],n=[];for(let s=0;s<i;s++){let i=o+(s<r?0:1);t.push(e.subarray(0,i)),n.push(a.encode(e.subarray(0,i))),e=e.subarray(i)}let s=u(...t),c=u(...n),l=new Uint8Array(s.length+c.length);return l.set(s),l.set(c,s.length),l},decode(e){if(e.length!==s)throw Error(`interleave.decode: len(data)=${e.length}, total=${s}`);let t=[];for(let e=0;e<i;e++){let i=e<r;t.push(new Uint8Array(n+o+(i?0:1)))}let c=0;for(let n=0;n<o;n++)for(let r=0;r<i;r++)t[r][n]=e[c++];for(let n=r;n<i;n++)t[n][o]=e[c++];for(let s=o;s<o+n;s++)for(let n=0;n<i;n++){let i=n<r;t[n][s+(i?0:1)]=e[c++]}let u=[];for(let e of t)u.push(...Array.from(a.decode(e)).slice(0,-n));return Uint8Array.from(u)}}})(e,t).encode(h)}function x(e,t,n,r,i=!1){let o=function(e,t,n,r=!1){let i=w.size.encode(e),o=new f(i+2),s=new f(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);o=(o=o.embed(0,s).embed({x:-s.width,y:0},s).embed({x:0,y:-s.height},s)).rectSlice(1,i);let a=new f(1).rect(0,1,!0).border(1,!1).border(1,!0),c=w.alignmentPatterns(e);for(let e of c)for(let t of c)void 0===o.data[e][t]&&o.embed({x:t-2,y:e-2},a);o=o.hLine({x:0,y:6},1/0,({x:e},t)=>void 0===t?e%2==0:t).vLine({x:6,y:0},1/0,({y:e},t)=>void 0===t?e%2==0:t);
1539{let e=w.formatBits(t,n),s=t=>!r&&(e>>t&1)==1;for(let e=0;e<6;e++)o.data[e][8]=s(e);for(let e=6;e<8;e++)o.data[e+1][8]=s(e);for(let e=8;e<15;e++)o.data[i-15+e][8]=s(e);for(let e=0;e<8;e++)o.data[8][i-e-1]=s(e);for(let e=8;e<9;e++)o.data[8][15-e-1+1]=s(e);for(let e=9;e<15;e++)o.data[8][15-e-1]=s(e);o.data[i-8][8]=!r}if(e>=7){let t=w.versionBits(e);for(let e=0;e<18;e+=1){let n=!r&&(t>>e&1)==1,s=Math.floor(e/3),a=e%3+i-8-3;o.data[s][a]=n,o.data[a][s]=n}}return o}(e,t,r,i),s=0,a=8*n.length;if(!function(e,t,n){let r=e.height,i=g[t],o=-1,s=r-1;for(let t=r-1;t>0;t-=2){for(6==t&&(t=5);;s+=o){for(let r=0;r<2;r+=1){let o=t-r;void 0===e.data[s][o]&&n(o,s,i(o,s))}if(s+o<0||s+o>=r)break}o=-o}}(o,r,(e,t,r)=>{let i=!1;s<a&&(i=(n[s>>>3]>>(7-s&7)&1)!=0,s++),o.data[t][e]=i!==r}),s!==a)throw Error("QR: bytes left after draw");return o}function C(e){let{arena:t,...n}=e;return(0,r.jsxs)(C.Root,{...n,children:[(0,r.jsx)(C.Finder,{}),(0,r.jsx)(C.Cells,{}),t&&(0,r.jsx)(C.Arena,{children:"string"==typeof t?(0,r.jsx)("img",{alt:"Arena",src:t,style:{borderRadius:1,height:"100%",objectFit:"cover",width:"100%"}}):t})]})}!function(e){function t(t){let{children:n,size:o="100%",value:s,version:a,...c}=t,u=i.useMemo(()=>(i.Children.map(n,e=>i.isValidElement(e)&&"string"!=typeof e.type&&"displayName"in e.type&&"Arena"===e.type.displayName||null)??[]).some(Boolean),[n]),d=i.useMemo(()=>{let e=t.errorCorrection;return u&&"low"===e&&(e="medium"),function(e,t={}){let{errorCorrection:n,version:r}=t,i=function(e,t="raw",n={}){let r=void 0!==n.ecc?n.ecc:"medium";!function(e){if(!h.includes(e))throw Error(`Invalid error correction mode=${e}. Expected: ${h}`)}(r);let i=void 0!==n.encoding?n.encoding:function(e){let t="numeric";for(let n of e)if(!w.alphabet.numeric.has(n)&&(t="alphanumeric",!w.alphabet.alphanumerc.has(n)))return"byte";return t}(e);(function(e){if(!p.includes(e))throw Error(`Encoding: invalid mode=${e}. Expected: ${p}`);if("kanji"===e||"eci"===e)throw Error(`Encoding: ${e} is not supported (yet?).`)})(i),void 0!==n.mask&&function(e){if(![0,1,2,3,4,5,6,7].includes(e)||!g[e])throw Error(`Invalid mask=${e}. Expected number [0..7]`)}(n.mask);let o=n.version,s,a=Error("Unknown error");if(void 0!==o)(function(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw Error(`Invalid version=${e}. Expected number [1..40]`)})(o),s=A(o,r,e,i);else for(let t=1;t<=40;t++)try{s=A(t,r,e,i),o=t;break}catch(e){a=e}if(!o||!s)throw a;let c=function(e,t,n,r){if(void 0===r){let i,o;let s=(o=1/0,{add(e,t){e>=o||(i=t,o=e)},get:()=>i,score:()=>o});for(let r=0;r<g.length;r++)s.add(function(e){let t=e.inverse(),n=e=>{let t=0;for(let n=0,r=1,i;n<e.length;n++)(i!==e[n]||(r++,n===e.length-1))&&(r>=5&&(t+=3+(r-5)),i=e[n],r=1);return t},r=0;e.data.forEach(e=>r+=n(e)),t.data.forEach(e=>r+=n(e));let i=0,o=e.data,s=e.width-1,a=e.height-1;for(let e=0;e<s;e++)for(let t=0;t<a;t++){let n=e+1,r=t+1;o[e][t]===o[n][t]&&o[n][t]===o[e][r]&&o[n][t]===o[n][r]&&(i+=3)}let c=e=>{let t=[!0,!1,!0,!0,!0,!1,!0],n=[!1,!1,!1,!1],r=[...t,...n],i=[...n,...t],o=0;for(let t=0;t<e.length;t++)l(e,r,t)&&(o+=40),l(e,i,t)&&(o+=40);return o},u=0;for(let t of e.data)u+=c(t);for(let e of t.data)u+=c(e);let d=0;e.rectRead(0,1/0,(e,t)=>d+=t?1:0);let f=d/(e.height*e.width)*100;return r+i+u+10*Math.floor(Math.abs(f-50)/5)}(x(e,t,n,r,!0)),r);r=s.get()}if(void 0===r)throw Error("Cannot find mask");return x(e,t,n,r)}(o,r,s,n.mask);c.assertDrawn();let u=void 0===n.border?2:n.border;if(!Number.isSafeInteger(u))throw Error(`invalid border type=${typeof u}`);if(c=c.border(u,!1),void 0!==n.scale&&(c=c.scale(n.scale)),"raw"===t)return c.data;if("ascii"===t)return c.toASCII();if("svg"===t)return c.toSVG(n.optimize);if("gif"===t)return c.toGIF();if("term"===t)return c.toTerm();throw Error(`Unknown output: ${t}`)}(e,"raw",{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}(s,{errorCorrection:e,version:a})},[s,u,t.errorCorrection,a]),f=1*d.edgeLength,b=1*d.finderLength/2,m=u?Math.floor(f/4):0,y=i.useMemo(()=>({arenaSize:m,cellSize:1,edgeSize:f,qrcode:d,finderSize:b}),[m,f,d,b]);return(0,r.jsx)(e.Context.Provider,{value:y,children:(0,r.jsxs)("svg",{...c,width:o,height:o,viewBox:`0 0 ${f} ${f}`,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:"QR Code"}),n]})})}function n(t){let{className:n,fill:o,innerClassName:s,radius:a=.25}=t,{cellSize:c,edgeSize:u,finderSize:l}=i.useContext(e.Context);function d({position:e}){let t=l-(l-c)-c/2;
1539"top-right"===e&&(t=u-l-(l-c)-c/2);let i=l-(l-c)-c/2;"bottom-left"===e&&(i=u-l-(l-c)-c/2);let d=l-1.5*c;"top-right"===e&&(d=u-l-1.5*c);let f=l-1.5*c;return"bottom-left"===e&&(f=u-l-1.5*c),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{className:n,stroke:o??"currentColor",fill:"transparent",x:t,y:i,width:c+(l-c)*2,height:c+(l-c)*2,rx:2*a*(l-c),ry:2*a*(l-c),strokeWidth:c}),(0,r.jsx)("rect",{className:s,fill:o??"currentColor",x:d,y:f,width:3*c,height:3*c,rx:2*a*c,ry:2*a*c})]})}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{position:"top-left"}),(0,r.jsx)(d,{position:"top-right"}),(0,r.jsx)(d,{position:"bottom-left"})]})}function o(t){let{className:n,fill:o="currentColor",inset:s=!0,radius:a=1}=t,{arenaSize:c,cellSize:u,qrcode:l}=i.useContext(e.Context),{edgeLength:d,finderLength:f}=l,h=i.useMemo(()=>{let e="";for(let t=0;t<l.grid.length;t++){let n=l.grid[t];if(n)for(let r=0;r<n.length;r++){if(!n[r])continue;let i=d/2-c/2,o=i+c;if(t>=i&&t<=o&&r>=i&&r<=o)continue;let l=t<f&&r<f,h=t<f&&r>=d-f,p=t>=d-f&&r<f;if(l||h||p)continue;let b=s?.1*u:0,m=(u-2*b)/2,y=r*u+u/2,w=t*u+u/2,g=y-m,v=y+m,A=w-m,x=w+m,C=a*m;e+=`M ${g+C},${A} L ${v-C},${A} A ${C},${C} 0 0,1 ${v},${A+C} L ${v},${x-C} A ${C},${C} 0 0,1 ${v-C},${x} L ${g+C},${x} A ${C},${C} 0 0,1 ${g},${x-C} L ${g},${A+C} A ${C},${C} 0 0,1 ${g+C},${A} z`}}return e},[c,u,d,f,l.grid,s,a]);return(0,r.jsx)("path",{className:n,d:h,fill:o})}function s(t){let{children:n}=t,{arenaSize:o,cellSize:s,edgeSize:a}=i.useContext(e.Context),c=Math.ceil(a/2-o/2),u=o+o%2;return(0,r.jsx)("foreignObject",{x:c,y:c,width:u,height:u,children:(0,r.jsx)("div",{style:{alignItems:"center",display:"flex",fontSize:1,justifyContent:"center",height:"100%",overflow:"hidden",width:"100%",padding:s/2,boxSizing:"border-box"},children:n})})}e.Context=i.createContext(null),e.Root=t,(t=e.Root||(e.Root={})).displayName="Root",e.Finder=n,(n=e.Finder||(e.Finder={})).displayName="Finder",e.Cells=o,(o=e.Cells||(e.Cells={})).displayName="Cells",e.Arena=s,(s=e.Arena||(e.Arena={})).displayName="Arena"}(C||(C={}))},50017:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(25484);function i(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(i)}}}},96669:function(e,t,n){"use strict";n.d(t,{G:function(){return 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})(),i=t.cause instanceof r&&t.cause.docsPath||t.docsPath,o=`https://oxlib.sh${i??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||i?["",n?`Details: ${n}`:void 0,i?`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:"[email protected]"}),this.cause=t.cause,this.details=n,this.docs=o,this.docsPath=i,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)}}},25484:function(e,t,n){"use strict";n.d(t,{$s:function(){return I},Dp:function(){return u},Gh:function(){return w},Gu:function(){return v},He:function(){return g},J5:function(){return A},M6:function(){return E},O3:function(){return l},Q_:function(){return p},dp:function(){return y},eh:function(){return b},mL:function(){return h},mV:function(){return k},tP:function(){return m},xS:function(){return f},xv:function(){return d},zo:function(){return c}});var r=n(96669),i=n(72337),o=n(86011);let s=new TextEncoder,a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(...e){return`0x${e.reduce((e,t)=>
1539e+t.replace("0x",""),"")}`}function u(e){return e instanceof Uint8Array?d(e):Array.isArray(e)?d(new Uint8Array(e)):e}function l(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(i.Yf(n,t.size),p(n,t.size)):n}function d(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=a[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(i.Yf(r,t.size),b(r,t.size)):r}function f(e,t={}){let n;let{signed:r,size:i}=t,o=BigInt(e);i?n=r?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let s="bigint"==typeof n&&r?-n-1n:0;if(n&&o>n||o<s){let t="bigint"==typeof e?"n":"";throw new A({max:n?`${n}${t}`:void 0,min:`${s}${t}`,signed:r,size:i,value:`${e}${t}`})}let a=(r&&o<0?(1n<<BigInt(8*i))+BigInt(o):o).toString(16),c=`0x${a}`;return i?p(c,i):c}function h(e,t={}){return d(s.encode(e),t)}function p(e,t){return i.vk(e,{dir:"left",size:t})}function b(e,t){return i.vk(e,{dir:"right",size:t})}function m(e,t,n,r={}){let{strict:o}=r;i.EM(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&i.Ro(s,t,n),s}function y(e){return Math.ceil((e.length-2)/2)}function w(e,t={}){let{signed:n}=t;t.size&&i.Yf(e,t.size);let r=BigInt(e);if(!n)return r;let o=(1n<<8n*BigInt((e.length-2)/2))-1n;return r<=o>>1n?r:r-o-1n}function g(e,t={}){let{signed:n,size:r}=t;return n||r?Number(w(e,t)):Number(e)}function v(e,t={}){let{strict:n=!1}=t;try{return!function(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new x(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new C(e)}(e,{strict:n}),!0}catch{return!1}}class A extends r.G{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number \`${i}\` 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"})}}class x extends r.G{constructor(e){super(`Value \`${"object"==typeof e?o.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 C 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 E 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 k 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 I 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"})}}},86011:function(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:function(){return r}})},72337:function(e,t,n){"use strict";n.d(t,{EM:function(){return o},Ro:function(){return s},Yf:function(){return i},vk:function(){return a}});var r=n(25484);function i(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 s(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 a(e,t={}){let{dir:n,size:i=32}=t;if(0===i)return e;let o=e.replace("0x","");if(o.length>2*i)throw new r.$s({size:Math.ceil(o.length/2),targetSize:i,type:"Hex"});return`0x${o["right"===n?"padEnd":"padStart"](2*i,"0")}`}},50044:function(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:function(){return F},__assign:function(){return o},__asyncDelegator:function(){return k},__asyncGenerator:function(){return E},__asyncValues:function(){return I},__await:function(){return C},__awaiter:function(){return p},__classPrivateFieldGet:function(){return R},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return T},__createBinding:function(){return m},__decorate:function(){return a},__disposeResources:function(){return D},__esDecorate:function(){return u},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return b},__importDefault:function(){return M},__importStar:function(){return S}
1539,__makeTemplateObject:function(){return P},__metadata:function(){return h},__param:function(){return c},__propKey:function(){return d},__read:function(){return g},__rest:function(){return s},__rewriteRelativeImportExtension:function(){return q},__runInitializers:function(){return l},__setFunctionName:function(){return f},__spread:function(){return v},__spreadArray:function(){return x},__spreadArrays:function(){return A},__values:function(){return w}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),f=!1,h=n.length-1;h>=0;h--){var p={};for(var b in r)p[b]="access"===b?{}:r[b];for(var b in r.access)p.access[b]=r.access[b];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var m=(0,n[h])("accessor"===c?{get:d.get,set:d.set}:d[u],p);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(a=s(m.get))&&(d.get=a),(a=s(m.set))&&(d.set=a),(a=s(m.init))&&i.unshift(a)}else(a=s(m))&&("field"===c?i.unshift(a):d[u]=a)}l&&Object.defineProperty(l,r.name,d),f=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}function b(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
vendor: 4,274 bytes, line 1539
1539(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function w(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function A(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function x(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{var n;(n=i[e](t)).value instanceof C?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:i?i(t):t}:i}}function I(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=w(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var B=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return(O=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=O(e),r=0;r<n.length;r++)"default"!==n[r]&&m(t,e,n[r]);return B(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function R(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)}function T(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function F(e,t,n){if(null!=t){var r,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
1539if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var U="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function D(e){function t(t){e.error=e.hasError?new U(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function q(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,o){return n?t?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":e}):e}t.default={__extends:i,__assign:o,__rest:s,__decorate:a,__param:c,__esDecorate:u,__runInitializers:l,__propKey:d,__setFunctionName:f,__metadata:h,__awaiter:p,__generator:b,__createBinding:m,__exportStar:y,__values:w,__read:g,__spread:v,__spreadArrays:A,__spreadArray:x,__await:C,__asyncGenerator:E,__asyncDelegator:k,__asyncValues:I,__makeTemplateOb
1539ject:P,__importStar:S,__importDefault:M,__classPrivateFieldGet:R,__classPrivateFieldSet:T,__classPrivateFieldIn:N,__addDisposableResource:F,__disposeResources:D,__rewriteRelativeImportExtension:q}},4832:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},16470:function(e,t,n){"use strict";n.d(t,{r:function(){return E}});var r=n(65459),i=n(39230);class o extends i.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 s extends i.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class a extends i.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 c extends i.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let u=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,l=/^(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 h(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||!Object.hasOwn(globalThis,"Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function b({uri:e,gatewayUrls:t}){let n=d.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=p(t?.ipfs,"https://ipfs.io"),i=p(t?.arweave,"https://arweave.net"),o=e.match(u),{protocol:s,subpath:c,target:h,subtarget:b=""}=o?.groups||{},m="ipns:/"===s||"ipns/"===c,y="ipfs:/"===s||"ipfs/"===c||l.test(e);
vendor: 6,339 bytes, line 1539
1539if(e.startsWith("http")&&!m&&!y){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((m||y)&&h)return{uri:`${r}/${m?"ipns":"ipfs"}/${h}${b}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&h)return{uri:`${i}/${h}${b||""}`,isOnChain:!1,isEncoded:!1};let w=e.replace(f,"");if(w.startsWith("<svg")&&(w=`data:image/svg+xml;base64,${btoa(w)}`),w.startsWith("data:")||w.startsWith("{"))return{uri:w,isOnChain:!0,isEncoded:!1};throw new a({uri:e})}function m(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 w({gatewayUrls:e,uri:m(n)})}catch{throw new a({uri:t})}}async function w({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=b({uri:t,gatewayUrls:e});if(r||await h(n))return n;throw new a({uri:t})}async function g(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 c({namespace:t.namespace})}async function v(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?A(e,{gatewayUrls:t,record:n}):w({uri:n,gatewayUrls:t})}async function A(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,i]=t.split("/"),[o,a]=n.split(":"),[c,u]=r.split(":");if(!o||"eip155"!==o.toLowerCase())throw new s({reason:"Only EIP-155 supported"});if(!a)throw new s({reason:"Chain ID not found"});if(!u)throw new s({reason:"Contract address not found"});if(!i)throw new s({reason:"Token ID not found"});if(!c)throw new s({reason:"ERC namespace not found"});return{chainID:Number.parseInt(a,10),namespace:c.toLowerCase(),contractAddress:u,tokenID:i}}(n),{uri:i,isOnChain:o,isEncoded:a}=b({uri:await g(e,{nft:r}),gatewayUrls:t});if(o&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return w({uri:m(JSON.parse(a?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let c=r.tokenID;return"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0")),y({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,c)})}var x=n(82600),C=n(35271);async function E(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:i,gatewayUrls:o,strict:s,universalResolverAddress:a}){let c=await (0,x.s)(e,C.g,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:a,gatewayUrls:o,strict:s});if(!c)return null;try{return await v(e,{record:c,gatewayUrls:r})}catch{return null}}},42557:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(42980),i=n(94540),o=n(87815),s=n(18882),a=n(82600),c=n(65459);async function u(e,t){let{address:n,blockNumber:u,blockTag:l,coinType:d=60n,gatewayUrls:f,strict:h}=t,{chain:p}=e,b=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!p)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.L)({blockNumber:u,chain:p,contract:"ensUniversalResolver"})})();try{let t={address:b,abi:r.du,args:[n,d,f??[s.M]],functionName:"reverseWithGateways",blockNumber:u,blockTag:l},i=(0,a.s)(e,c.L,"readContract"),[o]=await i(t);return o||null}catch(e){if(h)throw e;if((0,o.c)(e))return null;throw e}}},35271:function(e,t,n){"use strict";n.d(t,{g:function(){return p}});var r=n(42980),i=n(3458),o=n(76384),s=n(94540),a=n(21693),c=n(87815),u=n(18882),l=n(87332),d=n(66257),f=n(82600),h=n(65459);async function p(e,t){let{blockNumber:n,blockTag:p,key:b,name:m,gatewayUrls:y,strict:w}=t,{chain:g}=e,v=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!g)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.L)({blockNumber:n,chain:g,contract:"ensUniversalResolver"})})(),A=g?.ensTlds;if(A&&!A.some(e=>m.endsWith(e)))return null;try{let t={address:v,abi:r.k3,args:[(0,a.NC)((0,d.T)(m)),(0,o.R)({abi:r.nZ,functionName:"text",args:[(0,l.V)(m),b]}),y??[u.M]],functionName:"resolveWithGateways",blockNumber:n,blockTag:p},s=(0,f.s)(e,h.L,"readContract"),c=await s(t);if("0x"===c[0])return null;let w=(0,i.k)({abi:r.nZ,functionName:"text",data:c[0]});return""===w?null:w}catch(e){if(w)throw e;if((0,c.c)(e))return null;throw e}}},73501:function(e,t,n){"use strict";n.d(t,{R:function(){return x}});var r=n(61414),i=n(50017),o=n(4832),s=n(42980),a=n(2432),c=n(39230),u=n(27878),l=n(98458),d=n(3458),f=n(12732),h=n(76384),p=n(94540),b=n(21693),m=n(99632),y=n(21028),w=n(86868),g=n(33668),v=n(19983),A=n(2445);async function x(e,t){let{account:s=e.account,authorizationList:d,batch:h=!!e.batch?.multicall,blockNumber:p,blockTag:g=e.experimental_blockTag??"latest",accessList:x,blobs:k,blockOverrides:I,code:P,data:B,factory:O,factoryData:S,gas:M,gasPrice:R,maxFeePerBlobGas:T,maxFeePerGas:N,maxPriorityFeePerGas:F,nonce:U,to:D,value:q,stateOverride:G,...L}=t,j=s?(0,o.T)(s):void 0;if(P&&(O||S))throw new c.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(P&&D)throw new c.G("Cannot provide both `code` & `to` as parameters.");let z=P&&B,Q=O&&S&&D&&B,W=z||Q,$=z?E({code:P,data:B}):Q?function(e){let{data:t,factory:n,factoryData:i,to:o}=e;return(0,f.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:a.pG,args:[o,t,n,i]})}({data:B,factory:O,factoryData:S,to:D}):B;try{(0,A.F)(t);let n=("bigint"==typeof p?(0,b.eC)(p):void 0)||g,r=I?i.o(I):void 0,o=(0,v.mF)(G),s=e.chain?.formatters?.transactionRequest?.format,a=(s||w.tG)({...(0,y.K)(L,{format:s}),from:j?.address,accessList:x,authorizationList:d,blobs:k,data:$,gas:M,gasPrice:R,maxFeePerBlobGas:T,maxFeePerGas:N,maxPriorityFeePerGas:F,nonce:U,to:W?void 0:D,value:q});if(h&&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:a})&&!o&&!r)try{return await C(e,{...a,blockNumber:p,blockTag:g})}
1539catch(e){if(!(e instanceof u.pZ)&&!(e instanceof u.mm))throw e}let c=(()=>{let e=[a,n];return o&&r?[...e,o,r]:o?[...e,o]:r?[...e,{},r]:e})(),l=await e.request({method:"eth_call",params:c});if("0x"===l)return{data:void 0};return{data:l}}catch(s){let r=function(e){if(!(e instanceof c.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(s),{offchainLookup:i,offchainLookupSignature:o}=await n.e(1913).then(n.bind(n,91913));if(!1!==e.ccipRead&&r?.slice(0,10)===o&&D)return{data:await i(e,{data:r,to:D})};if(W&&r?.slice(0,10)==="0x101bb98d")throw new l.Mo({factory:O});throw(0,m.P)(s,{...t,account:j,chain:e.chain})}}async function C(e,t){let{batchSize:n=1024,deployless:r=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:c=e.experimental_blockTag??"latest",data:f,to:m}=t,y=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,p.L)({blockNumber:o,chain:e.chain,contract:"multicall3"});throw new u.pZ})(),w=("bigint"==typeof o?(0,b.eC)(o):void 0)||c,{schedule:v}=(0,g.S)({id:`${e.uid}.${w}`,wait:i,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,h.R)({abi:s.F8,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{...null===y?{data:E({code:a.xd,data:r})}:{to:y,data:r}},w]});return(0,d.k)({abi:s.F8,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:A,success:x}]=await v({data:f,to:m});if(!x)throw new l.VQ({data:A});return"0x"===A?{data:void 0}:{data:A}}function E(e){let{code:t,data:n}=e;return(0,f.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:a.NO,args:[t,n]})}},77451:function(e,t,n){"use strict";n.d(t,{C:function(){return u},X:function(){return c}});var r=n(84161),i=n(82600),o=n(17976),s=n(3891),a=n(75188);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:n,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),h=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),p=n||await (0,i.s)(e,s.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){let t=await c.fees.estimateFeesPerGas({block:n,client:e,multiply:h,request:u,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new r.e5;let t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,o.h)(e,{block:p,chain:c,request:u}),n=h(p.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??h(await (0,i.s)(e,a.o,"getGasPrice")({}))}}},17976:function(e,t,n){"use strict";n.d(t,{_:function(){return c},h:function(){return u}});var r=n(84161),i=n(30838),o=n(82600),s=n(3891),a=n(75188);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u}=t||{};try{let t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,o.s)(e,s.Q,"getBlock")({}),i=await t({block:r,client:e,request:u});if(null===i)throw Error();return i}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(r)}catch{let[t,i]=await Promise.all([n?Promise.resolve(n):(0,o.s)(e,s.Q,"getBlock")({}),(0,o.s)(e,a.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let c=i-t.baseFeePerGas;if(c<0n)return 0n;return c}}},53002:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=n(21693);async function i(e,{address:t,blockNumber:n,blockTag:i=e.experimental_blockTag??"latest"}){let o="bigint"==typeof n?(0,r.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,o||i]}))}},3891:function(e,t,n){"use strict";n.d(t,{Q:function(){return s}});var r=n(71492),i=n(21693),o=n(78723);async function s(e,{blockHash:t,blockNumber:n,blockTag:s=e.experimental_blockTag??"latest",includeTransactions:a}={}){let c=a??!1,u=void 0!==n?(0,i.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||s,c]},{dedupe:!!u})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||o.Z)(l)}},13438:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(30838);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},92895:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(21693);async function i(e,{address:t,blockNumber:n,blockTag:i="latest"}){let o=void 0!==n?(0,r.eC)(n):void 0,s=await e.request({method:"eth_getCode",params:[t,o||i]},{dedupe:!!o});if("0x"!==s)return s}},75188:function(e,t,n){"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{o:function(){return r}})},31742:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(30838),i=n(21693);async function o(e,{address:t,blockTag:n="latest",blockNumber:o}){let s=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof o?(0,i.eC)(o):n]},{dedupe:!!o});return(0,r.ly)(s)}},73105:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(42980),i=n(2432),o=n(71878),s=n(39230),a=n(98458),c=n(3458),u=n(76384),l=n(94540),d=n(65573),f=n(82600),h=n(65459);async function p(e,t){let{account:n,authorizationList:p,allowFailure:b=!0,blockNumber:m,blockOverrides:y,blockTag:w,stateOverride:g}=t,v=t.contracts,{batchSize:A=t.batchSize??1024,deployless:x=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},C=(()=>
1539{if(t.multicallAddress)return t.multicallAddress;if(x)return null;if(e.chain)return(0,l.L)({blockNumber:m,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),E=[[]],k=0,I=0;for(let e=0;e<v.length;e++){let{abi:t,address:r,args:i,functionName:o}=v[e];try{let e=(0,u.R)({abi:t,args:i,functionName:o});I+=(e.length-2)/2,A>0&&I>A&&E[k].length>0&&(k++,I=(e.length-2)/2,E[k]=[]),E[k]=[...E[k],{allowFailure:!0,callData:e,target:r}]}catch(s){let e=(0,d.S)(s,{abi:t,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:o,sender:n});if(!b)throw e;E[k]=[...E[k],{allowFailure:!0,callData:"0x",target:r}]}}let P=await Promise.allSettled(E.map(t=>(0,f.s)(e,h.L,"readContract")({...null===C?{code:i.xd}:{address:C},abi:r.F8,account:n,args:[t],authorizationList:p,blockNumber:m,blockOverrides:y,blockTag:w,functionName:"aggregate3",stateOverride:g}))),B=[];for(let e=0;e<P.length;e++){let t=P[e];if("rejected"===t.status){if(!b)throw t.reason;for(let n=0;n<E[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:i}=n[t],{callData:s}=E[e][t],{abi:u,address:l,functionName:f,args:h}=v[B.length];try{if("0x"===s)throw new o.wb;if(!i)throw new a.VQ({data:r});let e=(0,c.k)({abi:u,args:h,data:r,functionName:f});B.push(b?{result:e,status:"success"}:e)}catch(t){let e=(0,d.S)(t,{abi:u,address:l,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!b)throw e;B.push({error:e,result:void 0,status:"failure"})}}}if(B.length!==v.length)throw new s.G("multicall results mismatch");return B}},65459:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var r=n(3458),i=n(76384),o=n(65573),s=n(82600),a=n(73501);async function c(e,t){let{abi:n,address:c,args:u,functionName:l,...d}=t,f=(0,i.R)({abi:n,args:u,functionName:l});try{let{data:t}=await (0,s.s)(e,a.R,"call")({...d,data:f,to:c});return(0,r.k)({abi:n,args:u,functionName:l,data:t||"0x"})}catch(e){throw(0,o.S)(e,{abi:n,address:c,args:u,docsPath:"/docs/contract/readContract",functionName:l})}}},14576:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});let r=(0,n(71186).a)({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}})},88301:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});let r=(0,n(71186).a)({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}})},75404:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});let r=(0,n(71186).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},62744:function(e,t,n){"use strict";n.d(t,{v:function(){return R}});var r=n(30838),i=n(78723),o=n(52017),s=n(3324);let a={block:(0,i.G)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=o.Tr(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?r.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,o.y_)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,r.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,s.dI)({format:e=>({l1GasPrice:e.l1GasPrice?(0,r.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,r.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,r.y_)(e.l1Fee):null,l1FeeScalar:e.l
15391FeeScalar?Number(e.l1FeeScalar):null})})};var c=n(21485),u=n(87364),l=n(69809),d=n(21693),f=n(48379),h=n(44818),p=n(36739),b=n(68047),m=n(85933),y=n(85716),w=n(94973),g=n(27943),v=n(74736),A=n(39230),x=n(45359),C=n(27878),E=n(40009),k=n(39868),I=n(72619);function P(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new C.hJ({chainId:t});if(i&&!(0,u.U)(i))throw new c.b({address:i});if(r&&r>v.zL)throw new E.Hh({maxFeePerGas:r});if(n&&r&&n>r)throw new E.cs({maxFeePerGas:r,maxPriorityFeePerGas:n})}var B=n(74714);function O(e){if(!e||0===e.length)return[];let t=[];for(let n=0;n<e.length;n++){let{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new h.JC({storageKey:i[e]});if(!(0,u.U)(r,{strict:!1}))throw new c.b({address:r});t.push([r,i])}return t}function S(e,t){let n=t??e,{v:r,yParity:i}=n;if(void 0===n.r||void 0===n.s||void 0===r&&void 0===i)return[];let o=(0,w.f)(n.r),s=(0,w.f)(n.s);return["number"==typeof i?i?(0,d.eC)(1):"0x":0n===r?"0x":1n===r?(0,d.eC)(1):27n===r?"0x":(0,d.eC)(1),"0x00"===o?"0x":o,"0x00"===s?"0x":s]}let M={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:a,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){!function(e){let{from:t,to:n}=e;if(t&&!(0,u.U)(t))throw new c.b({address:t});if(n&&!(0,u.U)(n))throw new c.b({address:n})}(e);let{sourceHash:t,data:n,from:r,gas:i,isSystemTx:o,mint:s,to:a,value:h}=e,p=[t,r,a??"0x",s?(0,d.NC)(s):"0x",h?(0,d.NC)(h):"0x",i?(0,d.NC)(i):"0x",o?"0x1":"0x",n??"0x"];return(0,l.SM)(["0x7e",(0,f.LV)(p)])}(e):function(e,t){let n=(0,B.l)(e);return"eip1559"===n?function(e,t){let{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:u,data:h}=e;P(e);let p=O(u),b=[(0,d.eC)(n),i?(0,d.eC)(i):"0x",c?(0,d.eC)(c):"0x",a?(0,d.eC)(a):"0x",r?(0,d.eC)(r):"0x",o??"0x",s?(0,d.eC)(s):"0x",h??"0x",p,...S(e,t)];return(0,l.SM)(["0x02",(0,f.LV)(b)])}(e,t):"eip2930"===n?function(e,t){let{chainId:n,gas:r,data:i,nonce:o,to:s,value:a,accessList:h,gasPrice:p}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(t<=0)throw new C.hJ({chainId:t});if(o&&!(0,u.U)(o))throw new c.b({address:o});if(n||i)throw new A.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>v.zL)throw new E.Hh({maxFeePerGas:r})}(e);let b=O(h),m=[(0,d.eC)(n),o?(0,d.eC)(o):"0x",p?(0,d.eC)(p):"0x",r?(0,d.eC)(r):"0x",s??"0x",a?(0,d.eC)(a):"0x",i??"0x",b,...S(e,t)];return(0,l.SM)(["0x01",(0,f.LV)(m)])}(e,t):"eip4844"===n?function(e,t){let{chainId:n,gas:i,nonce:o,to:s,value:a,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:h,accessList:w,data:v}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new x.RX;for(let e of t){let t=(0,k.d)(e),n=(0,r.ly)((0,I.tP)(e,0,1));if(32!==t)throw new x.xd({hash:e,size:t});if(n!==g.l)throw new x.cJ({hash:e,version:n})}}P(e)}(e);let A=e.blobVersionedHashes,C=e.sidecars;if(e.blobs&&(void 0===A||void 0===C)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,d.ci)(e)),n=e.kzg,r=(0,p.P)({blobs:t,kzg:n});if(void 0===A&&(A=(0,m.C)({commitments:r})),void 0===C){let e=(0,b.y)({blobs:t,commitments:r,kzg:n});C=(0,y.j)({blobs:t,commitments:r,proofs:e})}}let E=O(w),B=[(0,d.eC)(n),o?(0,d.eC)(o):"0x",h?(0,d.eC)(h):"0x",u?(0,d.eC)(u):"0x",i?(0,d.eC)(i):"0x",s??"0x",a?(0,d.eC)(a):"0x",v??"0x",E,c?(0,d.eC)(c):"0x",A??[],...S(e,t)],M=[],R=[],T=[];if(C)for(let e=0;e<C.length;e++){let{blob:t,commitment:n,proof:r}=C[e];M.push(t),R.push(n),T.push(r)}return(0,l.SM)(["0x03",C?(0,f.LV)([B,M,R,T]):(0,f.LV)(B)])}(e,t):"eip7702"===n?function(e,t){let{authorizationList:n,chainId:r,gas:i,nonce:o,to:s,value:a,maxFeePerGas:h,maxPriorityFeePerGas:p,accessList:b,data:m}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{chainId:t}=e,n=e.address;if(!(0,u.U)(n))throw new c.b({address:n});if(t<0)throw new C.hJ({chainId:t})}P(e)}(e);let y=O(b),w=function(e){if(!e||0===e.length)return[];let t=[];for(let n of e){let{chainId:e,nonce:r,...i}=n,o=n.address;t.push([e?(0,d.NC)(e):"0x",o,r?(0,d.NC)(r):"0x",...S({},i)])}return t}(n);return(0,l.SM)(["0x04",(0,f.LV)([(0,d.eC)(r),o?(0,d.eC)(o):"0x",p?(0,d.eC)(p):"0x",h?(0,d.eC)(h):"0x",i?(0,d.eC)(i):"0x",s??"0x",a?(0,d.eC)(a):"0x",m??"0x",y,w,...S(e,t)])])}(e,t):function(e,t){let{chainId:n=0,gas:r,data:i,nonce:o,to:s,value:a,gasPrice:l}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(o&&!(0,u.U)(o))throw new c.b({address:o});if(void 0!==t&&t<=0)throw new C.hJ({chainId:t});if(n||i)throw new A.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>v.zL)throw new E.Hh({maxFeePerGas:r})}(e);let p=[o?(0,d.eC)(o):"0x",l?(0,d.eC)(l):"0x",r?(0,d.eC)(r):"0x",s??"0x",a?(0,d.eC)(a):"0x",i??"0x"];if(t){let e=(()=>
1539{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new h.vl({v:t.v});return e})(),r=(0,w.f)(t.r),i=(0,w.f)(t.s);p=[...p,(0,d.eC)(e),"0x00"===r?"0x":r,"0x00"===i?"0x":i]}else n>0&&(p=[...p,(0,d.eC)(n),"0x","0x"]);return(0,f.LV)(p)}(e,t)}(e,t)}}},R=(0,n(71186).a)({...M,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...M.contracts,disputeGameFactory:{1:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{1:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{1:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{1:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1})},3748:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});let r=(0,n(71186).a)({id:137,name:"Polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}})},45583:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(4832),i=n(5006);function o(e){let{batch:t,chain:n,ccipRead:o,key:s="base",name:a="Base Client",type:c="base"}=e,u=e.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),l=n?.blockTime??12e3,d=e.pollingInterval??Math.min(Math.max(Math.floor(l/2),500),4e3),f=e.cacheTime??d,h=e.account?(0,r.T)(e.account):void 0,{config:p,request:b,value:m}=e.transport({chain:n,pollingInterval:d}),y={account:h,batch:t,cacheTime:f,ccipRead:o,chain:n,key:s,name:a,pollingInterval:d,request:b,transport:{...p,...m},type:c,uid:(0,i.h)(),...u?{experimental_blockTag:u}:{}};return Object.assign(y,{extend:function e(t){return n=>{let r=n(t);for(let e in y)delete r[e];let i={...t,...r};return Object.assign(i,{extend:e(i)})}}(y)})}},68294:function(e,t,n){"use strict";n.d(t,{I:function(){return nz}});var r=n(42980),i=n(3458),o=n(76384),s=n(94540),a=n(94973),c=n(21693),u=n(87815),l=n(18882),d=n(87332),f=n(66257),h=n(82600),p=n(65459);async function b(e,t){let{blockNumber:n,blockTag:b,coinType:m,name:y,gatewayUrls:w,strict:g}=t,{chain:v}=e,A=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.L)({blockNumber:n,chain:v,contract:"ensUniversalResolver"})})(),x=v?.ensTlds;if(x&&!x.some(e=>y.endsWith(e)))return null;let C=null!=m?[(0,d.V)(y),BigInt(m)]:[(0,d.V)(y)];try{let t=(0,o.R)({abi:r.X$,functionName:"addr",args:C}),s={address:A,abi:r.k3,functionName:"resolveWithGateways",args:[(0,c.NC)((0,f.T)(y)),t,w??[l.M]],blockNumber:n,blockTag:b},u=(0,h.s)(e,p.L,"readContract"),d=await u(s);if("0x"===d[0])return null;let m=(0,i.k)({abi:r.X$,args:C,functionName:"addr",data:d[0]});if("0x"===m||"0x00"===(0,a.f)(m))return null;return m}catch(e){if(g)throw e;if((0,u.c)(e))return null;throw e}}var m=n(16470),y=n(42557);async function w(e,t){let{blockNumber:n,blockTag:r,name:i}=t,{chain:o}=e,a=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!o)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.L)({blockNumber:n,chain:o,contract:"ensUniversalResolver"})})(),u=o?.ensTlds;if(u&&!u.some(e=>i.endsWith(e)))throw Error(`${i} is not a valid ENS TLD (${u?.join(", ")}) for chain "${o.name}" (id: ${o.id}).`);let[l]=await (0,h.s)(e,p.L,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,c.NC)((0,f.T)(i))],blockNumber:n,blockTag:r});return l}var g=n(35271),v=n(73501),A=n(4832),x=n(99632),C=n(21028),E=n(86868),k=n(2445);async function I(e,t){let{account:n=e.account,blockNumber:r,blockTag:i="latest",blobs:o,data:s,gas:a,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p,...b}=t,m=n?(0,A.T)(n):void 0;try{(0,k.F)(t);let n="bigint"==typeof r?(0,c.eC)(r):void 0,y=e.chain?.formatters?.transactionRequest?.format,w=(y||E.tG)({...(0,C.K)(b,{format:y}),from:m?.address,blobs:o,data:s,gas:a,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p}),g=await e.request({method:"eth_createAccessList",params:[w,n||i]});return{accessList:g.accessList,gasUsed:BigInt(g.gasUsed)}}catch(n){throw(0,x.P)(n,{...t,account:m,chain:e.chain})}}function P(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:i,transport:o})=>{"success"===i&&t===e&&(n[r]=o.request)}),t=>n[t]||e.request}async function B(e){let t=P(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var O=n(71878),S=n(39230);class M extends S.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var R=n(56728),T=n(27064),N=n(40959),F=n(90929),U=n(40928),D=n(77804);let q="/docs/contract/encodeEventTopics";function G(e){let{abi:t,eventName:n,args:r}=e,i=t[0];if(n){let e=(0,D.mE)({abi:t,name:n});if(!e)throw new O.mv(n,{docsPath:q});i=e}if("event"!==i.type)throw new O.mv(void 0,{docsPath:q});let o=(0,U.t)(i),s=(0,N.n)(o),a=[];if(r&&"inputs"in i){let e=i.inputs?.filter(e=>
1539"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(a=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>L({param:e,value:t[n][i]})):void 0!==t[n]&&null!==t[n]?L({param:e,value:t[n]}):null)??[])}return[s,...a]}function L({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,T.w)((0,R.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new M(e.type);return(0,F.E)([e],[t])}async function j(e,t){let{address:n,abi:r,args:i,eventName:o,fromBlock:s,strict:a,toBlock:u}=t,l=P(e,{method:"eth_newFilter"}),d=o?G({abi:r,args:i,eventName:o}):void 0,f=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof s?(0,c.eC)(s):s,toBlock:"bigint"==typeof u?(0,c.eC)(u):u,topics:d}]});return{abi:r,args:i,eventName:o,id:f,request:l(f),strict:!!a,type:"event"}}async function z(e,{address:t,args:n,event:r,events:i,fromBlock:o,strict:s,toBlock:a}={}){let u=i??(r?[r]:void 0),l=P(e,{method:"eth_newFilter"}),d=[];u&&(d=[u.flatMap(e=>G({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,c.eC)(o):o,toBlock:"bigint"==typeof a?(0,c.eC)(a):a,...d.length?{topics:d}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:o,id:f,request:l(f),strict:!!s,toBlock:a,type:"event"}}async function Q(e){let t=P(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var W=n(65573),$=n(39803),_=n(45008),H=n(39868),K=n(30838);async function V({hash:e,signature:t}){let r=(0,_.v)(e)?e:(0,c.NC)(e),{secp256k1:i}=await Promise.resolve().then(n.bind(n,2347)),o=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:r,yParity:o}=t,s=Z(Number(o??r));return new i.Signature((0,K.y_)(e),(0,K.y_)(n)).addRecoveryBit(s)}let e=(0,_.v)(t)?t:(0,c.NC)(t);if(65!==(0,H.d)(e))throw Error("invalid signature length");let n=Z((0,K.ly)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1);return`0x${o}`}function Z(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 J({hash:e,signature:t}){return function(e){let t=(0,T.w)(`0x${e.substring(4)}`).substring(26);return(0,$.x)(`0x${t}`)}(await V({hash:e,signature:t}))}var Y=n(69809),X=n(48379);async function ee(e){let{authorization:t,signature:n}=e;return J({hash:function(e){let{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,o=(0,T.w)((0,Y.SM)(["0x05",(0,X.LV)([t?(0,c.eC)(t):"0x",i,n?(0,c.eC)(n):"0x"])]));return"bytes"===r?(0,R.nr)(o):o}(t),signature:n??t})}var et=n(79352),en=n(32421),er=n(44818);class ei extends S.G{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:o,gasPrice:s,maxFeePerGas:a,maxPriorityFeePerGas:c,nonce:u,to:l,value:d}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,er.xr)({from:t?.address,to:l,value:void 0!==d&&`${(0,et.d)(d)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==s&&`${(0,en.o)(s)} gwei`,maxFeePerGas:void 0!==a&&`${(0,en.o)(a)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,en.o)(c)} gwei`,nonce:u})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var eo=n(40009),es=n(36074),ea=n(19983),ec=n(77451),eu=n(3891),el=n(31742),ed=n(84161),ef=n(36739),eh=n(68047),ep=n(85933),eb=n(85716),em=n(74714),ey=n(13438);let ew=["blobVersionedHashes","chainId","fees","gas","nonce","type"],eg=new Map;async function ev(e,t){let n,r;let{account:i=e.account,blobs:o,chain:s,gas:a,kzg:c,nonce:u,nonceManager:l,parameters:d=ew,type:f}=t,p=i?(0,A.T)(i):i,b={...t,...p?{from:p?.address}:{}};async function m(){return n||(n=await (0,h.s)(e,eu.Q,"getBlock")({blockTag:"latest"}))}async function y(){return r||(s?s.id:void 0!==t.chainId?t.chainId:r=await (0,h.s)(e,ey.L,"getChainId")({}))}if(d.includes("nonce")&&void 0===u&&p){if(l){let t=await y();b.nonce=await l.consume({address:p.address,chainId:t,client:e})}else b.nonce=await (0,h.s)(e,el.K,"getTransactionCount")({address:p.address,blockTag:"pending"})}if((d.includes("blobVersionedHashes")||d.includes("sidecars"))&&o&&c){let e=(0,ef.P)({blobs:o,kzg:c});if(d.includes("blobVersionedHashes")){let t=(0,ep.C)({commitments:e,to:"hex"});b.blobVersionedHashes=t}if(d.includes("sidecars")){let t=(0,eh.y)({blobs:o,commitments:e,kzg:c}),n=(0,eb.j)({blobs:o,commitments:e,proofs:t,to:"hex"});b.sidecars=n}}if(d.includes("chainId")&&(b.chainId=await y()),(d.includes("fees")||d.includes("type"))&&void 0===f)try{b.type=(0,em.l)(b)}catch{let t=eg.get(e.uid);if(void 0===t){let n=await m();t="bigint"==typeof n?.baseFeePerGas,eg.set(e.uid,t)}b.type=t?"eip1559":"legacy"}if(d.includes("fees")){if("legacy"!==b.type&&"eip2930"!==b.type){if(void 0===b.maxFeePerGas||void 0===b.maxPriorityFeePerGas){let n=await m(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await (0,ec.C)(e,{block:n,chain:s,request:b});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new ed.ld({maxPriorityFeePerGas:i});b.maxPriorityFeePerGas=i,b.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new ed.e5;if(void 0===t.gasPrice){let t=await m(),{gasPrice:n}=await (0,ec.C)(e,{block:t,chain:s,request:b,type:"legacy"});b.gasPrice=n}}}return d.includes("gas")&&void 0===a&&(b.gas=await (0,h.s)(e,ex,"estimateGas")({...b,account:p?{address:p.address,type:"json-rpc"}:p})),(0,k.F)(b),delete b.parameters,b}var eA=n(53002);async function ex(e,t){let{account:n=e.account}=t,r=n?(0,A.T)(n):void 0;try{let{accessList:n,authorizationList:o,blobs:s,blobVersionedHashes:a,blockNumber:u,blockTag:l,data:d,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:b,maxPriorityFeePerGas:m,nonce:y,value:w,stateOverride:g,...v}=await ev(e,{...t,parameters:r?.type==="local"?void 0:["blobVersionedHashes"]}),A=("bigint"==typeof u?(0,c.eC)(u):void 0)||l,x=(0,ea.mF)(g),I=await (async()=>v.to?v.to:o&&o.length>0?await ee({authorization:o[0]}).catch(()=>{throw new S.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,k.F)(t);let P=e.chain?.formatters?.transactionRequest?.format,B=(P||E.tG)({...(0,C.K)(v,{format:P}),from:r?.address,accessList:n,authorizationList:o,blobs:s,blobVersionedHashes:a,data:d,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:b,maxPriorityFeePerGas:m,nonce:y,to:I,value:w});function i(t){let{block:n,request:r,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[r,n??e.experimental_blockTag??"latest",i]:n?[r,n]:[r]})}
1539let O=BigInt(await i({block:A,request:B,rpcStateOverride:x}));if(o){let t=await (0,eA.s)(e,{address:B.from}),n=await Promise.all(o.map(async e=>{let{address:n}=e,o=await i({block:A,request:{authorizationList:void 0,data:d,from:r?.address,to:n,value:(0,c.eC)(t)},rpcStateOverride:x}).catch(()=>100000n);return 2n*BigInt(o)}));O+=n.reduce((e,t)=>e+t,0n)}return O}catch(n){throw function(e,{docsPath:t,...n}){return new ei((()=>{let t=(0,es.k)(e,n);return t instanceof eo.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:r,chain:e.chain})}}async function eC(e,t){let{abi:n,address:r,args:i,functionName:s,dataSuffix:a,...c}=t,u=(0,o.R)({abi:n,args:i,functionName:s});try{return await (0,h.s)(e,ex,"estimateGas")({data:`${u}${a?a.replace("0x",""):""}`,to:r,...c})}catch(t){let e=c.account?(0,A.T)(c.account):void 0;throw(0,W.S)(t,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:s,sender:e?.address})}}var eE=n(17976);async function ek(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}let eI=new Map,eP=new Map;async function eB(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let r=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,eI),r=t(e,eP);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(t),i=r.response.get();if(i&&n>0&&Date.now()-i.created.getTime()<n)return i.data;let o=r.promise.get();o||(o=e(),r.promise.set(o));try{let e=await o;return r.response.set({created:new Date,data:e}),e}finally{r.promise.clear()}}let eO=e=>`blockNumber.${e}`;async function eS(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await eB(()=>e.request({method:"eth_blockNumber"}),{cacheKey:eO(e.uid),cacheTime:t}))}async function eM(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let i;let o=void 0!==n?(0,c.eC)(n):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]},{dedupe:!!o}),(0,K.ly)(i)}var eR=n(92895),eT=n(27955),eN=n(99851),eF=n(29580);let eU="/docs/contract/decodeEventLog";function eD(e){let{abi:t,data:n,strict:r,topics:i}=e,o=r??!0,[s,...a]=i;if(!s)throw new O.FM({docsPath:eU});let c=t.find(e=>"event"===e.type&&s===(0,N.n)((0,U.t)(e)));if(!(c&&"name"in c)||"event"!==c.type)throw new O.lC(s,{docsPath:eU});let{name:u,inputs:l}=c,d=l?.some(e=>!("name"in e&&e.name)),f=d?[]:{},h=l.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<h.length;e++){let[t,n]=h[e],r=a[e];if(!r)throw new O.Gy({abiItem:c,param:t});f[d?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,eF.r)([e],t)||[])[0]}({param:t,value:r})}let p=l.filter(e=>!("indexed"in e&&e.indexed));if(p.length>0){if(n&&"0x"!==n)try{let e=(0,eF.r)(p,n);if(e){if(d)for(let t=0;t<l.length;t++)f[t]=f[t]??e.shift();else for(let t=0;t<p.length;t++)f[p[t].name]=e[t]}}catch(e){if(o){if(e instanceof O.xB||e instanceof eN.lQ)throw new O.SM({abiItem:c,data:n,params:p,size:(0,H.d)(n)});throw e}}else if(o)throw new O.SM({abiItem:c,data:"0x",params:p,size:0})}return{eventName:u,args:Object.values(f).length>0?f:void 0}}function eq(e){let{abi:t,args:n,logs:r,strict:i=!0}=e,o=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return r.map(e=>{try{let r=t.find(t=>"event"===t.type&&e.topics[0]===(0,N.n)(t));if(!r)return null;let s=eD({...e,abi:[r],strict:i});if(o&&!o.includes(s.eventName)||!function(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function i(e,t,n){try{if("address"===e.type)return(0,eT.E)(t,n);if("string"===e.type||"bytes"===e.type)return(0,T.w)((0,R.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 o=n[r];return!!o&&(Array.isArray(e)?e:[e]).some(e=>i(o,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 o=n.find(t=>t.name===e);return!!o&&(Array.isArray(r)?r:[r]).some(n=>i(o,n,t[e]))})}({args:s.args,inputs:r.inputs,matchArgs:n}))return null;return{...s,...e}}catch(r){let t,n;if(r instanceof O.lC)return null;if(r instanceof O.SM||r instanceof O.Gy){if(i)return null;t=r.abiItem.name,n=r.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:n?[]:{},eventName:t}}}
1539).filter(Boolean)}var eG=n(37380);async function eL(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:o,events:s,args:a,strict:u}={}){let l=s??(o?[o]:void 0),d=[];l&&(d=[l.flatMap(e=>G({abi:[e],eventName:e.name,args:s?void 0:a}))],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,c.eC)(r):r,toBlock:"bigint"==typeof i?(0,c.eC)(i):i}]})).map(e=>(0,eG.U)(e));return l?eq({abi:l,args:a,logs:f,strict:u??!1}):f}async function ej(e,t){let{abi:n,address:r,args:i,blockHash:o,eventName:s,fromBlock:a,toBlock:c,strict:u}=t,l=s?(0,D.mE)({abi:n,name:s}):void 0,d=l?void 0:n.filter(e=>"event"===e.type);return(0,h.s)(e,eL,"getLogs")({address:r,args:i,blockHash:o,event:l,events:d,fromBlock:a,toBlock:c,strict:u})}class ez extends S.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 eQ(e,t){let{address:n,factory:r,factoryData:i}=t;try{let[t,o,s,a,c,u,l]=await (0,h.s)(e,p.L,"readContract")({abi:eW,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:o,version:s,chainId:Number(a),verifyingContract:c,salt:u},extensions:l,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new ez({address:n});throw e}}let eW=[{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 e$(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){var o;let s="bigint"==typeof n?(0,c.eC)(n):void 0;return{baseFeePerGas:(o=await e.request({method:"eth_feeHistory",params:[(0,c.eC)(t),s||r,i]},{dedupe:!!s})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:o.gasUsedRatio,oldestBlock:BigInt(o.oldestBlock),reward:o.reward?.map(e=>e.map(e=>BigInt(e)))}}async function e_(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 i=r.map(e=>(0,eG.U)(e));return"abi"in t&&t.abi?eq({abi:t.abi,logs:i,strict:n}):i}async function eH(e,{filter:t}){let n=t.strict??!1,r=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,eG.U)(e));return t.abi?eq({abi:t.abi,logs:r,strict:n}):r}var eK=n(75188);async function eV(e,{address:t,blockNumber:n,blockTag:r,storageKeys:i}){var o;let s=void 0!==n?(0,c.eC)(n):void 0;return{...o=await e.request({method:"eth_getProof",params:[t,i,s||(r??"latest")]}),balance:o.balance?BigInt(o.balance):void 0,nonce:o.nonce?(0,K.ly)(o.nonce):void 0,storageProof:o.storageProof?o.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function eZ(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){let o=void 0!==n?(0,c.eC)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,o||r]})}var eJ=n(52017);async function eY(e,{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:o}){let s=r||"latest",a=void 0!==n?(0,c.eC)(n):void 0,u=null;if(i?u=await e.request({method:"eth_getTransactionByHash",params:[i]},{dedupe:!0}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,c.eC)(o)]},{dedupe:!0}):(a||s)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[a||s,(0,c.eC)(o)]},{dedupe:!!a})),!u)throw new er.Bh({blockHash:t,blockNumber:n,blockTag:s,hash:i,index:o});return(e.chain?.formatters?.transaction?.format||eJ.Tr)(u)}async function eX(e,{hash:t,transactionReceipt:n}){let[r,i]=await Promise.all([(0,h.s)(e,eS,"getBlockNumber")({}),t?(0,h.s)(e,eY,"getTransaction")({hash:t}):void 0]),o=n?.blockNumber||i?.blockNumber;return o?r-o+1n:0n}var e0=n(3324);async function e1(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new er.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||e0.fA)(n)}var e6=n(73105),e5=n(50017),e2=n(98458),e8=n(78723);async function e3(e,t){let{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:s,returnFullTransactions:a,traceTransfers:u,validation:l}=t;try{let t=[];for(let e of s){let n=e.blockOverrides?e5.o(e.blockOverrides):void 0,r=e.calls.map(e=>{let t=e.account?(0,A.T)(e.account):void 0,n=e.abi?(0,o.R)(e):e.data,r={...e,data:e.dataSuffix?(0,Y.zo)([n||"0x",e.dataSuffix]):n,from:e.from??t?.address};return(0,k.F)(r),(0,E.tG)(r)}),i=e.stateOverrides?(0,ea.mF)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:i})}let d="bigint"==typeof n?(0,c.eC)(n):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:a,traceTransfers:u,validation:l},d||r]}
1539)).map((e,t)=>({...(0,e8.Z)(e),calls:e.calls.map((e,n)=>{let{abi:r,args:o,functionName:a,to:c}=s[t].calls[n],u=e.error?.data??e.returnData,l=BigInt(e.gasUsed),d=e.logs?.map(e=>eG.U(e)),f="0x1"===e.status?"success":"failure",h=r&&"success"===f&&"0x"!==u?(0,i.k)({abi:r,data:u,functionName:a}):null,p=(()=>{let t;if("success"!==f&&(e.error?.data==="0x"?t=new O.wb:e.error&&(t=new e2.VQ(e.error)),t))return(0,W.S)(t,{abi:r??[],address:c??"0x",args:o,functionName:a??"<unknown>"})})();return{data:u,gasUsed:l,logs:d,status:f,..."success"===f?{result:h}:{error:p}}})}))}catch(t){let e=(0,es.k)(t,{});if(e instanceof eo.cj)throw t;throw e}}var e9=n(97198),e4=n(19651),e7=n(28609),te=n(82275),tt=n(94278),tn=n(96669),tr=n(49658),ti=n(25484);function to(e,t){if(tp(e)>t)throw new tw({givenSize:tp(e),maxSize:t})}let ts={zero:48,nine:57,A:65,F:70,a:97,f:102};function ta(e){return e>=ts.zero&&e<=ts.nine?e-ts.zero:e>=ts.A&&e<=ts.F?e-(ts.A-10):e>=ts.a&&e<=ts.f?e-(ts.a-10):void 0}function tc(e,t={}){let{dir:n="left"}=t,r=0;for(let t=0;t<e.length-1&&"0"===e["left"===n?t:e.length-t-1].toString();t++)r++;return"left"===n?e.slice(r):e.slice(0,e.length-r)}var tu=n(72337),tl=n(86011);let td=new TextDecoder,tf=new TextEncoder;function th(e,t={}){let{size:n}=t,r=e;n&&(tu.Yf(e,n),r=ti.eh(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);let o=i.length/2,s=new Uint8Array(o);for(let e=0,t=0;e<o;e++){let n=ta(i.charCodeAt(t++)),r=ta(i.charCodeAt(t++));if(void 0===n||void 0===r)throw new tn.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);s[e]=16*n+r}return s}function tp(e){return e.length}function tb(e,t={}){let{size:n}=t;void 0!==n&&to(e,n);let r=ti.xv(e,t);return ti.He(r,t)}function tm(e){return tc(e,{dir:"left"})}class ty extends tn.G{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class tw extends tn.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 tg extends tn.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:"Bytes.SliceOffsetOutOfBoundsError"})}}class tv extends tn.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 tA(e,t={}){let{as:n="string"==typeof e?"Hex":"Bytes"}=t,r=(0,tr.fr)(e instanceof Uint8Array?e:"string"==typeof e?th(e):e instanceof Uint8Array?e:new Uint8Array(e));return"Bytes"===n?r:ti.xv(r)}class tx 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 tC={checksum:new tx(8192)}.checksum,tE=/^0x[a-fA-F0-9]{40}$/;function tk(e,t={}){let{strict:n=!0}=t;if(!tE.test(e))throw new tB({address:e,cause:new tO});if(n){if(e.toLowerCase()===e)return;if(tI(e)!==e)throw new tB({address:e,cause:new tS})}}function tI(e){if(tC.has(e))return tC.get(e);tk(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=tA(function(e,t={}){let{size:n}=t,r=tf.encode(e);return"number"==typeof n?(to(r,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new tv({size:e.length,targetSize:r,type:"Bytes"});let i=new Uint8Array(r);for(let t=0;t<r;t++){let o="right"===n;i[o?t:r-t-1]=e[o?t:e.length-t-1]}return i}(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 i=`0x${r.join("")}`;return tC.set(e,i),i}function tP(e,t={}){let{strict:n=!0}=t??{};try{return tk(e,{strict:n}),!0}catch{return!1}}class tB extends tn.G{constructor({address:e,cause:t}){super(`Address "${e}
1539" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class tO extends tn.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 tS extends tn.G{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function tM(e){let t=!0,n="",r=0,i="",o=!1;for(let s=0;s<e.length;s++){let a=e[s];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t){if(0===r){if(" "===a&&["event","function","error",""].includes(i))i="";else if(i+=a,")"===a){o=!0;break}continue}if(" "===a){","!==e[s-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=a,n+=a}}if(!o)throw new tn.G("Unable to normalize signature.");return i}function tR(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,te.cK)(e);else{let n=(0,e7.D)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!(0,e4.N0)(r)){t=(0,te.cK)(r,n);break}}}if(!t)throw new e9.a_({signature:e});return t}(e):e;return{...r,...n?{hash:tN(r)}:{}}}function tT(e){return ti.tP(tN(e),0,4)}function tN(e){return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:tA(ti.mL(tM("string"==typeof e?e:tt.t(e))))}class tF extends tn.G{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${tM(tt.t(e.abiItem))}\`, and`,`\`${t.type}\` in \`${tM(tt.t(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 tU extends tn.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"})}}var tD=n(90004),tq=n(67869);let tG=/^(.*)\[([0-9]*)\]$/,tL=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,tj=/^(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)?$/,tz=2n**256n-1n;function tQ(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=ti.dp(i)}let n=[],r=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:s,encoded:a}=e[o];s?(n.push(ti.xS(t+i,{size:32})),r.push(a),i+=ti.dp(a)):n.push(a)}return ti.zo(...n,...r)}function tW(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function t$(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(t$);let n=tW(e.type);return!!(n&&t$({...e,type:n[1]}))}let t_={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new tV({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new tK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new tH({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new tH({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class tH extends tn.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class tK extends tn.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class tV extends tn.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function tZ(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new t5({expectedLength:e.length,givenLength:t.length});let i=tQ(function({checksumAddress:e,parameters:t,values:n}){let r=[];for(let i=0;i<t.length;i++)r.push(function e({checksumAddress:t=!1,parameter:n,value:r}){let i=tW(n.type);if(i){let[o,s]=i;return function(t,n){let{checksumAddress:r,length:i,parameter:o}=n,s=null===i;if(!Array.isArray(t))throw new t2(t);if(!s&&t.length!==i)throw new t1({expectedLength:i,givenLength:t.length,type:`${o.type}[${i}]`});let a=!1,c=[];for(let n=0;n<t.length;n++){let i=e({checksumAddress:r,parameter:o,value:t[n]});i.dynamic&&(a=!0),c.push(i)}if(s||a){let e=tQ(c);if(s){let t=ti.xS(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?ti.zo(t,e):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:ti.zo(...c.map(({encoded:e})=>e))}}(r,{checksumAddress:t,length:o,parameter:{...n,type:s}})}if("tuple"===n.type)return function(t,n){let{checksumAddress:r,parameter:i}=n,o=!1,s=[];for(let n=0;n<i.components.length;n++){let a=i.components[n],c=Array.isArray(t)?n:a.name,u=e({checksumAddress:r,parameter:a,value:t[c]});s.push(u),u.dynamic&&(o=!0)}return{dynamic:o,encoded:o?tQ(s):ti.zo(...s.map(({encoded:e})=>e))}}(r,{checksumAddress:t,parameter:n});if("address"===n.type)return function(e,t){let{checksum:n=!1}=t;return tk(e,{strict:n}),{dynamic:!1,encoded:ti.Q_(e.toLowerCase())}}(r,{checksum:t});if("bool"===n.type)return function(e){if("boolean"!=typeof e)throw new tn.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:ti.Q_(ti.O3(e))}}(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){let e=n.type.startsWith("int"),[,,t="256"]=tj.exec(n.type)??[];return function(e,{signed:t,size:n}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new ti.J5({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:ti.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=ti.dp(e);if(!n){let t=e;return r%32!=0&&(t=ti.eh(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:ti.zo(ti.Q_(ti.xS(r,{size:32})),t)}}if(r!==Number.parseInt(n,10))throw new t6({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:ti.eh(e)}}(r,{type:n.type});if("string"===n.type)return function(e){let t=ti.mL(e),n=Math.ceil(ti.dp(t)/32),r=[];for(let e=0;e<n;e++)r.push(ti.eh(ti.tP(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:ti.zo(ti.eh(ti.xS(ti.dp(t),{size:32})),...r)}}(r);throw new t8(n.type)}({checksumAddress:e,parameter:t[i],value:n[i]}));return r}({checksumAddress:r,parameters:e,values:t}));return 0===i.length?"0x":i}function tJ(e,t){if(e.length!==t.length)throw new t5({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t[r];n.push(tJ.encode(i,o))}return ti.zo(...n)}function tY(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?function(e){let t=[];if("string"==typeof e){let n=(0,te.Q4)(e),r=n.length;for(let e=0;e<r;e++)t.push((0,te.C$)(n[e],{modifiers:e4.LY}))}else{let n=(0,e7.D)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if((0,e4.N0)(r))continue;let o=(0,te.Q4)(r),s=o.length;for(let e=0;e<s;e++)t.push((0,te.C$)(o[e],{modifiers:e4.LY,structs:n}
1539))}}if(0===t.length)throw new tD.$r({params:e});return t}(e):e}(tJ||(tJ={})).encode=function e(t,n,r=!1){if("address"===t)return tk(n),ti.Q_(n.toLowerCase(),r?32:0);if("string"===t)return ti.mL(n);if("bytes"===t)return n;if("bool"===t)return ti.Q_(ti.O3(n),r?32:1);let i=t.match(tj);if(i){let[e,t,o="256"]=i,s=Number.parseInt(o,10)/8;return ti.xS(n,{size:r?32:s,signed:"int"===t})}let o=t.match(tL);if(o){let[e,t]=o;if(Number.parseInt(t,10)!==(n.length-2)/2)throw new t6({expectedSize:Number.parseInt(t,10),value:n});return ti.eh(n,r?32:0)}let s=t.match(tG);if(s&&Array.isArray(n)){let[t,r]=s,i=[];for(let t=0;t<n.length;t++)i.push(e(r,n[t],!0));return 0===i.length?"0x":ti.zo(...i)}throw new t8(t)};class tX extends tn.G{constructor({data:e,parameters:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tq.P(t)})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class t0 extends tn.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class t1 extends tn.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 t6 extends tn.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${ti.dp(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class t5 extends tn.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch. 1540Expected length (parameters): ${e} 1541Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class t2 extends tn.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 t8 extends tn.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 t3(e,t={}){return tR(e,t)}let t9="0x0000000000000000000000000000000000000000";var t4=n(2432);async function t7(e,t){let{blockNumber:n,blockTag:r,calls:i,stateOverrides:s,traceAssetChanges:a,traceTransfers:c,validation:u}=t,l=t.account?(0,A.T)(t.account):void 0;if(a&&!l)throw new S.G("`account` is required when `traceAssetChanges` is true");let d=l?function(e,t){let{bytecode:n,args:r}=t;return ti.zo(n,e.inputs?.length&&r?.length?tZ(e.inputs,r):"0x")}(tR("constructor(bytes, bytes)"),{bytecode:t4.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:i=[],prepare:o=!0}=n??{},s=ti.Gu(t,{strict:!1}),a=e.filter(e=>s?"function"===e.type||"error"===e.type?tT(e)===ti.tP(t,0,4):"event"===e.type&&tN(e)===t:"name"in e&&e.name===t);if(0===a.length)throw new tU({name:t});if(1===a.length)return{...a[0],...o?{hash:tN(a[0])}:{}};for(let e of a)if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:tN(e)}:{}};continue}
vendor: 4,686 bytes, line 1541
1541if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return tP(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"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(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(r&&"inputs"in r&&r.inputs){let t=function e(t,n,r){for(let i in t){let o=t[i],s=n[i];if("tuple"===o.type&&"tuple"===s.type&&"components"in o&&"components"in s)return e(o.components,s.components,r[i]);let a=[o.type,s.type];if(a.includes("address")&&a.includes("bytes20")||(a.includes("address")&&a.includes("string")||a.includes("address")&&a.includes("bytes"))&&tP(r[i],{strict:!1}))return a}}(e.inputs,r.inputs,i);if(t)throw new tF({abiItem:e,type:t[0]},{abiItem:r,type:t[1]})}r=e}}let c=(()=>{if(r)return r;let[e,...t]=a;return{...e,overloads:t}})();if(!c)throw new tU({name:t});return{...c,...o?{hash:tN(c)}:{}}}(e,t,n);if("function"!==r.type)throw new tU({name:t,type:"function"});return r}([e,...n],e.name,{args:t[0]}):e,i=tT(r),o=t.length>0?tZ(r.inputs,t[0]):void 0;return o?ti.zo(i,o):i}(t3("function getBalance(address)"),[l.address])]}):void 0,f=a?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:n}=await I(e,{account:l.address,...t,data:t.abi?(0,o.R)(t):t.data});return n.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],h=await e3(e,{blockNumber:n,blockTag:r,blocks:[...a?[{calls:[{data:d}],stateOverrides:s},{calls:f.map((e,t)=>({abi:[t3("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:t9,nonce:t})),stateOverrides:[{address:t9,nonce:0}]}]:[],{calls:[...i,{}].map(e=>({...e,from:l?.address})),stateOverrides:s},...a?[{calls:[{data:d}]},{calls:f.map((e,t)=>({abi:[t3("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:t9,nonce:t})),stateOverrides:[{address:t9,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[t3("function decimals() returns (uint256)")],functionName:"decimals",from:t9,nonce:t})),stateOverrides:[{address:t9,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[t3("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:t9,nonce:t})),stateOverrides:[{address:t9,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[t3("function symbol() returns (string)")],functionName:"symbol",from:t9,nonce:t})),stateOverrides:[{address:t9,nonce:0}]}]:[]],traceTransfers:c,validation:u}),p=a?h[2]:h[0],[b,m,,y,w,g,v,x]=a?h:[],{calls:C,...E}=p,k=C.slice(0,-1)??[],P=[...b?.calls??[],...m?.calls??[]].map(e=>"success"===e.status?(0,K.y_)(e.data):null),B=[...y?.calls??[],...w?.calls??[]].map(e=>"success"===e.status?(0,K.y_)(e.data):null),O=(g?.calls??[]).map(e=>"success"===e.status?e.result:null),M=(x?.calls??[]).map(e=>"success"===e.status?e.result:null),R=(v?.calls??[]).map(e=>"success"===e.status?e.result:null),T=[];for(let[e,t]of B.entries()){let n=P[e];if("bigint"!=typeof t||"bigint"!=typeof n)continue;let r=O[e-1],i=M[e-1],o=R[e-1],s=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:f[e-1],decimals:o||r?Number(r??1):void 0,symbol:i??void 0};T.some(e=>e.token.address===s.address)||T.push({token:s,value:{pre:n,post:t,diff:t-n}})}return{assetChanges:T,block:E,results:k}}async function ne(e,t){let{abi:n,address:r,args:s,dataSuffix:a,functionName:c,...u}=t,l=u.account?(0,A.T)(u.account):e.account,d=(0,o.R)({abi:n,args:s,functionName:c});try{let{data:o}=await (0,h.s)(e,v.R,"call")({batch:!1,data:`${d}${a?a.replace("0x",""):""}`,to:r,...u,account:l}),f=(0,i.k)({abi:n,args:s,functionName:c,data:o||"0x"}),p=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:f,request:{abi:p,address:r,args:s,dataSuffix:a,functionName:c,...u,account:l}}}catch(e){throw(0,W.S)(e,{abi:n,address:r,args:s,docsPath:"/docs/contract/simulateContract",functionName:c,sender:l?.address})}}async function nt(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}let nn="0x6492649264926492649264926492649264926492649264926492649264926492";class nr extends tn.G{constructor(e){super(`Value \`${e}
vendor: 5,673 bytes, line 1541
1541\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function ni(e,t={}){let{recovered:n}=t;if(void 0===e.r||void 0===e.s||n&&void 0===e.yParity)throw new nc({signature:e});if(e.r<0n||e.r>tz)throw new nu({value:e.r});if(e.s<0n||e.s>tz)throw new nl({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new nd({value:e.yParity})}function no(e){if(130!==e.length&&132!==e.length)throw new na({signature:e});let t=BigInt(ti.tP(e,0,32)),n=BigInt(ti.tP(e,32,64)),r=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return ns(t)}catch{throw new nd({value:t})}})();return void 0===r?{r:t,s:n}:{r:t,s:n,yParity:r}}function ns(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new nf({value:e})}class na extends tn.G{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${ti.dp(ti.Dp(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class nc extends tn.G{constructor({signature:e}){super(`Signature \`${tl.P(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class nu extends tn.G{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class nl extends tn.G{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class nd extends tn.G{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class nf extends tn.G{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}let nh=tY("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function np(e){if("string"==typeof e){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==ti.tP(e,-32))throw new nb(e)}else ni(e.authorization)}class nb extends tn.G{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}var nm=n(12732);async function ny({address:e,authorization:t,signature:n}){return(0,eT.E)((0,$.K)(e),await ee({authorization:t,signature:n}))}var nw=n(2347);async function ng(e,t){let{address:n,hash:r,erc6492VerifierAddress:i=t.universalSignatureVerifierAddress??e.chain?.contracts?.erc6492Verifier?.address,multicallAddress:o=t.multicallAddress??e.chain?.contracts?.multicall3?.address}=t,s=(()=>{let e=t.signature;return(0,_.v)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?function({r:e,s:t,to:n="hex",v:r,yParity:i}){let o=(()=>{if(0===i||1===i)return i;if(r&&(27n===r||28n===r||r>=35n))return r%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),s=`0x${new nw.secp256k1.Signature((0,K.y_)(e),(0,K.y_)(t)).toCompactHex()}${0===o?"1b":"1c"}`;return"hex"===n?s:(0,R.nr)(s)}(e):(0,c.ci)(e)})();try{if(function(e){try{return np(e),!0}catch{return!1}}(s))return await nv(e,{...t,multicallAddress:o,signature:s});return await nA(e,{...t,verifierAddress:i,signature:s})}catch(e){try{if((0,eT.E)((0,$.K)(n),await J({hash:r,signature:s})))return!0}catch{}if(e instanceof nC)return!1;throw e}}async function nv(e,t){let{address:n,blockNumber:i,blockTag:s,hash:a,multicallAddress:u}=t,{authorization:l,data:d,signature:f,to:b}=function(e){np(e);let t=ti.He(ti.tP(e,-64,-32)),n=ti.tP(e,-t-64,-64),r=ti.tP(e,0,-t-64),[i,o,s]=function(e,t,n={}){let{as:r="Array",checksumAddress:i=!1}=n,o="string"==typeof t?th(t):t,s=function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(t_);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}(o);if(0===tp(o)&&e.length>0)throw new t0;if(tp(o)&&32>tp(o))throw new tX({data:"string"==typeof t?t:ti.xv(t),parameters:e,size:tp(o)});let a=0,c="Array"===r?[]:{};for(let t=0;t<e.length;++t){let n=e[t];s.setPosition(a);let[o,u]=function e(t,n,r){let{checksumAddress:i,staticPosition:o}=r,s=tW(n.type);if(s){let[r,a]=s;return function(t,n,r){let{checksumAddress:i,length:o,staticPosition:s}=r;if(!o){let r=s+tb(t.readBytes(32)),o=r+32;t.setPosition(r);let a=tb(t.readBytes(32)),c=t$(n),u=0,l=[];for(let r=0;r<a;++r){t.setPosition(o+(c?32*r:u));let[s,a]=e(t,n,{checksumAddress:i,staticPosition:o});u+=a,l.push(s)}return t.setPosition(s+32),[l,32]}if(t$(n)){let r=s+tb(t.readBytes(32)),a=[];for(let s=0;s<o;++s){t.setPosition(r+32*s);let[o]=e(t,n,{checksumAddress:i,staticPosition:r});a.push(o)}return t.setPosition(s+32),[a,32]}let a=0,c=[];for(let r=0;r<o;++r){let[r,o]=e(t,n,{checksumAddress:i,staticPosition:s+a});a+=o,c.push(r)}return[c,a]}(t,{...n,type:a},{checksumAddress:i,length:r,staticPosition:o})}if("tuple"===n.type)return function(t,n,r){let{checksumAddress:i,staticPosition:o}
1541=r,s=0===n.components.length||n.components.some(({name:e})=>!e),a=s?[]:{},c=0;if(t$(n)){let r=o+tb(t.readBytes(32));for(let o=0;o<n.components.length;++o){let u=n.components[o];t.setPosition(r+c);let[l,d]=e(t,u,{checksumAddress:i,staticPosition:r});c+=d,a[s?o:u?.name]=l}return t.setPosition(o+32),[a,32]}for(let r=0;r<n.components.length;++r){let u=n.components[r],[l,d]=e(t,u,{checksumAddress:i,staticPosition:o});a[s?r:u?.name]=l,c+=d}return[a,c]}(t,n,{checksumAddress:i,staticPosition:o});if("address"===n.type)return function(e,t={}){var n;let{checksum:r=!1}=t,i=e.readBytes(32);return[(n=ti.xv(function(e,t,n,r={}){let{strict:i}=r;!function(e,t){if("number"==typeof t&&t>0&&t>tp(e)-1)throw new tg({offset:t,position:"start",size:tp(e)})}(e,t);let o=e.slice(t,n);return i&&function(e,t,n){if("number"==typeof t&&"number"==typeof n&&tp(e)!==n-t)throw new tg({offset:n,position:"end",size:tp(e)})}(o,t,n),o}(i,-20)),r?tI(n):n),32]}(t,{checksum:i});if("bool"===n.type)return[function(e,t={}){let{size:n}=t,r=e;if(void 0!==n&&(to(r,n),r=tm(r)),r.length>1||r[0]>1)throw new ty(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=tb(e.readBytes(32));e.setPosition(n+t);let r=tb(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[ti.xv(i),32]}return[ti.xv(e.readBytes(Number.parseInt(i,10),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",10),i=e.readBytes(32);return[r>48?function(e,t={}){let{size:n}=t;void 0!==n&&to(e,n);let r=ti.xv(e,t);return ti.Gh(r,t)}(i,{signed:n}):tb(i,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=tb(e.readBytes(32));e.setPosition(t+n);let r=tb(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=function(e,t={}){let{size:n}=t,r=e;return void 0!==n&&(to(r,n),r=tc(r,{dir:"right"})),td.decode(r)}(tm(e.readBytes(r,32)));return e.setPosition(t+32),[i,32]}(t,{staticPosition:o});throw new t8(n.type)}(s,n,{checksumAddress:i,staticPosition:0});a+=u,"Array"===r?c.push(o):c[n.name??t]=o}return c}(nh,n);return{authorization:function(e,t={}){return"string"==typeof e.chainId?function(e){let{address:t,chainId:n,nonce:r}=e,i=function(e){if(void 0!==e.r&&void 0!==e.s)return function(e){let t=(()=>"string"==typeof e?no(e):e instanceof Uint8Array?no(ti.xv(e)):"string"==typeof e.r?function(e){let t=(()=>{let t=e.v?Number(e.v):void 0,n=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof n&&(n=ns(t)),"number"!=typeof n)throw new nd({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}(e):e.v?{r:e.r,s:e.s,yParity:ns(e.v)}:{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}})();return ni(t),t}(e)}(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}(e):{...e,...t.signature}}({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...s&&"0x"!==s?{data:s,to:o}:{}}}(t.signature);if(await (0,eR.C)(e,{address:n,blockNumber:i,blockTag:s})===(0,Y.SM)(["0xef0100",l.address]))return await nx(e,{address:n,blockNumber:i,blockTag:s,hash:a,signature:f});let m={address:l.address,chainId:Number(l.chainId),nonce:Number(l.nonce),r:(0,c.eC)(l.r,{size:32}),s:(0,c.eC)(l.s,{size:32}),yParity:l.yParity};if(!await ny({address:n,authorization:m}))throw new nC;let y=await (0,h.s)(e,p.L,"readContract")({...u?{address:u}:{code:t4.xd},authorizationList:[m],abi:r.F8,blockNumber:i,blockTag:"pending",functionName:"aggregate3",args:[[...d?[{allowFailure:!0,target:b??n,callData:d}]:[],{allowFailure:!0,target:n,callData:(0,o.R)({abi:r._A,functionName:"isValidSignature",args:[a,f]})}]]}),w=y[y.length-1]?.returnData;if(w?.startsWith("0x1626ba7e"))return!0;throw new nC}async function nA(e,t){let{address:n,factory:i,factoryData:s,hash:a,signature:c,verifierAddress:u,...l}=t,d=await (async()=>!i&&!s||function(e){try{return!function(e){if(ti.tP(e,-32)!==nn)throw new nr(e)}
vendor: 1,578 bytes, line 1541
1541(e),!0}catch{return!1}}(c)?c:function(e){let{data:t,signature:n,to:r}=e;return ti.zo(tZ(tY("address, bytes, bytes"),[r,t,n]),nn)}({data:s,signature:c,to:i}))(),f=u?{to:u,data:(0,o.R)({abi:r.MR,functionName:"isValidSig",args:[n,a,d]}),...l}:{data:(0,nm.w)({abi:r.MR,args:[n,a,d],bytecode:t4.de}),...l},{data:p}=await (0,h.s)(e,v.R,"call")(f).catch(e=>{if(e instanceof e2.cg)throw new nC;throw e});if((0,K.XA)(p??"0x0"))return!0;throw new nC}async function nx(e,t){let{address:n,blockNumber:i,blockTag:o,hash:s,signature:a}=t;if((await (0,h.s)(e,p.L,"readContract")({address:n,abi:r._A,args:[s,a],blockNumber:i,blockTag:o,functionName:"isValidSignature"}).catch(e=>{if(e instanceof e2.uq)throw new nC;throw e})).startsWith("0x1626ba7e"))return!0;throw new nC}class nC extends Error{}var nE=n(1498);async function nk(e,{address:t,message:n,factory:r,factoryData:i,signature:o,...s}){return ng(e,{address:t,factory:r,factoryData:i,hash:(0,nE.r)(n),signature:o,...s})}var nI=n(71513);async function nP(e,t){let{address:n,factory:r,factoryData:i,signature:o,message:s,primaryType:a,types:c,domain:u,...l}=t;return ng(e,{address:n,factory:r,factoryData:i,hash:(0,nI.Jv)({message:s,primaryType:a,types:c,domain:u}),signature:o,...l})}var nB=n(71492),nO=n(87162),nS=n(70955),nM=n(36063),nR=n(71891),nT=n(62468);function nN(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:i,poll:o,pollingInterval:s=e.pollingInterval}){let a;return(void 0!==o?o:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1541onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let o=(0,nR.P)(["watchBlockNumber",e.uid,t,n,s]);return(0,nO.N7)(o,{onBlockNumber:r,onError:i},r=>(0,nT.$)(async()=>{try{let t=await (0,h.s)(e,eS,"getBlockNumber")({cacheTime:0});if(void 0!==a){if(t===a)return;if(t-a>1&&n)for(let e=a+1n;e<t;e++)r.onBlockNumber(e,a),a=e}(void 0===a||t>a)&&(r.onBlockNumber(t,a),a=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:s}))})():(()=>{let o=(0,nR.P)(["watchBlockNumber",e.uid,t,n]);return(0,nO.N7)(o,{onBlockNumber:r,onError:i},t=>{let n=!0,r=()=>n=!1;return(async()=>{try{let i=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await i.subscribe({params:["newHeads"],onData(e){if(!n)return;let r=(0,K.y_)(e.result?.number);t.onBlockNumber(r,a),a=r},onError(e){t.onError?.(e)}});r=o,n||r()}catch(e){i?.(e)}})(),()=>r()})})()}async function nF(e,t){let n,r,i,o,s;let{checkReplacement:a=!0,confirmations:c=1,hash:u,onReplaced:l,retryCount:d=6,retryDelay:f=({count:e})=>200*~~(1<<e),timeout:p=18e4}=t,b=(0,nR.P)(["waitForTransactionReceipt",e.uid,u]),m=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,y=!1,{promise:w,resolve:g,reject:v}=(0,nS.n)(),A=p?setTimeout(()=>{s?.(),o?.(),v(new er.mc({hash:u}))},p):void 0;return o=(0,nO.N7)(b,{onReplaced:l,resolve:g,reject:v},async t=>{if((i=await (0,h.s)(e,e1,"getTransactionReceipt")({hash:u}).catch(()=>void 0))&&c<=1){clearTimeout(A),t.resolve(i),o?.();return}s=(0,h.s)(e,nN,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:m,async onBlockNumber(l){let p=e=>{clearTimeout(A),s?.(),e(),o?.()},b=l;if(!y)try{if(i){if(c>1&&(!i.blockNumber||b-i.blockNumber+1n<c))return;p(()=>t.resolve(i));return}if(a&&!n&&(y=!0,await (0,nM.J)(async()=>{(n=await (0,h.s)(e,eY,"getTransaction")({hash:u})).blockNumber&&(b=n.blockNumber)},{delay:f,retryCount:d}),y=!1),i=await (0,h.s)(e,e1,"getTransactionReceipt")({hash:u}),c>1&&(!i.blockNumber||b-i.blockNumber+1n<c))return;p(()=>t.resolve(i))}catch(o){if(o instanceof er.Bh||o instanceof er.Yb){if(!n){y=!1;return}try{r=n,y=!0;let o=await (0,nM.J)(()=>(0,h.s)(e,eu.Q,"getBlock")({blockNumber:b,includeTransactions:!0}),{delay:f,retryCount:d,shouldRetry:({error:e})=>e instanceof nB.f});y=!1;let s=o.transactions.find(({from:e,nonce:t})=>e===r.from&&t===r.nonce);if(!s||(i=await (0,h.s)(e,e1,"getTransactionReceipt")({hash:s.hash}),c>1&&(!i.blockNumber||b-i.blockNumber+1n<c)))return;let a="replaced";s.to===r.to&&s.value===r.value&&s.input===r.input?a="repriced":s.from===s.to&&0n===s.value&&(a="cancelled"),p(()=>{t.onReplaced?.({reason:a,replacedTransaction:r,transaction:s,transactionReceipt:i}),t.resolve(i)})}catch(e){p(()=>t.reject(e))}}else p(()=>t.reject(o))}}})}),w}var nU=n(48519);let nD=/^(?:(?<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)?/,nq=/(?: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 nG=n(87364);async function nL(e,t){let{address:n,domain:r,message:i,nonce:o,scheme:s,signature:a,time:c=new Date,...u}=t,l=function(e){let{scheme:t,statement:n,...r}=e.match(nD)?.groups??{},{chainId:i,expirationTime:o,issuedAt:s,notBefore:a,requestId:c,...u}=e.match(nq)?.groups??{},l=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...i?{chainId:Number(i)}:{},...o?{expirationTime:new Date(o)}:{},...s?{issuedAt:new Date(s)}:{},...a?{notBefore:new Date(a)}:{},...c?{requestId:c}:{},...l?{resources:l}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}(i);if(!l.address||!function(e){let{address:t,domain:n,message:r,nonce:i,scheme:o,time:s=new Date}=e;if(n&&r.domain!==n||i&&r.nonce!==i||o&&r.scheme!==o||r.expirationTime&&s>=r.expirationTime||r.notBefore&&s<r.notBefore)return!1;try{if(!r.address||!(0,nG.U)(r.address,{strict:!1})||t&&!(0,eT.E)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:l,nonce:o,scheme:s,time:c}))return!1;let d=(0,nE.r)(i);return ng(e,{address:l.address,hash:d,signature:a,...u})}async function nj(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}function nz(e){return{call:t=>(0,v.R)(e,t),createAccessList:t=>I(e,t),createBlockFilter:()=>B(e),createContractEventFilter:t=>j(e,t),createEventFilter:t=>z(e,t),createPendingTransactionFilter:()=>Q(e),estimateContractGas:t=>eC(e,t),estimateGas:t=>ex(e,t),getBalance:t=>(0,eA.s)(e,t),getBlobBaseFee:()=>ek(e),getBlock:t=>(0,eu.Q)(e,t),getBlockNumber:t=>
1541eS(e,t),getBlockTransactionCount:t=>eM(e,t),getBytecode:t=>(0,eR.C)(e,t),getChainId:()=>(0,ey.L)(e),getCode:t=>(0,eR.C)(e,t),getContractEvents:t=>ej(e,t),getEip712Domain:t=>eQ(e,t),getEnsAddress:t=>b(e,t),getEnsAvatar:t=>(0,m.r)(e,t),getEnsName:t=>(0,y.w)(e,t),getEnsResolver:t=>w(e,t),getEnsText:t=>(0,g.g)(e,t),getFeeHistory:t=>e$(e,t),estimateFeesPerGas:t=>(0,ec.X)(e,t),getFilterChanges:t=>e_(e,t),getFilterLogs:t=>eH(e,t),getGasPrice:()=>(0,eK.o)(e),getLogs:t=>eL(e,t),getProof:t=>eV(e,t),estimateMaxPriorityFeePerGas:t=>(0,eE._)(e,t),getStorageAt:t=>eZ(e,t),getTransaction:t=>eY(e,t),getTransactionConfirmations:t=>eX(e,t),getTransactionCount:t=>(0,el.K)(e,t),getTransactionReceipt:t=>e1(e,t),multicall:t=>(0,e6.A)(e,t),prepareTransactionRequest:t=>ev(e,t),readContract:t=>(0,p.L)(e,t),sendRawTransaction:t=>nj(e,t),simulate:t=>e3(e,t),simulateBlocks:t=>e3(e,t),simulateCalls:t=>t7(e,t),simulateContract:t=>ne(e,t),verifyHash:t=>ng(e,t),verifyMessage:t=>nk(e,t),verifySiweMessage:t=>nL(e,t),verifyTypedData:t=>nP(e,t),uninstallFilter:t=>nt(e,t),waitForTransactionReceipt:t=>nF(e,t),watchBlocks:t=>(function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:o,includeTransactions:s,poll:a,pollingInterval:c=e.pollingInterval}){let u,l,d,f;let p=void 0!==a?a:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1541onfig.type&&"ipc"!==e.transport.transports[0].config.type),b=s??!1;return p?(()=>{let s=(0,nR.P)(["watchBlocks",e.uid,t,n,r,b,c]);return(0,nO.N7)(s,{onBlock:i,onError:o},i=>(0,nT.$)(async()=>{try{let r=await (0,h.s)(e,eu.Q,"getBlock")({blockTag:t,includeTransactions:b});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,h.s)(e,eu.Q,"getBlock")({blockNumber:t,includeTransactions:b});i.onBlock(n,u),u=n}}(u?.number==null||"pending"===t&&r?.number==null||null!==r.number&&r.number>u.number)&&(i.onBlock(r,u),u=r)}catch(e){i.onError?.(e)}},{emitOnBegin:r,interval:c}))})():(l=!0,d=!0,f=()=>l=!1,(async()=>{try{r&&(0,h.s)(e,eu.Q,"getBlock")({blockTag:t,includeTransactions:b}).then(e=>{l&&d&&(i(e,void 0),d=!1)}).catch(o);let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await n.subscribe({params:["newHeads"],async onData(t){if(!l)return;let n=await (0,h.s)(e,eu.Q,"getBlock")({blockNumber:t.result?.number,includeTransactions:b}).catch(()=>{});l&&(i(n,u),d=!1,u=n)},onError(e){o?.(e)}});f=s,l||f()}catch(e){o?.(e)}})(),()=>f())})(e,t),watchBlockNumber:t=>nN(e,t),watchContractEvent:t=>(function(e,t){let{abi:n,address:r,args:i,batch:o=!0,eventName:s,fromBlock:a,onError:c,onLogs:u,poll:l,pollingInterval:d=e.pollingInterval,strict:f}=t;return(void 0!==l?l:"bigint"==typeof a||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1541onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let t=f??!1,l=(0,nR.P)(["watchContractEvent",r,i,o,e.uid,s,d,t,a]);return(0,nO.N7)(l,{onLogs:u,onError:c},c=>{let u,l;void 0!==a&&(u=a-1n);let f=!1,p=(0,nT.$)(async()=>{if(!f){try{l=await (0,h.s)(e,j,"createContractEventFilter")({abi:n,address:r,args:i,eventName:s,strict:t,fromBlock:a})}catch{}f=!0;return}try{let a;if(l)a=await (0,h.s)(e,e_,"getFilterChanges")({filter:l});else{let o=await (0,h.s)(e,eS,"getBlockNumber")({});a=u&&u<o?await (0,h.s)(e,ej,"getContractEvents")({abi:n,address:r,args:i,eventName:s,fromBlock:u+1n,toBlock:o,strict:t}):[],u=o}if(0===a.length)return;if(o)c.onLogs(a);else for(let e of a)c.onLogs([e])}catch(e){l&&e instanceof nU.yR&&(f=!1),c.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{l&&await (0,h.s)(e,nt,"uninstallFilter")({filter:l}),p()}})})():(()=>{let t=(0,nR.P)(["watchContractEvent",r,i,o,e.uid,s,d,f??!1]),a=!0,l=()=>a=!1;return(0,nO.N7)(t,{onLogs:u,onError:c},t=>((async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),c=s?G({abi:n,eventName:s,args:i}):[],{unsubscribe:u}=await o.subscribe({params:["logs",{address:r,topics:c}],onData(e){if(!a)return;let r=e.result;try{let{eventName:e,args:i}=eD({abi:n,data:r.data,topics:r.topics,strict:f}),o=(0,eG.U)(r,{args:i,eventName:e});t.onLogs([o])}catch(o){let e,n;if(o instanceof O.SM||o instanceof O.Gy){if(f)return;e=o.abiItem.name,n=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,eG.U)(r,{args:n?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});l=u,a||l()}catch(e){c?.(e)}})(),()=>l()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:i,events:o,fromBlock:s,onError:a,onLogs:c,poll:u,pollingInterval:l=e.pollingInterval,strict:d}){let f,p;let b=void 0!==u?u:"bigint"==typeof s||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1541onfig.type&&"ipc"!==e.transport.transports[0].config.type),m=d??!1;return b?(()=>{let u=(0,nR.P)(["watchEvent",t,n,r,e.uid,i,l,s]);return(0,nO.N7)(u,{onLogs:c,onError:a},a=>{let c,u;void 0!==s&&(c=s-1n);let d=!1,f=(0,nT.$)(async()=>{if(!d){try{u=await (0,h.s)(e,z,"createEventFilter")({address:t,args:n,event:i,events:o,strict:m,fromBlock:s})}catch{}d=!0;return}try{let s;if(u)s=await (0,h.s)(e,e_,"getFilterChanges")({filter:u});else{let r=await (0,h.s)(e,eS,"getBlockNumber")({});s=c&&c!==r?await (0,h.s)(e,eL,"getLogs")({address:t,args:n,event:i,events:o,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===s.length)return;if(r)a.onLogs(s);else for(let e of s)a.onLogs([e])}catch(e){u&&e instanceof nU.yR&&(d=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:l});return async()=>{u&&await (0,h.s)(e,nt,"uninstallFilter")({filter:u}),f()}})})():(f=!0,p=()=>f=!1,(async()=>{try{let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),s=o??(i?[i]:void 0),u=[];s&&(u=[s.flatMap(e=>G({abi:[e],eventName:e.name,args:n}))],i&&(u=u[0]));let{unsubscribe:l}=await r.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!f)return;let t=e.result;try{let{eventName:e,args:n}=eD({abi:s??[],data:t.data,topics:t.topics,strict:m}),r=(0,eG.U)(t,{args:n,eventName:e});c([r])}catch(i){let e,n;if(i instanceof O.SM||i instanceof O.Gy){if(d)return;e=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,eG.U)(t,{args:n?[]:{},eventName:e});c([r])}},onError(e){a?.(e)}});p=l,f||p()}catch(e){a?.(e)}})(),()=>p())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:o=e.pollingInterval}){let s,a;return(void 0!==i?i:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{let i=(0,nR.P)(["watchPendingTransactions",e.uid,t,o]);return(0,nO.N7)(i,{onTransactions:r,onError:n},n=>{let r;let i=(0,nT.$)(async()=>{try{if(!r)try{r=await (0,h.s)(e,Q,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let o=await (0,h.s)(e,e_,"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,h.s)(e,nt,"uninstallFilter")({filter:r}),i()}})})():(s=!0,a=()=>s=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!s)return;let t=e.result;r([t])},onError(e){n?.(e)}});a=t,s||a()}catch(e){n?.(e)}})(),()=>a())})(e,t)}}},51980:function(e,t,n){"use strict";n.d(t,{q:function(){return d}});var r=n(39230),i=n(20722),o=n(48519),s=n(21693);let a=new(n(46108)).k(8192);var c=n(36063),u=n(71891),l=n(5006);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:h=150,timeout:p,type:b},m){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:h,timeout:p,type:b},request:function(e,t={}){return async(n,l={})=>{let{dedupe:d=!1,methods:f,retryDelay:h=150,retryCount:p=3,uid:b}={...t,...l},{method:m}=n;if(f?.exclude?.includes(m)||f?.include&&!f.include.includes(m))throw new o.gS(Error("method not supported"),{method:m});let y=d?(0,s.$G)(`${b}.${(0,u.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(a.get(n))return a.get(n);let r=e().finally(()=>a.delete(n));return a.set(n,r),r}(()=>(0,c.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 i.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*h},retryCount:p,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 i.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:h,uid:(0,l.h)()}),value:m}}},35148:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var r=n(20722),i=n(39230);class o extends i.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"})}}var s=n(33668),a=n(33679),c=n(71891);let u={current:0,take(){return this.current++},reset(){this.current=0}};var l=n(51980);function d(e,t={}){let{batch:n,fetchFn:i,fetchOptions:d,key:f="http",methods:h,name:p="HTTP JSON-RPC",onFetchRequest:b,onFetchResponse:m,retryDelay:y,raw:w}=t;return({chain:g,retryCount:v,timeout:A})=>
vendor: 5,221 bytes, line 1541
1541{let{batchSize:x=1e3,wait:C=0}="object"==typeof n?n:{},E=t.retryCount??v,k=A??t.timeout??1e4,I=e||g?.rpcUrls.default.http[0];if(!I)throw new o;let P=function(e,t={}){return{async request(n){let{body:i,fetchFn:o=t.fetchFn??fetch,onRequest:s=t.onRequest,onResponse:l=t.onResponse,timeout:d=t.timeout??1e4}=n,f={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:h,method:p,signal:b}=f;try{let t;let n=await (0,a.F)(async({signal:t})=>{let n={...f,body:Array.isArray(i)?(0,c.P)(i.map(e=>({jsonrpc:"2.0",id:e.id??u.take(),...e}))):(0,c.P)({jsonrpc:"2.0",id:i.id??u.take(),...i}),headers:{"Content-Type":"application/json",...h},method:p||"POST",signal:b||(d>0?t:null)},r=new Request(e,n),a=await s?.(r,n)??{...n,url:e};return await o(a.url??e,a)},{errorInstance:new r.W5({body:i,url:e}),timeout:d,signal:!0});if(l&&await l(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:i,details:(0,c.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:i,cause:t,url:e})}}}}(I,{fetchFn:i,fetchOptions:d,onRequest:b,onResponse:m,timeout:k});return(0,l.q)({key:f,methods:h,name:p,async request({method:e,params:t}){let i={method:e,params:t},{schedule:o}=(0,s.S)({id:I,wait:C,shouldSplitBatch:e=>e.length>x,fn:e=>P.request({body:e}),sort:(e,t)=>e.id-t.id}),a=async e=>n?o(e):[await P.request({body:e})],[{error:c,result:u}]=await a(i);if(w)return{error:c,result:u};if(c)throw new r.bs({body:i,error:c,url:I});return u},retryCount:E,retryDelay:y,timeout:k,type:"http"},{fetchOptions:d,url:I})}}},42980:function(e,t,n){"use strict";n.d(t,{F8:function(){return r},MR:function(){return d},Wo:function(){return f},X$:function(){return u},Yi:function(){return i},_A:function(){return l},du:function(){return a},k3:function(){return s},nZ:function(){return c}});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"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],i=[{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:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],s=[...o,{name:"resolveWithGateways",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"}]}],a=[...o,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],c=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{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"}]}],l=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],d=[{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"}
1541],f=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}]},2432:function(e,t,n){"use strict";n.d(t,{NO:function(){return r},de:function(){return o},pG:function(){return i},xd:function(){return s}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b
154160405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
1541603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",s="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
1541150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},27943:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});let r=1},74736:function(e,t,n){"use strict";n.d(t,{zL:function(){return r}});let r=2n**256n-1n},28483:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return i},hZ:function(){return o}});
1541let 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."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},36238:function(e,t,n){"use strict";n.d(t,{Bd:function(){return o},Zn:function(){return i},ez:function(){return r}});let r={gwei:9,wei:18},i={ether:-9,wei:9},o={ether:-18,gwei:-9}},71878:function(e,t,n){"use strict";n.d(t,{CI:function(){return P},FM:function(){return m},Gy:function(){return k},KY:function(){return C},M4:function(){return d},MS:function(){return p},MX:function(){return v},Mi:function(){return S},S4:function(){return x},SM:function(){return E},Zh:function(){return h},cO:function(){return a},dh:function(){return I},eF:function(){return A},fM:function(){return s},fs:function(){return f},gr:function(){return l},hn:function(){return B},lC:function(){return y},mv:function(){return w},wM:function(){return O},wb:function(){return u},xB:function(){return c},xL:function(){return g},yP:function(){return b}});var r=n(40928),i=n(39868),o=n(39230);class s 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 a 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 c 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 u extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class l extends o.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 1542Expected length: ${e} 1543Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.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. 1544Expected length (params): ${e} 1545Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class h 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\`). 1546Cannot encode error result without knowing what the parameter types are. 1547Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class p extends o.G{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 1548Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class b extends o.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. 1549Make sure you are using the correct ABI and that the error exists on it. 1550You 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 m 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. 1551Make sure you are using the correct ABI and that the event exists on it. 1552You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class w extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 1553Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class g extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 1554Make 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. 1555Cannot decode function result without knowing what the parameter types are. 1556Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class A extends o.G{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 1557Make sure you are using the correct ABI and that the function exists on it. 1558You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x 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 C extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class E extends o.G{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data: ${t} (${i} 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=i}}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 I extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 1559Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class P extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 1560Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class B extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class O extends o.G{constructor(e){super(`"${e}" is not a valid definition type. 1561Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class S extends o.G{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},67333:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(39230);class i 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"})}}},21485:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(39230);class i extends r.G{constructor({address:e}){super(`Address "${e}
1561" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},39230:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});let r="2.37.5",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${r}`};class o extends Error{constructor(e,t={}){let n=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,s=t.cause instanceof o&&t.cause.docsPath||t.docsPath,a=i.getDocsUrl?.({...t,docsPath:s});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],...i.version?[`Version: ${i.version}`]:[]].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,"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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=s,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=r}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,n):n?null:t}(this,e)}}},45359:function(e,t,n){"use strict";n.d(t,{RX:function(){return s},cJ:function(){return c},m7:function(){return o},xd:function(){return a}});var r=n(27943),i=n(39230);class o extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class s extends i.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class a extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class c extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${r.l}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},71492:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(39230);class i 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"})}}},27878:function(e,t,n){"use strict";n.d(t,{hJ:function(){return s},mm:function(){return i},pZ:function(){return o}});var r=n(39230);class i extends r.G{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class o extends r.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class s extends r.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
1561" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},98458:function(e,t,n){"use strict";n.d(t,{cg:function(){return y},uq:function(){return w},Lu:function(){return g},Dk:function(){return v},Mo:function(){return A},VQ:function(){return x}});var r=n(4832),i=n(28483),o=n(49039),s=n(40928),a=n(71891);function c({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,a.P)(t[n]):t[n]}`).join(", ")})`}var u=n(77804),l=n(79352),d=n(32421),f=n(71878),h=n(39230),p=n(34626),b=n(44818),m=n(82983);class y extends h.G{constructor(e,{account:t,docsPath:n,chain:i,data:o,gas:s,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:h,value:m,stateOverride:y}){let w=t?(0,r.T)(t):void 0,g=(0,b.xr)({from:w?.address,to:h,value:void 0!==m&&`${(0,l.d)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:s,gasPrice:void 0!==a&&`${(0,d.o)(a)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:f});y&&(g+=` 1562${(0,p.Bj)(y)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",g].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class w extends h.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:o,sender:a}){let l=(0,u.mE)({abi:t,args:n,name:o}),d=l?c({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,s.t)(l,{includeName:!0}):void 0,h=(0,b.xr)({address:r&&(0,m.C)(r),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],h&&"Contract Call:",h].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=a}}class g extends h.G{constructor({abi:e,data:t,functionName:n,message:r}){let a,u,l,d,h;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:a}=u=(0,o.p)({abi:e,data:t});if("Error"===r)d=a[0];else if("Panic"===r){let[e]=a;d=i.$[e]}else{let e=n?(0,s.t)(n,{includeName:!0}):void 0,t=n&&a?c({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){a=e}else r&&(d=r);a instanceof f.yP&&(h=a.signature,l=[`Unable to decode signature "${h}" 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=${h}.`]),super(d&&"execution reverted"!==d||h?[`The contract function "${n}" reverted with the following ${h?"signature":"reason"}:`,d||h].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:l,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=u,this.raw=t,this.reason=d,this.signature=h}}class v extends h.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 A extends h.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 x extends h.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}}},99851:function(e,t,n){"use strict";n.d(t,{KD:function(){return s},T_:function(){return i},lQ:function(){return o}});var r=n(39230);class i extends r.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class o extends r.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class s extends r.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},741:function(e,t,n){"use strict";n.d(t,{$s:function(){return o},W_:function(){return s},mV:function(){return i}});var r=n(39230);class i 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}).`,{name:"SliceOffsetOutOfBoundsError"})}}class o 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}).`,{name:"SizeExceedsPaddingSizeError"})}}class s extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}},86714:function(e,t,n){"use strict";
vendor: 5,006 bytes, lines 1562-1563
1562n.d(t,{Cd:function(){return s},J5:function(){return i},M6:function(){return a},yr:function(){return o}});var r=n(39230);class i extends r.G{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class o extends r.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class s extends r.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class a extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},84161:function(e,t,n){"use strict";n.d(t,{Fz:function(){return o},e5:function(){return s},ld:function(){return a}});var r=n(32421),i=n(39230);class o extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class s extends i.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class a extends i.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},40009:function(e,t,n){"use strict";n.d(t,{C_:function(){return d},G$:function(){return a},Hh:function(){return s},M_:function(){return o},WF:function(){return f},ZI:function(){return c},cj:function(){return m},cs:function(){return b},dR:function(){return h},pZ:function(){return p},se:function(){return l},vU:function(){return u}});var r=n(32421),i=n(39230);class o extends i.G{constructor({cause:e,message:t}={}){let n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. 1563Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}
vendor: 5,526 bytes, line 1563
1563Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},20722:function(e,t,n){"use strict";n.d(t,{Gg:function(){return s},W5:function(){return c},bs:function(){return a}});var r=n(71891),i=n(39230),o=n(82983);class s extends i.G{constructor({body:e,cause:t,details:n,headers:i,status:s,url:a}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,o.G)(a)}`,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=i,this.status=s,this.url=a}}class a extends i.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 i.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"})}}},48519:function(e,t,n){"use strict";n.d(t,{B:function(){return c},EJ:function(){return B},GD:function(){return w},I0:function(){return C},KB:function(){return b},LX:function(){return u},NO:function(){return S},Nt:function(){return P},Og:function(){return h},PE:function(){return v},Pv:function(){return y},Ts:function(){return A},Uu:function(){return I},XS:function(){return d},ab:function(){return g},fl:function(){return O},gS:function(){return m},ir:function(){return R},nY:function(){return l},pT:function(){return p},r0:function(){return M},s7:function(){return a},u5:function(){return x},vl:function(){return k},x3:function(){return E},yR:function(){return f}});var r=n(39230),i=n(20722);class o extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:o,shortMessage:s}){super(s,{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 i.bs?e.code:t??-1}}class s 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 a extends o{constructor(e){super(e,{code:a.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends o{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends o{constructor(e,{method:t}={}){super(e,{code:u.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends o{constructor(e){super(e,{code:l.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(l,"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});
1563class h extends o{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends o{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends o{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends o{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(m,"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 w extends o{constructor(e){super(e,{code:w.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class g extends s{constructor(e){super(e,{code:g.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends s{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 A extends s{constructor(e,{method:t}={}){super(e,{code:A.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends s{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class C extends s{constructor(e){super(e,{code:C.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class E extends s{constructor(e){super(e,{code:E.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends s{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 I extends s{constructor(e){super(e,{code:I.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class P extends s{constructor(e){super(e,{code:P.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class B extends s{constructor(e){super(e,{code:B.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class O extends s{constructor(e){super(e,{code:O.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class S extends s{constructor(e){super(e,{code:S.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
vendor: 14,598 bytes, lines 1563-1568
1563);class M extends s{constructor(e){super(e,{code:M.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class R extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},34626:function(e,t,n){"use strict";n.d(t,{Bj:function(){return a},Nc:function(){return i},Z8:function(){return o}});var r=n(39230);class i 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 s(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n} 1564`,"")}function a(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}: 1565`;return n.nonce&&(r+=` nonce: ${n.nonce} 1566`),n.balance&&(r+=` balance: ${n.balance} 1567`),n.code&&(r+=` code: ${n.code} 1568`),n.state&&(r+=" state:\n"+s(n.state)),n.stateDiff&&(r+=" stateDiff:\n"+s(n.stateDiff)),r}," State Override:\n").slice(0,-1)}},44818:function(e,t,n){"use strict";n.d(t,{Bh:function(){return u},JC:function(){return c},Yb:function(){return l},j3:function(){return a},mc:function(){return d},vl:function(){return s},xY:function(){return o},xr:function(){return i}});var r=n(39230);function i(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class o extends r.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class s extends r.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class a extends r.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",i(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class c extends r.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class u extends r.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let o="Transaction";n&&void 0!==i&&(o=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),r&&(o=`Transaction with hash "${r}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class l extends r.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class d extends r.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},82983:function(e,t,n){"use strict";n.d(t,{C:function(){return r},G:function(){return i}});let r=e=>e,i=e=>e},29580:function(e,t,n){"use strict";n.d(t,{r:function(){return b}});var r=n(71878),i=n(39803),o=n(73222),s=n(39868),a=n(72619),c=n(94973),u=n(86714),l=n(30838),d=n(21693);function f(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.ly)(n,t)}var h=n(56728),p=n(90929);function b(e,t){let n="string"==typeof t?(0,h.nr)(t):t,b=(0,o.q)(n);if(0===(0,s.d)(n)&&e.length>0)throw new r.wb;if((0,s.d)(t)&&32>(0,s.d)(t))throw new r.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,s.d)(t)});let y=0,w=[];for(let t=0;t<e.length;++t){let n=e[t];b.setPosition(y);let[o,s]=function e(t,n,{staticPosition:o}){let s=(0,p.S)(n.type);if(s){let[r,i]=s;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+f(t.readBytes(32)),o=r+32;t.setPosition(r);let s=f(t.readBytes(32)),a=m(n),c=0,u=[];for(let r=0;r<s;++r){t.setPosition(o+(a?32*r:c));let[i,s]=e(t,n,{staticPosition:o});c+=s,u.push(i)}return t.setPosition(i+32),[u,32]}if(m(n)){let o=i+f(t.readBytes(32)),s=[];for(let i=0;i<r;++i){t.setPosition(o+32*i);let[r]=e(t,n,{staticPosition:o});s.push(r)}return t.setPosition(i+32),[s,32]}let o=0,s=[];for(let a=0;a<r;++a){let[r,a]=e(t,n,{staticPosition:i+o});o+=a,s.push(r)}return[s,o]}(t,{...n,type:i},{length:r,staticPosition:o})}if("tuple"===n.type)return function(t,n,{staticPosition:r}){let i=0===n.components.length||n.components.some(({name:e})=>!e),o=i?[]:{},s=0;if(m(n)){let a=r+f(t.readBytes(32));for(let r=0;r<n.components.length;++r){let c=n.components[r];t.setPosition(a+s);let[u,l]=e(t,c,{staticPosition:a});s+=l,o[i?r:c?.name]=u}return t.setPosition(r+32),[o,32]}for(let a=0;a<n.components.length;++a){let c=n.components[a],[u,l]=e(t,c,{staticPosition:r});o[i?a:c?.name]=u,s+=l}return[o,s]}(t,n,{staticPosition:o});if("address"===n.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,a.T4)(t,-20))),32]}(t);if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n)),n.length>1||n[0]>1)throw new u.yr(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){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 i=e.readBytes(r);return e.setPosition(n+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i,10),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",10),i=e.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.y_)(n,t)}(i,{signed:n}):f(i,{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 i=e.readBytes(r,32),o=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,c.f)(i));return e.setPosition(t+32),[o,32]}(t,{staticPosition:o});throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,n,{staticPosition:0});y+=s,w.push(o)}return w}function m(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(m);let n=(0,p.S)(e.type);return!!(n&&m({...e,type:n[1]}))}},49039:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var r=n(28483),i=n(71878),o=n(72619),s=n(65634),a=n(29580),c=n(40928);function u(e){let{abi:t,data:n}=e,u=(0,o.tP)(n,0,4);if("0x"===u)throw new i.wb;let l=[...t||[],r.Up,r.hZ].find(e=>"error"===e.type&&u===(0,s.C)((0,c.t)(e)));if(!l)throw new i.yP(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,a.r)(l.inputs,(0,o.tP)(n,4)):void 0,errorName:l.name}}},21273:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(71878),i=n(72619),o=n(65634),s=n(29580),a=n(40928);function c(e){let{abi:t,data:n}=e,c=(0,i.tP)(n,0,4),u=t.find(e=>"function"===e.type&&c===(0,o.C)((0,a.t)(e)));if(!u)throw new r.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,i.tP)(n,4)):void 0}}},3458:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(71878),i=n(29580),o=n(77804);let s="/docs/contract/decodeFunctionResult";function a(e){let{abi:t,args:n,functionName:a,data:c}=e,u=t[0];if(a){let e=(0,o.mE)({abi:t,args:n,name:a});if(!e)throw new r.xL(a,{docsPath:s});u=e}if("function"!==u.type)throw new r.xL(void 0,{docsPath:s});if(!u.outputs)throw new r.MX(u.name,{docsPath:s});let l=(0,i.r)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},90929:function(e,t,n){"use strict";n.d(t,{E:function(){return p},S:function(){return m}});var r=n(71878),i=n(21485),o=n(39230),s=n(86714),a=n(87364),c=n(69809),u=n(99725),l=n(39868),d=n(72619),f=n(21693),h=n(59350);function p(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=b(function({params:e,values:t}){let n=[];for(let p=0;p<e.length;p++)n.push(function e({param:t,value:n}){let p=m(t.type);if(p){let[i,o]=p;return function(t,{length:n,param:i}){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:`${i.type}[${n}]`});let s=!1,a=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(s=!0),a.push(r)}if(o||s){let e=b(a);if(o){let t=(0,f.eC)(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?(0,c.zo)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.zo)(a.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let o=0;o<n.components.length;o++){let s=n.components[o],a=Array.isArray(t)?o:s.name,c=e({param:s,value:t[a]});i.push(c),c.dynamic&&(r=!0)}return{dynamic:r,encoded:r?b(i):(0,c.zo)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,a.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,u.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,u.gc)((0,f.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=h.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,i=t?-r-1n:0n;if(e>r||e<i)throw new s.J5({max:r.toString(),min:i.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"),i=(0,l.d)(e);if(!n){let t=e;return i%32!=0&&(t=(0,u.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new r.M4({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,u.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,f.$G)(e),n=Math.ceil((0,l.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,u.gc)((0,d.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)((0,l.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[p],value:t[p]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function b(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,l.d)(i)}let n=[],r=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:s,encoded:a}=e[o];s?(n.push((0,f.eC)(t+i,{size:32})),r.push(a),i+=(0,l.d)(a)):n.push(a)}return(0,c.zo)([...n,...r])}function m(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},12732:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(71878),i=n(69809),o=n(90929);let s="/docs/contract/encodeDeployData";function a(e){let{abi:t,args:n,bytecode:a}=e;if(!n||0===n.length)return a;let c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new r.fM({docsPath:s});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new r.cO({docsPath:s});let u=(0,o.E)(c.inputs,n);return(0,i.SM)([a,u])}},76384:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(69809),i=n(90929),o=n(71878),s=n(65634),a=n(40928),c=n(77804);let u="/docs/contract/encodeFunctionData";function l(e){let{args:t}=e,{abi:n,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:n,functionName:r}=e,i=t[0];if(r){let e=(0,c.mE)({abi:t,args:n,name:r});if(!e)throw new o.xL(r,{docsPath:u});i=e}if("function"!==i.type)throw new o.xL(void 0,{docsPath:u});return{abi:[i],functionName:(0,s.C)((0,a.t)(i))}}(e),d=n[0],f="inputs"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,r.SM)([l,f??"0x"])}},40928:function(e,t,n){"use strict";n.d(t,{h:function(){return o},t:function(){return i}});var r=n(71878);function i(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?", ":","):""}},77804:function(e,t,n){"use strict";n.d(t,{mE:function(){return c}});var r=n(71878),i=n(45008),o=n(87364),s=n(40959),a=n(65634);function c(e){let t;let{abi:n,args:c=[],name:u}=e,l=(0,i.v)(u,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,a.C)(e)===u:"event"===e.type&&(0,s.n)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return(0,o.U)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"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(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;
vendor: 8,079 bytes, line 1568
1568if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let i in t){let s=t[i],a=n[i];if("tuple"===s.type&&"tuple"===a.type&&"components"in s&&"components"in a)return e(s.components,a.components,r[i]);let c=[s.type,a.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,o.U)(r[i],{strict:!1}))return c}}(e.inputs,t.inputs,c);if(n)throw new r.S4({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}return t||d[0]}}},39803:function(e,t,n){"use strict";n.d(t,{K:function(){return l},x:function(){return u}});var r=n(21485),i=n(56728),o=n(27064),s=n(46108),a=n(87364);let c=new s.k(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,o.w)((0,i.qX)(n),"bytes"),s=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&r[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let a=`0x${s.join("")}`;return c.set(`${e}.${t}`,a),a}function l(e,t){if(!(0,a.U)(e,{strict:!1}))throw new r.b({address:e});return u(e,t)}},87364:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(46108),i=n(39803);let o=/^0x[a-fA-F0-9]{40}$/,s=new r.k(8192);function a(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(s.has(r))return s.get(r);let a=!!o.test(e)&&(e.toLowerCase()===e||!n||(0,i.x)(e)===e);return s.set(r,a),a}},27955:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(21485),i=n(87364);function o(e,t){if(!(0,i.U)(e,{strict:!1}))throw new r.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new r.b({address:t});return e.toLowerCase()===t.toLowerCase()}},36739:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(56728),i=n(21693);function o(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,s=[];for(let e of o)s.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===n?s:s.map(e=>(0,i.ci)(e))}},68047:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(56728),i=n(21693);function o(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,s="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,r.nr)(e)):e.commitments,a=[];for(let e=0;e<o.length;e++){let n=o[e],r=s[e];a.push(Uint8Array.from(t.computeBlobKzgProof(n,r)))}return"bytes"===n?a:a.map(e=>(0,i.ci)(e))}},85933:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(21693);let i=n(83078).JQ;var o=n(45008),s=n(56728);function a(e){let{commitments:t,version:n}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),c=[];for(let e of t)c.push(function(e){let{commitment:t,version:n=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),c=function(e,t){let n=i((0,o.v)(e,{strict:!1})?(0,s.O0)(e):e);return"bytes"===(t||"hex")?n:(0,r.NC)(n)}(t,"bytes");return c.set([n],0),"bytes"===a?c:(0,r.ci)(c)}({commitment:e,to:a,version:n}));return c}},85716:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(36739),i=n(68047),o=n(45359),s=n(73222),a=n(39868),c=n(56728),u=n(21693);function l(e){let{data:t,kzg:n,to:l}=e,d=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,c.nr)(e.data):e.data,r=(0,a.d)(n);if(!r)throw new o.RX;if(r>761855)throw new o.m7({maxSize:761855,size:r});let i=[],l=!0,d=0;for(;l;){let e=(0,s.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let r=n.slice(d,d+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),l=!1;break}t++,d+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,u.ci)(e.bytes))}({data:t,to:l}),f=e.commitments??(0,r.P)({blobs:d,kzg:n,to:l}),h=e.proofs??(0,i.y)({blobs:d,commitments:f,kzg:n,to:l}),p=[];for(let e=0;e<d.length;e++)p.push({blob:d[e],commitment:f[e],proof:h[e]});return p}},71186:function(e,t,n){"use strict";function r(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}n.d(t,{a:function(){return r}})},94540:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(27878);function i({blockNumber:e,chain:t,contract:n}){let i=t?.contracts?.[n];if(!i)throw new r.mm({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}},73222:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(99851);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},69809:function(e,t,n){"use strict";function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>
1568e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},45008:function(e,t,n){"use strict";function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}n.d(t,{v:function(){return r}})},99725:function(e,t,n){"use strict";n.d(t,{gc:function(){return o},vk:function(){return i}});var r=n(741);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?o(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.$s({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let o="right"===t;i[o?r:n-r-1]=e[o?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function o(e,{dir:t,size:n=32}={}){if(null===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new r.$s({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},39868:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(45008);function i(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},72619:function(e,t,n){"use strict";n.d(t,{T4:function(){return u},p5:function(){return l},tP:function(){return s}});var r=n(741),i=n(45008),o=n(39868);function s(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?l(e,t,n,{strict:r}):u(e,t,n,{strict:r})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,o.d)(e)-1)throw new r.mV({offset:t,position:"start",size:(0,o.d)(e)})}function c(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,o.d)(e)!==n-t)throw new r.mV({offset:n,position:"end",size:(0,o.d)(e)})}function u(e,t,n,{strict:r}={}){a(e,t);let i=e.slice(t,n);return r&&c(i,t,n),i}function l(e,t,n,{strict:r}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&c(i,t,n),i}},94973:function(e,t,n){"use strict";function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let e=0;e<n.length-1&&"0"===n["left"===t?e:n.length-e-1].toString();e++)r++;return(n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}n.d(t,{f:function(){return r}})},30838:function(e,t,n){"use strict";n.d(t,{XA:function(){return u},Yf:function(){return a},ly:function(){return l},rR:function(){return d},y_:function(){return c}});var r=n(86714),i=n(39868),o=n(94973),s=n(56728);function a(e,{size:t}){if((0,i.d)(e)>t)throw new r.M6({givenSize:(0,i.d)(e),maxSize:t})}function c(e,t={}){let{signed:n}=t;t.size&&a(e,{size:t.size});let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function u(e,t={}){let n=e;if(t.size&&(a(n,{size:t.size}),n=(0,o.f)(n)),"0x00"===(0,o.f)(n))return!1;if("0x01"===(0,o.f)(n))return!0;throw new r.Cd(n)}function l(e,t={}){return Number(c(e,t))}function d(e,t={}){let n=(0,s.nr)(e);return t.size&&(a(n,{size:t.size}),n=(0,o.f)(n,{dir:"right"})),new TextDecoder().decode(n)}},56728:function(e,t,n){"use strict";n.d(t,{O0:function(){return u},nr:function(){return f},qX:function(){return h}});var r=n(39230),i=n(45008),o=n(99725),s=n(30838),a=n(21693);let c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?f((0,a.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,s.Yf)(n,{size:t.size}),(0,o.vk)(n,{size:t.size})):n}(e,t):(0,i.v)(e)?f(e,t):h(e,t)}let l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let n=e;t.size&&((0,s.Yf)(n,{size:t.size}),n=(0,o.vk)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,c=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let n=d(i.charCodeAt(t++)),o=d(i.charCodeAt(t++));if(void 0===n||void 0===o)throw new r.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);c[e]=16*n+o}return c}function h(e,t={}){let n=c.encode(e);return"number"==typeof t.size?((0,s.Yf)(n,{size:t.size}),(0,o.vk)(n,{dir:"right",size:t.size})):n}},21693:function(e,t,n){"use strict";n.d(t,{$G:function(){return f},C4:function(){return c},NC:function(){return a},ci:function(){return u},eC:function(){return l}});var r=n(86714),i=n(99725),o=n(30838);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Yf)(n,{size:t.size}),(0,i.vk)(n,{size: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?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}function l(e,t={}){let n;let{signed:o,size:s}=t,a=BigInt(e);s?n=o?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof n&&o?-n-1n:0;if(n&&a>n||a<c){let t="bigint"==typeof e?"n":"";throw new r.J5({max:n?`${n}${t}`:void 0,min:`${c}${t}`,signed:o,size:s,value:`${e}${t}`})}let u=`0x${(o&&a<0?(1n<<BigInt(8*s))+BigInt(a):a).toString(16)}`;return s?(0,i.vk)(u,{size:s}):u}let d=new TextEncoder;function f(e,t={}){return u(d.encode(e),t)}},48379:function(e,t,n){"use strict";n.d(t,{LV:function(){return a}});var r=n(39230),i=n(73222),o=n(56728),s=n(21693);function a(e,t="hex"){let n=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>
1568e+t.length,0),n=c(t);return{length:t<=55?1+t:1+n+t,encode(r){for(let{encode:i}of(t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t)),e))i(r)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,o.nr)(e):e,n=c(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),r=(0,i.q)(new Uint8Array(n.length));return(n.encode(r),"hex"===t)?(0,s.ci)(r.bytes):r.bytes}function c(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new r.G("Length is too large.")}},581:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(45008);function i(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}},87815:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(39230),i=n(98458);function o(e){if(!(e instanceof r.G))return!1;let t=e.walk(e=>e instanceof i.Lu);return t instanceof i.Lu&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")}},18882:function(e,t,n){"use strict";n.d(t,{w:function(){return m},M:function(){return b}});var r=n(42980),i=n(28483),o=n(21273),s=n(71878),a=n(69809),c=n(65634),u=n(90929),l=n(40928),d=n(77804);let f="/docs/contract/encodeErrorResult";function h(e){let{abi:t,errorName:n,args:r}=e,i=t[0];if(n){let e=(0,d.mE)({abi:t,args:r,name:n});if(!e)throw new s.MS(n,{docsPath:f});i=e}if("error"!==i.type)throw new s.MS(void 0,{docsPath:f});let o=(0,l.t)(i),h=(0,c.C)(o),p="0x";if(r&&r.length>0){if(!i.inputs)throw new s.Zh(i.name,{docsPath:f});p=(0,u.E)(i.inputs,r)}return(0,a.SM)([h,p])}let p="/docs/contract/encodeFunctionResult",b="x-batch-gateway:true";async function m(e){let{data:t,ccipRequest:n}=e,{args:[a]}=(0,o.p)({abi:r.Yi,data:t}),c=[],l=[];return await Promise.all(a.map(async(e,t)=>{try{l[t]=e.urls.includes(b)?await m({data:e.data,ccipRequest:n}):await n(e),c[t]=!1}catch(e){c[t]=!0,l[t]="HttpRequestError"===e.name&&e.status?h({abi:r.Yi,errorName:"HttpError",args:[e.status,e.shortMessage]}):h({abi:[i.Up],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}})),function(e){let{abi:t,functionName:n,result:r}=e,i=t[0];if(n){let e=(0,d.mE)({abi:t,name:n});if(!e)throw new s.xL(n,{docsPath:p});i=e}if("function"!==i.type)throw new s.xL(void 0,{docsPath:p});if(!i.outputs)throw new s.MX(i.name,{docsPath:p});let o=(()=>{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[r];if(Array.isArray(r))return r;throw new s.hn(r)})();return(0,u.E)(i.outputs,o)}({abi:r.Yi,functionName:"query",result:[c,l]})}},87332:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(69809),i=n(56728),o=n(21693),s=n(27064),a=n(581);function c(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,a.i)(n[e]),c=o?(0,i.O0)(o):(0,s.w)((0,i.qX)(n[e]),"bytes");t=(0,s.w)((0,r.zo)([t,c]),"bytes")}return(0,o.ci)(t)}},27957:function(e,t,n){"use strict";let r,i,o,s,a,c,u,l,d,f,h,p,b,m,y;n.d(t,{F:function(){return $}});let w=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function g(e){var t;let n;return t=function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,o=[0,1];for(let e=1;e<r;e++)o.push(i+=n());let s=n(),a=t;t+=s;let c=0,u=0;function l(){return 0==c&&(u=u<<8|e[t++],c=8),u>>--c&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|l();let h=[],p=0,b=2147483648;for(;;){let e=Math.floor(((f-p+1)*i-1)/b),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<o[r]?n=r:t=r}if(0==t)break;h.push(t);let s=p+Math.floor(b*o[t]/i),a=p+Math.floor(b*o[t+1]/i)-1;for(;((s^a)&1073741824)==0;)f=f<<1&d|l(),s=s<<1&d,a=a<<1&d|1;for(;s&~a&536870912;)f=1073741824&f|f<<1&d>
1568>>1|l(),s=s<<1^1073741824,a=(1073741824^a)<<1|1073741825;p=s,b=1+a-s}let m=r-4;return h.map(t=>{switch(t-m){case 3:return m+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return m+256+(e[a++]<<8|e[a++]);case 1:return m+e[a++];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 i=0,o=0,s=0,a=0;i<n;i++)a=a<<6|t[e.charCodeAt(i)],(s+=6)>=8&&(r[o++]=a>>(s-=8));return r}(e)),n=0,()=>t[n++]}function v(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let e=0;e<i;e++)n.push(t+e);t+=i+1}return n}function A(e){return C(()=>{let t=v(e);if(t.length)return t})}function x(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),i=C(t);return E(i.length,1+e,t).flatMap((e,t)=>{let[o,...s]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*r;return[o+t*n,s.map(e=>e+i)]})})}(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(E(1+e(),1+n,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function C(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function E(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let n=Array(e);for(let i=0,o=0;i<e;i++){var r;n[i]=o+=1&(r=t())?~r>>1:r>>1}return n})(e,n).forEach((e,t)=>r[t].push(e));return r}function k(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function I(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 P(e,t){let n=e.length,r=n-t.length;for(let i=0;0==r&&i<n;i++)r=e[i]-t[i];return r}function B(e){return e>>24&255}function O(e){return 16777215&e}function S(e){return e>=44032&&e<55204}function M(e){r||function(){let e=g("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");for(let[t,n]of(r=new Map(A(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(v(e)),o=new Map,s=new Map,x(e))){if(!i.has(t)&&2==n.length){let[e,r]=n,i=s.get(e);i||(i=new Map,s.set(e,i)),i.set(r,t)}o.set(t,n.reverse())}}();let t=[],n=[],a=!1;function c(e){let n=r.get(e);n&&(a=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(S(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,i=e%28;c(4352+t),c(4449+n),i>0&&c(4519+i)}else{let e=o.get(r);e?n.push(...e):c(r)}if(!n.length)break;r=n.pop()}if(a&&t.length>1){let e=B(t[0]);for(let n=1;n<t.length;n++){let r=B(t[n]);if(0==r||e<=r){e=r;continue}let i=n-1;for(;;){let n=t[i+1];if(t[i+1]=t[i],t[i]=n,!i||(e=B(t[--i]))<=r)break}e=B(t[n])}}return t}function R(e){return function(e){let t=[],n=[],r=-1,i=0;for(let o of e){let e=B(o),a=O(o);if(-1==r)0==e?r=a:t.push(a);else if(i>0&&i>=e)0==e?(t.push(r,...n),n.length=0,r=a):n.push(a),i=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(S(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let n=s.get(e);return n&&(n=n.get(t))?n:-1}}(r,a);o>=0?r=o:0==i&&0==e?(t.push(r),r=a):(n.push(a),i=e)}}return r>=0&&t.push(r,...n),t}(M(e))}let T=e=>Array.from(e);function N(e,t){return e.P.has(t)||e.Q.has(t)}class F extends Array{get is_emoji(){return!0}}function U(){let e,t;if(a)return;let n=g("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"),r=()=>v(n),i=()=>new Set(r()),o=(e,t)=>t.forEach(t=>e.add(t));a=new Map(x(n)),c=i(),u=r(),l=new Set(r().map(e=>u[e])),u=new Set(u),d=i(),i();let s=A(n),w=n(),E=()=>{let e=new Set;return r().forEach(t=>o(e,s[t])),o(e,r()),e};f=C(e=>{let t=C(n).map(e=>e+96);if(t.length){let r=e>=w;return t[0]-=32,t=I(t),r&&(t=`Restricted[${t}]`),{N:t,P:E(),Q:E(),M:!n(),R:r}}}),h=i(),p=new Map;let k=r().concat(T(h)).sort((e,t)=>e-t);for(let{V:e,M:t}of(k.forEach((e,t)=>{let r=n(),i=k[t]=r?k[t-r]:{V:[],M:new Map};i.V.push(e),h.has(e)||p.set(e,i)}),new Set(p.values()))){let n=[];for(let t of e){let e=f.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=>T(e.G));for(let{G:e,V:i}of n){let n=new Set(r.filter(t=>!e.has(t)));for(let e of i)t.set(e,n)}}b=new Set;let B=new Set,S=e=>b.has(e)?B.add(e):b.add(e);for(let e of f){for(let t of e.P)S(t);for(let t of e.Q)S(t)}for(let e of b)p.has(e)||B.has(e)||p.set(e,1);for(let r of(o(b,M(b).map(O)),m=(e=[],t=v(n),function t({S:n,B:r},i,o){if(!(4&n)||o!==i[i.length-1])for(let s of(2&n&&(o=i[i.length-1]),1&n&&e.push(i),r))for(let e of s.Q)t(s,[...i,e],o)}(function e(r){return{S:n(),B:C(()=>{let r=v(n).map(e=>t[e]);if(r.length)return e(r)}),Q:r}}([]),[]),e).map(e=>F.from(e)).sort(P),y=new Map,m)){let e=[y];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 D(e){return(L(e)?"":`${q(G([e]))} `)+k(e)}function q(e){return`"${e}"\u200E`}function G(e,t=1/0,n=k){var r;let i=[];r=e[0],U(),u.has(r)&&i.push("â"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let o=0,s=e.length;for(let t=0;t<s;t++){let r=e[t];L(r)&&(i.push(I(e.slice(o,t))),i.push(n(r)),o=t+1)}return i.push(I(e.slice(o,s))),i.join("")}function L(e){return U(),d.has(e)}function j(e){return Error(`disallowed character: ${D(e)}`)}function z(e,t){let n=D(t),r=f.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function Q(e){return Error(`illegal placement: ${e}`)}function W(e){return e.filter(e=>65039!=e)}function $(e){var t;return(t=function(e,t,n){if(!e)return[];U();let r=0;return e.split(".").map(e=>{let i=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:i,offset:r};r+=i.length+1;try{let e,r=o.tokens=function(e,t,n){let r=[],i=[];for(e=e.slice().reverse();e.length;){let o=function(e,t){let n,r=y,i=e.length;for(;i&&(r=r.get(e[--i]));){let{V:o}=r;o&&(n=o,t&&t.push(...e.slice(i).reverse()),e.length=i)}return n}(e);if(o)i.length&&(r.push(t(i)),i=[]),r.push(n(o));else{let t=e.pop();if(b.has(t))i.push(t);else{let e=a.get(t);if(e)i.push(...e);else if(!c.has(t))throw j(t)}}}return i.length&&r.push(t(i)),r}(i,t,n),s=r.length;if(!s)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=s>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: "${I(e.slice(0,4))}"`)}(d),e="ASCII";else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(u.has(d[0]))throw Q("leading combining mark");for(let e=1;e<s;e++){let t=r[e];
1568if(!t.is_emoji&&u.has(t[0]))throw Q(`emoji + combining mark: "${I(r[e-1])} + ${G([t[0]])}"`)}!function(e){let t=e[0],n=w.get(t);if(n)throw Q(`leading ${n}`);let r=e.length,i=-1;for(let o=1;o<r;o++){t=e[o];let r=w.get(t);if(r){if(i==o)throw Q(`${n} + ${r}`);i=o+1,n=r}}if(i==r)throw Q(`trailing ${n}`)}(d);let n=T(new Set(t)),[i]=function(e){let t=f;for(let n of e){let e=t.filter(e=>N(e,n));if(!e.length){if(f.some(e=>N(e,n)))throw z(t[0],n);throw j(n)}if(t=e,1==e.length)break}return t}(n);(function(e,t){for(let n of t)if(!N(e,n))throw z(e,n);if(e.M){let e=M(t).map(O);for(let t=1,n=e.length;t<n;t++)if(l.has(e[t])){let r=t+1;for(let i;r<n&&l.has(i=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==i)throw Error(`duplicate non-spacing marks: ${D(i)}`);if(r-t>4)throw Error(`excessive non-spacing marks: ${q(G(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(i,t),function(e,t){let n;let r=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):T(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}`)}}(i,n),e=i.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o})}(e,R,W)).map(({input:e,error:n,output:r})=>{if(n){let r=n.message;throw Error(1==t.length?r:`Invalid label ${q(G(e,63))}: ${r}`)}return I(r)}).join(".")}},66257:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(56728),i=n(21693),o=n(27064),s=n(581);function a(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,r.qX)(t).byteLength+2),a=0,c=t.split(".");for(let e=0;e<c.length;e++){let t=(0,r.qX)(c[e]);if(t.byteLength>255){var u;t=(0,r.qX)((u=function(e){let t=new Uint8Array(32).fill(0);return e?(0,s.i)(e)||(0,o.w)((0,r.qX)(e)):(0,i.ci)(t)}(c[e]),`[${u.slice(2)}]`))}n[a]=t.length,n.set(t,a+1),a+=t.length+1}return n.byteLength!==a+1?n.slice(0,a+1):n}},99632:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(98458),i=n(40009),o=n(36074);function s(e,{docsPath:t,...n}){let s=(()=>{let t=(0,o.k)(e,n);return t instanceof i.cj?e:t})();return new r.cg(s,{docsPath:t,...n})}},65573:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r=n(71878),i=n(39230),o=n(98458),s=n(20722),a=n(48519);function c(e,{abi:t,address:n,args:c,docsPath:u,functionName:l,sender:d}){let f=e instanceof o.VQ?e:e instanceof i.G?e.walk(e=>"data"in e)||e.walk():{},{code:h,data:p,details:b,message:m,shortMessage:y}=f,w=e instanceof r.wb?new o.Dk({functionName:l}):[3,a.XS.code].includes(h)&&(p||b||m||y)?new o.Lu({abi:t,data:"object"==typeof p?p.data:p,functionName:l,message:f instanceof s.bs?b:y??m}):e;return new o.uq(w,{abi:t,args:c,contractAddress:n,docsPath:u,functionName:l,sender:d})}},36074:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(39230),i=n(40009);function o(e,t){let n=(e.details||"").toLowerCase(),o=e instanceof r.G?e.walk(e=>e?.code===i.M_.code):e;return o instanceof r.G?new i.M_({cause:e,message:o.details}):i.M_.nodeMessage.test(n)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(n)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(n)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(n)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(n)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(n)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(n)?new i.C_({cause:e}):i.WF.nodeMessage.test(n)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(n)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(n)?new i.pZ({cause:e}):i.cs.nodeMessage.test(n)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},78723:function(e,t,n){"use strict";n.d(t,{G:function(){return s},Z:function(){return o}});var r=n(76471),i=n(52017);function o(e){let t=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.Tr)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLim
1568it?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let s=(0,r.$)("block",o)},21028:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n={};return!function t(r){for(let i of Object.keys(r))i in e&&(n[i]=e[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&t(r[i])}(t(e||{})),n}n.d(t,{K:function(){return r}})},76471:function(e,t,n){"use strict";function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:e=>{let i=t(e);if(n)for(let e of n)delete i[e];return{...i,...r(e)}},type:e})}n.d(t,{$:function(){return r}})},37380:function(e,t,n){"use strict";function r(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}n.d(t,{U:function(){return r}})},52017:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s},c8:function(){return o},y_:function(){return a}});var r=n(30838),i=n(76471);let o={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function s(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?o[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=(0,i.$)("transaction",s)},3324:function(e,t,n){"use strict";n.d(t,{dI:function(){return u},ew:function(){return a},fA:function(){return c}});var r=n(30838),i=n(76471),o=n(37380),s=n(52017);let a={"0x0":"reverted","0x1":"success"};function c(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,o.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ly)(e.transactionIndex):null,status:e.status?a[e.status]:null,type:e.type?s.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}let u=(0,i.$)("transactionReceipt",c)},86868:function(e,t,n){"use strict";n.d(t,{tG:function(){return o}});var r=n(21693);let i={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=i[e.type]),void 0!==e.value&&(t.value=(0,r.eC)(e.value)),t}},82600:function(e,t,n){"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}n.d(t,{s:function(){return r}})},27064:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(49658),i=n(45008),o=n(56728),s=n(21693);function a(e,t){let n=(0,r.fr)((0,i.v)(e,{strict:!1})?(0,o.O0)(e):e);return"bytes"===(t||"hex")?n:(0,s.NC)(n)}},40959:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});let r=n(68369).r},65634:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(72619),i=n(68369);let o=e=>(0,r.tP)((0,i.r)(e),0,4)},68369:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var r=n(56728),i=n(27064);let o=e=>(0,i.w)((0,r.O0)(e));var s=n(94278),a=n(39230);let c=e=>(function(e){let t=!0,n="",r=0,i="",o=!1;for(let s=0;s<e.length;s++){let a=e[s];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t){if(0===r){if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){o=!0;break}continue}if(" "===a){","!==e[s-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=a,n+=a}}if(!o)throw new a.G("Unable to normalize signature.");return i}
1568)("string"==typeof e?e:(0,s.t)(e));function u(e){return o(c(e))}},46108:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});class r 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}}},87162:function(e,t,n){"use strict";n.d(t,{N7:function(){return s}});let r=new Map,i=new Map,o=0;function s(e,t,n){let s=++o,a=()=>r.get(e)||[],c=()=>{let t=a();r.set(e,t.filter(e=>e.id!==s))},u=()=>{let t=a();if(!t.some(e=>e.id===s))return;let n=i.get(e);if(1===t.length&&n){let e=n();e instanceof Promise&&e.catch(()=>{})}c()},l=a();if(r.set(e,[...l,{id:s,fns:t}]),l&&l.length>0)return u;let d={};for(let e in t)d[e]=(...t)=>{let n=a();if(0!==n.length)for(let r of n)r.fns[e]?.(...t)};let f=n(d);return"function"==typeof f&&i.set(e,f),u}},62468:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(21810);function i(e,{emitOnBegin:t,initialWaitTime:n,interval:i}){let o=!0,s=()=>o=!1;return(async()=>{let a;t&&(a=await e({unpoll:s}));let c=await n?.(a)??i;await (0,r.D)(c);let u=async()=>{o&&(await e({unpoll:s}),await (0,r.D)(i),u())};u()})(),s}},33668:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(70955);let i=new Map;function o({fn:e,id:t,shouldSplitBatch:n,wait:o=0,sort:s}){let a=async()=>{let t=l();c();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{s&&Array.isArray(e)&&e.sort(s);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)}})},c=()=>i.delete(t),u=()=>l().map(({args:e})=>e),l=()=>i.get(t)||[],d=e=>i.set(t,[...l(),e]);return{flush:c,async schedule(e){let{promise:t,resolve:i,reject:s}=(0,r.n)();return(n?.([...u(),e])&&a(),l().length>0)?d({args:e,resolve:i,reject:s}):(d({args:e,resolve:i,reject:s}),setTimeout(a,o)),t}}}},70955:function(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:function(){return r}})},36063:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(21810);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}={}){return new Promise((o,s)=>{let a=async({count:c=0}={})=>{let u=async({error:e})=>{let n="function"==typeof t?t({count:c,error:e}):t;n&&await (0,r.D)(n),a({count:c+1})};try{let t=await e();o(t)}catch(e){if(c<n&&await i({count:c,error:e}))return u({error:e});s(e)}};a()})}},33679:function(e,t,n){"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((i,o)=>{(async()=>{let s;try{let a=new AbortController;n>0&&(s=setTimeout(()=>{r?a.abort():o(t)},n)),i(await e({signal:a?.signal||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(s)}})()})}n.d(t,{F:function(){return r}})},59350:function(e,t,n){"use strict";n.d(t,{Ow:function(){return r},eL:function(){return i},lh:function(){return o}});let r=/^(.*)\[([0-9]*)\]$/,i=/^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)?$/},1498:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(27064),i=n(69809),o=n(39868),s=n(21693);function a(e,t){return(0,r.w)(function(e){let t="string"==typeof e?(0,s.$G)(e):"string"==typeof e.raw?e.raw:(0,s.ci)(e.raw),n=(0,s.$G)(`�Ethereum Signed Message: 1569${(0,o.d)(t)}`);return(0,i.zo)([n,t])}(e),t)}},71513:function(e,t,n){"use strict";n.d(t,{Jv:function(){return y}});var r=n(90929),i=n(69809),o=n(21693),s=n(27064),a=n(71878),c=n(21485),u=n(71891),l=n(39230);class d extends l.G{constructor({domain:e}){super(`Invalid domain "${(0,u.P)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class f extends l.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 h extends l.G{constructor({type:e}){super(`Struct type "${e}
1569" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var p=n(87364),b=n(39868),m=n(59350);function y(e){let{domain:t={},message:n,primaryType:r}=e,u={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:i}=e,s=(e,t)=>{for(let n of e){let{name:e,type:r}=n,u=t[e],l=r.match(m.lh);if(l&&("number"==typeof u||"bigint"==typeof u)){let[e,t,n]=l;(0,o.eC)(u,{signed:"int"===t,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof u&&!(0,p.U)(u))throw new c.b({address:u});let d=r.match(m.eL);if(d){let[e,t]=d;if(t&&(0,b.d)(u)!==Number.parseInt(t,10))throw new a.KY({expectedSize:Number.parseInt(t,10),givenSize:(0,b.d)(u)})}let f=i[r];f&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new h({type:e})}(r),s(f,u))}};if(i.EIP712Domain&&t){if("object"!=typeof t)throw new d({domain:t});s(i.EIP712Domain,t)}if("EIP712Domain"!==r){if(i[r])s(i[r],n);else throw new f({primaryType:r,types:i})}}({domain:t,message:n,primaryType:r,types:u});let l=["0x1901"];return t&&l.push(function({domain:e,types:t}){return w({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:u})),"EIP712Domain"!==r&&l.push(w({data:n,primaryType:r,types:u})),(0,s.w)((0,i.zo)(l))}function w({data:e,primaryType:t,types:n}){let i=function e({data:t,primaryType:n,types:i}){let a=[{type:"bytes32"}],c=[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 i=t.match(/^\w*/u),o=i?.[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 i of(r.delete(e),[e,...Array.from(r).sort()]))n+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,s.w)(n)}({primaryType:n,types:i})];for(let u of i[n]){let[n,l]=function t({types:n,name:i,type:a,value:c}){if(void 0!==n[a])return[{type:"bytes32"},(0,s.w)(e({data:c,primaryType:a,types:n}))];if("bytes"===a){let e=c.length%2?"0":"";return c=`0x${e+c.slice(2)}`,[{type:"bytes32"},(0,s.w)(c)]}if("string"===a)return[{type:"bytes32"},(0,s.w)((0,o.NC)(c))];if(a.lastIndexOf("]")===a.length-1){let e=a.slice(0,a.lastIndexOf("[")),o=c.map(r=>t({name:i,type:e,types:n,value:r}));return[{type:"bytes32"},(0,s.w)((0,r.E)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:a},c]}({types:i,name:u.name,type:u.type,value:t[u.name]});a.push(n),c.push(l)}return(0,r.E)(a,c)}({data:e,primaryType:t,types:n});return(0,s.w)(i)}},19983:function(e,t,n){"use strict";n.d(t,{mF:function(){return u}});var r=n(21485),i=n(741),o=n(34626),s=n(87364),a=n(21693);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new i.W_({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function u(e){if(!e)return;let t={};for(let{address:n,...i}of e){if(!(0,s.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:i,code:s}=e,u={};if(void 0!==s&&(u.code=s),void 0!==t&&(u.balance=(0,a.eC)(t)),void 0!==n&&(u.nonce=(0,a.eC)(n)),void 0!==r&&(u.state=c(r)),void 0!==i){if(u.state)throw new o.Z8;u.stateDiff=c(i)}return u}(i)}return t}},71891:function(e,t,n){"use strict";n.d(t,{P:function(){return 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)},2445:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(4832),i=n(74736),o=n(21485),s=n(40009),a=n(44818),c=n(87364);function u(e){let{account:t,gasPrice:n,maxFeePerGas:u,maxPriorityFeePerGas:l,to:d}=e,f=t?(0,r.T)(t):void 0;if(f&&!(0,c.U)(f.address))throw new o.b({address:f.address});if(d&&!(0,c.U)(d))throw new o.b({address:d});if(void 0!==n&&(void 0!==u||void 0!==l))throw new a.xY;if(u&&u>i.zL)throw new s.Hh({maxFeePerGas:u});if(l&&u&&l>u)throw new s.cs({maxFeePerGas:u,maxPriorityFeePerGas:l})}},74714:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(44818);function i(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new r.j3({transaction:e})}},5006:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return o}});let i=256;function o(e=11){if(!r||i+e>512){r="",i=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(i,i+++e)}},79352:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(36238),i=n(16775);function o(e,t="wei"){return(0,i.b)(e,r.ez[t])}},32421:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(36238),i=n(16775);function o(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},16775:function(e,t,n){"use strict";function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,o]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${o?`.${o}`:""}`}n.d(t,{b:function(){return r}})},21810:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},81229:function(e,t,n){"use strict";n.d(t,{V:function(){return a},F:function(){return c}});var r=n(2265);let i=!1;async function o(e,t={}){let n;if(i)return[];i=!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 s=Object.keys(o).length>0?[...r].sort((e,t)=>
1569(o[e.id]??10)-(o[t.id]??10)):r,a=!1,c=[],u=[];for(let t of s){let n=await t.getProvider().catch(()=>void 0);if(!n||u.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(a?e.connections:new Map).set(t.uid,{accounts:r.accounts,chainId:r.chainId,connector:t});return{...e,current:a?e.current:t.uid,connections:n}}),c.push({accounts:r.accounts,chainId:r.chainId,connector:t}),u.push(n),a=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(a?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),i=!1,c}function s(e){let{children:t,config:n,initialState:i,reconnectOnMount:s=!0}=e,{onMount:a}=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 i=e._internal.connectors.providerDetailToConnector(t),o=e._internal.connectors.setup(i);r.push(o)}return[...t,...r]})),r?o(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:i,reconnectOnMount:s});n._internal.ssr||a();let c=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(c.current&&n._internal.ssr)return a(),()=>{c.current=!1}},[]),t}let a=(0,r.createContext)(void 0);function c(e){let{children:t,config:n}=e;return(0,r.createElement)(s,e,(0,r.createElement)(a.Provider,{value:n},t))}},79037:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(10815),i=n(23437),o=n(41012),s=n(48369),a=n(2265),c=n(65401);let u=e=>"object"==typeof e&&!Array.isArray(e);function l(e={}){let t=(0,o.Z)(e);return function(e,t,n=t,r=s.v){let i=(0,a.useRef)([]),o=(0,c.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(u(e)&&u(t)&&i.current.length){for(let n of i.current)if(!r(e[n],t[n]))return!1;return!0}return r(e,t)});return(0,a.useMemo)(()=>{if(u(o)){let e={...o},t={};
1569for(let[n,r]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(n)||i.current.push(n),r)}};return Object.defineProperties(e,t),e}return o},[o])}(e=>(0,r.u)(t,{onChange:e}),()=>(0,i.D)(t))}},33844:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});var r=n(10815),i=n(2265),o=n(41012);function s(e={}){let{onConnect:t,onDisconnect:n}=e,s=(0,o.Z)(e);(0,i.useEffect)(()=>(0,r.u)(s,{onChange(e,r){if(("reconnecting"===r.status||"connecting"===r.status&&void 0===r.address)&&"connected"===e.status){let{address:n,addresses:i,chain:o,chainId:s,connector:a}=e,c="reconnecting"===r.status||void 0===r.status;t?.({address:n,addresses:i,chain:o,chainId:s,connector:a,isReconnected:c})}else"connected"===r.status&&"disconnected"===e.status&&n?.()}}),[s,t,n])}},23907:function(e,t,n){"use strict";n.d(t,{K:function(){return A}});var r=n(30838),i=n(94973),o=n(16775),s=n(53002),a=n(46981),c=n(36238);function u(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(c.Bd[e])}var l=n(98458),d=n(73105);async function f(e,t){let{allowFailure:n=!0,chainId:r,contracts:i,...o}=t,s=e.getClient({chainId:r});return(0,a.s)(s,d.A,"multicall")({allowFailure:n,contracts:i,...o})}var h=n(65459);async function p(e,t){let{allowFailure:n=!0,blockNumber:r,blockTag:i,...o}=t,s=t.contracts;try{let t={};for(let[n,r]of s.entries()){let i=r.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:r,index:n})}let a=(await Promise.all(Object.entries(t).map(([t,s])=>f(e,{...o,allowFailure:n,blockNumber:r,blockTag:i,chainId:Number.parseInt(t),contracts:s.map(({contract:e})=>e)})))).flat(),c=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return a.reduce((e,t,n)=>(e&&(e[c[n]]=t),e),[])}catch(o){if(o instanceof l.uq)throw o;let t=()=>s.map(t=>(function(e,t){let{chainId:n,...r}=t,i=e.getClient({chainId:n});return(0,a.s)(i,h.L,"readContract")(r)})(e,{...t,blockNumber:r,blockTag:i}));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 b(e,t){let{address:n,blockNumber:c,blockTag:l,chainId:d,token:f,unit:h="ether"}=t;if(f)try{return await m(e,{balanceAddress:n,chainId:d,symbolType:"string",tokenAddress:f})}catch(t){if("ContractFunctionExecutionError"===t.name){let t=await m(e,{balanceAddress:n,chainId:d,symbolType:"bytes32",tokenAddress:f}),o=(0,r.rR)((0,i.f)(t.symbol,{dir:"right"}));return{...t,symbol:o}}throw t}let p=e.getClient({chainId:d}),b=(0,a.s)(p,s.s,"getBalance"),y=await b(c?{address:n,blockNumber:c}:{address:n,blockTag:l}),w=e.chains.find(e=>e.id===d)??p.chain;return{decimals:w.nativeCurrency.decimals,formatted:(0,o.b)(y,u(h)),symbol:w.nativeCurrency.symbol,value:y}}async function m(e,t){let{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:s,unit:a}=t,c={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:i}]}],address:s},[l,d,f]=await p(e,{allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[n],chainId:r},{...c,functionName:"decimals",chainId:r},{...c,functionName:"symbol",chainId:r}]}),h=(0,o.b)(l??"0",u(a??d));return{decimals:d,formatted:h,symbol:f,value:l}}var y=n(21637),w=n(84855),g=n(6613),v=n(41012);function A(e={}){let{address:t,query:n={}}=e,r=(0,v.Z)(e),i=(0,g.x)({config:r}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return await b(e,{...i,address:n})??null},queryKey:function(e={}){return["balance",(0,y.OP)(e)]}(t)}}(r,{...e,chainId:e.chainId??i}),s=!!(t&&(n.enabled??!0));return(0,w.aM)({...n,...o,enabled:s})}},6613:function(e,t,n){"use strict";function r(e){return e.state.chainId}n.d(t,{x:function(){return s}});var i=n(2265),o=n(41012);function s(e={}){let t=(0,o.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(e=>e.chainId,n)})(t,{onChange:e}),()=>r(t),()=>r(t))}},41012:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2265),i=n(81229),o=n(78306);let s=()=>"[email protected]";class a 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 s()}}class c extends a{constructor(){super("`useConfig` must be used within `WagmiProvi
1569der`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function u(e={}){let t=e.config??(0,r.useContext)(i.V);if(!t)throw new c;return t}},81973:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(23588),i=n(76026);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 i.wi;try{e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});let{connector:r,...i}=t,o=await n.connect(i),s=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:s,chainId:o.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:s,chainId:o.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var s=n(2265),a=n(41012);let c=[];function u(e){let t=e.connectors;return c.map(e=>e.uid)===t.map(e=>e.uid)?c:(c=t,t)}function l(e={}){let{mutation:t}=e,n=(0,a.Z)(e),{mutate:i,mutateAsync:c,...l}=(0,r.D)({...t,mutationFn:e=>o(n,e),mutationKey:["connect"]});return(0,s.useEffect)(()=>n.subscribe(({status:e})=>e,(e,t)=>{"connected"===t&&"disconnected"===e&&l.reset()}),[n,l.reset]),{...l,connect:i,connectAsync:c,connectors:function(e={}){let t=(0,a.Z)(e);return(0,s.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>u(t),()=>u(t))}({config:n})}}},41684:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(23588);async function i(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:r}=e.state,i=t.get(r);n=i?.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 o=n(41012),s=n(48369);let a=[];function c(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,s.v)(a,t)?a:(a=t,t)}var u=n(2265);function l(e={}){let{mutation:t}=e,n=(0,o.Z)(e),{mutate:a,mutateAsync:l,...d}=(0,r.D)({...t,mutationFn:e=>i(n,e),mutationKey:["disconnect"]});return{...d,connectors:(function(e={}){let t=(0,o.Z)(e);return(0,u.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>c(e),n,{equalityFn:s.v})})(t,{onChange:e}),()=>c(t),()=>c(t))})({config:n}).map(e=>e.connector),disconnect:a,disconnectAsync:l}}},96554:function(e,t,n){"use strict";n.d(t,{c:function(){return u}});var r=n(16470),i=n(46981),o=n(21637),s=n(84855),a=n(6613),c=n(41012);function u(e={}){let{name:t,query:n={}}=e,u=(0,c.Z)(e),l=(0,a.x)({config:u}),d=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:o,...s}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...o}=t,s=e.getClient({chainId:n});return(0,i.s)(s,r.r,"getEnsAvatar")(o)}(e,{...s,name:n})},queryKey:function(e={}){return["ensAvatar",(0,o.OP)(e)]}(t)}}(u,{...e,chainId:e.chainId??l}),f=!!(t&&(n.enabled??!0));return(0,s.aM)({...n,...d,enabled:f})}},61517:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(42557),i=n(46981),o=n(21637),s=n(84855),a=n(6613),c=n(41012);function u(e={}){let{address:t,query:n={}}=e,u=(0,c.Z)(e),l=(0,a.x)({config:u}),d=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:o,...s}=t[1];if(!n)throw Error("address is required");return function(e,t){let{chainId:n,...o}=t,s=e.getClient({chainId:n});return(0,i.s)(s,r.w,"getEnsName")(o)}(e,{...s,address:n})},queryKey:function(e={}){return["ensName",(0,o.OP)(e)]}(t)}}(u,{...e,chainId:e.chainId??l}),f=!!(t&&(n.enabled??!0));return(0,s.aM)({...n,...d,enabled:f})}},43324:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(68294);function i(e,t={}){let n=function(e,t={}){try{return e.getClient(t)}catch{return}}(e,t);return n?.extend(r.I)}var o=n(65401),s=n(41012);function a(e={}){let t=(0,s.Z)(e);return(0,o.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>i(e),n,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>i(t,e),()=>i(t,e),e=>e,(e,t)=>
1569e?.uid===t?.uid)}},75578:function(e,t,n){"use strict";n.d(t,{Q:function(){return m}});var r=n(23588),i=n(4832),o=n(67333),s=n(21693);async function a(e,{account:t=e.account,message:n}){if(!t)throw new o.o({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,i.T)(t);if(r.signMessage)return r.signMessage({message:n});let a="string"==typeof n?(0,s.$G)(n):n.raw instanceof Uint8Array?(0,s.NC)(n.raw):n.raw;return e.request({method:"personal_sign",params:[a,r.address]},{retryCount:0})}var c=n(46981),u=n(45583),l=n(51980),d=n(39803),f=n(76026);async function h(e,t={}){let n;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new f.$S({connector:r});let[i,o]=await Promise.all([r.getAccounts().catch(e=>{if(null===t.account)return[];throw e}),r.getChainId()]);n={accounts:i,chainId:o,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new f.aH;let r=t.chainId??n.chainId,o=await n.connector.getChainId();if(o!==r)throw new f.XZ({connectionChainId:r,connectorChainId:o});let s=n.connector;if(s.getClient)return s.getClient({chainId:r});let a=(0,i.T)(t.account??n.accounts[0]);if(a&&(a.address=(0,d.K)(a.address)),t.account&&!n.accounts.some(e=>e.toLowerCase()===a.address.toLowerCase()))throw new f.JK({address:a.address,connector:s});let c=e.chains.find(e=>e.id===r),h=await n.connector.getProvider({chainId:r});return(0,u.e)({account:a,chain:c,name:"Connector Client",transport:e=>(function(e,t={}){let{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:o}=t;return({retryCount:s})=>(0,l.q)({key:n,methods:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:o,type:"custom"})})(h)({...e,retryCount:0})})}async function p(e,t){let n;let{account:r,connector:i,...o}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await h(e,{account:r,connector:i}),(0,c.s)(n,a,"signMessage")({...o,...r?{account:r}:{}})}var b=n(41012);function m(e={}){var t;let{mutation:n}=e,i=(t=(0,b.Z)(e),{mutationFn:e=>p(t,e),mutationKey:["signMessage"]}),{mutate:o,mutateAsync:s,...a}=(0,r.D)({...n,...i});return{...a,signMessage:o,signMessageAsync:s}}},73449:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(23588),i=n(76026),o=n(29358);async function s(e,t){let{addEthereumChainParameter:n,chainId:r}=t,s=e.state.connections.get(t.connector?.uid??e.state.current);if(s){let e=s.connector;if(!e.switchChain)throw new o.O({connector:e});return await e.switchChain({addEthereumChainParameter:n,chainId:r})}let a=e.chains.find(e=>e.id===r);if(!a)throw new i.X4;return e.setState(e=>({...e,chainId:r})),a}var a=n(48369);let c=[];function u(e){let t=e.chains;return(0,a.v)(c,t)?c:(c=t,t)}var l=n(2265),d=n(41012);function f(e={}){let{mutation:t}=e,n=(0,d.Z)(e),{mutate:i,mutateAsync:o,...a}=(0,r.D)({...t,mutationFn:e=>s(n,e),mutationKey:["switchChain"]});return{...a,chains:function(e={}){let t=(0,d.Z)(e);return(0,l.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})})(t,{onChange:e}),()=>u(t),()=>u(t))}({config:n}),switchChain:i,switchChainAsync:o}}},84855:function(e,t,n){"use strict";n.d(t,{aM:function(){return o}});var r=n(39891),i=n(21637);function o(e){let t=(0,r.a)({...e,queryKeyHashFn:i.kq});return t.queryKey=e.queryKey,t}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.