1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,882469,e=>{"use strict";let t=BigInt(0x100000000-1),r=BigInt(32);e.s(["add",0,function(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}},"add3H",0,(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,"add3L",0,(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),"add4H",0,(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,"add4L",0,(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),"add5H",0,(e,t,r,n,i,a)=>t+r+n+i+a+(e/0x100000000|0)|0,"add5L",0,(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),"rotlBH",0,(e,t,r)=>t<<r-32|e>>>64-r,"rotlBL",0,(e,t,r)=>e<<r-32|t>>>64-r,"rotlSH",0,(e,t,r)=>e<<r|t>>>32-r,"rotlSL",0,(e,t,r)=>t<<r|e>>>32-r,"rotrBH",0,(e,t,r)=>e<<64-r|t>>>r-32,"rotrBL",0,(e,t,r)=>e>>>r-32|t<<64-r,"rotrSH",0,(e,t,r)=>e>>>r|t<<32-r,"rotrSL",0,(e,t,r)=>e<<32-r|t>>>r,"shrSH",0,(e,t,r)=>e>>>r,"shrSL",0,(e,t,r)=>e<<32-r|t>>>r,"split",0,function(e,n=!1){let i=e.length,a=new Uint32Array(i),s=new Uint32Array(i);for(let o=0;o<i;o++){let{h:i,l}=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[o],n);[a[o],s[o]]=[i,l]}return[a,s]}])},944445,e=>{"use strict";let t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function i(e,...t){if(!r(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}let a=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},s="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function u(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function c(e){return"string"==typeof e&&(e=u(e)),i(e),e}e.s(["Hash",0,class{},"abytes",0,i,"aexists",0,function(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")},"ahash",0,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");n(e.outputLen),n(e.blockLen)},"anumber",0,n,"aoutput",0,function(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)},"bytesToHex",0,function(e){if(i(e),s)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t},"bytesToUtf8",0,function(e){return new TextDecoder().decode(e)},"clean",0,function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},"concatBytes",0,function(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];i(n),t+=n.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},"createHasher",0,function(e){let t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},"createView",0,function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},"createXOFer",0,function(e){let t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},"hexToBytes",0,function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(s)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=l(e.charCodeAt(i)),a=l(e.charCodeAt(i+1));if(void 0===r||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+a}return n},"isBytes",0,r,"randomBytes",0,function(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")},"rotl",0,function(e,t){return e<<t|e>>>32-t>>>0},"rotr",0,function(e,t){return e<<32-t|e>>>t},"swap32IfBE",0,a,"toBytes",0,c,"u32",0,function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},"utf8ToBytes",0,u],944445)},626014,e=>{"use strict";var t=e.i(882469),r=e.i(944445);let n=BigInt(0),i=BigInt(1),a=BigInt(2),s=BigInt(7),o=BigInt(256),l=BigInt(113),u=[],c=[],f=[];for(let e=0,t=i,r=1,d=0;e<24;e++){[r,d]=[d,(2*r+3*d)%5],u.push(2*(5*d+r)),c.push((e+1)*(e+2)/2%64);let p=n;for(let e=0;e<7;e++)(t=(t<<i^(t>>s)*l)%o)&a&&(p^=i<<(i<<BigInt(e))-i);f.push(p)}let d=(0,t.split)(f,!0),p=d[0],h=d[1],b=(e,r,n)=>n>
132?(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 m extends r.Hash{constructor(e,t,n,i=!1,a=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=a,(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,a=n[i],s=n[i+1],o=b(a,s,1)^n[r],l=y(a,s,1)^n[r+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=c[r],a=b(t,i,n),s=y(t,i,n),o=u[r];t=e[o],i=e[o+1],e[o]=a,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=p[r],e[1]^=h[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 a=Math.min(t-this.pos,i-r);for(let t=0;t<a;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 a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}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:a}=this;return e||(e=new m(t,r,n,a,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=a,e.destroyed=this.destroyed,e}}let g=(0,r.createHasher)(()=>new m(136,1,32));e.s(["keccak_256",0,g])},994081,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,/^\(.+?\).*?$/])},941562,e=>{"use strict";var t=e.i(994081);let r=/^tuple(?<array>(\[(\d*)\])*)$/;function n(e){let n="",i=e.length;for(let a=0;a<i;a++)n+=function e(n){let i=n.type;if(r.test(n.type)&&"components"in n){i="(";let a=n.components.length;for(let t=0;t<a;t++)i+=e(n.components[t]),t<a-1&&(i+=", ");let s=(0,t.execTyped)(r,n.type);return i+=`)${s?.array||""}`,e({...n,type:i})}return("indexed"in n&&n.indexed&&(i=`${i} indexed`),n.name)?`${i} ${n.name}`:i}(e[a]),a!==i-1&&(n+=", ");return n}e.s(["formatAbiItem",0,function(e){return"function"===e.type?`function ${e.name}(${n(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${n(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${n(e.inputs)})`:"error"===e.type?`error ${e.name}(${n(e.inputs)})`:"constructor"===e.type?`constructor(${n(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}],941562)},711371,e=>{"use strict";var t=e.i(994081);let r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,n=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,a=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,s=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,o=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,l=/^receive\(\) external payable$/,u=new Set(["memory","indexed","storage","calldata"]),c=new Set(["indexed"]),f=new Set(["calldata","memory","storage"]);e.s(["eventModifiers",0,c,"execConstructorSignature",0,function(e){return(0,t.execTyped)(s,e)},"execErrorSignature",0,function(e){return(0,t.execTyped)(r,e)},"execEventSignature",0,function(e){return(0,t.execTyped)(n,e)},"execFallbackSignature",0,function(e){return(0,t.execTyped)(o,e)},"execFunctionSignature",0,function(e){return(0,t.execTyped)(i,e)},"execStructSignature",0,function(e){return(0,t.execTyped)(a,e)},"functionModifiers",0,f,"isConstructorSignature",0,function(e){return s.test(e)},"isErrorSignature",0,function(e){return r.test(e)},"isEventSignature",0,function(e){return n.test(e)},"isFallbackSignature",0,function(e){return o.test(e)},"isFunctionSignature",0,function(e){return i.test(e)},"isReceiveSignature",0,function(e){return l.test(e)},"isStructSignature",0,function(e){return a.test(e)},"modifiers",0,u])},354353,e=>{"use strict";
1class t extends Error{constructor(e,r={}){const n=r.cause instanceof t?r.cause.details:r.cause?.message?r.cause.message:r.details,i=r.cause instanceof t&&r.cause.docsPath||r.docsPath;super([e||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: [email protected]"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=i,this.metaMessages=r.metaMessages,this.shortMessage=e}}e.s(["BaseError",0,t],354353)},287836,938707,e=>{"use strict";var t=e.i(354353);class r extends t.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class n extends t.BaseError{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 t.BaseError{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,r,"UnknownSolidityTypeError",0,i,"UnknownTypeError",0,n],287836);var a=t;class s extends a.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}class o extends a.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class l extends a.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class u extends a.BaseError{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 c extends a.BaseError{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 f extends a.BaseError{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 d extends a.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}e.s(["InvalidAbiParameterError",0,s,"InvalidAbiParametersError",0,o,"InvalidAbiTypeParameterError",0,d,"InvalidFunctionModifierError",0,f,"InvalidModifierError",0,c,"InvalidParameterError",0,l,"SolidityProtectedKeywordError",0,u],938707)},358410,e=>{"use strict";var t=e.i(354353);class r extends t.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class n extends t.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i extends t.BaseError{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"})}}e.s(["InvalidSignatureError",0,r,"InvalidStructSignatureError",0,i,"UnknownSignatureError",0,n])},800051,e=>{"use strict";var t=e.i(354353);class r extends t.BaseError{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"})}}e.s(["CircularReferenceError",0,r])},259667,e=>{"use strict";var t=e.i(354353);class r extends t.BaseError{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"})}}e.s(["InvalidParenthesisError",0,r])},281176,737097,794657,e=>{"use strict";var t=e.i(711371),r=e.i(994081),n=e.i(287836),i=e.i(938707),a=e.i(358410),s=e.i(800051),o=e.i(259667);let l=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 u(e,r={}){if((0,t.isFunctionSignature)(e))return function(e,r={}){let n=(0,t.execFunctionSignature)(e);if(!n)throw new a.InvalidSignatureError({signature:e,type:"function"});let i=h(n.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(p(i[e],{modifiers:t.functionModifiers,structs:r,type:"function"}));let l=[];
vendor: 4,757 bytes, line 1
1if(n.returns){let e=h(n.returns),i=e.length;for(let n=0;n<i;n++)l.push(p(e[n],{modifiers:t.functionModifiers,structs:r,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:s,outputs:l}}(e,r);if((0,t.isEventSignature)(e))return function(e,r={}){let n=(0,t.execEventSignature)(e);if(!n)throw new a.InvalidSignatureError({signature:e,type:"event"});let i=h(n.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(p(i[e],{modifiers:t.eventModifiers,structs:r,type:"event"}));return{name:n.name,type:"event",inputs:s}}(e,r);if((0,t.isErrorSignature)(e))return function(e,r={}){let n=(0,t.execErrorSignature)(e);if(!n)throw new a.InvalidSignatureError({signature:e,type:"error"});let i=h(n.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(p(i[e],{structs:r,type:"error"}));return{name:n.name,type:"error",inputs:s}}(e,r);if((0,t.isConstructorSignature)(e))return function(e,r={}){let n=(0,t.execConstructorSignature)(e);if(!n)throw new a.InvalidSignatureError({signature:e,type:"constructor"});let i=h(n.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(p(i[e],{structs:r,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:s}}(e,r);if((0,t.isFallbackSignature)(e)){var n=e;let r=(0,t.execFallbackSignature)(n);if(!r)throw new a.InvalidSignatureError({signature:n,type:"fallback"});return{type:"fallback",stateMutability:r.stateMutability??"nonpayable"}}if((0,t.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new a.UnknownSignatureError({signature:e})}let c=/^(?<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$_]*))?$/,f=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,d=/^u?int$/;function p(e,a){var s,o;let u,m=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,a?.type,a?.structs);if(l.has(m))return l.get(m);let g=r.isTupleRegex.test(e),x=(0,r.execTyped)(g?f:c,e);if(!x)throw new i.InvalidParameterError({param:e});if(x.name&&("address"===(s=x.name)||"bool"===s||"function"===s||"string"===s||"tuple"===s||r.bytesRegex.test(s)||r.integerRegex.test(s)||y.test(s)))throw new i.SolidityProtectedKeywordError({param:e,name:x.name});let w=x.name?{name:x.name}:{},v="indexed"===x.modifier?{indexed:!0}:{},$=a?.structs??{},A={};if(g){u="tuple";let e=h(x.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(p(e[n],{structs:$}));A={components:t}}else if(x.type in $)u="tuple",A={components:$[x.type]};else if(d.test(x.type))u=`${x.type}256`;else if("address payable"===x.type)u="address";else if(u=x.type,a?.type!=="struct"&&!b(u))throw new n.UnknownSolidityTypeError({type:u});if(x.modifier){if(!a?.modifiers?.has?.(x.modifier))throw new i.InvalidModifierError({param:e,type:a?.type,modifier:x.modifier});if(t.functionModifiers.has(x.modifier)&&(o=u,!x.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new i.InvalidFunctionModifierError({param:e,type:a?.type,modifier:x.modifier})}let I={type:`${u}${x.array??""}`,...w,...v,...A};return l.set(m,I),I}function h(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?h(s,[...t,r.trim()]):h(s,t,`${r}${i}`,n);case"(":return h(s,t,`${r}${i}`,n+1);case")":return h(s,t,`${r}${i}`,n-1);default:return h(s,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new o.InvalidParenthesisError({current:r,depth:n});return t.push(r.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.bytesRegex.test(e)||r.integerRegex.test(e)}let y=/^(?: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 m(e){let o={},l=e.length;for(let r=0;r<l;r++){let n=e[r];if(!(0,t.isStructSignature)(n))continue;let i=(0,t.execStructSignature)(n);if(!i)throw new a.InvalidSignatureError({signature:n,type:"struct"});let s=i.properties.split(";"),l=[],u=s.length;for(let e=0;e<u;e++){let t=s[e].trim();if(!t)continue;let r=p(t,{type:"struct"});l.push(r)}if(!l.length)throw new a.InvalidStructSignatureError({signature:n});o[i.name]=l}let u={},c=Object.entries(o),f=c.length;for(let e=0;e<f;
1e++){let[t,a]=c[e];u[t]=function e(t=[],a={},o=new Set){let l=[],u=t.length;for(let c=0;c<u;c++){let u=t[c];if(r.isTupleRegex.test(u.type))l.push(u);else{let t=(0,r.execTyped)(g,u.type);if(!t?.type)throw new i.InvalidAbiTypeParameterError({abiParameter:u});let{array:c,type:f}=t;if(f in a){if(o.has(f))throw new s.CircularReferenceError({type:f});l.push({...u,type:`tuple${c??""}`,components:e(a[f],a,new Set([...o,f]))})}else if(b(f))l.push(u);else throw new n.UnknownTypeError({type:f})}}return l}(a,o)}return u}e.s(["isSolidityType",0,b,"parseAbiParameter",0,p,"parseSignature",0,u,"splitParameters",0,h],737097);let g=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseStructs",0,m],794657),e.s(["parseAbi",0,function(e){let r=m(e),n=[],i=e.length;for(let a=0;a<i;a++){let i=e[a];(0,t.isStructSignature)(i)||n.push(u(i,r))}return n}],281176)},211916,e=>{"use strict";let t=BigInt(0),r=BigInt(1);function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function i(e){if(!n(e))throw Error("Uint8Array expected")}function a(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?t:BigInt("0x"+e)}let s="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){if(i(e),s)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return 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){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(s)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=u(e.charCodeAt(i)),a=u(e.charCodeAt(i+1));if(void 0===r||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+a}return n}function f(e,t){return c(e.toString(16).padStart(2*t,"0"))}function d(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];i(n),t+=n.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}let p=e=>"bigint"==typeof e&&t<=e;function h(e,t,r){return p(e)&&p(t)&&p(r)&&t<=e&&e<r}let b=e=>new Uint8Array(e),y={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||n(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};e.s(["aInRange",0,function(e,t,r,n){if(!h(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},"abool",0,function(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)},"abytes",0,i,"bitLen",0,function(e){let n;for(n=0;e>t;e>>=r,n+=1);return n},"bitMask",0,e=>(r<<BigInt(e))-r,"bytesToHex",0,l,"bytesToNumberBE",0,function(e){return a(l(e))},"bytesToNumberLE",0,function(e){return i(e),a(l(Uint8Array.from(e).reverse()))},"concatBytes",0,d,"createHmacDrbg",0,function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=b(e),i=b(e),a=0,s=()=>{n.fill(1),i.fill(0),a=0},o=(...e)=>r(i,n,...e),l=(e=b(0))=>{let t;if(i=o((t=[0],Uint8Array.from(t)),e),n=o(),0!==e.length){let t;i=o((t=[1],Uint8Array.from(t)),e),n=o()}},u=()=>{if(a++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=o()).slice();r.push(t),e+=n.length}return d(...r)};return(e,t)=>{let r;for(s(),l(e);!(r=t(u()));)l();return s(),r}},"ensureBytes",0,function(e,t,r){let i;if("string"==typeof t)try{i=c(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(n(t))i=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let a=i.length;if("number"==typeof r&&a!==r)throw Error(e+" of length "+r+" expected, got "+a);return i},"equalBytes",0,function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},"hexToBytes",0,c,"inRange",0,h,"isBytes",0,n,"memoized",0,function(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let a=e(r,...n);return t.set(r,a),a}},"numberToBytesBE",0,f,"numberToBytesLE",0,function(e,t){return f(e,t).reverse()},"numberToHexUnpadded",0,function(e){let t=e.toString(16);return 1&t.length?"0"+t:t},"utf8ToBytes",0,function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))},"validateObject",0,function(e,t,r={}){let n=(t,r,n)=>{let i=y[r];if("function"!=typeof i)throw Error("invalid validator function");let a=e[t];if((!n||void 0!==a)&&!i(a,e))throw Error("param "+String(t)+" is invali
1d. Expected "+r+", got "+a)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}])},837474,853197,417896,e=>{"use strict";var t=e.i(944445);function r(e,t,r){return e&t^~e&r}function n(e,t,r){return e&t^e&r^t&r}class i extends t.Hash{constructor(e,r,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,t.createView)(this.buffer)}update(e){(0,t.aexists)(this),e=(0,t.toBytes)(e),(0,t.abytes)(e);let{view:r,buffer:n,blockLen:i}=this,a=e.length;for(let s=0;s<a;){let o=Math.min(i-this.pos,a-s);if(o===i){let r=(0,t.createView)(e);for(;i<=a-s;s+=i)this.process(r,s);continue}n.set(e.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,t.aexists)(this),(0,t.aoutput)(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:a}=this,{pos:s}=this;r[s++]=128,(0,t.clean)(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(n,0),s=0);for(let e=s;e<i;e++)r[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),a=BigInt(0xffffffff),s=Number(r>>i&a),o=Number(r&a),l=4*!!n,u=4*!n;e.setUint32(t+l,s,n),e.setUint32(t+u,o,n)}(n,i-8,BigInt(8*this.length),a),this.process(n,0);let o=(0,t.createView)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=l/4,c=this.get();if(u>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)o.setUint32(4*e,c[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:a,pos:s}=this;return e.destroyed=a,e.finished=i,e.length=n,e.pos=s,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}let a=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),s=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),o=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),l=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]);e.s(["Chi",0,r,"HashMD",0,i,"Maj",0,n,"SHA224_IV",0,s,"SHA256_IV",0,a,"SHA384_IV",0,o,"SHA512_IV",0,l],853197);var u=e.i(882469);let c=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),f=new Uint32Array(64);class d extends i{constructor(e=32){super(64,e,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:a,G:s,H:o}=this;return[e,t,r,n,i,a,s,o]}set(e,t,r,n,i,a,s,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|a,this.G=0|s,this.H=0|o}process(e,i){for(let t=0;t<16;t++,i+=4)f[t]=e.getUint32(i,!1);for(let e=16;e<64;e++){let r=f[e-15],n=f[e-2],i=(0,t.rotr)(r,7)^(0,t.rotr)(r,18)^r>>>3,a=(0,t.rotr)(n,17)^(0,t.rotr)(n,19)^n>>>10;f[e]=a+f[e-7]+i+f[e-16]|0}let{A:a,B:s,C:o,D:l,E:u,F:d,G:p,H:h}=this;for(let e=0;e<64;e++){let i=h+((0,t.rotr)(u,6)^(0,t.rotr)(u,11)^(0,t.rotr)(u,25))+r(u,d,p)+c[e]+f[e]|0,b=((0,t.rotr)(a,2)^(0,t.rotr)(a,13)^(0,t.rotr)(a,22))+n(a,s,o)|0;h=p,p=d,d=u,u=l+i|0,l=o,o=s,s=a,a=i+b|0}a=a+this.A|0,s=s+this.B|0,o=o+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,p=p+this.G|0,h=h+this.H|0,this.set(a,s,o,l,u,d,p,h)}roundClean(){(0,t.clean)(f)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,t.clean)(this.buffer)}}class p extends d{constructor(){super(28),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}}let h=u.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),b=h[0],y=h[1],m=new Uint32Array(80),g=new Uint32Array(80);class x extends i{constructor(e=64){super(128,e,16,!1),this.Ah=0|l[0],this.Al=0|l[1],this.Bh=0|l[2],this.Bl=0|l[3],this.Ch=0|l[4],this.Cl=0|l[5],this.Dh=0|l[6],this.Dl=0|l[7],this.Eh=0|l[8],this.El=0|l[9],this.Fh=0|l[10],this.Fl=0|l[11],this.Gh=0|l[12],this.Gl=0|l[13],this.Hh=0|l[14],this.Hl=0|l[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:a,Dh:s,Dl:o,Eh:l,El:u,Fh:c,Fl:f,Gh:d,Gl:p,Hh:h,Hl:b}=this;return[e,t,r,n,i,a,s,o,l,u,c,f,d,p,h,b]}set(e,t,r,n,i,a,s,o,l,u,c,f,d,p,h,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|a,this.Dh=0|s,this.Dl=0|o,this.Eh=0|l,this.El=0|u,this.Fh=0|c,this.Fl=0|f,this.Gh=0|d,this.Gl=0|p,this.Hh=0|h,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)m[r]=e.getUint32(t),g[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|m[e-15],r=0|g[e-15],n=u.rotrSH(t,r,1)^u.rotrSH(t,r,8)^u.shrSH(t,r,7),i=u.rotrSL(t,r,1)^u.rotrSL(t,r,8)^u.shrSL(t,r,7),a=0|m[e-2],s=0|g[e-2],o=u.rotrSH(a,s,19)^u.rotrBH(a,s,61)^u.shrSH(a,s,6),l=u.rotrSL(a,s,19)^u.rotrBL(a,s,61)^u.shrSL(a,s,6),c=u.add4L(i,l,g[e-7],g[e-16]
1),f=u.add4H(c,n,o,m[e-7],m[e-16]);m[e]=0|f,g[e]=0|c}let{Ah:r,Al:n,Bh:i,Bl:a,Ch:s,Cl:o,Dh:l,Dl:c,Eh:f,El:d,Fh:p,Fl:h,Gh:x,Gl:w,Hh:v,Hl:$}=this;for(let e=0;e<80;e++){let t=u.rotrSH(f,d,14)^u.rotrSH(f,d,18)^u.rotrBH(f,d,41),A=u.rotrSL(f,d,14)^u.rotrSL(f,d,18)^u.rotrBL(f,d,41),I=f&p^~f&x,E=d&h^~d&w,S=u.add5L($,A,E,y[e],g[e]),B=u.add5H(S,v,t,I,b[e],m[e]),M=0|S,H=u.rotrSH(r,n,28)^u.rotrBH(r,n,34)^u.rotrBH(r,n,39),P=u.rotrSL(r,n,28)^u.rotrBL(r,n,34)^u.rotrBL(r,n,39),U=r&i^r&s^i&s,k=n&a^n&o^a&o;v=0|x,$=0|w,x=0|p,w=0|h,p=0|f,h=0|d,({h:f,l:d}=u.add(0|l,0|c,0|B,0|M)),l=0|s,c=0|o,s=0|i,o=0|a,i=0|r,a=0|n;let O=u.add3L(M,P,k);r=u.add3H(O,B,H,U),n=0|O}({h:r,l:n}=u.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:a}=u.add(0|this.Bh,0|this.Bl,0|i,0|a)),({h:s,l:o}=u.add(0|this.Ch,0|this.Cl,0|s,0|o)),({h:l,l:c}=u.add(0|this.Dh,0|this.Dl,0|l,0|c)),({h:f,l:d}=u.add(0|this.Eh,0|this.El,0|f,0|d)),({h:p,l:h}=u.add(0|this.Fh,0|this.Fl,0|p,0|h)),({h:x,l:w}=u.add(0|this.Gh,0|this.Gl,0|x,0|w)),({h:v,l:$}=u.add(0|this.Hh,0|this.Hl,0|v,0|$)),this.set(r,n,i,a,s,o,l,c,f,d,p,h,x,w,v,$)}roundClean(){(0,t.clean)(m,g)}destroy(){(0,t.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class w extends x{constructor(){super(48),this.Ah=0|o[0],this.Al=0|o[1],this.Bh=0|o[2],this.Bl=0|o[3],this.Ch=0|o[4],this.Cl=0|o[5],this.Dh=0|o[6],this.Dl=0|o[7],this.Eh=0|o[8],this.El=0|o[9],this.Fh=0|o[10],this.Fl=0|o[11],this.Gh=0|o[12],this.Gl=0|o[13],this.Hh=0|o[14],this.Hl=0|o[15]}}let v=(0,t.createHasher)(()=>new d),$=(0,t.createHasher)(()=>new p),A=(0,t.createHasher)(()=>new x),I=(0,t.createHasher)(()=>new w);e.s(["SHA224",0,p,"SHA256",0,d,"sha224",0,$,"sha256",0,v,"sha384",0,I,"sha512",0,A],837474);var E=t;class S extends E.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,E.ahash)(e);const r=(0,E.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),(0,E.clean)(i)}update(e){return(0,E.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,E.aexists)(this),(0,E.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:a,outputLen:s}=this;return e.finished=n,e.destroyed=i,e.blockLen=a,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let B=(e,t,r)=>new S(e,t).update(r).digest();B.create=(e,t)=>new S(e,t),e.s(["hmac",0,B],417896)},403893,29552,960342,406695,832357,e=>{"use strict";var t=e.i(837474);t.SHA256;let r=t.sha256;function n(e,t){let r=e.exec(t);return r?.groups}t.SHA224,t.sha224,e.s(["sha256",0,r],403893);let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,a=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,s=/^\(.+?\).*?$/,o=/^tuple(?<array>(\[(\d*)\])*)$/;function l(e){let t="",r=e.length;for(let i=0;i<r;i++)t+=function e(t){let r=t.type;if(o.test(t.type)&&"components"in t){r="(";let i=t.components.length;for(let n=0;n<i;n++)r+=e(t.components[n]),n<i-1&&(r+=", ");let a=n(o,t.type);return r+=`)${a?.array||""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
1 indexed`),t.name)?`${r} ${t.name}`:r}(e[i]),i!==r-1&&(t+=", ");return t}e.s(["formatAbiParameters",0,l],29552),e.s(["formatAbiItem",0,function(e){return"function"===e.type?`function ${e.name}(${l(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${l(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${l(e.inputs)})`:"error"===e.type?`error ${e.name}(${l(e.inputs)})`:"constructor"===e.type?`constructor(${l(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}],960342);class u extends Error{constructor(e,t={}){const r=t.cause instanceof u?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof u&&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 c extends u{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class f extends u{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 d extends u{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"})}}let p=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,h=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,b=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,y=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function m(e){return y.test(e)}let g=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,x=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,w=/^receive\(\) external payable$/,v=new Set(["memory","indexed","storage","calldata"]),$=new Set(["indexed"]),A=new Set(["calldata","memory","storage"]);class I extends u{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class E extends u{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class S extends u{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 B extends u{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 u{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 H extends u{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"})}}class P extends u{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class U extends u{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class k extends u{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 O extends u{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 L extends u{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 T=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 j(e,t={}){if(b.test(e))return function(e,t={}){let r=n(b,e);if(!r)throw new P({signature:e,type:"function"});let i=Z(r.parameters),a=[],s=i.length;for(let e=0;e<s;e++)a.push(C(i[e],{modifiers:A,structs:t,type:"function"}));let o=[];if(r.returns){let e=Z(r.returns),n=e.length;for(let r=0;r<n;r++)o.push(C(e[r],{modifiers:A,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:a,outputs:o}}(e,t);if(h.test(e))return function(e,t={}){let r=n(h,e);if(!r)throw new P({signature:e,type:"event"});let i=Z(r.parameters),a=[],s=i.length;for(let e=0;e<s;e++)a.push(C(i[e],{modifiers:$,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}(e,t);if(p.test(e))return function(e,t={}){let r=n(p,e);if(!r)throw new P({signature:e,type:"error"});let i=Z(r.parameters),a=[],s=i.length;for(let e=0;e<s;e++)a.push(C(i[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:a}}(e,t);if(g.test(e))return function(e,t={}){let r=n(g,e);if(!r)throw new P({signature:e,type:"constructor"});let i=Z(r.parameters),a=[],s=i.length;for(let e=0;e<s;e++)a.push(C(i[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:a}}(e,t);if(x.test(e)){var r=e;let t=n(x,r);if(!t)throw new P({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if(w.test(e))return{type:"receive",stateMutability:"payable"};throw new U({signature:e})}let _=/^(?<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$_]*))?$/,F=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,z=/^u?int$/;function C(e,t){var r,o;let l,u=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,t?.type,t?.structs);if(T.has(u))return T.get(u);let c=s.test(e),f=n(c?F:_,e);if(!f)throw new E({param:e});if(f.name&&("address"===(r=f.name)||"bool"===r||"function"===r||"string"===r||"tuple"===r||i.test(r)||a.test(r)||D.test(r)))throw new S({param:e,name:f.name});let p=f.name?{name:f.name}:{},h="indexed"===f.modifier?{indexed:!0}:{},b=t?.structs??{},y={};if(c){l="tuple";let e=Z(f.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(C(e[n],{structs:b}));y={components:t}}else if(f.type in b)l="tuple",y={components:b[f.type]};else if(z.test(f.type))l=`${f.type}256`;else if("address payable"===f.type)l="address";else if(l=f.type,t?.type!=="struct"&&!R(l))throw new d({type:l});if(f.modifier){if(!t?.modifiers?.has?.(f.modifier))throw new B({param:e,type:t?.type,modifier:f.modifier});if(A.has(f.modifier)&&(o=l,!f.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new M({param:e,type:t?.type,modifier:f.modifier})}let m={type:`${l}${f.array??""}`,...p,...h,...y};
1return T.set(u,m),m}function Z(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?Z(s,[...t,r.trim()]):Z(s,t,`${r}${i}`,n);case"(":return Z(s,t,`${r}${i}`,n+1);case")":return Z(s,t,`${r}${i}`,n-1);default:return Z(s,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new L({current:r,depth:n});return t.push(r.trim()),t}function R(e){return"address"===e||"bool"===e||"function"===e||"string"===e||i.test(e)||a.test(e)}let D=/^(?: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 N(e){let t={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!m(r))continue;let a=n(y,r);if(!a)throw new P({signature:r,type:"struct"});let s=a.properties.split(";"),o=[],l=s.length;for(let e=0;e<l;e++){let t=s[e].trim();if(!t)continue;let r=C(t,{type:"struct"});o.push(r)}if(!o.length)throw new k({signature:r});t[a.name]=o}let i={},a=Object.entries(t),o=a.length;for(let e=0;e<o;e++){let[r,o]=a[e];i[r]=function e(t=[],r={},i=new Set){let a=[],o=t.length;for(let l=0;l<o;l++){let o=t[l];if(s.test(o.type))a.push(o);else{let t=n(V,o.type);if(!t?.type)throw new H({abiParameter:o});let{array:s,type:l}=t;if(l in r){if(i.has(l))throw new O({type:l});a.push({...o,type:`tuple${s??""}`,components:e(r[l],r,new Set([...i,l]))})}else if(R(l))a.push(o);else throw new f({type:l})}}return a}(o,t)}return i}let V=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseAbiItem",0,function(e){let t;if("string"==typeof e)t=j(e);else{let r=N(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!m(n)){t=j(n,r);break}}}if(!t)throw new c({signature:e});return t}],406695),e.s(["parseAbiParameters",0,function(e){let t=[];if("string"==typeof e){let r=Z(e),n=r.length;for(let e=0;e<n;e++)t.push(C(r[e],{modifiers:v}))}else{let r=N(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(m(n))continue;let a=Z(n),s=a.length;for(let e=0;e<s;e++)t.push(C(a[e],{modifiers:v,structs:r}))}}if(0===t.length)throw new I({params:e});return t}],832357)}]);
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.