1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,709361,e=>{"use strict";let t=BigInt(0x100000000-1),r=BigInt(32);function n(e,i=!1){let s=e.length,o=new Uint32Array(s),a=new Uint32Array(s);for(let n=0;n<s;n++){let{h:s,l:u}=function(e,n=!1){return n?{h:Number(e&t),l:Number(e>>r&t)}:{h:0|Number(e>>r&t),l:0|Number(e&t)}}(e[n],i);[o[n],a[n]]=[s,u]}return[o,a]}let i=(e,t,r)=>e>>>r,s=(e,t,r)=>e<<32-r|t>>>r,o=(e,t,r)=>e>>>r|t<<32-r,a=(e,t,r)=>e<<32-r|t>>>r,u=(e,t,r)=>e<<64-r|t>>>r-32,c=(e,t,r)=>e>>>r-32|t<<64-r,l=(e,t,r)=>e<<r|t>>>32-r,d=(e,t,r)=>t<<r|e>>>32-r,f=(e,t,r)=>t<<r-32|e>>>64-r,h=(e,t,r)=>e<<r-32|t>>>64-r;function p(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}}let g=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),y=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,b=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),m=(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,x=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),E=(e,t,r,n,i,s)=>t+r+n+i+s+(e/0x100000000|0)|0;e.s(["add",()=>p,"add3H",()=>y,"add3L",()=>g,"add4H",()=>m,"add4L",()=>b,"add5H",()=>E,"add5L",()=>x,"rotlBH",()=>f,"rotlBL",()=>h,"rotlSH",()=>l,"rotlSL",()=>d,"rotrBH",()=>u,"rotrBL",()=>c,"rotrSH",()=>o,"rotrSL",()=>a,"shrSH",()=>i,"shrSL",()=>s,"split",()=>n])},470525,e=>{"use strict";let t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function n(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");r(e.outputLen),r(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function o(e,t){n(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}function a(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function c(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function l(e,t){return e<<32-t|e>>>t}let d=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e};function f(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),n(e),e}function h(...e){let t=0;for(let r=0;r<e.length;r++){let i=e[r];n(i),t+=i.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}class p{}function g(e){let t=t=>e().update(f(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function y(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function b(e=32){if(t&&"function"==typeof t.getRandomValues)return t.getRandomValues(new Uint8Array(e));if(t&&"function"==typeof t.randomBytes)return Uint8Array.from(t.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}e.s(["Hash",()=>p,"abytes",()=>n,"aexists",()=>s,"ahash",()=>i,"anumber",()=>r,"aoutput",()=>o,"clean",()=>u,"concatBytes",()=>h,"createHasher",()=>g,"createView",()=>c,"createXOFer",()=>y,"randomBytes",()=>b,"rotr",()=>l,"swap32IfBE",0,d,"toBytes",()=>f,"u32",()=>a],470525)},569934,e=>{"use strict";let t="2.52.2",r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t}`};class n extends Error{constructor(e,i={}){const s=i.cause instanceof n?i.cause.details:i.cause?.message?i.cause.message:i.details,o=i.cause instanceof n&&i.cause.docsPath||i.docsPath,a=r.getDocsUrl?.({...i,docsPath:o});super([e||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...s?[`Details: ${s}`]:[],...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=s,this.docsPath=o,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=e,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)}}e.s(["BaseError",()=>n],569934)},400564,e=>{"use strict";var t=e.i(569934);class r extends t.BaseError{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})`}`,{name:"IntegerOutOfRangeError"})}}class n extends t.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 i extends t.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}t.BaseError;class s extends t.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",()=>r,"InvalidBytesBooleanError",()=>n,"InvalidHexBooleanError",()=>i,"SizeOverflowError",()=>s])},22411,587286,e=>{"use strict";var t=e.i(569934);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"})}}function s(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let s="right"===t;i[s?n:r-n-1]=e[s?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}e.s(["InvalidBytesLengthError",()=>i,"SizeExceedsPaddingSizeError",()=>n,"SliceOffsetOutOfBoundsError",()=>r],587286),e.s(["pad",()=>s,"padHex",()=>o],22411)},880841,e=>{"use strict";function t(e,{strict:r=!0}={}){return!!e&&"string"==typeof e&&(r?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}e.s(["isHex",()=>t])},401319,e=>{"use strict";var t=e.i(880841);function r(e){return(0,t.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}e.s(["size",()=>r])},8406,e=>{"use strict";function t(e,{dir:r="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,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(n="left"===r?n.slice(i):n.slice(0,n.length-i),"string"==typeof e)?(1===n.length&&"right"===r&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}e.s(["trim",()=>t])},769936,e=>{"use strict";e.s(["hexToBytes",()=>c,"stringToBytes",()=>l,"toBytes",()=>a]);var t=e.i(569934),r=e.i(880841),n=e.i(22411),i=e.i(450323),s=e.i(675107);let o=new TextEncoder;function a(e,t={}){var o,u;return"number"==typeof e||"bigint"==typeof e?(o=e,u=t,c((0,s.numberToHex)(o,u))):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,i.assertSize)(r,{size:t.size}),(0,n.pad)(r,{size:t.size})):r}(e,t):(0,r.isHex)(e)?c(e,t):l(e,t)}function u(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function c(e,r={}){let s=e;r.size&&((0,i.assertSize)(s,{size:r.size}),s=(0,n.pad)(s,{dir:"right",size:r.size}));let o=s.slice(2);o.length%2&&(o=`0${o}`);let a=o.length/2,l=new Uint8Array(a);for(let e=0,r=0;e<a;e++){let n=u(o.charCodeAt(r++)),i=u(o.charCodeAt(r++));if(void 0===n||void 0===i)throw new t.BaseError(`Invalid byte sequence ("${o[r-2]}${o[r-1]}" in "${o}").`);l[e]=16*n+i}return l}function l(e,t={}){let r=o.encode(e);return"number"==typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,n.pad)(r,{dir:"right",size:t.size})):r}},450323,e=>{"use strict";e.s(["assertSize",()=>s,"fromHex",()=>o,"hexToBigInt",()=>a,"hexToBool",()=>u,"hexToNumber",()=>c,"hexToString",()=>l]);var t=e.i(400564),r=e.i(401319),n=e.i(8406),i=e.i(769936);function s(e,{size:n}){if((0,r.size)(e)>n)throw new t.SizeOverflowError({givenSize:(0,r.size)(e),maxSize:n})}function o(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;
1return"number"===n?c(e,r):"bigint"===n?a(e,r):"string"===n?l(e,r):"boolean"===n?u(e,r):(0,i.hexToBytes)(e,r)}function a(e,t={}){let{signed:r}=t;t.size&&s(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}function u(e,r={}){let i=e;if(r.size&&(s(i,{size:r.size}),i=(0,n.trim)(i)),"0x00"===(0,n.trim)(i))return!1;if("0x01"===(0,n.trim)(i))return!0;throw new t.InvalidHexBooleanError(i)}function c(e,r={}){let n=a(e,r),i=Number(n);if(!Number.isSafeInteger(i))throw new t.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:r.signed,size:r.size,value:`${n}n`});return i}function l(e,t={}){let r=(0,i.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,n.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}},675107,e=>{"use strict";e.s(["boolToHex",()=>o,"bytesToHex",()=>a,"numberToHex",()=>u,"stringToHex",()=>l,"toHex",()=>s]);var t=e.i(400564),r=e.i(22411),n=e.i(450323);let i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?l(e,t):"boolean"==typeof e?o(e,t):a(e,t)}function o(e,t={}){let i=`0x${Number(e)}`;return"number"==typeof t.size?((0,n.assertSize)(i,{size:t.size}),(0,r.pad)(i,{size:t.size})):i}function a(e,t={}){let s="";for(let t=0;t<e.length;t++)s+=i[e[t]];let o=`0x${s}`;return"number"==typeof t.size?((0,n.assertSize)(o,{size:t.size}),(0,r.pad)(o,{dir:"right",size:t.size})):o}function u(e,n={}){let i,{signed:s,size:o}=n,a=BigInt(e);o?i=s?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(i=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof i&&s?-i-1n:0;if(i&&a>i||a<c){let r="bigint"==typeof e?"n":"";throw new t.IntegerOutOfRangeError({max:i?`${i}${r}`:void 0,min:`${c}${r}`,signed:s,size:o,value:`${e}${r}`})}let l=`0x${(s&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,r.pad)(l,{size:o}):l}let c=new TextEncoder;function l(e,t={}){return a(c.encode(e),t)}},34888,e=>{"use strict";e.s(["stringify",0,(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)])},976677,e=>{"use strict";class t 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",()=>t])},608861,e=>{"use strict";var t=e.i(569934);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",()=>r])},831095,145535,e=>{"use strict";var t=e.i(709361),r=e.i(470525);let n=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(7),a=BigInt(256),u=BigInt(113),c=[],l=[],d=[];for(let e=0,t=i,r=1,f=0;e<24;e++){[r,f]=[f,(2*r+3*f)%5],c.push(2*(5*f+r)),l.push((e+1)*(e+2)/2%64);let h=n;for(let e=0;e<7;e++)(t=(t<<i^(t>>o)*u)%a)&s&&(h^=i<<(i<<BigInt(e))-i);d.push(h)}let f=(0,t.split)(d,!0),h=f[0],p=f[1],g=(e,r,n)=>n>32?(0,t.rotlBH)(e,r,n):(0,t.rotlSH)(e,r,n),y=(e,r,n)=>n>32?(0,t.rotlBL)(e,r,n):(0,t.rotlSL)(e,r,n);class b extends r.Hash{constructor(e,t,n,i=!1,s=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=s,(0,r.anumber)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,r.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,r.swap32IfBE)(this.state32),function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,s=n[i],o=n[i+1],a=g(s,o,1)^n[r],u=y(s,o,1)^n[r+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=l[r],s=g(t,i,n),o=y(t,i,n),a=c[r];t=e[a],i=e[a+1],e[a]=s,e[a+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=h[r],e[1]^=p[r]}(0,r.clean)(n)}(this.state32,this.rounds),(0,r.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);let{blockLen:t,state:n}=this,i=e.length;for(let r=0;r<i;){let s=Math.min(t-this.pos,i-r);for(let t=0;t<s;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,r.aexists)(this,!1),(0,r.abytes)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let s=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+s),r),this.posOut+=s,r+=s}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,r.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return e||(e=new b(t,r,n,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=s,e.destroyed=this.destroyed,e}}let m=(0,r.createHasher)(()=>new b(136,1,32));e.s(["keccak_256",0,m],145535);var x=e.i(880841),E=e.i(769936),v=e.i(675107);function A(e,t){let r=m((0,x.isHex)(e,{strict:!1})?(0,E.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,v.toHex)(r)}e.s(["keccak256",()=>A],831095)},796516,e=>{"use strict";e.s(["isAddress",()=>s]);
1var t=e.i(976677),r=e.i(823838);let n=/^0x[a-fA-F0-9]{40}$/,i=new t.LruMap(8192);function s(e,t){let{strict:s=!0}=t??{},o=`${e}.${s}`;if(i.has(o))return i.get(o);let a=!!n.test(e)&&(e.toLowerCase()===e||!s||(0,r.checksumAddress)(e)===e);return i.set(o,a),a}},823838,e=>{"use strict";e.s(["checksumAddress",()=>a,"getAddress",()=>u]);var t=e.i(608861),r=e.i(769936),n=e.i(831095),i=e.i(976677),s=e.i(796516);let o=new i.LruMap(8192);function a(e,t){if(o.has(`${e}.${t}`))return o.get(`${e}.${t}`);let i=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),s=(0,n.keccak256)((0,r.stringToBytes)(i),"bytes"),a=(t?i.substring(`${t}0x`.length):i).split("");for(let e=0;e<40;e+=2)s[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&s[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let u=`0x${a.join("")}`;return o.set(`${e}.${t}`,u),u}function u(e,r){if(!(0,s.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return a(e,r)}},70204,332881,e=>{"use strict";function t(e,{includeName:n=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new S(e.type);return`${e.name}(${r(e.inputs,{includeName:n})})`}function r(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${r(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}e.s(["AbiConstructorNotFoundError",()=>s,"AbiConstructorParamsNotFoundError",()=>o,"AbiDecodingDataSizeTooSmallError",()=>a,"AbiDecodingZeroDataError",()=>u,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>l,"AbiEncodingLengthMismatchError",()=>d,"AbiErrorInputsNotFoundError",()=>f,"AbiErrorNotFoundError",()=>h,"AbiErrorSignatureNotFoundError",()=>p,"AbiEventNotFoundError",()=>b,"AbiEventSignatureEmptyTopicsError",()=>g,"AbiEventSignatureNotFoundError",()=>y,"AbiFunctionNotFoundError",()=>m,"AbiFunctionOutputsNotFoundError",()=>x,"AbiFunctionSignatureNotFoundError",()=>E,"AbiItemAmbiguityError",()=>v,"BytesSizeMismatchError",()=>A,"DecodeLogDataMismatch",()=>$,"DecodeLogTopicsMismatch",()=>B,"InvalidAbiDecodingTypeError",()=>I,"InvalidAbiEncodingTypeError",()=>w,"InvalidArrayError",()=>z,"InvalidDefinitionTypeError",()=>S,"UnsupportedPackedAbiType",()=>O],70204),e.s(["formatAbiItem",()=>t,"formatAbiParams",()=>r],332881);var n=e.i(401319),i=e.i(569934);class s extends i.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 o extends i.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"})}}i.BaseError;class a extends i.BaseError{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${r(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class u extends i.BaseError{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class c extends i.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. 2Expected length: ${e} 3Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class l extends i.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,n.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class d extends i.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 4Expected length (params): ${e} 5Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends i.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 6Cannot encode error result without knowing what the parameter types are. 7Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class h extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 8Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class p extends i.BaseError{constructor(e,{docsPath:t,cause:r}){super(`Encoded error signature "${e}" not found on ABI. 9Make sure you are using the correct ABI and that the error exists on it. 10You 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 g extends i.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends i.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 11Make sure you are using the correct ABI and that the event exists on it. 12You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class b extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 13Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class m extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 14Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class x extends i.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 15Cannot decode function result without knowing what the parameter types are. 16Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class E extends i.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 17Make sure you are using the correct ABI and that the function exists on it. 18You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class v extends i.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${t(e.abiItem)}\`, and`,`\`${r.type}\` in \`${t(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class A extends i.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class $ extends i.BaseError{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${r(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=i}}class B extends i.BaseError{constructor({abiItem:e,param:r}){super(`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${t(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class w extends i.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 19Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class I extends i.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 20Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class z extends i.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class S extends i.BaseError{constructor(e){super(`"${e}" is not a valid definition type. 21Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class O extends i.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},790063,e=>{"use strict";var t=e.i(587286),r=e.i(880841),n=e.i(401319);function i(e,t,n,{strict:s}={}){return(0,r.isHex)(e,{strict:!1})?u(e,t,n,{strict:s}):a(e,t,n,{strict:s})}function s(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 o(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 a(e,t,r,{strict:n}={}){s(e,t);let i=e.slice(t,r);return n&&o(i,t,r),i}function u(e,t,r,{strict:n}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&o(i,t,r),i}e.s(["slice",()=>i,"sliceBytes",()=>a,"sliceHex",()=>u])},147526,e=>{"use strict";function t(e){return"string"==typeof e[0]?r(e):function(e){let t=0;
vendor: 4,952 bytes, line 21
21for(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)}function r(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",()=>t,"concatHex",()=>r])},704434,342692,e=>{"use strict";var t=e.i(70204),r=e.i(608861),n=e.i(569934),i=e.i(400564),s=e.i(796516),o=e.i(147526),a=e.i(22411),u=e.i(401319),c=e.i(790063),l=e.i(675107);let d=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function f(e,f){if(e.length!==f.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:f.length});let g=h(function({params:e,values:f}){let g=[];for(let y=0;y<e.length;y++)g.push(function e({param:f,value:g}){let y=p(f.type);if(y){let[r,n]=y;return function(r,{length:n,param:i}){let s=null===n;if(!Array.isArray(r))throw new t.InvalidArrayError(r);if(!s&&r.length!==n)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:n,givenLength:r.length,type:`${i.type}[${n}]`});let a=!1,u=[];for(let t=0;t<r.length;t++){let n=e({param:i,value:r[t]});n.dynamic&&(a=!0),u.push(n)}if(s||a){let e=h(u);if(s){let t=(0,l.numberToHex)(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?(0,o.concat)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,o.concat)(u.map(({encoded:e})=>e))}}(g,{length:r,param:{...f,type:n}})}if("tuple"===f.type)return function(t,{param:r}){let n=!1,i=[];for(let s=0;s<r.components.length;s++){let o=r.components[s],a=Array.isArray(t)?s:o.name,u=e({param:o,value:t[a]});i.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?h(i):(0,o.concat)(i.map(({encoded:e})=>e))}}(g,{param:f});if("address"===f.type){var b=g;if(!(0,s.isAddress)(b))throw new r.InvalidAddressError({address:b});return{dynamic:!1,encoded:(0,a.padHex)(b.toLowerCase())}}if("bool"===f.type){var m=g;if("boolean"!=typeof m)throw new n.BaseError(`Invalid boolean value: "${m}" (type: ${typeof m}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,a.padHex)((0,l.boolToHex)(m))}}if(f.type.startsWith("uint")||f.type.startsWith("int")){let e=f.type.startsWith("int"),[,,t="256"]=d.exec(f.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-n-1n:0n;if(e>n||e<s)throw new i.IntegerOutOfRangeError({max:n.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,l.numberToHex)(e,{size:32,signed:t})}}(g,{signed:e,size:Number(t)})}if(f.type.startsWith("bytes"))return function(e,{param:r}){let[,n]=r.type.split("bytes"),i=(0,u.size)(e);if(!n){let t=e;return i%32!=0&&(t=(0,a.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,o.concat)([(0,a.padHex)((0,l.numberToHex)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,a.padHex)(e,{dir:"right"})}}(g,{param:f});if("string"===f.type){var x=g;let e=(0,l.stringToHex)(x),t=Math.ceil((0,u.size)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,a.padHex)((0,c.slice)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,o.concat)([(0,a.padHex)((0,l.numberToHex)((0,u.size)(e),{size:32})),...r])}}throw new t.InvalidAbiEncodingTypeError(f.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[y],value:f[y]}));return g}({params:e,values:f}));return 0===g.length?"0x":g}e.s(["arrayRegex",0,/^(.*)\[([0-9]*)\]$/,"bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,d],342692);function h(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,u.size)(i)}let r=[],n=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(r.push((0,l.numberToHex)(t+i,{size:32})),n.push(a),i+=(0,u.size)(a)):r.push(a)}return(0,o.concat)([...r,...n])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",()=>f,"getArrayComponents",()=>p],704434)},395312,e=>{"use strict";var t=e.i(769936),r=e.i(831095);function n(e){return(0,r.keccak256)((0,t.toBytes)(e))}e.s(["hashSignature",()=>n])},788035,e=>{"use strict";function t(e,t){let r=e.exec(t);return r?.groups}e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",()=>t,"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,/^\(.+?\).*?$/])},926336,525908,766564,e=>{"use strict";var t=e.i(395312),r=e.i(788035);let n=/^tuple(?<array>(\[(\d*)\])*)$/;function i(e){let t="",i=e.length;for(let s=0;s<i;s++)t+=function e(t){let i=t.type;if(n.test(t.type)&&"components"in t){i="(";let s=t.components.length;for(let r=0;r<s;r++)i+=e(t.components[r]),r<s-1&&(i+=", ");let o=(0,r.execTyped)(n,t.type);return i+=`)${o?.array||""}`,e({...t,type:i})}return("indexed"in t&&t.indexed&&(i=`${i}
21 indexed`),t.name)?`${i} ${t.name}`:i}(e[s]),s!==i-1&&(t+=", ");return t}function s(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",()=>i],525908),e.s(["formatAbiItem",()=>s],766564);var o=e.i(569934);function a(e){return(0,t.hashSignature)(function(e){let t=!0,r="",n=0,i="",s=!1;for(let o=0;o<e.length;o++){let a=e[o];if(["(",")",","].includes(a)&&(t=!0),"("===a&&n++,")"===a&&n--,t){if(0===n){if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){s=!0;break}continue}if(" "===a){","!==e[o-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=a,r+=a}}if(!s)throw new o.BaseError("Unable to normalize signature.");return i}("string"==typeof e?e:s(e)))}e.s(["toSignatureHash",()=>a],926336)},774620,e=>{"use strict";let t=e.i(926336).toSignatureHash;e.s(["toEventSelector",0,t])},879617,e=>{"use strict";var t=e.i(790063),r=e.i(926336);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,r.toSignatureHash)(e),0,4)])},656679,627173,e=>{"use strict";var t=e.i(147526),r=e.i(704434),n=e.i(70204),i=e.i(879617),s=e.i(332881),o=e.i(880841),a=e.i(796516),u=e.i(774620);function c(e){let t,{abi:r,args:s=[],name:c}=e,l=(0,o.isHex)(c,{strict:!1}),d=r.filter(e=>l?"function"===e.type?(0,i.toFunctionSelector)(e)===c:"event"===e.type&&(0,u.toEventSelector)(e)===c:"name"in e&&e.name===c);if(0!==d.length){if(1===d.length)return d[0];for(let e of d){if("inputs"in e){if(!s||0===s.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===s.length&&s.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return(0,a.isAddress)(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,i)=>"object"===n&&e(Object.values(t)[i],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(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;
vendor: 1,346 bytes, line 21
21if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=function e(t,r,n){for(let i in t){let s=t[i],o=r[i];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,n[i]);let u=[s.type,o.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,a.isAddress)(n[i],{strict:!1}))return u}}(e.inputs,t.inputs,s);if(r)throw new n.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}}return t||d[0]}}e.s(["getAbiItem",()=>c],627173);let l="/docs/contract/encodeFunctionData";function d(e){let{args:o}=e,{abi:a,functionName:u}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:o}=e,a=t[0];if(o){let e=c({abi:t,args:r,name:o});if(!e)throw new n.AbiFunctionNotFoundError(o,{docsPath:l});a=e}if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:l});return{abi:[a],functionName:(0,i.toFunctionSelector)((0,s.formatAbiItem)(a))}}(e),d=a[0],f="inputs"in d&&d.inputs?(0,r.encodeAbiParameters)(d.inputs,o??[]):void 0;return(0,t.concatHex)([u,f??"0x"])}e.s(["encodeFunctionData",()=>d],656679)}]);
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.