PageSourceSearch

https://app.napier.finance/_next/static/chunks/5873-9b1633c3229a46b3.js

js napier.finance collected 2026-10-04 21:11:53 UTC 151,358 bytes, 23 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60f96251-843c-4356-bc5b-f7f1e2b1ddaa",e._sentryDebugIdIdentifier="sentry-dbid-60f96251-843c-4356-bc5b-f7f1e2b1ddaa")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5873],{61245:(e,t,n)=>{n.d(t,{A:()=>u});let r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};for(var i,s=new Uint8Array(16),o=[],a=0;a<256;++a)o.push((a+256).toString(16).slice(1));let u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();var a=(e=e||{}).random||(e.rng||function(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(var u=0;u<16;++u)t[n+u]=a[u];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(a)}},29684:(e,t,n)=>{function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function i(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,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 o(e,t){i(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}n.d(t,{CC:()=>s,DO:()=>i,Fe:()=>r,Ht:()=>o})},27389:(e,t,n)=>{n.d(t,{lY:()=>C});var r=n(29684);let i=BigInt(0x100000000-1),s=BigInt(32),o=(e,t,n)=>e<<n|t>>>32-n,a=(e,t,n)=>t<<n|e>>>32-n,u=(e,t,n)=>t<<n-32|e>>>64-n,c=(e,t,n)=>e<<n-32|t>>>64-n;var l=n(97750);let d=[],h=[],f=[],p=BigInt(0),b=BigInt(1),m=BigInt(2),y=BigInt(7),g=BigInt(256),v=BigInt(113);for(let e=0,t=b,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],d.push(2*(5*r+n)),h.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<b^(t>>y)*v)%g)&m&&(i^=b<<(b<<BigInt(e))-b);f.push(i)}let[w,x]=function(e,t=!1){let n=new Uint32Array(e.length),r=new 
1Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l:u}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>s&i)}:{h:0|Number(e>>s&i),l:0|Number(e&i)}}(e[o],t);[n[o],r[o]]=[a,u]}return[n,r]}(f,!0),$=(e,t,n)=>n>32?u(e,t,n):o(e,t,n),E=(e,t,n)=>n>32?c(e,t,n):a(e,t,n);class P extends l.Vw{constructor(e,t,n,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.Fe)(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,l.DH)(this.state)}keccak(){l.qv||(0,l.Fc)(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,s=n[i],o=n[i+1],a=$(s,o,1)^n[r],u=E(s,o,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=a,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=h[n],s=$(t,i,r),o=E(t,i,r),a=d[n];t=e[a],i=e[a+1],e[a]=s,e[a+1]=o}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]^=w[r],e[1]^=x[r]}n.fill(0)}(this.state32,this.rounds),l.qv||(0,l.Fc)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r.CC)(this);let{blockLen:t,state:n}=this,i=(e=(0,l.ZJ)(e)).length;for(let r=0;r<i;){let s=Math.min(t-this.pos,i-r);for(let t=0;t<s;t++)n[this.pos++]^=e[r++];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,r.CC)(this,!1),(0,r.DO)(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 s=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+s),r),this.posOut+=s,r+=s}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.Ht)(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,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:s}=this;return e||(e=new P(t,n,r,s,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=s,e.destroyed=this.destroyed,e}}let C=(0,l.ld)(()=>new P(136,1,32))},97750:(e,t,n)=>{n.d(t,{DH:()=>i,Fc:()=>l,O8:()=>s,Ow:()=>o,Vw:()=>h,ZJ:()=>d,aZ:()=>a,ld:()=>f,qv:()=>u});var r=n(29684);let i=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),s=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),o=(e,t)=>e<<32-t|e>>>t,a=(e,t)=>e<<t|e>>>32-t>>>0,u=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],c=e=>e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255;function l(e){for(let t=0;t<e.length;t++)e[t]=c(e[t])}function d(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,r.DO)(e),e}class h{clone(){return this._cloneInto()}}function f(e){let t=t=>e().update(d(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}},8711:(e,t,n)=>{n.d(t,{m:()=>s});var r=n(32065),i=n(23805),s=new class extends r.Q{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.S$&&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();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},44064:(e,t,n)=>{n.d(t,{j:()=>r});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),s=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||o()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},2014:(e,t,n)=>{n.d(t,{t:()=>s});var r=n(32065),i=n(23805),s=new class extends r.Q{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.S$&&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.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}}},38280:(e,t,n)=>{n.d(t,{X:()=>a,k:()=>u});var r=n(23805),i=n(44064),s=n(25045),o=n(11465),a=class extends o.k{#i;#s;#o;#a;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#i=function(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"}}(this.options),this.state=e.state??this.#i,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){let n=(0,r.pl)(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#i)}isActive(){return this.observers.some(e=>!1!==(0,r.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.j3)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.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.#a&&(this.#c?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.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.#c=!0,n.signal)}
1)},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,r.ZM)(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return(i(n),this.#c=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(o),this.options.behavior?.onFetch(o,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#l({type:"fetch",meta:o.fetchOptions?.meta});let a=e=>{(0,s.wm)(e)&&e.silent||this.#l({type:"error",error:e}),(0,s.wm)(e)||(this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#a=(0,s.II)({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){a(e);return}this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:a,onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#a.start()}#l(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,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...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}};case"error":let n=e.error;if((0,s.wm)(n)&&n.revert&&this.#s)return{...this.#s,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.j.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},11465:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(23805),i=class{#d;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.gcTime)&&(this.#d=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.S$?1/0:3e5))}clearGcTimeout(){this.#d&&(clearTimeout(this.#d),this.#d=void 0)}}},25045:(e,t,n)=>{n.d(t,{II:()=>d,v_:()=>u,wm:()=>l});var r=n(8711),i=n(2014),s=n(86511),o=n(23805);function a(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||i.t.isOnline()}var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){return e instanceof c}function d(e){let t,n=!1,l=0,d=!1,h=(0,s.T)(),f=()=>r.m.isFocused()&&("always"===e.networkMode||i.t.isOnline())&&e.canRun(),p=()=>u(e.networkMode)&&e.canRun(),b=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),h.resolve(n))},m=n=>{d||(d=!0,e.onError?.(n),t?.(),h.reject(n))},y=()=>new Promise(n=>{t=e=>{(d||f())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),g=()=>{let t;if(d)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(d)return;let r=e.retry??(o.S$?0:3),i=e.retryDelay??a,s="function"==typeof i?i(l,t):i,u=!0===r||"number"==typeof r&&l<r||"function"==typeof r&&r(l,t);if(n||!u){m(t);return}l++,e.onFail?.(l,t),(0,o.yy)(s).then(()=>f()?void 0:y()).then(()=>{n?m(t):g()})})};return{promise:h,cancel:t=>{d||(m(new c(t)),e.abort?.())},continue:()=>(t?.(),h),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?g():y().then(g),h)}}},32065:(e,t,n)=>{n.d(t,{Q:()=>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(){}}},86511:(e,t,n)=>{n.d(t,{T:()=>r});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}},23805:(e,t,n)=>{n.d(t,{BH:()=>b,Cp:()=>p,EN:()=>f,Eh:()=>c,F$:()=>h,MK:()=>l,S$:()=>r,ZM:()=>C,ZZ:()=>E,Zw:()=>s,d2:()=>u,f8:()=>m,gn:()=>o,hT:()=>P,j3:()=>a,lQ:()=>i,nJ:()=>d,pl:()=>x,y9:()=>$,yy:()=>w});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==h(o,t.options))return!1}else if(!p(t.queryKey,o))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)&&(!s||!!s(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(s))return!1}else if(!p(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>g(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function b(e,t){if(e===t)return e;let n=y(e)&&y(t);if(n||g(e)&&g(t)){let r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},u=0;for(let i=0;i<o;i++){let o=n?i:s[i];(!n&&r.includes(o)||n)&&void 0===e[o]&&void 0===t[o]?(a[o]=void 0,u++):(a[o]=b(e[o],t[o]),a[o]===e[o]&&void 0!==e[o]&&u++)}return i===o&&u===i?e:a}return t}function m(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 y(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 w(e){return new Promise(t=>{setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?b(e,t):t}function $(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 P=Symbol();function C(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==P?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},11408:(e,t,n)=>{n.d(t,{Ht:()=>a,jE:()=>o});var r=n(43735),i=n(13375),s=r.createContext(void 0),o=e=>{let t=r.useContext(s);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:n})}},77578:(e,t,n)=>{n.d(t,{I:()=>I});var r=n(8711),i=n(44064),s=n(38280),o=n(32065),a=n(86511),u=n(23805),c=class extends o.Q{constructor(e,t){super(),this.options=t,this.#h=e,this.#f=null,this.#p=(0,a.T)(),this.options.experimental_prefetchInRender||this.#p.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#h;#b=void 0;#m=void 0;#y=void 0;#g;#v;#p;#f;#w;#x;#$;#E;#P;#C;#O=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#b.addObserver(this),l(this.#b,this.options)?this.#M():this.updateResult(),this.#I())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#b,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#b,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#A(),this.#R(),this.#b.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#b;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Eh)(this.options.enabled,this.#b))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#N(),this.#b.setOptions(this.options),n._defaulted&&!(0,u.f8)(this.options,n)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#b,observer:this});let i=this.hasListeners();i&&h(this.#b,r,this.options,n)&&this.#M(),this.updateResult(t),i&&(this.#b!==r||(0,u.Eh)(this.options.enabled,this.#b)!==(0,u.Eh)(n.enabled,this.#b)||(0,u.d2)(this.options.staleTime,this.#b)!==(0,u.d2)(n.staleTime,this.#b))&&this.#S();let s=this.#T();i&&(this.#b!==r||(0,u.Eh)(this.options.enabled,this.#b)!==(0,u.Eh)(n.enabled,this.#b)||s!==this.#C)&&this.#j(s)}getOptimisticResult(e){let t=this.#h.getQueryCache().build(this.#h,e),n=this.createResult(t,e);return(0,u.f8)(this.getCurrentResult(),n)||(this.#y=n,this.#v=this.options,this.#g=this.#b.state),n}getCurrentResult(){return this.#y}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#O.add(e)}getCurrentQuery(){return this.#b}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#h.defaultQueryOptions(e),n=this.#h.getQueryCache().build(this.#h,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#M({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#y))}#M(e){this.#N();let t=this.#b.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.lQ)),t}#S(){this.#A();let e=(0,u.d2)(this.options.staleTime,this.#b);if(u.S$||this.#y.isStale||!(0,u.gn)(e))return;let t=(0,u.j3)(this.#y.dataUpdatedAt,e);
1this.#E=setTimeout(()=>{this.#y.isStale||this.updateResult()},t+1)}#T(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#b):this.options.refetchInterval)??!1}#j(e){this.#R(),this.#C=e,!u.S$&&!1!==(0,u.Eh)(this.options.enabled,this.#b)&&(0,u.gn)(this.#C)&&0!==this.#C&&(this.#P=setInterval(()=>{(this.options.refetchIntervalInBackground||r.m.isFocused())&&this.#M()},this.#C))}#I(){this.#S(),this.#j(this.#T())}#A(){this.#E&&(clearTimeout(this.#E),this.#E=void 0)}#R(){this.#P&&(clearInterval(this.#P),this.#P=void 0)}createResult(e,t){let n;let r=this.#b,i=this.options,o=this.#y,c=this.#g,d=this.#v,p=e!==r?e.state:this.#m,{state:b}=e,m={...b},y=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&l(e,t),a=n&&h(e,r,t,i);(o||a)&&(m={...m,...(0,s.k)(b.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:g,errorUpdatedAt:v,status:w}=m;if(t.select&&void 0!==m.data){if(o&&m.data===c?.data&&t.select===this.#w)n=this.#x;else try{this.#w=t.select,n=t.select(m.data),n=(0,u.pl)(o?.data,n,t),this.#x=n,this.#f=null}catch(e){this.#f=e}}else n=m.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===w){let e;if(o?.isPlaceholderData&&t.placeholderData===d?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#$?.state.data,this.#$):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#f=null}catch(e){this.#f=e}void 0!==e&&(w="success",n=(0,u.pl)(o?.data,e,t),y=!0)}this.#f&&(g=this.#f,n=this.#x,v=Date.now(),w="error");let x="fetching"===m.fetchStatus,$="pending"===w,E="error"===w,P=$&&x,C=void 0!==n,O={status:w,fetchStatus:m.fetchStatus,isPending:$,isSuccess:"success"===w,isError:E,isInitialLoading:P,isLoading:P,data:n,dataUpdatedAt:m.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:x,isRefetching:x&&!$,isLoadingError:E&&!C,isPaused:"paused"===m.fetchStatus,isPlaceholderData:y,isRefetchError:E&&C,isStale:f(e,t),refetch:this.refetch,promise:this.#p};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===O.status?e.reject(O.error):void 0!==O.data&&e.resolve(O.data)},n=()=>{t(this.#p=O.promise=(0,a.T)())},i=this.#p;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===O.status||O.data!==i.value)&&n();break;case"rejected":("error"!==O.status||O.error!==i.reason)&&n()}}return O}updateResult(e){let t=this.#y,n=this.createResult(this.#b,this.options);if(this.#g=this.#b.state,this.#v=this.options,void 0!==this.#g.data&&(this.#$=this.#b),(0,u.f8)(n,t))return;this.#y=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#O.size)return!0;let r=new Set(n??this.#O);return this.options.throwOnError&&r.add("error"),Object.keys(this.#y).some(e=>this.#y[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#F({...r,...e})}#N(){let e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#b)return;let t=this.#b;this.#b=e,this.#m=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#I()}#F(e){i.j.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#y)}),this.#h.getQueryCache().notify({query:this.#b,type:"observerResultsUpdated"})})}};function l(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,n){if(!1!==(0,u.Eh)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&f(e,t)}return!1}function h(e,t,n,r){return(e!==t||!1===(0,u.Eh)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&f(e,n)}function f(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&e.isStaleByTime((0,u.d2)(t.staleTime,e))}var p=n(43735),b=n(11408);n(13375);var m=p.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
1()),y=()=>p.useContext(m),g=n(57539),v=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},w=e=>{p.useEffect(()=>{e.clearReset()},[e])},x=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(0,g.G)(r,[t.error,i])},$=p.createContext(!1),E=()=>p.useContext($);$.Provider;var P=e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},C=(e,t)=>e.isLoading&&e.isFetching&&!t,O=(e,t)=>e?.suspense&&t.isPending,M=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function I(e,t){return function(e,t,n){var r,s,o,a,c;let l=(0,b.jE)(n),d=E(),h=y(),f=l.defaultQueryOptions(e);null===(s=l.getDefaultOptions().queries)||void 0===s||null===(r=s._experimental_beforeQuery)||void 0===r||r.call(s,f),f._optimisticResults=d?"isRestoring":"optimistic",P(f),v(f,h),w(h);let m=!l.getQueryCache().get(f.queryHash),[$]=p.useState(()=>new t(l,f)),I=$.getOptimisticResult(f);if(p.useSyncExternalStore(p.useCallback(e=>{let t=d?g.l:$.subscribe(i.j.batchCalls(e));return $.updateResult(),t},[$,d]),()=>$.getCurrentResult(),()=>$.getCurrentResult()),p.useEffect(()=>{$.setOptions(f,{listeners:!1})},[f,$]),O(f,I))throw M(f,$,h);if(x({result:I,errorResetBoundary:h,throwOnError:f.throwOnError,query:l.getQueryCache().get(f.queryHash)}))throw I.error;if(null===(a=l.getDefaultOptions().queries)||void 0===a||null===(o=a._experimental_afterQuery)||void 0===o||o.call(a,f,I),f.experimental_prefetchInRender&&!u.S$&&C(I,d)){let e=m?M(f,$,h):null===(c=l.getQueryCache().get(f.queryHash))||void 0===c?void 0:c.promise;null==e||e.catch(g.l).finally(()=>{$.updateResult()})}return f.notifyOnChangeProps?I:$.trackResult(I)}(e,c,t)}},57539:(e,t,n)=>{function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{G:()=>r,l:()=>i})},3725:(e,t,n)=>{n.d(t,{I_:()=>i,Zi:()=>s,xO:()=>a});var r=n(23805);function i(e,t){return(0,r.BH)(e,t)}function s(e){return JSON.stringify(e,(e,t)=>!function(e){if(!o(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(o(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:s,maxPages:o,meta:a,networkMode:u,queryFn:c,queryHash:l,queryKey:d,queryKeyHashFn:h,retry:f,retryDelay:p,structuralSharing:b,getPreviousPageParam:m,getNextPageParam:y,initialPageParam:g,_optimisticResults:v,enabled:w,notifyOnChangeProps:x,placeholderData:$,refetchInterval:E,refetchIntervalInBackground:P,refetchOnMount:C,refetchOnReconnect:O,refetchOnWindowFocus:M,retryOnMount:I,select:A,staleTime:R,suspense:N,throwOnError:S,config:T,connector:j,query:F,...z}=e;return z}},25851:(e,t,n)=>{n.d(t,{T:()=>r});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)}},22127:(e,t,n)=>{n.d(t,{C:()=>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}}},98078:(e,t,n)=>{n.d(t,{UG:()=>s,zz:()=>i});var r=n(22127);class i extends r.C{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.C{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"})}}}
1,3648:(e,t,n)=>{n.d(t,{A9:()=>i,NO:()=>a,Pj:()=>u,dV:()=>s,nx:()=>c,zd:()=>o});var r=n(22127);class i extends r.C{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 s extends r.C{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class o extends r.C{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.C{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 u extends r.C{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class c extends r.C{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},78317:(e,t,n)=>{n.d(t,{X9:()=>o,s7:()=>i,x8:()=>s});var r=n(22127);class i extends r.C{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class s extends r.C{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class o extends r.C{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"})}}},98253:(e,t,n)=>{n.d(t,{Dv:()=>E,FO:()=>b,Ji:()=>d,Rv:()=>u,WL:()=>p,Yo:()=>g,ej:()=>h,fC:()=>P,iB:()=>c,kz:()=>o,l9:()=>y,pc:()=>s,sP:()=>$,v7:()=>C,v8:()=>w});var r=n(40013);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return i.test(e)}function o(e){return(0,r.Yv)(i,e)}let a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return a.test(e)}function c(e){return(0,r.Yv)(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 h(e){return(0,r.Yv)(l,e)}let f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return f.test(e)}function b(e){return(0,r.Yv)(f,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function y(e){return m.test(e)}function g(e){return(0,r.Yv)(m,e)}let v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function w(e){return v.test(e)}let x=/^receive\(\) external payable$/;function $(e){return x.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),P=new Set(["indexed"]),C=new Set(["calldata","memory","storage"])},89651:(e,t,n)=>{n.d(t,{e:()=>d});var r=n(40013),i=n(98078),s=n(3648),o=n(78317),a=n(22127);class u extends a.C{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var c=n(98253),l=n(98275);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,c.WL)(n))continue;let i=(0,c.FO)(n);if(!i)throw new o.s7({signature:n,type:"struct"});let s=i.properties.split(";"),a=[],u=s.length;for(let e=0;e<u;e++){let t=s[e].trim();if(!t)continue;let n=(0,l.Pj)(t,{type:"struct"});a.push(n)}if(!a.length)throw new o.X9({signature:n});t[i.name]=a}let a={},d=Object.entries(t),f=d.length;for(let e=0;e<f;e++){let[n,o]=d[e];a[n]=function e(t,n,o=new Set){let a=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(r.wj.test(c.type))a.push(c);else{let t=(0,r.Yv)(h,c.type);if(!t?.type)throw new s.nx({abiParameter:c});let{array:d,type:f}=t;if(f in n){if(o.has(f))throw new u({type:f});a.push({...c,type:`tuple${d??""}`,components:e(n[f]??[],n,new Set([...o,f]))})}else if((0,l._o)(f))a.push(c);else throw new i.zz({type:f})}}return a}(o,t)}return a}let h=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},98275:(e,t,n)=>{n.d(t,{_o:()=>y,Pj:()=>b,uT:()=>d,NV:()=>m});var r=n(40013),i=n(98078),s=n(3648),o=n(78317),a=n(22127);class u extends a.C{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let c=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var l=n(98253);function d(e,t={}){if((0,l.Ji)(e)){let n=(0,l.ej)(e);if(!n)throw new o.s7({signature:e,type:"function"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{modifiers:l.v7,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.v7,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:a}}if((0,l.Rv)(e)){let n=(0,l.iB)(e);if(!n)throw new o.s7({signature:e,type:"event"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{modifiers:l.fC,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}if((0,l.pc)(e)){let n=(0,l.kz)(e);if(!n)throw new o.s7({signature:e,type:"error"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}if((0,l.l9)(e)){let n=(0,l.Yo)(e);if(!n)throw new o.s7({signature:e,type:"constructor"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}if((0,l.v8)(e))return{type:"fallback"};if((0,l.sP)(e))return{type:"receive",stateMutability:"payable"};throw new o.x8({signature:e})}let h=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^\((?<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,o;let a;let u=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:e}(e,t?.type,t?.structs);if(c.has(u))return c.get(u);let d=r.wj.test(e),v=(0,r.Yv)(d?f:h,e);if(!v)throw new s.dV({param:e});if(v.name&&("address"===(n=v.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.BD.test(n)||r.Ge.test(n)||g.test(n)))throw new s.zd({param:e,name:v.name});let w=v.name?{name:v.name}:{},x="indexed"===v.modifier?{indexed:!0}:{},$=t?.structs??{},E={};if(d){a="tuple";let e=m(v.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(b(e[r],{structs:$}));E={components:t}}else if(v.type in $)a="tuple",E={components:$[v.type]};else if(p.test(v.type))a=`${v.type}256`;else if(a=v.type,t?.type!=="struct"&&!y(a))throw new i.UG({type:a});if(v.modifier){if(!t?.modifiers?.has?.(v.modifier))throw new s.NO({param:e,type:t?.type,modifier:v.modifier});if(l.v7.has(v.modifier)&&(o=a,!v.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new s.Pj({param:e,type:t?.type,modifier:v.modifier})}let P={type:`${a}${v.array??""}`,...w,...x,...E};return c.set(u,P),P}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let s=0;s<i;s++){let i=e[s],o=e.slice(s+1);switch(i){case",":return 0===r?m(o,[...t,n.trim()]):m(o,t,`${n}${i}`,r);case"(":return m(o,t,`${n}${i}`,r+1);case")":return m(o,t,`${n}${i}`,r-1);default:return m(o,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new u({current:n,depth:r});return t.push(n.trim()),t}function y(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.BD.test(e)||r.Ge.test(e)}let g=/^(?: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)$/},40013:(e,t,n)=>{function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{BD:()=>i,Ge:()=>s,Yv:()=>r,wj:()=>o});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^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)?$/,o=/^\(.+?\).*?$/}
vendor: 3,458 bytes, line 1
1,3929:(e,t,n)=>{n.d(t,{A:()=>eF,W:()=>ej});var r,i,s="0123456789abcdef",o="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",a="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",u={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},c=!0,l="[DecimalError] ",d=l+"Invalid argument: ",h=l+"Precision limit exceeded",f=l+"crypto unavailable",p="[object Decimal]",b=Math.floor,m=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,g=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,v=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=o.length-1,$=a.length-1,E={toStringTag:p};function P(e){var t,n,r,i=e.length-1,s="",o=e[0];if(i>0){for(s+=o,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(s+=F(n)),s+=r;(n=7-(r=(o=e[t])+"").length)&&(s+=F(n))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function C(e,t,n){if(e!==~~e||e<t||e>n)throw Error(d+e)}function O(e,t,n,r){var i,s,o,a;for(s=e[0];s>=10;s/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),s=m(10,7-t),a=e[i]%s|0,null==r?t<3?(0==t?a=a/100|0:1==t&&(a=a/10|0),o=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):o=(n<4&&a+1==s||n>3&&a+1==s/2)&&(e[i+1]/s/100|0)==m(10,t-2)-1||(a==s/2||0==a)&&(e[i+1]/s/100|0)==0:t<4?(0==t?a=a/1e3|0:1==t?a=a/100|0:2==t&&(a=a/10|0),o=(r||n<4)&&9999==a||!r&&n>3&&4999==a):o=((r||n<4)&&a+1==s||!r&&n>3&&a+1==s/2)&&(e[i+1]/s/1e3|0)==m(10,t-3)-1,o}function M(e,t,n){for(var r,i,o=[0],a=0,u=e.length;a<u;){for(i=o.length;i--;)o[i]*=t;
1for(o[0]+=s.indexOf(e.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}E.absoluteValue=E.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),A(e)},E.ceil=function(){return A(new this.constructor(this),this.e+1,2)},E.clampedTo=E.clamp=function(e,t){var n=this.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(d+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new n(this)},E.comparedTo=E.cmp=function(e){var t,n,r,i,s=this.d,o=(e=new this.constructor(e)).d,a=this.s,u=e.s;if(!s||!o)return a&&u?a!==u?a:s===o?0:!s^a<0?1:-1:NaN;if(!s[0]||!o[0])return s[0]?a:o[0]?-u:0;if(a!==u)return a;if(this.e!==e.e)return this.e>e.e^a<0?1:-1;for(t=0,n=(r=s.length)<(i=o.length)?r:i;t<n;++t)if(s[t]!==o[t])return s[t]>o[t]^a<0?1:-1;return r===i?0:r>i^a<0?1:-1},E.cosine=E.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;(r=t.d.length)<32?i=(1/Q(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10"),e.precision+=n,t=_(e,1,t.times(i),new e(1));for(var s=n;s--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}(r,G(r,n)),r.precision=e,r.rounding=t,A(2==i||3==i?n.neg():n,e,t,!0)):new r(1):new r(NaN)},E.cubeRoot=E.cbrt=function(){var e,t,n,r,i,s,o,a,u,l,d=this.constructor;if(!this.isFinite()||this.isZero())return new d(this);for(c=!1,(s=this.s*m(this.s*this,1/3))&&Math.abs(s)!=1/0?r=new d(s.toString()):(n=P(this.d),(s=((e=this.e)-n.length+1)%3)&&(n+=1==s||-2==s?"0":"00"),s=m(n,1/3),e=b((e+1)/3)-(e%3==(e<0?-1:2)),(r=new d(n=s==1/0?"5e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=this.s),o=(e=d.precision)+3;;)if(r=I((l=(u=(a=r).times(a).times(a)).plus(this)).plus(this).times(a),l.plus(u),o+2,1),P(a.d).slice(0,o)===(n=P(r.d)).slice(0,o)){if("9999"!=(n=n.slice(o-3,o+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(A(r,e+1,1),t=!r.times(r).times(r).eq(this));break}if(!i&&(A(a,e+1,0),a.times(a).times(a).eq(this))){r=a;break}o+=4,i=1}return c=!0,A(r,e,d.rounding,t)},E.decimalPlaces=E.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-b(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},E.dividedBy=E.div=function(e){return I(this,new this.constructor(e))},E.dividedToIntegerBy=E.divToInt=function(e){var t=this.constructor;return A(I(this,new t(e),0,1,1),t.precision,t.rounding)},E.equals=E.eq=function(e){return 0===this.cmp(e)},E.floor=function(){return A(new this.constructor(this),this.e+1,3)},E.greaterThan=E.gt=function(e){return this.cmp(e)>0},E.greaterThanOrEqualTo=E.gte=function(e){var t=this.cmp(e);return 1==t||0===t},E.hyperbolicCosine=E.cosh=function(){var e,t,n,r,i,s=this,o=s.constructor,a=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return a;n=o.precision,r=o.rounding,o.precision=n+Math.max(s.e,s.sd())+4,o.rounding=1,(i=s.d.length)<32?t=(1/Q(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),s=_(o,1,s.times(t),new o(1),!0);for(var u,c=e,l=new o(8);c--;)u=s.times(s),s=a.minus(u.times(l.minus(u.times(l))));return A(s,o.precision=n,o.rounding=r,!0)},E.hyperbolicSine=E.sinh=function(){var e,t,n,r,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(t=s.precision,n=s.rounding,s.precision=t+Math.max(i.e,i.sd())+4,s.rounding=1,(r=i.d.length)<3)i=_(s,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=_(s,2,i=i.times(1/Q(5,e)),i,!0);for(var o,a=new s(5),u=new s(16),c=new s(20);e--;)o=i.times(i),i=i.times(a.plus(o.times(u.times(o).plus(c))))}return s.precision=t,s.rounding=n,A(i,t,n,!0)},E.hyperbolicTangent=E.tanh=function(){var e,t,n=this.constructor;return this.isFinite()?this.isZero()?new n(this):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,I(this.sinh(),this.cosh(),n.precision=e,n.rounding=t)):new n(this.s)},E.inverseCosine=E.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),i=n.precision,s=n.rounding;return -1!==r?0===r?t.isNeg()?T(n,i,s):new n(0):new n(NaN):t.isZero()?T
1(n,i+4,s).times(.5):(n.precision=i+6,n.rounding=1,t=t.asin(),e=T(n,i+4,s).times(.5),n.precision=i,n.rounding=s,e.minus(t))},E.inverseHyperbolicCosine=E.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,c=!1,n=n.times(n).minus(1).sqrt().plus(n),c=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},E.inverseHyperbolicSine=E.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,c=!1,n=n.times(n).plus(1).sqrt().plus(n),c=!0,r.precision=e,r.rounding=t,n.ln())},E.inverseHyperbolicTangent=E.atanh=function(){var e,t,n,r,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=s.precision,t=s.rounding,Math.max(r=i.sd(),e)<-(2*i.e)-1)?A(new s(i),e,t,!0):(s.precision=n=r-i.e,i=I(i.plus(1),new s(1).minus(i),n+e,1),s.precision=e+4,s.rounding=1,i=i.ln(),s.precision=e,s.rounding=t,i.times(.5)):new s(NaN)},E.inverseSine=E.asin=function(){var e,t,n,r,i=this,s=i.constructor;return i.isZero()?new s(i):(t=i.abs().cmp(1),n=s.precision,r=s.rounding,-1!==t)?0===t?((e=T(s,n+4,r).times(.5)).s=i.s,e):new s(NaN):(s.precision=n+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=r,i.times(2))},E.inverseTangent=E.atan=function(){var e,t,n,r,i,s,o,a,u,l=this,d=l.constructor,h=d.precision,f=d.rounding;if(l.isFinite()){if(l.isZero())return new d(l);if(l.abs().eq(1)&&h+4<=$)return(o=T(d,h+4,f).times(.25)).s=l.s,o}else{if(!l.s)return new d(NaN);if(h+4<=$)return(o=T(d,h+4,f).times(.5)).s=l.s,o}for(d.precision=a=h+10,d.rounding=1,e=n=Math.min(28,a/7+2|0);e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(c=!1,t=Math.ceil(a/7),r=1,u=l.times(l),o=new d(l),i=l;-1!==e;)if(i=i.times(u),s=o.minus(i.div(r+=2)),i=i.times(u),void 0!==(o=s.plus(i.div(r+=2))).d[t])for(e=t;o.d[e]===s.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),c=!0,A(o,d.precision=h,d.rounding=f,!0)},E.isFinite=function(){return!!this.d},E.isInteger=E.isInt=function(){return!!this.d&&b(this.e/7)>this.d.length-2},E.isNaN=function(){return!this.s},E.isNegative=E.isNeg=function(){return this.s<0},E.isPositive=E.isPos=function(){return this.s>0},E.isZero=function(){return!!this.d&&0===this.d[0]},E.lessThan=E.lt=function(e){return 0>this.cmp(e)},E.lessThanOrEqualTo=E.lte=function(e){return 1>this.cmp(e)},E.logarithm=E.log=function(e){var t,n,r,i,s,o,a,u=this.constructor,l=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(n=(e=new u(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new u(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t){if(n.length>1)i=!0;else{for(r=n[0];r%10==0;)r/=10;i=1!==r}}if(c=!1,O((a=I(D(this,o=l+5),t?S(u,o+10):D(e,o),o,1)).d,r=l,d))do if(o+=10,a=I(D(this,o),t?S(u,o+10):D(e,o),o,1),!i){+P(a.d).slice(r+1,r+15)+1==1e14&&(a=A(a,l+1,0));break}while(O(a.d,r+=10,d));return c=!0,A(a,l,d)},E.minus=E.sub=function(e){var t,n,r,i,s,o,a,u,l,d,h,f,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new p(e.d||this.s!==e.s?this:NaN):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(l=this.d,f=e.d,a=p.precision,u=p.rounding,!l[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!l[0])return new p(3===u?-0:0);e=new p(this)}return c?A(e,a,u):e}if(n=b(e.e/7),d=b(this.e/7),l=l.slice(),s=d-n){for((h=s<0)?(t=l,s=-s,o=f.length):(t=f,n=d,o=l.length),s>(r=Math.max(Math.ceil(a/7),o)+2)&&(s=r,t.length=1),t.reverse(),r=s;r--;)t.push(0);t.reverse()}else{for((h=(r=l.length)<(o=f.length))&&(o=r),r=0;r<o;r++)if(l[r]!=f[r]){h=l[r]<f[r];break}s=0}for(h&&(t=l,l=f,f=t,e.s=-e.s),o=l.length,r=f.length-o;r>0;--r)l[o++]=0;for(r=f.length;r>s;){if(l[--r]<f[r]){for(i=r;i&&0===l[--i];)l[i]=1e7-1;--l[i],l[r]+=1e7}l[r]-=f[r]}for(;0===l[--o];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=N(l,n),c?A(e,a,u):e):new p(3===u?-0:0)},E.modulo=E.mod=function(e){var t,n=this.constructor;return(e=new n(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(c=!1,9==n.modulo?(t=I(this,e.abs(),0,3,1),t.s*=e.s):t=I(this,e,0,n.modulo,1),t=t.times(e),c=!0,this.minus(t)):A(new n(this),n.precision,n.roun
1ding):new n(NaN)},E.naturalExponential=E.exp=function(){return B(this)},E.naturalLogarithm=E.ln=function(){return D(this)},E.negated=E.neg=function(){var e=new this.constructor(this);return e.s=-e.s,A(e)},E.plus=E.add=function(e){var t,n,r,i,s,o,a,u,l,d,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new h(e.d||this.s===e.s?this:NaN)):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(l=this.d,d=e.d,a=h.precision,u=h.rounding,!l[0]||!d[0])return d[0]||(e=new h(this)),c?A(e,a,u):e;if(s=b(this.e/7),r=b(e.e/7),l=l.slice(),i=s-r){for(i<0?(n=l,i=-i,o=d.length):(n=d,r=s,o=l.length),i>(o=(s=Math.ceil(a/7))>o?s+1:o+1)&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((o=l.length)-(i=d.length)<0&&(i=o,n=d,d=l,l=n),t=0;i;)t=(l[--i]=l[i]+d[i]+t)/1e7|0,l[i]%=1e7;for(t&&(l.unshift(t),++r),o=l.length;0==l[--o];)l.pop();return e.d=l,e.e=N(l,r),c?A(e,a,u):e},E.precision=E.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(d+e);return this.d?(t=j(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},E.round=function(){var e=this.constructor;return A(new e(this),this.e+1,e.rounding)},E.sine=E.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:_(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=_(e,2,t=t.times(1/Q(5,n)),t);for(var i,s=new e(5),o=new e(16),a=new e(20);n--;)i=t.times(t),t=t.times(s.plus(i.times(o.times(i).minus(a))));return t}(r,G(r,n)),r.precision=e,r.rounding=t,A(i>2?n.neg():n,e,t,!0)):new r(NaN)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,s,o=this.d,a=this.e,u=this.s,l=this.constructor;if(1!==u||!o||!o[0])return new l(!u||u<0&&(!o||o[0])?NaN:o?this:1/0);for(c=!1,0==(u=Math.sqrt(+this))||u==1/0?(((t=P(o)).length+a)%2==0&&(t+="0"),u=Math.sqrt(t),a=b((a+1)/2)-(a<0||a%2),r=new l(t=u==1/0?"5e"+a:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+a)):r=new l(u.toString()),n=(a=l.precision)+3;;)if(r=(s=r).plus(I(this,s,n+2,1)).times(.5),P(s.d).slice(0,n)===(t=P(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(A(r,a+1,1),e=!r.times(r).eq(this));break}if(!i&&(A(s,a+1,0),s.times(s).eq(this))){r=s;break}n+=4,i=1}return c=!0,A(r,a,l.rounding,e)},E.tangent=E.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=I(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,A(2==i||4==i?n.neg():n,e,t,!0)):new r(NaN)},E.times=E.mul=function(e){var t,n,r,i,s,o,a,u,l,d=this.constructor,h=this.d,f=(e=new d(e)).d;if(e.s*=this.s,!h||!h[0]||!f||!f[0])return new d(e.s&&(!h||h[0]||f)&&(!f||f[0]||h)?h&&f?0*e.s:e.s/0:NaN);for(n=b(this.e/7)+b(e.e/7),(u=h.length)<(l=f.length)&&(s=h,h=f,f=s,o=u,u=l,l=o),s=[],r=o=u+l;r--;)s.push(0);for(r=l;--r>=0;){for(t=0,i=u+r;i>r;)a=s[i]+f[r]*h[i-r-1]+t,s[i--]=a%1e7|0,t=a/1e7|0;s[i]=(s[i]+t)%1e7|0}for(;!s[--o];)s.pop();return t?++n:s.shift(),e.d=s,e.e=N(s,n),c?A(e,d.precision,d.rounding):e},E.toBinary=function(e,t){return V(this,2,e,t)},E.toDecimalPlaces=E.toDP=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(C(e,0,1e9),void 0===t?t=r.rounding:C(t,0,8),A(n,e+n.e+1,t))},E.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=R(r,!0):(C(e,0,1e9),void 0===t?t=i.rounding:C(t,0,8),n=R(r=A(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},E.toFixed=function(e,t){var n,r,i=this.constructor;return void 0===e?n=R(this):(C(e,0,1e9),void 0===t?t=i.rounding:C(t,0,8),n=R(r=A(new i(this),e+this.e+1,t),!1,e+r.e+1)),this.isNeg()&&!this.isZero()?"-"+n:n},E.toFraction=function(e){var t,n,r,i,s,o,a,u,l,h,f,p,b=this.d,y=this.constructor;if(!b)return new y(this);if(l=n=new y(1),r=u=new y(0),o=(s=(t=new y(r)).e=j(b)-this.e-1)%7,t.d[0]=m(10,o<0?7+o:o),null==e)e=s>0?t:l;else{if(!(a=new y(e)).isInt()||a.lt(l))throw Error(d+a);e=a.gt(t)?s>0?t:l:a}for(c=!1,a=new y(P(b)),h=y.precision,y.precision=s=14*b.length;f=I(a,t,0,1,1),1!=(i=n.plus(f.times(r))).cmp(e);)n=r,r=i,i=l,l=u.plus(f.times(i)),u=i,i=t,t=a.minus(f.times(i)),a=i;return i=I(e.minus(n),r,0,1,1),u=u.plus(i.times(l)),n=n.plus(i.times(r)),u.s=l.s=this.s,p=1>I(l,r,s,1).minus(this).abs().cmp(I(u,n,s,1).minus(this).abs())?[l,r]:[u,n],y.precision=h,c=!0,p},E.toHexadecimal=E.toHex=function(e,t){return V(this,16,e,t)},E.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:C(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(c=!1,n=I(n,e,0,t,1).times(e),c=!0,A(n)):(e.s=n.s,n=e),n},E.toNumber=function(){return+this},E.toOctal=function(e,t){return V(this,8,e,t)},E.toPower=E.pow=function(e){var t,n,r,i,s,o,a=this,u=a.constructor,l=+(e=new u(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new u(m(+a,l));if((a=new u(a)).eq(1))return a;
vendor: 6,414 bytes, line 1
1if(r=u.precision,s=u.rounding,e.eq(1))return A(a,r,s);if((t=b(e.e/7))>=e.d.length-1&&(n=l<0?-l:l)<=0x1fffffffffffff)return i=z(u,a,n,r),e.s<0?new u(1).div(i):A(i,r,s);if((o=a.s)<0){if(t<e.d.length-1)return new u(NaN);if((1&e.d[t])==0&&(o=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=o,a}return(t=0!=(n=m(+a,l))&&isFinite(n)?new u(n+"").e:b(l*(Math.log("0."+P(a.d))/Math.LN10+a.e+1)))>u.maxE+1||t<u.minE-1?new u(t>0?o/0:0):(c=!1,u.rounding=a.s=1,n=Math.min(12,(t+"").length),(i=B(e.times(D(a,r+n)),r)).d&&O((i=A(i,r+5,1)).d,r,s)&&(t=r+10,+P((i=A(B(e.times(D(a,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=A(i,r+1,0))),i.s=o,c=!0,u.rounding=s,A(i,r,s))},E.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=R(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(C(e,1,1e9),void 0===t?t=i.rounding:C(t,0,8),n=R(r=A(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},E.toSignificantDigits=E.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(C(e,1,1e9),void 0===t?t=n.rounding:C(t,0,8)),A(new n(this),e,t)},E.toString=function(){var e=this.constructor,t=R(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},E.truncated=E.trunc=function(){return A(new this.constructor(this),this.e+1,1)},E.valueOf=E.toJSON=function(){var e=this.constructor,t=R(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var I=function(){function e(e,t,n){var r,i=0,s=e.length;for(e=e.slice();s--;)r=e[s]*t+i,e[s]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,s;if(n!=r)s=n>r?1:-1;else for(i=s=0;i<n;i++)if(e[i]!=t[i]){s=e[i]>t[i]?1:-1;break}return s}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,s,o,a,u,c){var l,d,h,f,p,m,y,g,v,w,x,$,E,P,C,O,M,I,R,N,S=i.constructor,T=i.s==s.s?1:-1,j=i.d,F=s.d;if(!j||!j[0]||!F||!F[0])return new S(i.s&&s.s&&(j?!F||j[0]!=F[0]:F)?j&&0==j[0]||!F?0*T:T/0:NaN);for(c?(p=1,d=i.e-s.e):(c=1e7,p=7,d=b(i.e/p)-b(s.e/p)),R=F.length,M=j.length,w=(v=new S(T)).d=[],h=0;F[h]==(j[h]||0);h++);if(F[h]>(j[h]||0)&&d--,null==o?(P=o=S.precision,a=S.rounding):P=u?o+(i.e-s.e)+1:o,P<0)w.push(1),m=!0;else{if(P=P/p+2|0,h=0,1==R){for(f=0,F=F[0],P++;(h<M||f)&&P--;h++)C=f*c+(j[h]||0),w[h]=C/F|0,f=C%F|0;m=f||h<M}else{for((f=c/(F[0]+1)|0)>1&&(F=e(F,f,c),j=e(j,f,c),R=F.length,M=j.length),O=R,$=(x=j.slice(0,R)).length;$<R;)x[$++]=0;(N=F.slice()).unshift(0),I=F[0],F[1]>=c/2&&++I;do f=0,(l=t(F,x,R,$))<0?(E=x[0],R!=$&&(E=E*c+(x[1]||0)),(f=E/I|0)>1?(f>=c&&(f=c-1),g=(y=e(F,f,c)).length,$=x.length,1==(l=t(y,x,g,$))&&(f--,n(y,R<g?N:F,g,c))):(0==f&&(l=f=1),y=F.slice()),(g=y.length)<$&&y.unshift(0),n(x,y,$,c),-1==l&&($=x.length,(l=t(F,x,R,$))<1&&(f++,n(x,R<$?N:F,$,c))),$=x.length):0===l&&(f++,x=[0]),w[h++]=f,l&&x[0]?x[$++]=j[O]||0:(x=[j[O]],$=1);while((O++<M||void 0!==x[0])&&P--);m=void 0!==x[0]}w[0]||w.shift()}if(1==p)v.e=d,r=m;else{for(h=1,f=w[0];f>=10;f/=10)h++;v.e=h+d*p-1,A(v,u?o+v.e+1:o,a,m)}return v}}();function A(e,t,n,r){var i,s,o,a,u,l,d,h,f,p=e.constructor;e:if(null!=t){if(!(h=e.d))return e;for(i=1,a=h[0];a>=10;a/=10)i++;if((s=t-i)<0)s+=7,o=t,u=(d=h[f=0])/m(10,i-o-1)%10|0;else if((f=Math.ceil((s+1)/7))>=(a=h.length)){if(r){for(;a++<=f;)h.push(0);d=u=0,i=1,s%=7,o=s-7+1}else break e}else{for(i=1,d=a=h[f];a>=10;a/=10)i++;s%=7,u=(o=s-7+i)<0?0:d/m(10,i-o-1)%10|0}if(r=r||t<0||void 0!==h[f+1]||(o<0?d:d%m(10,i-o-1)),l=n<4?(u||r)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(s>0?o>0?d/m(10,i-o):0:h[f-1])%10&1||n==(e.s<0?8:7)),t<1||!h[0])return h.length=0,l?(t-=e.e+1,h[0]=m(10,(7-t%7)%7),e.e=-t||0):h[0]=e.e=0,e;if(0==s?(h.length=f,a=1,f--):(h.length=f+1,a=m(10,7-s),h[f]=o>0?(d/m(10,i-o)%m(10,o)|0)*a:0),l)for(;;){if(0==f){for(s=1,o=h[0];o>=10;o/=10)s++;for(o=h[0]+=a,a=1;o>=10;o/=10)a++;s!=a&&(e.e++,1e7==h[0]&&(h[0]=1));break}if(h[f]+=a,1e7!=h[f])break;h[f--]=0,a=1}for(s=h.length;0===h[--s];)h.pop()}return c&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function R(e,t,n){if(!e.isFinite())return q(e);var r,i=e.e,s=P(e.d),o=s.length;return t?(n&&(r=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+F(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):i<0?(s="0."+F(-i-1)+s,n&&(r=n-o)>0&&(s+=F(r))):i>=o?(s+=F(i+1-o),n&&(r=n-i-1)>0&&(s=s+"."+F(r))):((r=i+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(s+="."),s+=F(r))),s}function N(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function S(e,t,n){if(t>x)throw c=!0,n&&(e.precision=n),Error(h);return A(new e(o),t,1,!0)}function T(e,t,n){if(t>$)throw Error(h);return A(new e(a),t,n,!0)}function j(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function F(e){for(var t="";e--;)t+="0";return t}function z(e,t,n,r){var i,s=new e(1),o=Math.ceil(r/7+4);for(c=!1;;){if(n%2&&H((s=s.times(t)).d,o)&&(i=!0),0===(n=b(n/2))){n=s.d.length-1,i&&0===s.d[n]&&++s.d[n];break}H((t=t.times(t)).d,o)}return c=!0,s}function k(e){return 1&e.d[e.d.length-1]}function U(e,t,n){for(var r,i=new e(t[0]),s=0;++s<t.length;)if((r=new e(t[s])).s)i[n](r)&&(i=r);else{i=r;break}return i}function B(e,t){var n,r,i,s,o,a,u,l=0,d=0,h=0,f=e.constructor,p=f.rounding,b=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(null==t?(c=!1,u=b):u=t,a=new f(.03125);e.e>-2;)e=e.times(a),h+=5;for(u+=r=Math.log(m(2,h))/Math.LN10*2+5|0,n=s=o=new f(1),f.precision=u;;){if(s=A(s.times(e),u,1),n=n.times(++d),P((a=o.plus(I(s,n,u,1))).d).slice(0,u)===P(o.d).slice(0,u)){for(i=h;i--;)o=A(o.times(o),u,1);if(null!=t)return f.precision=b,o;if(!(l<3&&O(o.d,u-r,p,l)))return A(o,f.precision=b,p,c=!0);f.precision=u+=10,n=s=a=new f(1),d=0,l++}o=a}}function D(e,t){var n,r,i,s,o,a,u,l,d,h,f,p=1,b=e,m=b.d,y=b.constructor,g=y.rounding,v=y.precision;if(b.s<0||!m||!m[0]||!b.e&&1==m[0]&&1==m.length)return new y(m&&!m[0]?-1/0:1!=b.s?NaN:m?0:b);if(null==t?(c=!1,d=v):d=t,y.precision=d+=10,r=(n=P(m)).charAt(0),!(15e14>Math.abs(s=b.e)))return l=S(y,d+2,v).times(s+""),b=D(new y(r+"."+n.slice(1)),d-10).plus(l),y.precision=v,null==t?A(b,v,g,c=!0):b;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=P((b=b.times(e)).d)).charAt(0),p++;for(s=b.e,r>1?(b=new y("0."+n),s++):b=new y(r+"."+n.slice(1)),h=b,u=o=b=I(b.minus(1),b.plus(1),d,1),f=A(b.times(b),d,1),i=3;;){if(o=A(o.times(f),d,1),P((l=u.plus(I(o,new y(i),d,1))).d).slice(0,d)===P(u.d).slice(0,d)){if
vendor: 3,496 bytes, line 1
1(u=u.times(2),0!==s&&(u=u.plus(S(y,d+2,v).times(s+""))),u=I(u,new y(p),d,1),null!=t)return y.precision=v,u;if(!O(u.d,d-10,g,a))return A(u,y.precision=v,g,c=!0);y.precision=d+=10,l=o=b=I(h.minus(1),h.plus(1),d,1),f=A(b.times(b),d,1),i=a=1}u=l,i+=2}}function q(e){return String(e.s*e.s/0)}function L(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";e.d.push(+t),c&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function _(e,t,n,r,i){var s,o,a,u,l=e.precision,d=Math.ceil(l/7);for(c=!1,u=n.times(n),a=new e(r);;){if(o=I(a.times(u),new e(t++*t++),l,1),a=i?r.plus(o):r.minus(o),r=I(o.times(u),new e(t++*t++),l,1),void 0!==(o=a.plus(r)).d[d]){for(s=d;o.d[s]===a.d[s]&&s--;);if(-1==s)break}s=a,a=r,r=o,o=s}return c=!0,o.d.length=d+1,o}function Q(e,t){for(var n=e;--t;)n*=e;return n}function G(e,t){var n,r=t.s<0,s=T(e,e.precision,1),o=s.times(.5);if((t=t.abs()).lte(o))return i=r?4:1,t;if((n=t.divToInt(s)).isZero())i=r?3:2;else{if((t=t.minus(n.times(s))).lte(o))return i=k(n)?r?2:3:r?4:1,t;i=k(n)?r?1:4:r?3:2}return t.minus(s).abs()}function V(e,t,n,i){var o,a,u,c,l,d,h,f,p,b=e.constructor,m=void 0!==n;if(m?(C(n,1,1e9),void 0===i?i=b.rounding:C(i,0,8)):(n=b.precision,i=b.rounding),e.isFinite()){for(u=(h=R(e)).indexOf("."),m?(o=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):o=t,u>=0&&(h=h.replace(".",""),(p=new b(1)).e=h.length-u,p.d=M(R(p),10,o),p.e=p.d.length),a=l=(f=M(h,10,o)).length;0==f[--l];)f.pop();if(f[0]){if(u<0?a--:((e=new b(e)).d=f,e.e=a,f=(e=I(e,p,n,i,0,o)).d,a=e.e,d=r),u=f[n],c=o/2,d=d||void 0!==f[n+1],d=i<4?(void 0!==u||d)&&(0===i||i===(e.s<0?3:2)):u>c||u===c&&(4===i||d||6===i&&1&f[n-1]||i===(e.s<0?8:7)),f.length=n,d)for(;++f[--n]>o-1;)f[n]=0,n||(++a,f.unshift(1));for(l=f.length;!f[l-1];--l);for(u=0,h="";u<l;u++)h+=s.charAt(f[u]);if(m){if(l>1){if(16==t||8==t){for(u=16==t?4:3,--l;l%u;l++)h+="0";for(l=(f=M(h,o,t)).length;!f[l-1];--l);for(u=1,h="1.";u<l;u++)h+=s.charAt(f[u])}else h=h.charAt(0)+"."+h.slice(1)}h=h+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)h="0"+h;h="0."+h}else if(++a>l)for(a-=l;a--;)h+="0";else a<l&&(h=h.slice(0,a)+"."+h.slice(a))}else h=m?"0p+0":"0";h=(16==t?"0x":2==t?"0b":8==t?"0o":"")+h}else h=q(e);return e.s<0?"-"+h:h}function H(e,t){if(e.length>t)return e.length=t,!0}function W(e){return new this(e).abs()}function Z(e){return new this(e).acos()}function K(e){return new this(e).acosh()}function Y(e,t){return new this(e).plus(t)}function J(e){return new this(e).asin()}function X(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function en(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,s=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?T(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=T(this,s,1).times(.5)).s=e.s:t.s<0?(this.precision=s,this.rounding=1,n=this.atan(I(e,t,s,1)),t=T(this,s,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(I(e,t,s,1)):(n=T(this,s,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function er(e){return new this(e).cbrt()}function ei(e){return A(e=new this(e),e.e+1,2)}
1function es(e,t,n){return new this(e).clamp(t,n)}function eo(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,n,r,i=!0===e.defaults,s=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<s.length;t+=3)if(n=s[t],i&&(this[n]=u[n]),void 0!==(r=e[n])){if(b(r)===r&&r>=s[t+1]&&r<=s[t+2])this[n]=r;else throw Error(d+n+": "+r)}if(n="crypto",i&&(this[n]=u[n]),void 0!==(r=e[n])){if(!0===r||!1===r||0===r||1===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(f)}else this[n]=!1}else throw Error(d+n+": "+r)}return this}function ea(e){return new this(e).cos()}function eu(e){return new this(e).cosh()}function ec(e,t){return new this(e).div(t)}function el(e){return new this(e).exp()}function ed(e){return A(e=new this(e),e.e+1,3)}function eh(){var e,t,n=new this(0);for(e=0,c=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return c=!0,new this(1/0);n=t}return c=!0,n.sqrt()}function ef(e){return e instanceof ej||e&&e.toStringTag===p||!1}function ep(e){return new this(e).ln()}function eb(e,t){return new this(e).log(t)}function em(e){return new this(e).log(2)}function ey(e){return new this(e).log(10)}function eg(){return U(this,arguments,"lt")}function ev(){return U(this,arguments,"gt")}function ew(e,t){return new this(e).mod(t)}function ex(e,t){return new this(e).mul(t)}function e$(e,t){return new this(e).pow(t)}function eE(e){var t,n,r,i,s=0,o=new this(1),a=[];if(void 0===e?e=this.precision:C(e,1,1e9),r=Math.ceil(e/7),this.crypto){if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));s<r;)(i=t[s])>=429e7?t[s]=crypto.getRandomValues(new Uint32Array(1))[0]:a[s++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);s<r;)(i=t[s]+(t[s+1]<<8)+(t[s+2]<<16)+((127&t[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,s):(a.push(i%1e7),s+=4);s=r/4}else throw Error(f)}else for(;s<r;)a[s++]=1e7*Math.random()|0;for(r=a[--s],e%=7,r&&e&&(i=m(10,7-e),a[s]=(r/i|0)*i);0===a[s];s--)a.pop();if(s<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(r=1,i=a[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return o.e=n,o.d=a,o}function eP(e){return A(e=new this(e),e.e+1,this.rounding)}function eC(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eO(e){return new this(e).sin()}function eM(e){return new this(e).sinh()}function eI(e){return new this(e).sqrt()}function eA(e,t){return new this(e).sub(t)}function eR(){var e=0,t=arguments,n=new this(t[0]);for(c=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return c=!0,A(n,this.precision,this.rounding)}function eN(e){return new this(e).tan()}function eS(e){return new this(e).tanh()}function eT(e){return A(e=new this(e),e.e+1,1)}E[Symbol.for("nodejs.util.inspect.custom")]=E.toString,E[Symbol.toStringTag]="Decimal";var ej=E.constructor=function e(t){var n,r,i;function s(e){var t,n,r;if(!(this instanceof s))return new s(e);if(this.constructor=s,ef(e)){this.s=e.s,c?!e.d||e.e>s.maxE?(this.e=NaN,this.d=null):e.e<s.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(r=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;c?t>s.maxE?(this.e=NaN,this.d=null):t<s.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return L(this,e.toString())}if("string"!==r)throw Error(d+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===n&&(e=e.slice(1)),this.s=1),w.test(e)?L(this,e):function(e,t){var n,r,i,s,o,a,u,l,h;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return L(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(g.test(t))n=16,t=t.toLowerCase();else if(y.test(t))n=2;else if(v.test(t))n=8;else throw Error(d+t);for((s=t.search(/p/i))>0?(u=+t.slice(s+1),t=t.substring(2,s)):t=t.slice(2),o=(s=t.indexOf("."))>=0,r=e.constructor,o&&(s=(a=(t=t.replace(".","")).length)-s,i=z(r,new r(n),s,2*s)),s=h=(l=M(t,n,1e7)).length-1;0===l[s];--s)l.pop();return s<0?new r(0*e.s):(e.e=N(l,h),e.d=l,c=!1,o&&(e=I(e,i,4*a)),u&&(e=e.times(54>Math.abs(u)?m(2,u):ej.pow(2,u))),c=!0,e)}(this,e)}if(s.prototype=E,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=eo,s.clone=e,s.isDecimal=ef,s.abs=W,s.acos=Z,s.acosh=K,s.add=Y,s.asin=J,s.asinh=X,s.atan=ee,s.atanh=et,s.atan2=en,s.cbrt=er,s.ceil=ei,s.clamp=es,s.cos=ea,s.cosh=eu,s.div=ec,s.exp=el,s.floor=ed,s.hypot=eh,s.ln=ep,s.log=eb,s.log10=ey,s.log2=em,s.max=eg,s.min=ev,s.mod=ew,s.mul=ex,s.pow=e$,s.random=eE,s.round=eP,s.sign=eC,s.sin=eO,s.sinh=eM,s.sqrt=eI,s.sub=eA,s.sum=eR,s.tan=eN,s.tanh=eS,s.trunc=eT,void 0===t&&(t={}),t&&!0!==t.defaults)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return s.config(t),s}(u);o=new ej(o),a=new ej(a);let eF=ej}
1,48528:(e,t,n)=>{n.d(t,{J:()=>r});function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},2749:(e,t,n)=>{n.d(t,{s:()=>l});var r=n(30678),i=n(18448),s=n(74673),o=n(89035),a=n(85201),u=n(21157),c=n(21397);async function l(e,{address:t,blockNumber:n,blockTag:l,gatewayUrls:d,strict:h,universalResolverAddress:f}){let p=f;if(!p){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");p=(0,i.M)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let b=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let i={address:p,abi:r.oX,functionName:"reverse",args:[(0,s.nj)((0,a.F)(b))],blockNumber:n,blockTag:l},o=(0,u.T)(e,c.J,"readContract"),[h,f]=d?await o({...i,args:[...i.args,d]}):await o(i);if(t.toLowerCase()!==f.toLowerCase())return null;return h}catch(e){if(h)throw e;if((0,o.J)(e,"reverse"))return null;throw e}}},98447:(e,t,n)=>{n.d(t,{T:()=>C});var r=n(98253),i=n(89651),s=n(98275);function o(e){let t=(0,i.e)(e),n=[],o=e.length;for(let i=0;i<o;i++){let o=e[i];(0,r.WL)(o)||n.push((0,s.uT)(o,t))}return n}var a=n(48528),u=n(30678),c=n(80336),l=n(33882),d=n(31166),h=n(38617),f=n(4365),p=n(24611),b=n(57136),m=n(18448),y=n(74673),g=n(31665),v=n(43093),w=n(7452),x=n(62478),$=n(73262),E=n(14978),P=n(50959);async function C(e,t){let{account:r=e.account,batch:i=!!e.batch?.multicall,blockNumber:s,blockTag:u="latest",accessList:f,blobs:b,code:m,data:$,factory:C,factoryData:M,gas:I,gasPrice:A,maxFeePerBlobGas:R,maxFeePerGas:N,maxPriorityFeePerGas:S,nonce:T,to:j,value:F,stateOverride:z,...k}=t,U=r?(0,a.J)(r):void 0;if(m&&(C||M))throw new l.C("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(m&&j)throw new l.C("Cannot provide both `code` & `to` as parameters.");let B=m&&$,D=C&&M&&j&&$,q=B||D,L=B?function(e){let{code:t,data:n}=e;return(0,p.m)({abi:o(["constructor(bytes, bytes)"]),bytecode:c.LX,args:[t,n]})}({code:m,data:$}):D?function(e){let{data:t,factory:n,factoryData:r,to:i}=e;return(0,p.m)({abi:o(["constructor(address, bytes, address, bytes)"]),bytecode:c.WN,args:[i,t,n,r]})}({data:$,factory:C,factoryData:M,to:j}):$;try{(0,P.c)(t);let n=(s?(0,y.cK)(s):void 0)||u,r=(0,E.yH)(z),o=e.chain?.formatters?.transactionRequest?.format,a=(o||x.Bv)({...(0,w.o)(k,{format:o}),from:U?.address,accessList:f,blobs:b,data:L,gas:I,gasPrice:A,maxFeePerBlobGas:R,maxFeePerGas:N,maxPriorityFeePerGas:S,nonce:T,to:q?void 0:j,value:F});if(i&&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})&&!r)try{return await O(e,{...a,blockNumber:s,blockTag:u})}catch(e){if(!(e instanceof d.YE)&&!(e instanceof d.rj))throw e}let c=await e.request({method:"eth_call",params:r?[a,n,r]:[a,n]});if("0x"===c)return{data:void 0};return{data:c}}catch(o){let r=function(e){if(!(e instanceof l.C))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(o),{offchainLookup:i,offchainLookupSignature:s}=await n.e(6839).then(n.bind(n,6839));if(!1!==e.ccipRead&&r?.slice(0,10)===s&&j)return{data:await i(e,{data:r,to:j})};if(q&&r?.slice(0,10)==="0x101bb98d")throw new h.Po({factory:C});throw function(e,{docsPath:t,...n}){let r=(()=>{let t=(0,v.l)(e,n);return t instanceof g.RM?e:t})();return new h.zX(r,{docsPath:t,...n})}(o,{...t,account:U,chain:e.chain})}}async function O(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:s="latest",data:o,multicallAddress:a,to:c}=t,l=a;if(!l){if(!e.chain)throw new d.YE;l=(0,m.M)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let p=(i?(0,y.cK)(i):void 0)||s,{schedule:g}=(0,$.u)({id:`${e.uid}.${p}`,wait:r,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,b.p)({abi:u.v2,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:r,to:l},p]});return(0,f.e)({abi:u.v2,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:v,success:w}]=await g({data:o,to:c});if(!w)throw new h.$S({data:v});return"0x"===v?{data:void 0}:{data:v}}},21397:(e,t,n)=>{n.d(t,{J:()=>u});var r=n(4365),i=n(57136),s=n(44455),o=n(21157),a=n(98447);async function u(e,t){let{abi:n,address:u,args:c,functionName:l,...d}=t,h=(0,i.p)({abi:n,args:c,functionName:l});try{let{data:t}=await (0,o.T)(e,a.T,"call")({...d,data:h,to:u});return(0,r.e)({abi:n,args:c,functionName:l,data:t||"0x"})}catch(e){throw(0,s.j)(e,{abi:n,address:u,args:c,docsPath:"/docs/contract/readContract",functionName:l})}}},30678:(e,t,n)=>{n.d(t,{Ag:()=>s,Rm:()=>u,SJ:()=>a,_:()=>c,oX:()=>o,v2:()=>r,xw:()=>l});let r=[{inputs:[{components:[{name:"target",type:"address"}
1,{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"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],s=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],o=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],a=[{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"}]}],c=[{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"}],l=[{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"}]}]},12423:(e,t,n)=>{n.d(t,{Xd:()=>r});let r="0x0000000000000000000000000000000000000000"},80336:(e,t,n)=>{n.d(t,{LX:()=>r,WN:()=>i,nP:()=>s});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
1602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",s="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
1603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},73664:(e,t,n)=>{n.d(t,{Ao:()=>r});let r=2n**256n-1n},36084:(e,t,n)=>{n.d(t,{J9:()=>s,Mc:()=>i,fD:()=>r});let r={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},s={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},33175:(e,t,n)=>{n.d(t,{eL:()=>r,pj:()=>s,sz:()=>i});let r={gwei:9,wei:18},i={ether:-9,wei:9},s={ether:-18,gwei:-9}},77125:(e,t,n)=>{n.d(t,{BI:()=>w,Iy:()=>u,Iz:()=>y,MR:()=>g,M_:()=>m,Nc:()=>l,O:()=>c,Wq:()=>f,YE:()=>h,YF:()=>a,YW:()=>o,_z:()=>p,d_:()=>O,dm:()=>C,fo:()=>x,gH:()=>d,j:()=>P,kE:()=>b,l3:()=>$,nK:()=>E,nM:()=>v});var r=n(21030),i=n(58199),s=n(33882);class o extends s.C{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 s.C{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 u extends s.C{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.A)(t,{includeName:!0})})`,`Data:   ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class c extends s.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class l extends s.C{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}.
2Expected length: ${e}
3Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends s.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class h extends s.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
4Expected length (params): ${e}
5Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends s.C{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
6Make sure you are using the correct ABI and that the error exists on it.
7You 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 p extends s.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class b extends s.C{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
8Make sure you are using the correct ABI and that the event exists on it.
9You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends s.C{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
10Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends s.C{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
11Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class g extends s.C{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
12Cannot decode function result without knowing what the parameter types are.
13Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class v extends s.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class w extends s.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class x extends s.C{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.A)(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 $ extends s.C{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.B)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class E extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
14Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class P extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
15Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class C extends s.C{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class O extends s.C{constructor(e){super(`"${e}" is not a valid definition type.
16Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}},29795:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(33882);class i extends r.C{constructor({address:e}){super(`Address "${e}
16" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},33882:(e,t,n)=>{n.d(t,{C:()=>s});let r="2.21.55",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${r}`};class s extends Error{constructor(e,t={}){let n=t.cause instanceof s?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof s&&t.cause.docsPath||t.docsPath,a=i.getDocsUrl?.({...t,docsPath:o});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=o,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)}}},31166:(e,t,n)=>{n.d(t,{EH:()=>s,YE:()=>a,jF:()=>o,qD:()=>u,rj:()=>i});var r=n(33882);class i extends r.C{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 s extends r.C{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class o extends r.C{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class a extends r.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class u extends r.C{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
16" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},38617:(e,t,n)=>{n.d(t,{zX:()=>y,bG:()=>g,M:()=>v,rR:()=>w,Po:()=>x,$S:()=>$});var r=n(48528),i=n(36084),s=n(53359),o=n(21030),a=n(31814);function u({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.A)(t[n]):t[n]}`).join(", ")})`}var c=n(23507),l=n(20037),d=n(41271),h=n(77125),f=n(33882),p=n(41450),b=n(78799),m=n(51338);class y extends f.C{constructor(e,{account:t,docsPath:n,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:h,to:f,value:m,stateOverride:y}){let g=t?(0,r.J)(t):void 0,v=(0,b.aO)({from:g?.address,to:f,value:void 0!==m&&`${(0,l.c)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,d.Q)(a)} gwei`,maxFeePerGas:void 0!==u&&`${(0,d.Q)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.Q)(c)} gwei`,nonce:h});y&&(v+=`
17${(0,p.uj)(y)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(
vendor: 9,697 bytes, lines 17-18
17Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class g extends f.C{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:s,sender:a}){let l=(0,c.iY)({abi:t,args:n,name:s}),d=l?u({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=l?(0,o.B)(l,{includeName:!0}):void 0,f=(0,b.aO)({address:r&&(0,m.R)(r),function:h,args:d&&"()"!==d&&`${[...Array(s?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],f&&"Contract Call:",f].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=s,this.sender=a}}class v extends f.C{constructor({abi:e,data:t,functionName:n,message:r}){let a,c,l,d,f;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:a}=f=(0,s.W)({abi:e,data:t});if("Error"===r)l=a[0];else if("Panic"===r){let[e]=a;l=i.fD[e]}else{let e=n?(0,o.B)(n,{includeName:!0}):void 0,t=n&&a?u({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){a=e}else r&&(l=r);a instanceof h.Wq&&(d=a.signature,c=[`Unable to decode signature "${d}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&"execution reverted"!==l||d?[`The contract function "${n}" reverted with the following ${d?"signature":"reason"}:`,l||d].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=f,this.reason=l,this.signature=d}}class w extends f.C{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 x extends f.C{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 $ extends f.C{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}}},26291:(e,t,n)=>{n.d(t,{B4:()=>i,SK:()=>s,hX:()=>o});var r=n(33882);class i extends r.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class s extends r.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends r.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},95849:(e,t,n)=>{n.d(t,{Fl:()=>s,NV:()=>o,ii:()=>i});var r=n(33882);class i extends r.C{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 s extends r.C{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 o extends r.C{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"})}}},60476:(e,t,n)=>{n.d(t,{H2:()=>o,Ty:()=>i,u:()=>a,xO:()=>s});var r=n(33882);class i extends r.C{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 s extends r.C{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 o extends r.C{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.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},31665:(e,t,n)=>{n.d(t,{A7:()=>s,BG:()=>o,Fo:()=>f,K0:()=>u,Oh:()=>c,RM:()=>m,jj:()=>a,k5:()=>d,lN:()=>b,lY:()=>h,uC:()=>p,vW:()=>l});var r=n(41271),i=n(33882);class s extends i.C{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(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"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.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(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 u extends i.C{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(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
18Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.C{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.C{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 h extends i.C{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"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}
vendor: 8,442 bytes, lines 18-23
18Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.C{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.C{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.Q)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.Q)(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.C{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},4330:(e,t,n)=>{n.d(t,{Ci:()=>o,J8:()=>a,MU:()=>u});var r=n(31814),i=n(33882),s=n(51338);class o extends i.C{constructor({body:e,cause:t,details:n,headers:i,status:o,url:a}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,s.I)(a)}`,e&&`Request body: ${(0,r.A)(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=o,this.url=a}}class a extends i.C{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,s.I)(n)}`,`Request body: ${(0,r.A)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class u extends i.C{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,s.I)(t)}`,`Request body: ${(0,r.A)(e)}`],name:"TimeoutError"})}}},44448:(e,t,n)=>{n.d(t,{CL:()=>u,D5:()=>l,Di:()=>h,Gi:()=>c,MI:()=>C,RV:()=>$,Sf:()=>x,XU:()=>a,YW:()=>b,ab:()=>m,bq:()=>d,ch:()=>P,hA:()=>f,qZ:()=>p,s0:()=>y,sV:()=>w,vx:()=>v,xQ:()=>g,xq:()=>E});var r=n(33882),i=n(4330);class s extends r.C{constructor(e,{code:t,docsPath:n,metaMessages:r,name:s,shortMessage:o}){super(o,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||e.name,this.code=e instanceof i.J8?e.code:t??-1}}class o extends s{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 s{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 u extends s{constructor(e){super(e,{code:u.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends s{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends s{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 s{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 h extends s{constructor(e){super(e,{code:h.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class f extends s{constructor(e){super(e,{code:f.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends s{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 s{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 s{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not implemented.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends s{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 g extends s{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends o{constructor(e){super(e,{code:v.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends o{constructor(e){super(e,{code:w.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class x extends o{constructor(e,{method:t}={}){super(e,{code:x.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class $ extends o{constructor(e){super(e,{code:$.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty($,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class E extends o{constructor(e){super(e,{code:E.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class P extends o{constructor(e){super(e,{code:P.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class C extends s{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},41450:(e,t,n)=>{n.d(t,{Hi:()=>i,ft:()=>s,uj:()=>a});var r=n(33882);class i extends r.C{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class s extends r.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(e){return e.reduce((e,{slot:t,value:n})=>`${e}        ${t}: ${n}
19`,"")}function a(e){return e.reduce((e,{address:t,...n})=>{let r=`${e}    ${t}:
20`;return n.nonce&&(r+=`      nonce: ${n.nonce}
21`),n.balance&&(r+=`      balance: ${n.balance}
22`),n.code&&(r+=`      code: ${n.code}
23`),n.state&&(r+="      state:\n",r+=o(n.state)),n.stateDiff&&(r+="      stateDiff:\n",r+=o(n.stateDiff)),r},"  State Override:\n").slice(0,-1)}}
vendor: 4,378 bytes, line 23
23,78799:(e,t,n)=>{n.d(t,{$s:()=>d,Kc:()=>f,Kz:()=>h,Vg:()=>c,WA:()=>p,aO:()=>o,fZ:()=>l,n3:()=>a,zW:()=>u});var r=n(20037),i=n(41271),s=n(33882);function o(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 a extends s.C{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 u extends s.C{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class c extends s.C{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(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 l extends s.C{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 d extends s.C{constructor(e,{account:t,docsPath:n,chain:s,data:a,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:h,to:f,value:p}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:s&&`${s?.name} (id: ${s?.id})`,from:t?.address,to:f,value:void 0!==p&&`${(0,r.c)(p)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:u,gasPrice:void 0!==c&&`${(0,i.Q)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.Q)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.Q)(d)} gwei`,nonce:h})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class h extends s.C{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let s="Transaction";n&&void 0!==i&&(s=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(s=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(s=`Transaction at block number "${t}" at index "${i}"`),r&&(s=`Transaction with hash "${r}"`),super(`${s} could not be found.`,{name:"TransactionNotFoundError"})}}class f extends s.C{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 p extends s.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},51338:(e,t,n)=>{n.d(t,{I:()=>i,R:()=>r});let r=e=>e,i=e=>e},65570:(e,t,n)=>{n.d(t,{n:()=>b});var r=n(77125),i=n(52888),s=n(86059),o=n(58199),a=n(36464),u=n(74550),c=n(60476),l=n(93882),d=n(74673);function h(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,l.ME)(n,t)}var f=n(68731),p=n(9018);function b(e,t){let n="string"==typeof t?(0,f.aT)(t):t,b=(0,s.l)(n);if(0===(0,o.E)(n)&&e.length>0)throw new r.O;if((0,o.E)(t)&&32>(0,o.E)(t))throw new r.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,o.E)(t)});let y=0,g=[];for(let t=0;t<e.length;++t){let n=e[t];b.setPosition(y);let[s,o]=function e(t,n,{staticPosition:s}){let o=(0,p.k)(n.type);if(o){let[r,i]=o;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+h(t.readBytes(32)),s=r+32;t.setPosition(r);let o=h(t.readBytes(32)),a=m(n),u=0,c=[];for(let r=0;r<o;++r){t.setPosition(s+(a?32*r:u));let[i,o]=e(t,n,{staticPosition:s});u+=o,c.push(i)}return t.setPosition(i+32),[c,32]}if(m(n)){let s=i+h(t.readBytes(32)),o=[];for(let i=0;i<r;++i){t.setPosition(s+32*i);let[r]=e(t,n,{staticPosition:s});o.push(r)}return t.setPosition(i+32),[o,32]}let s=0,o=[];for(let a=0;a<r;++a){let[r,a]=e(t,n,{staticPosition:i+s});s+=a,o.push(r)}return[o,s]}(t,{...n,type:i},{length:r,staticPosition:s})}if("tuple"===n.type)return function(t,n,{staticPosition:r}
vendor: 5,179 bytes, line 23
23){let i=0===n.components.length||n.components.some(({name:e})=>!e),s=i?[]:{},o=0;if(m(n)){let a=r+h(t.readBytes(32));for(let r=0;r<n.components.length;++r){let u=n.components[r];t.setPosition(a+o);let[c,l]=e(t,u,{staticPosition:a});o+=l,s[i?r:u?.name]=c}return t.setPosition(r+32),[s,32]}for(let a=0;a<n.components.length;++a){let u=n.components[a],[c,l]=e(t,u,{staticPosition:r});s[i?a:u?.name]=c,o+=l}return[s,o]}(t,n,{staticPosition:s});if("address"===n.type)return function(e){let t=e.readBytes(32);return[(0,i.o)((0,d.My)((0,a.A1)(t,-20))),32]}(t);if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Sl)(n,{size:t.size}),n=(0,u.B)(n)),n.length>1||n[0]>1)throw new c.xO(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=h(e.readBytes(32));e.setPosition(n+t);let r=h(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.My)(i),32]}return[(0,d.My)(e.readBytes(Number.parseInt(i),32)),32]}(t,n,{staticPosition:s});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"),i=e.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,l.uU)(n,t)}(i,{signed:n}):h(i,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=h(e.readBytes(32));e.setPosition(t+n);let r=h(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=e.readBytes(r,32),s=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Sl)(n,{size:t.size}),n=(0,u.B)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,u.B)(i));return e.setPosition(t+32),[s,32]}(t,{staticPosition:s});throw new r.j(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,n,{staticPosition:0});y+=o,g.push(s)}return g}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.k)(e.type);return!!(n&&m({...e,type:n[1]}))}},53359:(e,t,n)=>{n.d(t,{W:()=>c});var r=n(36084),i=n(77125),s=n(36464),o=n(47678),a=n(65570),u=n(21030);function c(e){let{abi:t,data:n}=e,c=(0,s.di)(n,0,4);if("0x"===c)throw new i.O;let l=[...t||[],r.Mc,r.J9].find(e=>"error"===e.type&&c===(0,o.V)((0,u.B)(e)));if(!l)throw new i.Wq(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,a.n)(l.inputs,(0,s.di)(n,4)):void 0,errorName:l.name}}},4365:(e,t,n)=>{n.d(t,{e:()=>a});var r=n(77125),i=n(65570),s=n(23507);let o="/docs/contract/decodeFunctionResult";function a(e){let{abi:t,args:n,functionName:a,data:u}=e,c=t[0];if(a){let e=(0,s.iY)({abi:t,args:n,name:a});if(!e)throw new r.Iz(a,{docsPath:o});c=e}if("function"!==c.type)throw new r.Iz(void 0,{docsPath:o});if(!c.outputs)throw new r.MR(c.name,{docsPath:o});let l=(0,i.n)(c.outputs,u);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},9018:(e,t,n)=>{n.d(t,{h:()=>p,k:()=>m});var r=n(77125),i=n(29795),s=n(33882),o=n(60476),a=n(94176),u=n(85362),c=n(34267),l=n(58199),d=n(36464),h=n(74673),f=n(28164);function p(e,t){if(e.length!==t.length)throw new r.YE({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,s]=p;return function(t,{length:n,param:i}){let s=null===n;if(!Array.isArray(t))throw new r.dm(t);if(!s&&t.length!==n)throw new r.Nc({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=!1,a=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(o=!0),a.push(r)}if(s||o){let e=b(a);if(s){let t=(0,h.cK)(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?(0,u.xW)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,u.xW)(a.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let s=0;s<n.components.length;s++){let o=n.components[s],a=Array.isArray(t)?s:o.name,u=e({param:o,value:t[a]});i.push(u),u.dynamic&&(r=!0)}return{dynamic:r,encoded:r?b(i):(0,u.xW)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,a.P)(e))throw new i.M({address:e});return{dynamic:!1,encoded:(0,c.db)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new s.C(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.db)((0,h.$P)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=f.Ge.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 o.Ty({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,h.cK)(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.E)(e);if(!n){let t=e;
vendor: 3,654 bytes, line 23
23return i%32!=0&&(t=(0,c.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,u.xW)([(0,c.db)((0,h.cK)(i,{size:32})),t])}}if(i!==Number.parseInt(n))throw new r.gH({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:(0,c.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,h.i3)(e),n=Math.ceil((0,l.E)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,c.db)((0,d.di)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,u.xW)([(0,c.db)((0,h.cK)((0,l.E)(t),{size:32})),...r])}}(n);throw new r.nK(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.E)(i)}let n=[],r=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(n.push((0,h.cK)(t+i,{size:32})),r.push(a),i+=(0,l.E)(a)):n.push(a)}return(0,u.xW)([...n,...r])}function m(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},24611:(e,t,n)=>{n.d(t,{m:()=>a});var r=n(77125),i=n(85362),s=n(9018);let o="/docs/contract/encodeDeployData";function a(e){let{abi:t,args:n,bytecode:a}=e;if(!n||0===n.length)return a;let u=t.find(e=>"type"in e&&"constructor"===e.type);if(!u)throw new r.YW({docsPath:o});if(!("inputs"in u)||!u.inputs||0===u.inputs.length)throw new r.YF({docsPath:o});let c=(0,s.h)(u.inputs,n);return(0,i.aP)([a,c])}},57136:(e,t,n)=>{n.d(t,{p:()=>l});var r=n(85362),i=n(9018),s=n(77125),o=n(47678),a=n(21030),u=n(23507);let c="/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,u.iY)({abi:t,args:n,name:r});if(!e)throw new s.Iz(r,{docsPath:c});i=e}if("function"!==i.type)throw new s.Iz(void 0,{docsPath:c});return{abi:[i],functionName:(0,o.V)((0,a.B)(i))}}(e),d=n[0],h="inputs"in d&&d.inputs?(0,i.h)(d.inputs,t??[]):void 0;return(0,r.aP)([l,h??"0x"])}},21030:(e,t,n)=>{n.d(t,{A:()=>s,B:()=>i});var r=n(77125);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.d_(e.type);return`${e.name}(${s(e.inputs,{includeName:t})})`}function s(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${s(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},23507:(e,t,n)=>{n.d(t,{iY:()=>u});var r=n(77125),i=n(92699),s=n(94176),o=n(49592),a=n(47678);function u(e){let t;let{abi:n,args:u=[],name:c}=e,l=(0,i.q)(c,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,a.V)(e)===c:"event"===e.type&&(0,o.h)(e)===c:"name"in e&&e.name===c);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!u||0===u.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===u.length&&u.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,s.P)(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: 5,049 bytes, line 23
23if(/[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 o=t[i],a=n[i];if("tuple"===o.type&&"tuple"===a.type&&"components"in o&&"components"in a)return e(o.components,a.components,r[i]);let u=[o.type,a.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,s.P)(r[i],{strict:!1}))return u}}(e.inputs,t.inputs,u);if(n)throw new r.nM({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}return t||d[0]}}},52888:(e,t,n)=>{n.d(t,{b:()=>l,o:()=>c});var r=n(29795),i=n(68731),s=n(73273),o=n(75606),a=n(94176);let u=new o.A(8192);function c(e,t){if(u.has(`${e}.${t}`))return u.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,s.S)((0,i.Af)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&r[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return u.set(`${e}.${t}`,a),a}function l(e,t){if(!(0,a.P)(e,{strict:!1}))throw new r.M({address:e});return c(e,t)}},94176:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(75606),i=n(52888);let s=/^0x[a-fA-F0-9]{40}$/,o=new r.A(8192);function a(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(o.has(r))return o.get(r);let a=!!s.test(e)&&(e.toLowerCase()===e||!n||(0,i.o)(e)===e);return o.set(r,a),a}},18448:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(31166);function i({blockNumber:e,chain:t,contract:n}){let i=t?.contracts?.[n];if(!i)throw new r.rj({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new r.rj({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}},86059:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(26291);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.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.B4({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.B4({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 s(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}}
23,85362:(e,t,n)=>{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)=>e+t.replace("0x",""),"")}`}n.d(t,{aP:()=>i,xW:()=>r})},92699:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},34267:(e,t,n)=>{n.d(t,{db:()=>s,eV:()=>i});var r=n(95849);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?s(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.Fl({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let s="right"===t;i[s?r:n-r-1]=e[s?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function s(e,{dir:t,size:n=32}={}){if(null===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new r.Fl({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},58199:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(92699);function i(e){return(0,r.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},36464:(e,t,n)=>{n.d(t,{A1:()=>c,di:()=>o,iN:()=>l});var r=n(95849),i=n(92699),s=n(58199);function o(e,t,n,{strict:r}={}){return(0,i.q)(e,{strict:!1})?l(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,s.E)(e)-1)throw new r.ii({offset:t,position:"start",size:(0,s.E)(e)})}function u(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,s.E)(e)!==n-t)throw new r.ii({offset:n,position:"end",size:(0,s.E)(e)})}function c(e,t,n,{strict:r}={}){a(e,t);let i=e.slice(t,n);return r&&u(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&&u(i,t,n),i}},74550:(e,t,n)=>{n.d(t,{B:()=>r});function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<n.length-1&&"0"===n["left"===t?e:n.length-e-1].toString();e++)i++;return(n="left"===t?n.slice(i):n.slice(0,n.length-i),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}},93882:(e,t,n)=>{n.d(t,{IQ:()=>d,ME:()=>l,Nx:()=>c,Sl:()=>a,uU:()=>u});var r=n(60476),i=n(58199),s=n(74550),o=n(68731);function a(e,{size:t}){if((0,i.E)(e)>t)throw new r.u({givenSize:(0,i.E)(e),maxSize:t})}function u(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 c(e,t={}){let n=e;if(t.size&&(a(n,{size:t.size}),n=(0,s.B)(n)),"0x00"===(0,s.B)(n))return!1;if("0x01"===(0,s.B)(n))return!0;throw new r.H2(n)}function l(e,t={}){return Number(u(e,t))}function d(e,t={}){let n=(0,o.aT)(e);return t.size&&(a(n,{size:t.size}),n=(0,s.B)(n,{dir:"right"})),new TextDecoder().decode(n)}},68731:(e,t,n)=>{n.d(t,{Af:()=>f,ZJ:()=>c,aT:()=>h});var r=n(33882),i=n(92699),s=n(34267),o=n(93882),a=n(74673);let u=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?h((0,a.cK)(e,t)):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,o.Sl)(n,{size:t.size}),(0,s.eV)(n,{size:t.size})):n}(e,t):(0,i.q)(e)?h(e,t):f(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 h(e,t={}){let n=e;t.size&&((0,o.Sl)(n,{size:t.size}),n=(0,s.eV)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,u=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let n=d(i.charCodeAt(t++)),s=d(i.charCodeAt(t++));if(void 0===n||void 0===s)throw new r.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);u[e]=16*n+s}return u}function f(e,t={}){let n=u.encode(e);return"number"==typeof t.size?((0,o.Sl)(n,{size:t.size}),(0,s.eV)(n,{dir:"right",size:t.size})):n}},74673:(e,t,n)=>{n.d(t,{$P:()=>u,My:()=>c,cK:()=>l,i3:()=>h,nj:()=>a});var r=n(60476),i=n(34267),s=n(93882);let o=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?h(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,s.Sl)(n,{size:t.size}),(0,i.eV)(n,{size:t.size})):n}function c(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=o[e[t]];let r=`0x${n}`;return"number"==typeof t.size?((0,s.Sl)(r,{size:t.size}),(0,i.eV)(r,{dir:"right",size:t.size})):r}function l(e,t={}){let n;let{signed:s,size:o}=t,a=BigInt(e);o?n=s?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof n&&s?-n-1n:0;if(n&&a>n||a<u){let t="bigint"==typeof e?"n":"";throw new r.Ty({max:n?`${n}${t}`:void 0,min:`${u}${t}`,signed:s,size:o,value:`${e}${t}`})}let c=`0x${(s&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,i.eV)(c,{size:o}):c}let d=new TextEncoder;function h(e,t={}){return c(d.encode(e),t)}},14537:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(92699);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.q)(t)?t:null}},89035:(e,t,n)=>{n.d(t,{J:()=>
23o});var r=n(36084),i=n(33882),s=n(38617);function o(e,t){if(!(e instanceof i.C))return!1;let n=e.walk(e=>e instanceof s.M);return n instanceof s.M&&(!!(n.data?.errorName==="ResolverNotFound"||n.data?.errorName==="ResolverWildcardNotSupported"||n.data?.errorName==="ResolverNotContract"||n.data?.errorName==="ResolverError"||n.data?.errorName==="HttpError"||n.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&n.reason===r.fD[50])}},85201:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(68731),i=n(74673),s=n(73273),o=n(14537);function a(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,r.Af)(t).byteLength+2),a=0,u=t.split(".");for(let e=0;e<u.length;e++){let t=(0,r.Af)(u[e]);if(t.byteLength>255){var c;t=(0,r.Af)((c=function(e){let t=new Uint8Array(32).fill(0);return e?(0,o.q)(e)||(0,s.S)((0,r.Af)(e)):(0,i.My)(t)}(u[e]),`[${c.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}},44455:(e,t,n)=>{n.d(t,{j:()=>a});var r=n(77125),i=n(33882),s=n(38617),o=n(44448);function a(e,{abi:t,address:n,args:a,docsPath:u,functionName:c,sender:l}){let{code:d,data:h,message:f,shortMessage:p}=e instanceof s.$S?e:e instanceof i.C?e.walk(e=>"data"in e)||e.walk():{},b=e instanceof r.O?new s.rR({functionName:c}):[3,o.bq.code].includes(d)&&(h||f||p)?new s.M({abi:t,data:"object"==typeof h?h.data:h,functionName:c,message:p??f}):e;return new s.bG(b,{abi:t,args:a,contractAddress:n,docsPath:u,functionName:c,sender:l})}}
23,43093:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(33882),i=n(31665);function s(e,t){let n=(e.details||"").toLowerCase(),s=e instanceof r.C?e.walk(e=>e?.code===i.A7.code):e;return s instanceof r.C?new i.A7({cause:e,message:s.details}):i.A7.nodeMessage.test(n)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(n)?new i.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.jj.nodeMessage.test(n)?new i.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.K0.nodeMessage.test(n)?new i.K0({cause:e,nonce:t?.nonce}):i.Oh.nodeMessage.test(n)?new i.Oh({cause:e,nonce:t?.nonce}):i.vW.nodeMessage.test(n)?new i.vW({cause:e,nonce:t?.nonce}):i.k5.nodeMessage.test(n)?new i.k5({cause:e}):i.lY.nodeMessage.test(n)?new i.lY({cause:e,gas:t?.gas}):i.Fo.nodeMessage.test(n)?new i.Fo({cause:e,gas:t?.gas}):i.uC.nodeMessage.test(n)?new i.uC({cause:e}):i.lN.nodeMessage.test(n)?new i.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.RM({cause:e})}},7452:(e,t,n)=>{n.d(t,{o:()=>r});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}},62478:(e,t,n)=>{n.d(t,{Bv:()=>s});var r=n(74673);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function s(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,r.cK)(e.chainId),nonce:(0,r.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.cK)(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.My)(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.cK)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,r.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,r.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,r.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,r.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,r.cK)(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.cK)(e.value)),t}},21157:(e,t,n)=>{n.d(t,{T:()=>r});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)}},73273:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(27389),i=n(92699),s=n(68731),o=n(74673);function a(e,t){let n=(0,r.lY)((0,i.q)(e,{strict:!1})?(0,s.ZJ)(e):e);return"bytes"===(t||"hex")?n:(0,o.nj)(n)}},49592:(e,t,n)=>{n.d(t,{h:()=>r});let r=n(26522).k},47678:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(36464),i=n(26522);let s=e=>(0,r.di)((0,i.k)(e),0,4)},26522:(e,t,n)=>{n.d(t,{k:()=>d});var r=n(68731),i=n(73273);let s=e=>(0,i.S)((0,r.ZJ)(e));var o=n(40013);let a=/^tuple(?<array>(\[(\d*)\])*)$/;function u(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=function e(t){let n=t.type;if(a.test(t.type)&&"components"in t){n="(";let r=t.components.length;for(let i=0;i<r;i++)n+=e(t.components[i]),i<r-1&&(n+=", ");let i=(0,o.Yv)(a,t.type);return n+=`)${i?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
23 indexed`),t.name)?`${n} ${t.name}`:n}(e[r]),r!==n-1&&(t+=", ");return t}var c=n(33882);let l=e=>(function(e){let t=!0,n="",r=0,i="",s=!1;for(let o=0;o<e.length;o++){let a=e[o];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){s=!0;break}continue}if(" "===a){","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=a,n+=a}}if(!s)throw new c.C("Unable to normalize signature.");return i})("string"==typeof e?e:function(e){return"function"===e.type?`function ${e.name}(${u(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${u(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${u(e.inputs)})`:"error"===e.type?`error ${e.name}(${u(e.inputs)})`:"constructor"===e.type?`constructor(${u(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}(e));function d(e){return s(l(e))}},75606:(e,t,n)=>{n.d(t,{A:()=>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}}},73262:(e,t,n)=>{n.d(t,{u:()=>s});var r=n(24658);let i=new Map;function s({fn:e,id:t,shouldSplitBatch:n,wait:s=0,sort:o}){let a=async()=>{let t=l();u();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{o&&Array.isArray(e)&&e.sort(o);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)}})},u=()=>i.delete(t),c=()=>l().map(({args:e})=>e),l=()=>i.get(t)||[],d=e=>i.set(t,[...l(),e]);return{flush:u,async schedule(e){let{promise:t,resolve:i,reject:o}=(0,r.Y)();return(n?.([...c(),e])&&a(),l().length>0)?d({args:e,resolve:i,reject:o}):(d({args:e,resolve:i,reject:o}),setTimeout(a,s)),t}}}},24658:(e,t,n)=>{n.d(t,{Y:()=>r});function r(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}},28164:(e,t,n)=>{n.d(t,{BD:()=>r,Ge:()=>i});let r=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^(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)?$/},14978:(e,t,n)=>{n.d(t,{yH:()=>c});var r=n(29795),i=n(95849),s=n(41450),o=n(94176),a=n(74673);function u(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new i.NV({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new i.NV({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function c(e){if(!e)return;let t={};for(let{address:n,...i}of e){if(!(0,o.P)(n,{strict:!1}))throw new r.M({address:n});if(t[n])throw new s.Hi({address:n});t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:i,code:o}=e,c={};if(void 0!==o&&(c.code=o),void 0!==t&&(c.balance=(0,a.cK)(t)),void 0!==n&&(c.nonce=(0,a.cK)(n)),void 0!==r&&(c.state=u(r)),void 0!==i){if(c.state)throw new s.ft;c.stateDiff=u(i)}return c}(i)}return t}},31814:(e,t,n)=>{n.d(t,{A:()=>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)},50959:(e,t,n)=>{n.d(t,{c:()=>c});var r=n(48528),i=n(73664),s=n(29795),o=n(31665),a=n(78799),u=n(94176);function c(e){let{account:t,gasPrice:n,maxFeePerGas:c,maxPriorityFeePerGas:l,to:d}=e,h=t?(0,r.J)(t):void 0;if(h&&!(0,u.P)(h.address))throw new s.M({address:h.address});if(d&&!(0,u.P)(d))throw new s.M({address:d});if(void 0!==n&&(void 0!==c||void 0!==l))throw new a.n3;if(c&&c>i.Ao)throw new o.BG({maxFeePerGas:c});if(l&&c&&l>c)throw new o.lN({maxFeePerGas:c,maxPriorityFeePerGas:l})}},20037:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(33175),i=n(18070);function s(e,t="wei"){return(0,i.J)(e,r.eL[t])}},41271:(e,t,n)=>{n.d(t,{Q:()=>s});var r=n(33175),i=n(18070);function s(e,t="wei"){return(0,i.J)(e,r.sz[t])}},18070:(e,t,n)=>{n.d(t,{J:()=>r});function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,s]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${s?`.${s}`:""}`}}
23,82504:(e,t,n)=>{function r(e){return e.state.chainId}n.d(t,{i:()=>o});var i=n(43735),s=n(12587);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.U)(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))}},19147:(e,t,n)=>{n.d(t,{v:()=>c});var r=n(2749),i=n(25851),s=n(3725),o=n(67244),a=n(82504),u=n(12587);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:c,query:l={}}=n,d=(0,u.U)(n),h=(0,a.i)({config:d}),f=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:s,...o}=t[1];if(!n)throw Error("address is required");return function(e,t){let{chainId:n,...s}=t,o=e.getClient({chainId:n});return(0,i.T)(o,r.s,"getEnsName")(s)}(e,{...o,address:n})},queryKey:function(e={}){return["ensName",(0,s.xO)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),p=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.IT)({...l,...f,enabled:p})}},67244:(e,t,n)=>{n.d(t,{IT:()=>s});var r=n(77578),i=n(3725);function s(e){let t=(0,r.I)({...e,queryKeyHashFn:i.Zi});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.