PageSourceSearch

https://www.legend.trade/_next/static/immutable/chunks/1mqqpr8qrzvo0.js

js legend.trade collected 2026-10-04 07:44:26 UTC 115,479 bytes, 28 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,570635,916067,125500,759169,256881,156884,922298,756076,556162,918805,487992,e=>{"use strict";e.s(["IntegerOutOfRangeError",()=>eg,"InvalidLengthError",()=>eE,"SizeExceedsPaddingSizeError",()=>eA,"SizeOverflowError",()=>ex,"SliceOffsetOutOfBoundsError",()=>e$,"concat",()=>ei,"from",()=>ea,"fromBoolean",()=>es,"fromBytes",()=>eo,"fromNumber",()=>ec,"fromString",()=>eu,"padLeft",()=>el,"padRight",()=>ef,"size",()=>eb,"slice",()=>ed,"toBigInt",()=>em,"toNumber",()=>eh,"trimLeft",()=>ep,"validate",()=>ey],918805),e.s(["assertEndOffset",()=>X,"assertSize",()=>K,"assertStartOffset",()=>Y,"pad",()=>Q,"trim",()=>ee],756076);var t=e.i(950185);let r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(e){return r.test(e)}function i(e){return(0,t.execTyped)(r,e)}let a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return a.test(e)}function o(e){return(0,t.execTyped)(a,e)}let c=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function u(e){return c.test(e)}function l(e){return(0,t.execTyped)(c,e)}let f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function d(e){return f.test(e)}function b(e){return(0,t.execTyped)(f,e)}let p=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function m(e){return p.test(e)}function h(e){return(0,t.execTyped)(p,e)}let y=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(e){return y.test(e)}function v(e){return(0,t.execTyped)(y,e)}let w=/^receive\(\) external payable$/;function E(e){return w.test(e)}let x=new Set(["memory","indexed","storage","calldata"]),$=new Set(["indexed"]),A=new Set(["calldata","memory","storage"]);e.s(["eventModifiers",0,$,"execConstructorSignature",0,h,"execErrorSignature",0,i,"execEventSignature",0,o,"execFallbackSignature",0,v,"execFunctionSignature",0,l,"execStructSignature",0,b,"functionModifiers",0,A,"isConstructorSignature",0,m,"isErrorSignature",0,n,"isEventSignature",0,s,"isFallbackSignature",0,g,"isFunctionSignature",0,u,"isReceiveSignature",0,E,"isStructSignature",0,d,"modifiers",0,x],916067);class P extends Error{constructor(e,t={}){const r=t.cause instanceof P?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof P&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"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=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class B extends P{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class I extends P{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"})}}e.s(["InvalidAbiItemError",0,class extends P{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}},"UnknownSolidityTypeError",0,I,"UnknownTypeError",0,B],125500);class T extends P{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class z extends P{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class S extends P{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class M extends P{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class O extends P{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
1d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}e.s(["InvalidAbiParametersError",0,class extends P{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"})}},"InvalidAbiTypeParameterError",0,O,"InvalidFunctionModifierError",0,M,"InvalidModifierError",0,S,"InvalidParameterError",0,T,"SolidityProtectedKeywordError",0,z],759169);class F extends P{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class C extends P{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class N extends P{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"})}}class R extends P{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"})}}class j extends P{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 k=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}]]);function H(e,t={}){if(u(e))return function(e,t={}){let r=l(e);if(!r)throw new F({signature:e,type:"function"});let n=_(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(G(n[e],{modifiers:A,structs:t,type:"function"}));let s=[];if(r.returns){let e=_(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(G(e[r],{modifiers:A,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:s}}(e,t);if(s(e))return function(e,t={}){let r=o(e);if(!r)throw new F({signature:e,type:"event"});let n=_(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(G(n[e],{modifiers:$,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}(e,t);if(n(e))return function(e,t={}){let r=i(e);if(!r)throw new F({signature:e,type:"error"});let n=_(r.parameters),a=[],s=n.length;for(let e=0;e<s;e++)a.push(G(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:a}}(e,t);if(m(e))return function(e,t={}){let r=h(e);if(!r)throw new F({signature:e,type:"constructor"});let n=_(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(G(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}(e,t);if(g(e)){var r=e;let t=v(r);if(!t)throw new F({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if(E(e))return{type:"receive",stateMutability:"payable"};throw new C({signature:e})}let D=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,L=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,U=/^u?int$/;function G(e,r){var n,i;let a,s=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`}(e,r?.type,r?.structs);if(k.has(s))return k.get(s);let o=t.isTupleRegex.test(e),c=(0,t.execTyped)(o?L:D,e);if(!c)throw new T({param:e});if(c.name&&("address"===(n=c.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||t.bytesRegex.test(n)||t.integerRegex.test(n)||q.test(n)))throw new z({param:e,name:c.name});let u=c.name?{name:c.name}:{},l="indexed"===c.modifier?{indexed:!0}:{},f=r?.structs??{},d={};if(o){a="tuple";let e=_(c.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(G(e[n],{structs:f}));d={components:t}}else if(c.type in f)a="tuple",d={components:f[c.type]};else if(U.test(c.type))a=`${c.type}256`;else if("address payable"===c.type)a="address";else if(a=c.type,r?.type!=="struct"&&!V(a))throw new I({type:a});if(c.modifier){if(!r?.modifiers?.has?.(c.modifier))throw new S({param:e,type:r?.type,modifier:c.modifier});if(A.has(c.modifier)&&(i=a,!c.array&&"bytes"!==i&&"string"!==i&&"tuple"!==i))throw new M({param:e,type:r?.type,modifier:c.modifier})}let b={type:`${a}${c.array??""}`,...u,...l,...d};return k.set(s,b),b}function _(e,t=[],r="",n=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],s=e.slice(a+1);switch(i){case",":return 0===n?_(s,[...t,r.trim()]):_(s,t,`${r}${i}`,n);case"(":return _(s,t,`${r}${i}`,n+1);case")":return _(s,t,`${r}${i}`,n-1);default:return _(s,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new j({current:r,depth:n});return t.push(r.trim()),t}function V(e){return"address"===e||"bool"===e||"function"===e||"string"===e||t.bytesRegex.test(e)||t.integerRegex.test(e)}let q=/^(?: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)$/;function W(e){let r={},n=e.length;for(let t=0;t<n;t++){let n=e[t];if(!d(n))continue;let i=b(n);if(!i)throw new F({signature:n,type:"struct"});let a=i.properties.split(";"),s=[],o=a.length;for(let e=0;e<o;e++){let t=a[e].trim();if(!t)continue;let r=G(t,{type:"struct"});s.push(r)}if(!s.length)throw new N({signature:n});r[i.name]=s}let i={},a=Object.entries(r),s=a.length;for(let e=0;e<s;e++){let[n,s]=a[e];i[n]=function e(r=[],n={},i=new Set){let a=[],s=r.length;for(let o=0;o<s;o++){let s=r[o];if(t.isTupleRegex.test(s.type))a.push(s);else{let r=(0,t.execTyped)(Z,s.type);if(!r?.type)throw new O({abiParameter:s}
1);let{array:o,type:c}=r;if(c in n){if(i.has(c))throw new R({type:c});a.push({...s,type:`tuple${o??""}`,components:e(n[c],n,new Set([...i,c]))})}else if(V(c))a.push(s);else throw new B({type:c})}}return a}(s,r)}return i}e.s(["isSolidityType",0,V,"parseAbiParameter",0,G,"parseSignature",0,H,"splitParameters",0,_],256881);let Z=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseStructs",0,W],156884),e.s(["parseAbi",0,function(e){let t=W(e),r=[],n=e.length;for(let i=0;i<n;i++){let n=e[i];d(n)||r.push(H(n,t))}return r}],570635);class J extends Error{static setStaticOptions(e){J.prototype.docsOrigin=e.docsOrigin,J.prototype.showVersion=e.showVersion,J.prototype.version=e.version}constructor(e,t={}){const r=(()=>{if(t.cause instanceof J){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof J&&t.cause.docsPath||t.docsPath,i=t.docsOrigin??J.prototype.docsOrigin,a=`${i}${n??""}`,s=!!(t.version??J.prototype.showVersion),o=t.version??J.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n||s?["",r?`Details: ${r}`:void 0,n?`See: ${a}`:void 0,s?`Version: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{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,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=a,this.docsOrigin=i,this.docsPath=n,this.shortMessage=e,this.showVersion=s,this.version=o}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}function K(e,t){if(eb(e)>t)throw new ex({givenSize:eb(e),maxSize:t})}function Y(e,t){if("number"==typeof t&&t>0&&t>eb(e)-1)throw new e$({offset:t,position:"start",size:eb(e)})}function X(e,t,r){if("number"==typeof t&&"number"==typeof r&&eb(e)!==r-t)throw new e$({offset:r,position:"end",size:eb(e)})}function Q(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new eA({size:Math.ceil(i.length/2),targetSize:n,type:"Hex"});return`0x${i["right"===r?"padEnd":"padStart"](2*n,"0")}`}function ee(e,t={}){let{dir:r="left"}=t,n=e.replace("0x",""),i=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())i++;else break;return"0"===(n="left"===r?n.slice(i):n.slice(0,n.length-i))?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`}function et(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}Object.defineProperty(J,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:"[email protected]"}}),J.setStaticOptions(J.defaultStaticOptions),e.s(["BaseError",0,J],922298),e.s(["stringify",0,et],556162);let er=new TextEncoder,en=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ei(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function ea(e){return e instanceof Uint8Array?eo(e):Array.isArray(e)?eo(new Uint8Array(e)):e}function es(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(K(r,t.size),el(r,t.size)):r}function eo(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=en[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(K(n,t.size),ef(n,t.size)):n}function ec(e,t={}){let r,{signed:n,size:i}=t,a=BigInt(e);i?r=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let s="bigint"==typeof r&&n?-r-1n:0;if(r&&a>r||a<s){let t="bigint"==typeof e?"n":"";throw new eg({max:r?`${r}${t}`:void 0,min:`${s}${t}`,signed:n,size:i,value:`${e}${t}`})}let o=(n&&a<0?BigInt.asUintN(8*i,BigInt(a)):a).toString(16),c=`0x${o}`;return i?el(c,i):c}function eu(e,t={}){return eo(er.encode(e),t)}function el(e,t){return Q(e,{dir:"left",size:t})}function ef(e,t){return Q(e,{dir:"right",size:t})}function ed(e,t,r,n={}){let{strict:i}=n;Y(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return i&&X(a,t,r),a}function eb(e){return Math.ceil((e.length-2)/2)}function ep(e){return ee(e,{dir:"left"})}function em(e,t={}){let{signed:r}=t;t.size&&K(e,t.size);let n=BigInt(e);if(!r)return n;let i=(1n<<8n*BigInt((e.length-2)/2))-1n;return n<=i>>1n?n:n-i-1n}function eh(e,t={}){let{signed:r,size:n}=t;return r||n?Number(em(e,t)):Number(e)}function ey(e,t={}){let{strict:r=!1}=t;try{return!function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new ev(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new ew(e)}(e,{strict:r}),!0}catch{return!1}}class eg extends J{constructor({max:e,min:t,signed:r,size:n,value:i}
1){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class ev extends J{constructor(e){super(`Value \`${"object"==typeof e?et(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class ew extends J{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class eE extends J{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class ex extends J{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class e$ extends J{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class eA extends J{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function eP(e){return{address:e.address,amount:ec(e.amount),index:ec(e.index),validatorIndex:ec(e.validatorIndex)}}e.s(["toRpc",0,function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:ec(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:ec(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient}
1,..."bigint"==typeof e.gasLimit&&{gasLimit:ec(e.gasLimit)},..."bigint"==typeof e.number&&{number:ec(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:ec(e.prevRandao)},..."bigint"==typeof e.time&&{time:ec(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(eP)}}}],487992)},950185,e=>{"use strict";e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",0,function(e,t){let r=e.exec(t);return r?.groups},"integerRegex",0,/^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)?$/,"isTupleRegex",0,/^\(.+?\).*?$/])},627439,218534,e=>{"use strict";e.s(["parseAccount",0,function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}],627439);let t=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],r=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],n=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],i=[...n,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...n,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}];e.s(["addressResolverAbi",0,[{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"}]}],"batchGatewayAbi",0,r,"erc1271Abi",0,[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],"erc20Abi",0,[{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"}]}],"erc6492SignatureValidatorAbi",0,[{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"}],"multicall3Abi",0,t,"textResolverAbi",0,[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],"universalResolverResolveAbi",0,i,"universalResolverReverseAbi",0,a],218534)}
1,806319,601278,937776,847743,588703,771368,633460,830299,186260,335631,416755,607066,e=>{"use strict";var t=e.i(570635),r=e.i(487992),n=e.i(627439),i=e.i(218534),a=e.i(108282),s=e.i(946002),o=e.i(458401),c=e.i(159864),u=e.i(72977),l=e.i(109205),f=e.i(462260),d=e.i(208315),b=e.i(390390),p=e.i(628700),m=e.i(512165),h=e.i(755671),y=e.i(528649),g=o;class v extends g.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(v,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class w extends g.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,y.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(w,"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 E extends g.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,y.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(E,"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 x extends g.BaseError{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(x,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class $ extends g.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
2Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty($,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class A extends g.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(A,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class P extends g.BaseError{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(P,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class B extends g.BaseError{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(B,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class I extends g.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(I,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class T extends g.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(T,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class z extends g.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,y.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,y.formatGwei)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}
2Object.defineProperty(z,"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 S extends g.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function M(e,t){let r=(e.details||"").toLowerCase(),n=e instanceof o.BaseError?e.walk(e=>e?.code===v.code):e;return n instanceof o.BaseError?new v({cause:e,message:n.details}):v.nodeMessage.test(r)?new v({cause:e,message:e.details}):w.nodeMessage.test(r)?new w({cause:e,maxFeePerGas:t?.maxFeePerGas}):E.nodeMessage.test(r)?new E({cause:e,maxFeePerGas:t?.maxFeePerGas}):x.nodeMessage.test(r)?new x({cause:e,nonce:t?.nonce}):$.nodeMessage.test(r)?new $({cause:e,nonce:t?.nonce}):A.nodeMessage.test(r)?new A({cause:e,nonce:t?.nonce}):P.nodeMessage.test(r)?new P({cause:e}):B.nodeMessage.test(r)?new B({cause:e,gas:t?.gas}):I.nodeMessage.test(r)?new I({cause:e,gas:t?.gas}):T.nodeMessage.test(r)?new T({cause:e}):z.nodeMessage.test(r)?new z({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new S({cause:e})}function O(e,{docsPath:t,...r}){let n,i=(n=M(e,r))instanceof S?e:n;return new u.CallExecutionError(i,{docsPath:t,...r})}function F(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&"object"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}e.s(["ExecutionRevertedError",0,v,"FeeCapTooHighError",0,w,"FeeCapTooLowError",0,E,"InsufficientFundsError",0,P,"IntrinsicGasTooHighError",0,B,"IntrinsicGasTooLowError",0,I,"NonceMaxValueError",0,A,"NonceTooHighError",0,x,"NonceTooLowError",0,$,"TipAboveFeeCapError",0,z,"TransactionTypeNotSupportedError",0,T,"UnknownNodeError",0,S],601278),e.s(["getNodeError",0,M],937776),e.s(["getCallError",0,O],847743),e.s(["extract",0,F],588703);var C=e.i(332506);function N(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,i)=>{let a=t(e,i);if(r)for(let e of r)delete a[e];return{...a,...n(e,i)}},type:e})}e.s(["defineFormatter",0,N],771368);let R={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function j(e,t){let r={};return void 0!==e.authorizationList&&(r.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,C.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,C.numberToHex)(BigInt(e.s)):e.s,chainId:(0,C.numberToHex)(e.chainId),nonce:(0,C.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,C.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,C.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(r.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?r.blobs=e.blobs.map(e=>(0,C.bytesToHex)(e)):r.blobs=e.blobs),void 0!==e.data&&(r.data=e.data),e.account&&(r.from=e.account.address),void 0!==e.from&&(r.from=e.from),void 0!==e.gas&&(r.gas=(0,C.numberToHex)(e.gas)),void 0!==e.gasPrice&&(r.gasPrice=(0,C.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(r.maxFeePerBlobGas=(0,C.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(r.maxFeePerGas=(0,C.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=(0,C.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(r.nonce=(0,C.numberToHex)(e.nonce)),void 0!==e.to&&(r.to=e.to),void 0!==e.type&&(r.type=R[e.type]),void 0!==e.value&&(r.value=(0,C.numberToHex)(e.value)),r}let k=N("transactionRequest",j);function H(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}e.s(["defineTransactionRequest",0,k,"formatTransactionRequest",0,j],633460),e.s(["withResolvers",0,H],830299);let D=new Map;function L({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:i}){let a=async()=>
2{let t=o();s();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{i&&Array.isArray(e)&&e.sort(i);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},s=()=>D.delete(t),o=()=>D.get(t)||[],c=e=>D.set(t,[...o(),e]);return{flush:s,async schedule(e){let{promise:t,resolve:i,reject:s}=H();return(r?.([...o().map(({args:e})=>e),e])&&a(),o().length>0)?c({args:e,resolve:i,reject:s}):(c({args:e,resolve:i,reject:s}),setTimeout(a,n)),t}}}e.s(["createBatchScheduler",0,L],186260);var U=e.i(891964),G=e.i(134996),_=e.i(402169),V=e.i(81986);function q(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new G.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new G.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function W(e){if(!e)return;let t={};for(let{address:r,...n}of e){if(!(0,V.isAddress)(r,{strict:!1}))throw new U.InvalidAddressError({address:r});if(t[r])throw new _.AccountStateConflictError({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:a}=e,s={};if(void 0!==a&&(s.code=a),void 0!==t&&(s.balance=(0,C.numberToHex)(t)),void 0!==r&&(s.nonce=(0,C.numberToHex)(r)),void 0!==n&&(s.state=q(n)),void 0!==i){if(s.state)throw new _.StateAssignmentConflictError;s.stateDiff=q(i)}return s}(n)}return t}e.s(["serializeStateOverride",0,W],335631);let Z=2n**256n-1n;function J(e){let{account:t,maxFeePerGas:r,maxPriorityFeePerGas:i,to:a}=e,s=t?(0,n.parseAccount)(t):void 0;if(s&&!(0,V.isAddress)(s.address))throw new U.InvalidAddressError({address:s.address});if(a&&!(0,V.isAddress)(a))throw new U.InvalidAddressError({address:a});if(r&&r>Z)throw new w({maxFeePerGas:r});if(i&&r&&i>r)throw new z({maxFeePerGas:r,maxPriorityFeePerGas:i})}async function K(i,f){let{account:b=i.account,authorizationList:h,batch:y=!!i.batch?.multicall,blockHash:g,blockNumber:v,blockTag:w=i.experimental_blockTag??"latest",requireCanonical:E,accessList:x,blobs:$,blockOverrides:A,code:P,data:B,factory:I,factoryData:T,gas:z,gasPrice:S,maxFeePerBlobGas:M,maxFeePerGas:C,maxPriorityFeePerGas:N,nonce:R,requestOptions:k,to:H,value:D,stateOverride:L,...U}=f,G=b?(0,n.parseAccount)(b):void 0;if(P&&(I||T))throw new o.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(P&&H)throw new o.BaseError("Cannot provide both `code` & `to` as parameters.");let _=P&&B,V=I&&T&&H&&B,q=_||V,Z=_?et({code:P,data:B}):V?function(e){let{data:r,factory:n,factoryData:i,to:a}=e;return(0,d.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:s.deploylessCallViaFactoryBytecode,args:[a,r,n,i]})}({data:B,factory:I,factoryData:T,to:H}):B;try{let e;J(f);let t=(0,m.formatBlockParameter)({blockHash:g,blockNumber:v,blockTag:w,requireCanonical:E}),n=A?r.toRpc(A):void 0,s=W(L),o=i.chain?.formatters?.transactionRequest?.format,u=(o||j)({...F(U,{format:o}),accessList:x,account:G,authorizationList:h,blobs:$,data:Z,gas:z,gasPrice:S,maxFeePerBlobGas:M,maxFeePerGas:C,maxPriorityFeePerGas:N,nonce:R,to:q?void 0:H,value:D},"call");if(y&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(a.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:u})&&!n&&void 0===g)try{var K,Y;let{deployless:e=!1}="object"==typeof i.batch?.multicall?i.batch.multicall:{},t=ee(i,{blockNumber:v,deployless:e});if(!t||(K=s,Y=t,!(K&&Object.keys(K).some(e=>(0,p.isAddressEqual)(e,Y)))))return await Q(i,{...u,blockHash:g,blockNumber:v,blockTag:w,multicallAddress:t,requestOptions:k,requireCanonical:E,rpcStateOverride:s})}catch(e){if(!(e instanceof c.ClientChainNotConfiguredError)&&!(e instanceof c.ChainDoesNotSupportContract))throw e}let l=(e=[u,t],s&&n?[...e,s,n]:s?[...e,s]:n?[...e,{},n]:e),d=await i.request({method:"eth_call",params:l},k);if("0x"===d)return{data:void 0};return{data:d}}catch(a){if(k?.signal?.aborted)throw(0,l.getAbortError)(k.signal);if((0,l.isAbortError)(a))throw a;let t=function(e){if(!(e instanceof o.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:r,offchainLookupSignature:n}=await e.A(848957);if(!1!==i.ccipRead&&t?.slice(0,10)===n&&H)return{data:await r(i,{data:t,requestOptions:k,to:H})};if(q&&t?.slice(0,10)==="0x101bb98d")throw new u.CounterfactualDeploymentFailedError({factory:I});throw O(a,{...f,account:G,chain:i.chain})}}e.s(["maxUint16",0,2n**16n-1n,"maxUint256",0,Z],416755),e.s(["assertRequest",0,J],607066);let Y=0,X=new WeakMap;async function Q(e,t){let{batchSize:r=1024,deployless:n=!1,wait:a=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockHash:o,blockNumber:c,blockTag:l=e.experimental_blockTag??"latest",requireCanonical:d,data:p,multicallAddress:h,requestOptions:y,rpcStateOverride:g,to:v}=t,w=void 0!==h?h:ee(e,{blockNumber:c,deployless:n}),E=(0,m.formatBlockParameter)({blockHash:o,blockNumber:c,blockTag:l,requireCanonical:d}),x="string"==typeof E?E:JSON.stringify(E),$=g?`.${JSON.stringify(g)}`:"",{schedule:A}=L({id:`${e.uid}.${x}.${function(e){if(!e)return"default";let t=X.get(e);if(void 0!==t)return t;let r=Y++;return X.set(e,r),r}(y)}${$}`,wait:a,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>
2({allowFailure:!0,callData:e.data,target:e.to})),n=(0,b.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),a={...null===w?{data:et({code:s.multicall3Bytecode,data:n})}:{to:w,data:n}},o=await e.request({method:"eth_call",params:g?[a,E,g]:[a,E]},y);return(0,f.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:P,success:B}]=await A({data:p,to:v});if(!B)throw new u.RawContractError({data:P});return"0x"===P?{data:void 0}:{data:P}}function ee(e,t){let{blockNumber:r,deployless:n}=t;if(n)return null;if(e.chain)return(0,h.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"multicall3"});throw new c.ClientChainNotConfiguredError}function et(e){let{code:r,data:n}=e;return(0,d.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(bytes, bytes)"]),bytecode:s.deploylessCallViaBytecodeBytecode,args:[r,n]})}e.s(["call",0,K],806319)},108282,946002,e=>{"use strict";e.s(["aggregate3Signature",0,"0x82ad56cb"],108282),e.s(["deploylessCallViaBytecodeBytecode",0,"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe","deploylessCallViaFactoryBytecode",0,"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe","erc6492SignatureValidatorByteCode",0,"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b
26001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
2603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572","multicall3Bytecode",0,"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
2150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"],946002)},984444,e=>{"use strict";e.s(["panicReasons",0,{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 invali
2d 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."},"solidityError",0,{inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},"solidityPanic",0,{inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}])},84378,e=>{"use strict";e.s(["AbiConstructorNotFoundError",()=>i,"AbiConstructorParamsNotFoundError",()=>a,"AbiDecodingDataSizeTooSmallError",()=>s,"AbiDecodingZeroDataError",()=>o,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>u,"AbiEncodingLengthMismatchError",()=>l,"AbiErrorInputsNotFoundError",()=>f,"AbiErrorNotFoundError",()=>d,"AbiErrorSignatureNotFoundError",()=>b,"AbiEventNotFoundError",()=>h,"AbiEventSignatureEmptyTopicsError",()=>p,"AbiEventSignatureNotFoundError",()=>m,"AbiFunctionNotFoundError",()=>y,"AbiFunctionOutputsNotFoundError",()=>g,"AbiFunctionSignatureNotFoundError",()=>v,"AbiItemAmbiguityError",()=>w,"BytesSizeMismatchError",()=>E,"DecodeLogDataMismatch",()=>x,"DecodeLogTopicsMismatch",()=>$,"InvalidAbiDecodingTypeError",()=>P,"InvalidAbiEncodingTypeError",()=>A,"InvalidArrayError",()=>B,"InvalidDefinitionTypeError",()=>I]);var t=e.i(345282),r=e.i(876422),n=e.i(458401);class i extends n.BaseError{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 n.BaseError{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"})}}n.BaseError;class s extends n.BaseError{constructor({data:e,params:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(r,{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=r,this.size=n}}class o extends n.BaseError{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class c extends n.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
3Expected length: ${e}
4Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class u extends n.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,r.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class l extends n.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
5Expected length (params): ${e}
6Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends n.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).
7Cannot encode error result without knowing what the parameter types are.
8Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class d extends n.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI.
9Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class b extends n.BaseError{constructor(e,{docsPath:t,cause:r}){super(`Encoded error signature "${e}" not found on ABI.
10Make sure you are using the correct ABI and that the error exists on it.
11You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends n.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class m extends n.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
12Make sure you are using the correct ABI and that the event exists on it.
13You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class h extends n.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
14Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends n.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
15Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class g extends n.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
16Cannot decode function result without knowing what the parameter types are.
17Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class v extends n.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
18Make sure you are using the correct ABI and that the function exists on it.
19You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class w extends n.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}
19\` in \`${(0,t.formatAbiItem)(e.abiItem)}\`, and`,`\`${r.type}\` in \`${(0,t.formatAbiItem)(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class E extends n.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class x extends n.BaseError{constructor({abiItem:e,data:r,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(n,{includeName:!0})})`,`Data:   ${r} (${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=r,this.params=n,this.size=i}}class $ extends n.BaseError{constructor({abiItem:e,param:r}){super(`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${(0,t.formatAbiItem)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class A extends n.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
20Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class P extends n.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
21Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class B extends n.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class I extends n.BaseError{constructor(e){super(`"${e}" is not a valid definition type.
22Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}n.BaseError},891964,e=>{"use strict";var t=e.i(458401);class r extends t.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",0,r])},458401,e=>{"use strict";let t="2.55.15",r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t}`};e.s(["BaseError",0,class e extends Error{constructor(n,i={}){const a=i.cause instanceof e?i.cause.details:i.cause?.message?i.cause.message:i.details,s=i.cause instanceof e&&i.cause.docsPath||i.docsPath,o=r.getDocsUrl?.({...i,docsPath:s});super([n||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...a?[`Details: ${a}`]:[],...r.version?[`Version: ${r.version}`]:[]].join("\n"),i.cause?{cause:i.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=a,this.docsPath=s,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=n,this.version=t}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}],458401)},159864,e=>{"use strict";var t=e.i(458401);class r extends t.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class n extends t.BaseError{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 i extends t.BaseError{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 t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class s extends t.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
22" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}e.s(["ChainDoesNotSupportContract",0,r,"ChainMismatchError",0,n,"ChainNotFoundError",0,i,"ClientChainNotConfiguredError",0,a,"InvalidChainIdError",0,s])},72977,56349,219698,528649,402169,636235,109205,e=>{"use strict";var t=e.i(627439),r=e.i(984444),n=e.i(976127),i=e.i(345282),a=e.i(241057),s=e.i(646264);let o={wei:0,gwei:9,szabo:12,finney:15,ether:18};function c(e,t=0){if(!Number.isInteger(t)||t<0)throw new d({decimals:t});let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}function u(e,t="wei"){return c(e,o.ether-o[t])}function l(e,t="wei"){return c(e,o.gwei-o[t])}class f extends Error{constructor({value:e}){super(`Value \`${e}\` is not a valid decimal number.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalNumberError"})}}class d extends Error{constructor({decimals:e}){super(`\`decimals\` must be a non-negative integer. Got \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalsError"})}}function b(e,t="wei"){return u(e,t)}function p(e,t="wei"){return l(e,t)}e.s(["format",0,c,"formatEther",0,u,"formatGwei",0,l,"from",0,function(e,t=0){if(!Number.isInteger(t)||t<0)throw new d({decimals:t});if(!/^-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)$/.test(e))throw new f({value:e});let[r="",n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),""===r&&(r="0"),n=n.replace(/(0+)$/,""),0===t)n.length>0&&Number.parseInt(n[0],10)>=5&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let e=n.slice(0,t);if(Number.parseInt(n.slice(t,t+1),10)>=5){let i=function(e){let t=e.split(""),r=t.length-1;for(;r>=0;){let e=Number.parseInt(t[r],10)+1;if(e<10)return t[r]=String(e),t.join("");t[r]="0",r--}return`1${t.join("")}`}(e);i.length>t?(n=i.slice(1),r=`${BigInt(r)+1n}`):n=i}else n=e}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}],56349),e.s(["formatEther",0,b],219698),e.s(["formatGwei",0,p],528649);var m=e.i(84378),h=e.i(458401),y=h;class g extends y.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class v extends y.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function w(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}
23`,"")}function E(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:
24`;return r.nonce&&(n+=`      nonce: ${r.nonce}
25`),r.balance&&(n+=`      balance: ${r.balance}
26`),r.code&&(n+=`      code: ${r.code}
27`),r.state&&(n+="      state:\n",n+=w(r.state)),r.stateDiff&&(n+="      stateDiff:\n",n+=w(r.stateDiff)),n},"  State Override:\n").slice(0,-1)}e.s(["AccountStateConflictError",0,g,"StateAssignmentConflictError",0,v,"prettyStateOverride",0,E],402169);var x=h;function $(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}x.BaseError;class A extends x.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}x.BaseError;class P extends x.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",$(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"})}}x.BaseError,x.BaseError;class B extends x.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}
27" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class I extends x.BaseError{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:a,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:l,value:f}){const d=$({chain:n&&`${n?.name} (id: ${n?.id})`,from:t?.address,to:l,value:void 0!==f&&`${b(f)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${p(s)} gwei`,maxFeePerGas:void 0!==o&&`${p(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${p(c)} gwei`,nonce:u});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",d].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class T extends x.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let a="Transaction";r&&void 0!==i&&(a=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),n&&(a=`Transaction with hash "${n}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}class z extends x.BaseError{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 S extends x.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class M extends x.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}e.s(["InvalidLegacyVError",0,A,"InvalidSerializableTransactionError",0,P,"InvalidStorageKeySizeError",0,B,"TransactionExecutionError",0,I,"TransactionNotFoundError",0,T,"TransactionReceiptNotFoundError",0,z,"TransactionReceiptRevertedError",0,S,"WaitForTransactionReceiptTimeoutError",0,M,"prettyPrint",0,$],636235);let O=e=>e;e.s(["getAbortError",0,function(e){if(e?.reason)return e.reason;if("function"==typeof DOMException)return new DOMException("This operation was aborted","AbortError");let t=Error("This operation was aborted");return t.name="AbortError",t},"getContractAddress",0,O,"getUrl",0,e=>{try{let t=new URL(e);if(!t.username&&!t.password)return e;return t.username="",t.password="",t.toString()}catch{return e}},"isAbortError",0,function(e){return"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}],109205);class F extends h.BaseError{constructor(e,{account:r,docsPath:n,chain:i,data:a,gas:s,gasPrice:o,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:l,to:f,value:d,stateOverride:m}){const h=r?(0,t.parseAccount)(r):void 0;let y=$({from:h?.address,to:f,value:void 0!==d&&`${b(d)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==o&&`${p(o)} gwei`,maxFeePerGas:void 0!==c&&`${p(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${p(u)} gwei`,nonce:l});m&&(y+=`
28${E(m)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class C extends h.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:c,sender:u}){const l=(0,s.getAbiItem)({abi:t,args:r,name:c}),f=l?(0,a.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,d=l?(0,i.formatAbiItem)(l,{includeName:!0}):void 0,b=$({address:n&&O(n),function:d,args:f&&"()"!==f&&`${[...Array(c?.length??0).keys()].map(()=>" ").join("")}${f}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],b&&"Contract Call:",b].filter(
28Boolean),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=r,this.cause=e,this.contractAddress=n,this.functionName=c,this.sender=u}}class N extends h.BaseError{constructor({abi:e,data:t,functionName:s,message:o,cause:c}){let u,l,f,d,b;if(t&&"0x"!==t)try{const{abiItem:s,errorName:o,args:u}=l=(0,n.decodeErrorResult)({abi:e,data:t,cause:c});if("Error"===o)d=u[0];else if("Panic"===o){const[e]=u;d=r.panicReasons[e]}else{const e=s?(0,i.formatAbiItem)(s,{includeName:!0}):void 0,t=s&&u?(0,a.formatAbiItemWithArgs)({abiItem:s,args:u,includeFunctionName:!1,includeName:!1}):void 0;f=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else o&&(d=o);u instanceof m.AbiErrorSignatureNotFoundError&&(b=u.signature,f=[`Unable to decode signature "${b}" 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://4byte.sourcify.dev/?q=${b}.`]),super(d&&"execution reverted"!==d||b?[`The contract function "${s}" reverted with the following ${b?"signature":"reason"}:`,d||b].join("\n"):`The contract function "${s}" reverted.`,{cause:u??c,metaMessages:f,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=t,this.reason=d,this.signature=b}}class R extends h.BaseError{constructor({functionName:e,cause:t}){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",cause:t})}}class j extends h.BaseError{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 k extends h.BaseError{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}}e.s(["CallExecutionError",0,F,"ContractFunctionExecutionError",0,C,"ContractFunctionRevertedError",0,N,"ContractFunctionZeroDataError",0,R,"CounterfactualDeploymentFailedError",0,j,"RawContractError",0,k],72977)},134996,e=>{"use strict";var t=e.i(458401);class r extends t.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class n extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class i extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}e.s(["InvalidBytesLengthError",0,i,"SizeExceedsPaddingSizeError",0,n,"SliceOffsetOutOfBoundsError",0,r])},317056,e=>{"use strict";var t=e.i(603352),r=e.i(458401),n=e.i(109205);class i extends r.BaseError{constructor({body:e,cause:r,details:i,headers:a,status:s,url:o}){super("HTTP request failed.",{cause:r,details:i,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,n.getUrl)(o)}`,e&&`Request body: ${(0,t.stringify)(e)}
28`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=a,this.status=s,this.url=o}}class a extends r.BaseError{constructor({maxSize:e,size:t}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${e} bytes`,`Received: ${t} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e,this.size=t}}r.BaseError;class s extends r.BaseError{constructor({body:e,error:r,url:i}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${(0,n.getUrl)(i)}`,`Request body: ${(0,t.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=i}}r.BaseError;class o extends r.BaseError{constructor({body:e,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,n.getUrl)(r)}`,`Request body: ${(0,t.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}e.s(["HttpRequestError",0,i,"ResponseBodyTooLargeError",0,a,"RpcRequestError",0,s,"TimeoutError",0,o])},126188,637849,488437,785599,e=>{"use strict";var t=e.i(84378),r=e.i(984068),n=e.i(809855),i=e.i(876422),a=e.i(750236),s=e.i(418640),o=e.i(181136),c=e.i(449798),u=e.i(332506);function l(e,t={}){void 0!==t.size&&(0,c.assertSize)(e,{size:t.size});let r=(0,u.bytesToHex)(e);return(0,c.hexToNumber)(r,t)}var f=e.i(709707),d=e.i(891964),b=e.i(458401),p=e.i(81986);function m(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",0,function(e){return"string"==typeof e[0]?m(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)},"concatHex",0,m],637849);var h=e.i(588973);let y=/^(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)?$/;e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,y],488437);function g(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:a}=e[r];n?t+=32:t+=(0,i.size)(a)}let r=[],n=[],a=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:c}=e[s];o?(r.push((0,u.numberToHex)(t+a,{size:32})),n.push(c),a+=(0,i.size)(c)):r.push(c)}return m([...r,...n])}function v(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",0,function(e,r){if(e.length!==r.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:r.length});return g(function({params:e,values:r}){let n=[];for(let o=0;o<e.length;o++)n.push(function e({param:r,value:n}){let o=v(r.type);if(o){let[i,a]=o;return function(r,{length:n,param:i}){let a=null===n;if(!Array.isArray(r))throw new t.InvalidArrayError(r);if(!a&&r.length!==n)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:n,givenLength:r.length,type:`${i.type}[${n}]`});let s=0===r.length&&function e(t){let{type:r}=t;if("string"===r||"bytes"===r||r.endsWith("[]"))return!0;if("tuple"===r)return t.components.some(e);let n=v(r);return!!n&&e({...t,type:n[1]})}(i),o=[];for(let t=0;t<r.length;t++){let n=e({param:i,value:r[t]});n.dynamic&&(s=!0),o.push(n)}if(a||s){let e=g(o);if(a)return{dynamic:!0,encoded:m([(0,u.numberToHex)(o.length,{size:32}),e])};if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:m(o.map(({encoded:e})=>e))}}(n,{length:i,param:{...r,type:a}})}if("tuple"===r.type)return function(t,{param:r}){let n=!1,i=[];for(let a=0;a<r.components.length;a++){let s=r.components[a],o=Array.isArray(t)?a:s.name,c=e({param:s,value:t[o]});i.push(c),c.dynamic&&(n=!0)}return{dynamic:n,encoded:n?g(i):m(i.map(({encoded:e})=>e))}}(n,{param:r});if("address"===r.type){var c=n;if(!(0,p.isAddress)(c))throw new d.InvalidAddressError({address:c});return{dynamic:!1,encoded:(0,h.padHex)(c.toLowerCase())}}if("bool"===r.type){var l=n;if("boolean"!=typeof l)throw new b.BaseError(`Invalid boolean value: "${l}" (type: ${typeof l}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,h.padHex)((0,u.boolToHex)(l))}}if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=y.exec(r.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new s.IntegerOutOfRangeError({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,u.numberToHex)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{param:r}){let[,n]=r.type.split("bytes"),a=(0,i.size)(e);if(!n){let t=e;return a%32!=0&&(t=(0,h.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:m([(0,h.padHex)((0,u.numberToHex)(a,{size:32})),t])}}if(a!==Number.parseInt(n,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,h.padHex)(e,{dir:"right"})}}(n,{param:r});if("string"===r.type){var f=n;let e=(0,u.stringToHex)(f),t=Math.ceil((0,i.size)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,h.padHex)((0,a.slice)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:m([(0,h.padHex)((0,u.numberToHex)((0,i.size)(e),{size:32})),...r])}}throw new t.InvalidAbiEncodingTypeError(r.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[o],value:r[o]}));return n}({params:e,values:r}))},"getArrayComponents",0,v],785599);function w(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
28if("tuple"===t)return e.components?.some(w);let r=v(e.type);return!!(r&&w({...e,type:r[1]}))}e.s(["decodeAbiParameters",0,function(e,d){let b="string"==typeof d?(0,f.hexToBytes)(d):d,p=(0,n.createCursor)(b);if(0===(0,i.size)(b)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,i.size)(d)&&32>(0,i.size)(d))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof d?d:(0,u.bytesToHex)(d),params:e,size:(0,i.size)(d)});let m=0,h=[];for(let n=0;n<e.length;++n){let i=e[n];m<b.length&&p.setPosition(m);let[f,d]=function e(n,i,{staticPosition:f}){let d=v(i.type);if(d){let[t,r]=d;return function(t,r,{length:n,staticPosition:i}){if(null===n){let n=i+l(t.readBytes(32)),a=n+32;t.setPosition(n);let s=l(t.readBytes(32)),o=w(r),c=0,u=[];for(let n=0;n<s;++n){t.setPosition(a+(o?32*n:c));let[i,s]=e(t,r,{staticPosition:a});c+=s,u.push(i),0===s&&(t.assertReadLimit(),t._touch())}return t.setPosition(i+32),[u,32]}if(w(r)){let a=i+l(t.readBytes(32)),s=[];for(let i=0;i<n;++i){t.setPosition(a+32*i);let[n]=e(t,r,{staticPosition:a});s.push(n)}return t.setPosition(i+32),[s,32]}let a=0,s=[];for(let o=0;o<n;++o){let[n,o]=e(t,r,{staticPosition:i+a});a+=o,s.push(n),0===o&&(t.assertReadLimit(),t._touch())}return[s,a]}(n,{...i,type:r},{length:t,staticPosition:f})}if("tuple"===i.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),a=i?[]:{},s=0;if(w(r)){let o=n+l(t.readBytes(32));for(let n=0;n<r.components.length;++n){let c=r.components[n];t.setPosition(o+s);let[u,l]=e(t,c,{staticPosition:o});s+=l,a[i?n:c?.name]=u}return t.setPosition(n+32),[a,32]}for(let o=0;o<r.components.length;++o){let c=r.components[o],[u,l]=e(t,c,{staticPosition:n});a[i?o:c?.name]=u,s+=l}return[a,s]}(n,i,{staticPosition:f});if("address"===i.type){let e;return e=n.readBytes(32),[(0,r.checksumAddress)((0,u.bytesToHex)((0,a.sliceBytes)(e,-20))),32]}if("bool"===i.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,c.assertSize)(r,{size:t.size}),r=(0,o.trim)(r)),r.length>1||r[0]>1)throw new s.InvalidBytesBooleanError(r);return!!r[0]}(n.readBytes(32),{size:32}),32];if(i.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=l(e.readBytes(32));e.setPosition(r+t);let n=l(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,u.bytesToHex)(i),32]}return[(0,u.bytesToHex)(e.readBytes(Number.parseInt(i,10),32)),32]}(n,i,{staticPosition:f});if(i.type.startsWith("uint")||i.type.startsWith("int")){var b,p;let e,t,r;return b=n,e=(p=i).type.startsWith("int"),t=Number.parseInt(p.type.split("int")[1]||"256",10),r=b.readBytes(32),[t>48?function(e,t={}){void 0!==t.size&&(0,c.assertSize)(e,{size:t.size});let r=(0,u.bytesToHex)(e);return(0,c.hexToBigInt)(r,t)}(r,{signed:e}):l(r,{signed:e}),32]}if("string"===i.type)return function(e,{staticPosition:t}){let r=l(e.readBytes(32));e.setPosition(t+r);let n=l(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=function(e,t={}){let r=e;return void 0!==t.size&&((0,c.assertSize)(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}(e.readBytes(n,32));return e.setPosition(t+32),[i,32]}(n,{staticPosition:f});throw new t.InvalidAbiDecodingTypeError(i.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(p,i,{staticPosition:0});m+=d,h.push(f)}return h}],126188)},976127,603352,241057,e=>{"use strict";var t=e.i(984444),r=e.i(84378),n=e.i(750236),i=e.i(647716),a=e.i(126188),s=e.i(345282);e.s(["decodeErrorResult",0,function(e){let{abi:o,data:c,cause:u}=e,l=(0,n.slice)(c,0,4);if("0x"===l)throw new r.AbiDecodingZeroDataError({cause:u});let f=[...o||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&l===(0,i.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!f)throw new r.AbiErrorSignatureNotFoundError(l,{docsPath:"/docs/contract/decodeErrorResult",cause:u});
28return{abiItem:f,args:"inputs"in f&&f.inputs&&f.inputs.length>0?(0,a.decodeAbiParameters)(f.inputs,(0,n.slice)(c,4)):void 0,errorName:f.name}}],976127);let o=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r);e.s(["stringify",0,o],603352),e.s(["formatAbiItemWithArgs",0,function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?o(t[r]):t[r]}`).join(", ")})`}],241057)},462260,e=>{"use strict";var t=e.i(84378),r=e.i(126188),n=e.i(646264);let i="/docs/contract/decodeFunctionResult";e.s(["decodeFunctionResult",0,function(e){let{abi:a,args:s,functionName:o,data:c}=e,u=a[0];if(o){let e=(0,n.getAbiItem)({abi:a,args:s,name:o});if(!e)throw new t.AbiFunctionNotFoundError(o,{docsPath:i});u=e}if("function"!==u.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!u.outputs)throw new t.AbiFunctionOutputsNotFoundError(u.name,{docsPath:i});let l=(0,r.decodeAbiParameters)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}])},208315,e=>{"use strict";var t=e.i(84378),r=e.i(637849),n=e.i(785599);let i="/docs/contract/encodeDeployData";e.s(["encodeDeployData",0,function(e){let{abi:a,args:s,bytecode:o}=e;if(!s||0===s.length)return o;let c=a.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new t.AbiConstructorNotFoundError({docsPath:i});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new t.AbiConstructorParamsNotFoundError({docsPath:i});let u=(0,n.encodeAbiParameters)(c.inputs,s);return(0,r.concatHex)([o,u])}])},390390,e=>{"use strict";var t=e.i(637849),r=e.i(785599),n=e.i(84378),i=e.i(647716),a=e.i(345282),s=e.i(646264);let o="/docs/contract/encodeFunctionData";e.s(["encodeFunctionData",0,function(e){let{args:c}=e,{abi:u,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:c}=e,u=t[0];if(c){let e=(0,s.getAbiItem)({abi:t,args:r,name:c});if(!e)throw new n.AbiFunctionNotFoundError(c,{docsPath:o});u=e}if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:o});return{abi:[u],functionName:(0,i.toFunctionSelector)((0,a.formatAbiItem)(u))}}
28(e),f=u[0],d="inputs"in f&&f.inputs?(0,r.encodeAbiParameters)(f.inputs,c??[]):void 0;return(0,t.concatHex)([l,d??"0x"])}],390390)},345282,857889,876422,e=>{"use strict";e.s(["formatAbiItem",()=>r,"formatAbiParams",()=>n],345282);var t=e.i(84378);function r(e,{includeName:i=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new t.InvalidDefinitionTypeError(e.type);return`${e.name}(${n(e.inputs,{includeName:i})})`}function n(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${n(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}function i(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}e.s(["isHex",0,i],857889),e.s(["size",0,function(e){return i(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}],876422)},646264,e=>{"use strict";var t=e.i(84378),r=e.i(857889),n=e.i(81986),i=e.i(321054),a=e.i(647716);e.s(["getAbiItem",0,function(e){let s,{abi:o,args:c=[],name:u}=e,l=(0,r.isHex)(u,{strict:!1}),f=o.filter(e=>l?"function"===e.type?(0,a.toFunctionSelector)(e)===u:"event"===e.type&&(0,i.toEventSelector)(e)===u:"name"in e&&e.name===u);if(0!==f.length){if(1===f.length)return f[0];for(let e of f){if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,r)=>{let i="inputs"in e&&e.inputs[r];return!!i&&function e(t,r){let i=typeof t,a=r.type;switch(a){case"address":return(0,n.isAddress)(t,{strict:!1});case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===a&&"components"in r)return Object.values(r.components).every((r,n)=>"object"===i&&e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a))return"string"===i||t instanceof Uint8Array;
28if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:a.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)})){if(s&&"inputs"in s&&s.inputs){let r=function e(t,r,i){for(let a in t){let s=t[a],o=r[a];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,i[a]);let c=[s.type,o.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,n.isAddress)(i[a],{strict:!1}))return c}}(e.inputs,s.inputs,c);if(r)throw new t.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:s,type:r[1]})}s=e}}}return s||f[0]}}])},984068,811902,81986,972574,809855,e=>{"use strict";e.s(["checksumAddress",()=>u,"getAddress",()=>l],984068),e.s(["isAddress",()=>o],81986);var t=e.i(891964),r=e.i(709707),n=e.i(382402);class i 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)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}e.s(["LruMap",0,i],811902);let a=/^0x[a-fA-F0-9]{40}$/,s=new i(8192);function o(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(s.has(n))return s.get(n);let i=!!a.test(e)&&(e.toLowerCase()===e||!r||u(e)===e);return s.set(n,i),i}let c=new i(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);let i=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),a=(0,n.keccak256)((0,r.stringToBytes)(i),"bytes"),s=(t?i.substring(`${t}0x`.length):i).split("");for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&a[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let o=`0x${s.join("")}`;return c.set(`${e}.${t}`,o),o}function l(e,r){if(!o(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return u(e,r)}var f=e.i(458401);class d extends f.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class b extends f.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class p extends f.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}e.s(["NegativeOffsetError",0,d,"PositionOutOfBoundsError",0,b,"RecursiveReadLimitExceededError",0,p],972574);let m={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new p({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new b({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new d({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 d({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 r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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 r=this.inspectBytes(e);return this.position+=t??e,r},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===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};e.s(["createCursor",0,function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(m);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}],809855)},628700,512165,e=>{"use strict";var t=e.i(891964),r=e.i(81986);e.s(["isAddressEqual",0,function(e,n){if(!(0,r.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});if(!(0,r.isAddress)(n,{strict:!1}))throw new t.InvalidAddressError({address:n});return e.toLowerCase()===n.toLowerCase()}],628700);var n=e.i(458401),i=e.i(332506);e.s(["formatBlockParameter",0,function(e){let{blockHash:t,blockNumber:r,blockTag:a,requireCanonical:s}=e;if(void 0!==s&&!t)throw new n.BaseError("`requireCanonical` can only be provided when `blockHash` is set.");return t?s?{blockHash:t,requireCanonical:s}:{blockHash:t}:"bigint"==typeof r?(0,i.numberToHex)(r):a??"latest"}],512165)},755671,e=>{"use strict";var t=e.i(159864);e.s(["getChainContractAddress",0,function({blockNumber:e,chain:r,contract:n}){let i=r?.contracts?.[n];if(!i)throw new t.ChainDoesNotSupportContract({chain:r,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new t.ChainDoesNotSupportContract({blockNumber:e,chain:r,contract:{name:n,blockCreated:i.blockCreated}});return i.address}])},750236,e=>{"use strict";var t=e.i(134996),r=e.i(857889),n=e.i(876422);function i(e,r){if("number"==typeof r&&r>0&&r>(0,n.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:r,position:"start",size:(0,n.size)(e)})}function a(e,r,i){if("number"==typeof r&&"number"==typeof i&&(0,n.size)(e)!==i-r)throw new t.SliceOffsetOutOfBoundsError({offset:i,position:"end",size:(0,n.size)(e)})}function s(e,t,r,{strict:n}={}){i(e,t);let o=e.slice(t,r);return n&&a(o,t,r),o}function o(e,t,r,{strict:n}={}){i(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&a(s,t,r),s}e.s(["slice",0,function(e,t,n,{strict:i}={}){return(0,r.isHex)(e,{strict:!1})?o(e,t,n,{strict:i}):s(e,t,n,{strict:i})},"sliceBytes",0,s,"sliceHex",0,o])},709707,588973,418640,181136,449798,332506,382402,e=>{"use strict";var t=e.i(458401),r=e.i(857889),n=e.i(134996);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?a(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let a="right"===t;i[a?n:r-n-1]=e[a?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function a(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}e.s(["pad",0,i,"padHex",0,a],588973);var s=t;class o extends s.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}
28){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class c extends s.BaseError{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 u extends s.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}s.BaseError,s.BaseError,s.BaseError,s.BaseError;class l extends s.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",0,o,"InvalidBytesBooleanError",0,c,"InvalidHexBooleanError",0,u,"SizeOverflowError",0,l],418640);var f=e.i(876422);function d(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())n++;else break;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}function b(e,{size:t}){if((0,f.size)(e)>t)throw new l({givenSize:(0,f.size)(e),maxSize:t})}function p(e,t={}){let{signed:r}=t;t.size&&b(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}e.s(["trim",0,d],181136),e.s(["assertSize",0,b,"hexToBigInt",0,p,"hexToBool",0,function(e,t={}){let r=e;if(t.size&&(b(r,{size:t.size}),r=d(r)),"0x00"===d(r))return!1;if("0x01"===d(r))return!0;throw new u(r)},"hexToNumber",0,function(e,t={}){let r=p(e,t),n=Number(r);if(!Number.isSafeInteger(n))throw new o({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return n}],449798);let m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function h(e,t={}){return"number"==typeof e||"bigint"==typeof e?v(e,t):"string"==typeof e?E(e,t):"boolean"==typeof e?y(e,t):g(e,t)}function y(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(b(r,{size:t.size}),i(r,{size:t.size})):r}function g(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=m[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(b(n,{size:t.size}),i(n,{dir:"right",size:t.size})):n}function v(e,t={}){let r,{signed:n,size:a}=t,s=BigInt(e);a?r=n?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof r&&n?-r-1n:0;if(r&&s>r||s<c){let t="bigint"==typeof e?"n":"";throw new o({max:r?`${r}${t}`:void 0,min:`${c}${t}`,signed:n,size:a,value:`${e}${t}`})}let u=`0x${(n&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?i(u,{size:a}):u}let w=new TextEncoder;function E(e,t={}){return g(w.encode(e),t)}e.s(["boolToHex",0,y,"bytesToHex",0,g,"numberToHex",0,v,"stringToHex",0,E,"toHex",0,h],332506);let x=new TextEncoder;function $(e,t={}){return"number"==typeof e||"bigint"==typeof e?P(v(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?(b(r,{size:t.size}),i(r,{size:t.size})):r}(e,t):(0,r.isHex)(e)?P(e,t):B(e,t)}function A(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function P(e,r={}){let n=e;r.size&&(b(n,{size:r.size}),n=i(n,{dir:"right",size:r.size}));let a=n.slice(2);a.length%2&&(a=`0${a}`);let s=a.length/2,o=new Uint8Array(s);for(let e=0,r=0;e<s;e++){let n=A(a.charCodeAt(r++)),i=A(a.charCodeAt(r++));if(void 0===n||void 0===i)throw new t.BaseError(`Invalid byte sequence ("${a[r-2]}${a[r-1]}" in "${a}").`);o[e]=16*n+i}return o}function B(e,t={}){let r=x.encode(e);return"number"==typeof t.size?(b(r,{size:t.size}),i(r,{dir:"right",size:t.size})):r}e.s(["hexToBytes",0,P,"stringToBytes",0,B,"toBytes",0,$],709707);var I=e.i(626014);e.s(["keccak256",0,function(e,t){let n=(0,I.keccak_256)((0,r.isHex)(e,{strict:!1})?$(e):e);return"bytes"===(t||"hex")?n:h(n)}],382402)},909721,e=>{"use strict";var t=e.i(218534),r=e.i(984444),n=e.i(84378),i=e.i(750236),a=e.i(647716),s=e.i(126188),o=e.i(345282),c=e.i(637849),u=e.i(785599),l=e.i(646264);let f="/docs/contract/encodeErrorResult";function d(e){let{abi:t,errorName:r,args:i}=e,s=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,args:i,name:r});if(!e)throw new n.AbiErrorNotFoundError(r,{docsPath:f});s=e}if("error"!==s.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:f});let d=(0,o.formatAbiItem)(s),b=(0,a.toFunctionSelector)(d),p="0x";if(i&&i.length>0){if(!s.inputs)throw new n.AbiErrorInputsNotFoundError(s.name,{docsPath:f});p=(0,u.encodeAbiParameters)(s.inputs,i)}return(0,c.concatHex)([b,p])}let b="/docs/contract/encodeFunctionResult",p="x-batch-gateway:true";async function m(e){let{data:c,ccipRequest:f}=e,{args:[h]}=function(e){let{abi:t,data:r}=e,c=(0,i.slice)(r,0,4),u=t.find(e=>"function"===e.type&&c===(0,a.toFunctionSelector)((0,o.formatAbiItem)(e)));if(!u)throw new n.AbiFunctionSignatureNotFoundError(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.decodeAbiParameters)(u.inputs,(0,i.slice)(r,4)):void 0}}({abi:t.batchGatewayAbi,data:c}),y=[],g=[];return await Promise.all(h.map(async(e,n)=>{try{g[n]=e.urls.includes(p)?await m({data:e.data,ccipRequest:f}):await f(e),y[n]=!1}catch(e){var i;y[n]=!0,g[n]="HttpRequestError"===(i=e).name&&i.status?d({abi:t.batchGatewayAbi,errorName:"HttpError",args:[i.status,i.shortMessage]}):d({abi:[r.solidityError],errorName:"Error",args:["shortMessage"in i?i.shortMessage:i.message]})}})),function(e){let{abi:t,functionName:r,result:i}=e,a=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiFunctionNotFoundError(r,{docsPath:b});a=e}if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:b});if(!a.outputs)throw new n.AbiFunctionOutputsNotFoundError(a.name,{docsPath:b});let s=(()=>
28{if(0===a.outputs.length)return[];if(1===a.outputs.length)return[i];if(Array.isArray(i))return i;throw new n.InvalidArrayError(i)})();return(0,u.encodeAbiParameters)(a.outputs,s)}({abi:t.batchGatewayAbi,functionName:"query",result:[y,g]})}e.s(["localBatchGatewayRequest",0,m,"localBatchGatewayUrl",0,p],909721)},401837,e=>{"use strict";var t=e.i(709707),r=e.i(382402);e.s(["hashSignature",0,function(e){return(0,r.keccak256)((0,t.toBytes)(e))}])},321054,e=>{"use strict";let t=e.i(813996).toSignatureHash;e.s(["toEventSelector",0,t])},647716,e=>{"use strict";var t=e.i(750236),r=e.i(813996);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,r.toSignatureHash)(e),0,4)])},813996,44688,412932,e=>{"use strict";var t=e.i(401837),r=e.i(950185);let n=/^tuple(?<array>(\[(\d*)\])*)$/;function i(e){let t="",i=e.length;for(let a=0;a<i;a++)t+=function e(t){let i=t.type;if(n.test(t.type)&&"components"in t){i="(";let a=t.components.length;for(let r=0;r<a;r++)i+=e(t.components[r]),r<a-1&&(i+=", ");let s=(0,r.execTyped)(n,t.type);return i+=`)${s?.array||""}`,e({...t,type:i})}return("indexed"in t&&t.indexed&&(i=`${i}
28 indexed`),t.name)?`${i} ${t.name}`:i}(e[a]),a!==i-1&&(t+=", ");return t}function a(e){return"function"===e.type?`function ${e.name}(${i(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${i(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${i(e.inputs)})`:"error"===e.type?`error ${e.name}(${i(e.inputs)})`:"constructor"===e.type?`constructor(${i(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}e.s(["formatAbiParameters",0,i],44688),e.s(["formatAbiItem",0,a],412932);var s=e.i(458401);e.s(["toSignatureHash",0,function(e){return(0,t.hashSignature)(function(e){let t=!0,r="",n=0,i="",a=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function",""].includes(i))i="";else if(i+=o,")"===o){a=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=o,r+=o}}if(!a)throw new s.BaseError("Unable to normalize signature.");return i}("string"==typeof e?e:a(e)))}],813996)}]);

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.