PageSourceSearch

https://app.hotstuff.trade/_next/static/chunks/0d353~782jcg4.js?dpl=dpl_2UkkgYJtZRL8qYawe9FfkxiApWHv

js hotstuff.trade collected 2026-10-07 04:33:24 UTC 43,670 bytes, 7 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f05011d1-799c-837c-d78d-4358e09ddab8")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,913091,e=>{"use strict";var t=e.i(337575),r=e.i(450323),i=e.i(769936);e.s(["serializeSignature",0,function({r:e,s:n,to:s="hex",v:a,yParity:o}){let u=(()=>{if(0===o||1===o)return o;if(a&&(27n===a||28n===a||a>=35n))return+(a%2n===0n);throw Error("Invalid `v` or `yParity` value")})(),c=`0x${new t.secp256k1.Signature((0,r.hexToBigInt)(e),(0,r.hexToBigInt)(n)).toCompactHex()}${0===u?"1b":"1c"}`;return"hex"===s?c:(0,i.hexToBytes)(c)}])},528804,e=>{"use strict";var t=e.i(606580);async function r(e,{address:i,blockHash:n,blockNumber:s,blockTag:a="latest",requireCanonical:o}){let u=(0,t.formatBlockParameter)({blockHash:n,blockNumber:s,blockTag:a,requireCanonical:o}),c=await e.request({method:"eth_getCode",params:[i,u]},{dedupe:"bigint"==typeof s||void 0!==n});if("0x"!==c)return c}e.s(["getCode",0,r])},697178,e=>{"use strict";var t=e.i(569934);class r extends t.BaseError{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}var i=e.i(467125),n=e.i(388750);async function s(e,t){let{address:s,factory:o,factoryData:u}=t;try{let[t,r,c,l,f,d,h]=await (0,i.getAction)(e,n.readContract,"readContract")({abi:a,address:s,functionName:"eip712Domain",factory:o,factoryData:u});return{domain:{name:r,version:c,chainId:Number(l),verifyingContract:f,salt:d},extensions:h,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new r({address:s});throw e}}let a=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];e.s(["getEip712Domain",0,s],697178)},917105,e=>{"use strict";var t=e.i(815373),r=e.i(61460),i=e.i(902094),n=e.i(88776);e.s(["parseAbiItem",0,function(e){let s;if("string"==typeof e)s=(0,n.parseSignature)(e);else{let t=(0,i.parseStructs)(e),a=e.length;for(let i=0;i<a;i++){let a=e[i];if(!(0,r.isStructSignature)(a)){s=(0,n.parseSignature)(a,t);break}}}if(!s)throw new t.InvalidAbiItemError({signature:e});return s}])},322580,e=>{"use strict";var t=e.i(140430),r=e.i(774589),i=e.i(334019),n=e.i(234814);e.s(["keccak256",0,function(e,r={}){let{as:s="string"==typeof e?"Hex":"Bytes"}=r,a=(0,t.keccak_256)(i.from(e));return"Bytes"===s?a:n.fromBytes(a)},"sha256",0,function(e,t={}){let{as:s="string"==typeof e?"Hex":"Bytes"}=t,a=(0,r.sha256)(i.from(e));return"Bytes"===s?a:n.fromBytes(a)},"validate",0,function(e){return n.validate(e)&&32===n.size(e)}])},57280,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)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let r={checksum:new t(8192)}.checksum;e.s(["checksum",0,r],57280)},718484,733132,e=>{"use strict";var t=e.i(334019),r=e.i(57280),i=e.i(48084),n=e.i(322580),s=i,a=e.i(234814),o=e.i(844328);function u(e,t={}){let{compressed:r}=t,{prefix:i,x:n,y:s}=e;if(!1===r||"bigint"==typeof n&&"bigint"==typeof s){if(4!==i)throw new d({prefix:i,cause:new p});return}if(!0===r||"bigint"==typeof n&&void 0===s){if(3!==i&&2!==i)throw new d({prefix:i,cause:new h});return}throw new f({publicKey:e})}function c(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new b({publicKey:e});if(130===e.length)return{prefix:4,x:BigInt(a.slice(e,0,32)),y:BigInt(a.slice(e,32,64))};if(132===e.length){let t=Number(a.slice(e,0,1));return{prefix:t,x:BigInt(a.slice(e,1,33)),y:BigInt(a.slice(e,33,65))}}return{prefix:Number(a.slice(e,0,1)),x:BigInt(a.slice(e,1,33))}}function l(e,t={}){u(e);let{prefix:r,x:i,y:n}=e,{includePrefix:s=!0}=t;return a.concat(s?a.fromNumber(r,{size:1}):"0x",a.fromNumber(i,{size:32}),"bigint"==typeof n?a.fromNumber(n,{size:32}):"0x")}class f extends s.BaseError{constructor({publicKey:e}){super(`Value \`${o.stringify(e)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class d extends s.BaseError{constructor({prefix:e,cause:t}){super(`Prefix "${e}
2" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class h extends s.BaseError{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class p extends s.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}class b extends s.BaseError{constructor({publicKey:e}){super(`Value \`${e}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${a.size(a.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}e.s(["from",0,function(e){let r=(()=>{if(a.validate(e))return c(e);if(t.validate(e)){var r;return r=e,c(a.fromBytes(r))}let{prefix:i,x:n,y:s}=e;return"bigint"==typeof n&&"bigint"==typeof s?{prefix:i??4,x:n,y:s}:{prefix:i,x:n}})();return u(r),r},"fromHex",0,c,"toBytes",0,function(e,r={}){return t.fromHex(l(e,r))},"toHex",0,l],733132);let m=/^0x[a-fA-F0-9]{40}$/;function y(e,t={}){let{strict:r=!0}=t;if(!m.test(e))throw new w({address:e,cause:new x});if(r){if(e.toLowerCase()===e)return;if(g(e)!==e)throw new w({address:e,cause:new P})}}function g(e){if(r.checksum.has(e))return r.checksum.get(e);y(e,{strict:!1});let i=e.substring(2).toLowerCase(),s=n.keccak256(t.fromString(i),{as:"Bytes"}),a=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 o=`0x${a.join("")}`;return r.checksum.set(e,o),o}function v(e,t={}){let{checksum:r=!1}=t;return(y(e),r)?g(e):e}class w extends i.BaseError{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class x extends i.BaseError{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class P extends i.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}e.s(["assert",0,y,"checksum",0,g,"from",0,v,"fromPublicKey",0,function(e,t={}){let r=n.keccak256(`0x${l(e).slice(4)}`).substring(26);return v(`0x${r}`,t)},"isEqual",0,function(e,t){return y(e,{strict:!1}),y(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()},"validate",0,function(e,t={}){let{strict:r=!0}=t??{};try{return y(e,{strict:r}),!0}catch{return!1}}],718484)},11674,e=>{"use strict";var t=e.i(766564),r=e.i(917105),i=e.i(48084),n=e.i(322580),s=e.i(234814),a=e.i(718484);function o(e){let t=!0,r="",n=0,s="",a=!1;for(let i=0;i<e.length;i++){let o=e[i];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function","error",""].includes(s))s="";else if(s+=o,")"===o){a=!0;break}continue}if(" "===o){","!==e[i-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}s+=o,r+=o}}if(!a)throw new i.BaseError("Unable to normalize signature.");return s}function u(e,t,r){let i,{args:n=[],prepare:o=!0}=r??{},u=s.validate(t,{strict:!1}),h=e.filter(e=>u?"function"===e.type||"error"===e.type?c(e)===s.slice(t,0,4):"event"===e.type&&l(e)===t:"name"in e&&e.name===t);if(0===h.length)throw new d({name:t});if(1===h.length)return{...h[0],...o?{hash:l(h[0])}:{}};for(let e of h){if("inputs"in e){if(!n||0===n.length){if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:l(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===n.length&&n.every((t,r)=>{let i="inputs"in e&&e.inputs[r];return!!i&&function e(t,r){let i=typeof t,n=r.type;switch(n){case"address":return a.validate(t,{strict:!1});case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===n&&"components"in r)return Object.values(r.components).every((r,i)=>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(n))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n))return"string"===i||t instanceof Uint8Array;
2if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:n.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)})){if(i&&"inputs"in i&&i.inputs){let t=function e(t,r,i){for(let n in t){let s=t[n],o=r[n];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,i[n]);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"))&&a.validate(i[n],{strict:!1}))return u}}(e.inputs,i.inputs,n);if(t)throw new f({abiItem:e,type:t[0]},{abiItem:i,type:t[1]})}i=e}}}let p=(()=>{if(i)return i;let[e,...t]=h;return{...e,overloads:t}})();if(!p)throw new d({name:t});return{...p,...o?{hash:l(p)}:{}}}function c(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return u(t,r)}return e[0]})();return s.slice(l(t),0,4)}function l(...e){let r=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return u(t,r)}return e[0]})();return"string"!=typeof r&&"hash"in r&&r.hash?r.hash:n.keccak256(s.fromString(function(...e){let r=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return u(t,r)}return e[0]})();return o("string"==typeof r?r:t.formatAbiItem(r))}(r)))}class f extends i.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${o(t.formatAbiItem(e.abiItem))}\`, and`,`\`${r.type}\` in \`${o(t.formatAbiItem(r.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class d extends i.BaseError{constructor({name:e,data:t,type:r="item"}){const i=e?` with name "${e}"`:t?` with data "${t}"`:"";super(`ABI ${r}${i} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}class h extends i.BaseError{constructor({data:e}){super(`Selector size is invalid. Expected 4 bytes. Received ${s.size(e)} bytes ("${e}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}e.s(["InvalidSelectorSizeError",0,h,"NotFoundError",0,d,"from",0,function(e,t={}){let{prepare:i=!0}=t,n=Array.isArray(e)||"string"==typeof e?r.parseAbiItem(e):e;return{...n,...i?{hash:l(n)}:{}}},"fromAbi",0,u,"getSelector",0,c],11674)},621491,e=>{"use strict";var t=e.i(589513),r=e.i(61460),i=e.i(902094),n=e.i(88776);e.s(["parseAbiParameters",0,function(e){let s=[];if("string"==typeof e){let t=(0,n.splitParameters)(e),i=t.length;for(let e=0;e<i;e++)s.push((0,n.parseAbiParameter)(t[e],{modifiers:r.modifiers}))}else{let t=(0,i.parseStructs)(e),a=e.length;for(let i=0;i<a;i++){let a=e[i];if((0,r.isStructSignature)(a))continue;let o=(0,n.splitParameters)(a),u=o.length;for(let e=0;e<u;e++)s.push((0,n.parseAbiParameter)(o[e],{modifiers:r.modifiers,structs:t}))}}if(0===s.length)throw new t.InvalidAbiParametersError({params:e});return s}])},656289,974686,714118,e=>{"use strict";e.s(["ArrayLengthMismatchError",()=>A,"BytesSizeMismatchError",()=>I,"InvalidArrayError",()=>S,"InvalidTypeError",()=>N,"decode",()=>v,"encode",()=>w,"from",()=>P],656289);var t=e.i(525908),r=e.i(621491),i=e.i(718484),n=e.i(334019),s=e.i(48084),a=e.i(234814);let o=/^(.*)\[([0-9]*)\]$/,u=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,c=/^(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(["arrayRegex",0,o,"bytesRegex",0,u,"integerRegex",0,c,"maxUint256",0,2n**256n-1n],974686);function l(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:i,encoded:n}=e[r];i?t+=32:t+=a.size(n)}let r=[],i=[],n=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:u}=e[s];o?(r.push(a.fromNumber(t+n,{size:32})),i.push(u),n+=a.size(u)):r.push(u)}return a.concat(...r,...i)}function f(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function d(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
2if("tuple"===t)return e.components?.some(d);let r=f(e.type);return!!(r&&d({...e,type:r[1]}))}var h=s;let p={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 g({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new y({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new m({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 m({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++}};function b(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(p);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}class m extends h.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class y extends h.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class g extends h.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function v(e,t,r={}){let{as:s="Array",checksumAddress:o=!1}=r,u="string"==typeof t?n.fromHex(t):t,c=b(u);if(0===n.size(u)&&e.length>0)throw new E;if(n.size(u)&&32>n.size(u))throw new B({data:"string"==typeof t?t:a.fromBytes(t),parameters:e,size:n.size(u)});let l=0,h="Array"===s?[]:{};for(let t=0;t<e.length;++t){let r=e[t];l<u.length&&c.setPosition(l);let[p,b]=function e(t,r,s){var o,u,c;let{checksumAddress:l,staticPosition:h}=s,p=f(r.type);if(p){let[i,s]=p;return function(t,r,i){let{checksumAddress:s,length:a,staticPosition:o}=i;if(null===a){let i=o+n.toNumber(t.readBytes(32)),a=i+32;t.setPosition(i);let u=n.toNumber(t.readBytes(32)),c=d(r),l=0,f=[];for(let i=0;i<u;++i){t.setPosition(a+(c?32*i:l));let[n,o]=e(t,r,{checksumAddress:s,staticPosition:a});l+=o,f.push(n),0===o&&(t.assertReadLimit(),t._touch())}return t.setPosition(o+32),[f,32]}if(d(r)){let i=o+n.toNumber(t.readBytes(32)),u=[];for(let n=0;n<a;++n){t.setPosition(i+32*n);let[a]=e(t,r,{checksumAddress:s,staticPosition:i});u.push(a)}return t.setPosition(o+32),[u,32]}let u=0,c=[];for(let i=0;i<a;++i){let[i,n]=e(t,r,{checksumAddress:s,staticPosition:o+u});u+=n,c.push(i),0===n&&(t.assertReadLimit(),t._touch())}return[c,u]}(t,{...r,type:s},{checksumAddress:l,length:i,staticPosition:h})}if("tuple"===r.type)return function(t,r,i){let{checksumAddress:s,staticPosition:a}=i,o=0===r.components.length||r.components.some(({name:e})=>!e),u=o?[]:{},c=0;if(d(r)){let i=a+n.toNumber(t.readBytes(32));for(let n=0;n<r.components.length;++n){let a=r.components[n];t.setPosition(i+c);let[l,f]=e(t,a,{checksumAddress:s,staticPosition:i});
vendor: 4,582 bytes, line 2
2c+=f,u[o?n:a?.name]=l}return t.setPosition(a+32),[u,32]}for(let i=0;i<r.components.length;++i){let n=r.components[i],[l,f]=e(t,n,{checksumAddress:s,staticPosition:a});u[o?i:n?.name]=l,c+=f}return[u,c]}(t,r,{checksumAddress:l,staticPosition:h});if("address"===r.type)return function(e,t={}){let r,{checksum:s=!1}=t,o=e.readBytes(32);return[(r=a.fromBytes(n.slice(o,-20)),s?i.checksum(r):r),32]}(t,{checksum:l});if("bool"===r.type){return o=t,[n.toBoolean(o.readBytes(32),{size:32}),32]}if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[i,s]=t.type.split("bytes");if(!s){let t=n.toNumber(e.readBytes(32));e.setPosition(r+t);let i=n.toNumber(e.readBytes(32));if(0===i)return e.setPosition(r+32),["0x",32];let s=e.readBytes(i);return e.setPosition(r+32),[a.fromBytes(s),32]}return[a.fromBytes(e.readBytes(Number.parseInt(s,10),32)),32]}(t,r,{staticPosition:h});if(r.type.startsWith("uint")||r.type.startsWith("int")){let e,i,s;return u=t,e=(c=r).type.startsWith("int"),i=Number.parseInt(c.type.split("int")[1]||"256",10),s=u.readBytes(32),[i>48?n.toBigInt(s,{signed:e}):n.toNumber(s,{signed:e}),32]}if("string"===r.type)return function(e,{staticPosition:t}){let r=n.toNumber(e.readBytes(32));e.setPosition(t+r);let i=n.toNumber(e.readBytes(32));if(0===i)return e.setPosition(t+32),["",32];let s=e.readBytes(i,32),a=n.toString(n.trimLeft(s));return e.setPosition(t+32),[a,32]}(t,{staticPosition:h});throw new N(r.type)}(c,r,{checksumAddress:o,staticPosition:0});l+=b,"Array"===s?h.push(p):h[r.name??t]=p}return h}function w(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new z({expectedLength:e.length,givenLength:t.length});let o=l(function({checksumAddress:e,parameters:t,values:r}){let n=[];for(let o=0;o<t.length;o++)n.push(function e({checksumAddress:t=!1,parameter:r,value:n}){let o=f(r.type);if(o){let[i,s]=o;return function(t,r){let{checksumAddress:i,length:n,parameter:s}=r,o=null===n;if(!Array.isArray(t))throw new S(t);if(!o&&t.length!==n)throw new A({expectedLength:n,givenLength:t.length,type:`${s.type}[${n}]`});let u=0===t.length&&d(s),c=[];for(let r=0;r<t.length;r++){let n=e({checksumAddress:i,parameter:s,value:t[r]});n.dynamic&&(u=!0),c.push(n)}if(o||u){let e=l(c);if(o){let t=a.fromNumber(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?a.concat(t,e):t}}if(u)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:a.concat(...c.map(({encoded:e})=>e))}}(n,{checksumAddress:t,length:i,parameter:{...r,type:s}})}if("tuple"===r.type)return function(t,r){let{checksumAddress:i,parameter:n}=r,s=!1,o=[];for(let r=0;r<n.components.length;r++){let a=n.components[r],u=Array.isArray(t)?r:a.name,c=e({checksumAddress:i,parameter:a,value:t[u]});o.push(c),c.dynamic&&(s=!0)}return{dynamic:s,encoded:s?l(o):a.concat(...o.map(({encoded:e})=>e))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type)return function(e,t){let{checksum:r=!1}=t;return i.assert(e,{strict:r}),{dynamic:!1,encoded:a.padLeft(e.toLowerCase())}}(n,{checksum:t});if("bool"===r.type){var u=n;if("boolean"!=typeof u)throw new s.BaseError(`Invalid boolean value: "${u}" (type: ${typeof u}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:a.padLeft(a.fromBoolean(u))}}if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=c.exec(r.type)??[];return function(e,{signed:t,size:r}){if("number"==typeof r){let i=2n**(BigInt(r)-(t?1n:0n))-1n,n=t?-i-1n:0n;if(e>i||e<n)throw new a.IntegerOutOfRangeError({max:i.toString(),min:n.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:a.fromNumber(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{type:t}){let[,r]=t.split("bytes"),i=a.size(e);if(!r){let t=e;return i%32!=0&&(t=a.padRight(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:a.concat(a.padLeft(a.fromNumber(i,{size:32})),t)}}if(i!==Number.parseInt(r,10))throw new I({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:a.padRight(e)}}(n,{type:r.type});if("string"===r.type){var h=n;let e=a.fromString(h),t=Math.ceil(a.size(e)/32),r=[];for(let i=0;i<t;i++)r.push(a.padRight(a.slice(e,32*i,(i+1)*32)));return{dynamic:!0,encoded:a.concat(a.padRight(a.fromNumber(a.size(e),{size:32})),...r)}}throw new N(r.type)}({checksumAddress:e,parameter:t[o],value:r[o]}));return n}({checksumAddress:n,parameters:e,values:t}));return 0===o.length?"0x":o}function x(e,t){if(e.length!==t.length)throw new z({expectedLength:e.length,givenLength:t.length});let r=[];for(let i=0;i<e.length;i++){let n=e[i],s=t[i];
2r.push(x.encode(n,s))}return a.concat(...r)}function P(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?r.parseAbiParameters(e):e}e.s(["create",0,b],714118),(x||(x={})).encode=function e(t,r,n=!1){if("address"===t)return i.assert(r),a.padLeft(r.toLowerCase(),32*!!n);if("string"===t)return a.fromString(r);if("bytes"===t)return r;if("bool"===t)return a.padLeft(a.fromBoolean(r),n?32:1);let s=t.match(c);if(s){let[e,t,i="256"]=s,o=Number.parseInt(i,10)/8;return a.fromNumber(r,{size:n?32:o,signed:"int"===t})}let l=t.match(u);if(l){let[e,t]=l;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new I({expectedSize:Number.parseInt(t,10),value:r});return a.padRight(r,32*!!n)}let f=t.match(o);if(f&&Array.isArray(r)){let[t,i]=f,n=[];for(let t=0;t<r.length;t++)n.push(e(i,r[t],!0));return 0===n.length?"0x":a.concat(...n)}throw new N(t)};class B extends s.BaseError{constructor({data:e,parameters:r,size:i}){super(`Data size of ${i} bytes is too small for given parameters.`,{metaMessages:[`Params: (${t.formatAbiParameters(r)})`,`Data:   ${e} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class E extends s.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class A extends s.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class I extends s.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${a.size(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class z extends s.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
3Expected length (parameters): ${e}
4Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class S extends s.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class N extends s.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}},914146,e=>{"use strict";e.s(["ethAddress",0,"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","zeroAddress",0,"0x0000000000000000000000000000000000000000"])},185201,521920,4369,388766,108121,394760,639897,e=>{"use strict";var t=e.i(656289),r=e.i(48084),i=e.i(234814);let n="0x6492649264926492649264926492649264926492649264926492649264926492";function s(e){if(i.slice(e,-32)!==n)throw new o(e)}function a(e){s(e);let[r,i,n]=t.decode(t.from("address, bytes, bytes"),e);return{data:i,signature:n,to:r}}class o extends r.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}e.s(["InvalidWrappedSignatureError",0,o,"assert",0,s,"from",0,function(e){return"string"==typeof e?a(e):e},"magicBytes",0,n,"universalSignatureValidatorAbi",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"}],"universalSignatureValidatorBytecode",0,"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b
460405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
4603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572","unwrap",0,a,"validate",0,function(e){try{return s(e),!0}catch{return!1}},"wrap",0,function(e){let{data:r,signature:s,to:a}=e;return i.concat(t.encode(t.from("address, bytes, bytes"),[a,r,s]),n)}],134848);var u=e.i(134848);e.s(["SignatureErc6492",0,u],185201);var c=e.i(322580),l=e.i(334019),f=e.i(714118);function d(e,t,i){if(128===i&&t<128)return 1;if(t<=i+55)return t-i;if(t===i+55+1)return e.readUint8();if(t===i+55+2)return e.readUint16();if(t===i+55+3)return e.readUint24();if(t===i+55+4)return e.readUint32();throw new r.BaseError("Invalid RLP prefix")}function h(e,t={}){let{as:r="Hex"}=t;return function(e,t){let{as:r}=t,n=function e(t){var r,i;let n,s,a,o;return Array.isArray(t)?(s=p(n=(r=t.map(t=>e(t))).reduce((e,t)=>e+t.length,0)),{length:n<=55?1+n:1+s+n,encode(e){for(let{encode:t}of(n<=55?e.pushByte(192+n):(e.pushByte(247+s),1===s?e.pushUint8(n):2===s?e.pushUint16(n):3===s?e.pushUint24(n):e.pushUint32(n)),r))t(e)}}):(o=p((a="string"==typeof(i=t)?l.fromHex(i):i).length),{length:1===a.length&&a[0]<128?1:a.length<=55?1+a.length:1+o+a.length,encode(e){1===a.length&&a[0]<128||(a.length<=55?e.pushByte(128+a.length):(e.pushByte(183+o),1===o?e.pushUint8(a.length):2===o?e.pushUint16(a.length):3===o?e.pushUint24(a.length):e.pushUint32(a.length))),e.pushBytes(a)}})}(e),s=f.create(new Uint8Array(n.length));return(n.encode(s),"Hex"===r)?i.fromBytes(s.bytes):s.bytes}(e,{as:r})}function p(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=0xffffff)return 3;if(e<=0xffffffff)return 4;throw new r.BaseError("Length is too large.")}e.s(["fromHex",0,h,"toHex",0,function(e){var t;let r,n;return t=e,r="Hex",n=(()=>{if("string"==typeof t){if(t.length>3&&t.length%2!=0)throw new i.InvalidLengthError(t);return l.fromHex(t)}return t})(),function e(t,r="Hex"){if(0===t.bytes.length)return"Hex"===r?i.fromBytes(t.bytes):t.bytes;let n=t.readByte();if(n<128&&t.decrementPosition(1),n<192){let e=d(t,n,128),s=t.readBytes(e);return"Hex"===r?i.fromBytes(s):s}let s=d(t,n,192);var a=t,o=s,u=r;let c=a.position,l=[];for(;a.position-c<o;)l.push(e(a,u));return l}(f.create(n,{recursiveReadLimit:1/0}),r)}],521920);var b=r,m=e.i(844328),y=e.i(974686);function g(e,t={}){let{recovered:r}=t;if(void 0===e.r||void 0===e.s||r&&void 0===e.yParity)throw new S({signature:e});if(e.r<0n||e.r>y.maxUint256)throw new N({value:e.r});if(e.s<0n||e.s>y.maxUint256)throw new $({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new R({value:e.yParity})}function v(e){if(130!==e.length&&132!==e.length)throw new z({signature:e});let t=BigInt(i.slice(e,0,32)),r=BigInt(i.slice(e,32,64)),n=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return A(t)}catch{throw new R({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}function w(e){if(void 0!==e.r&&void 0!==e.s)return x(e)}function x(e){let t=(()=>{var t;if("string"==typeof e)return v(e);if(e instanceof Uint8Array)return v(i.fromBytes(e));return"string"==typeof e.r?P(e):e.v?{r:(t=e).r,s:t.s,yParity:A(t.v)}:{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}}})();return g(t),t}function P(e){let t=(()=>{let t=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=A(t)),"number"!=typeof r)throw new R({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function B(e){let{r:t,s:r,yParity:n}=e;return{r:i.fromNumber(t,{size:32}),s:i.fromNumber(r,{size:32}),yParity:0===n?"0x0":"0x1"}}function E(e){let{r:t,s:r,yParity:n}=e;return[n?"0x01":"0x",0n===t?"0x":i.trimLeft(i.fromNumber(t)),0n===r?"0x":i.trimLeft(i.fromNumber(r))]}function A(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return+(e%2==0);throw new U({value:e})}function I(e){if(0===e)return 27;if(1===e)return 28;throw new R({value:e})}class z extends b.BaseError{constructor({signature:e}){super(`Value \`${e}
4\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${i.size(i.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class S extends b.BaseError{constructor({signature:e}){super(`Signature \`${m.stringify(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class N extends b.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class $ extends b.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class R extends b.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class U extends b.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function L(e,t={}){return"string"==typeof e.chainId?C(e):{...e,...t.signature}}function C(e){let{address:t,chainId:r,nonce:i}=e,n=w(e);return{address:t,chainId:Number(r),nonce:BigInt(i),...n}}function O(e){return function(e,t={}){let{presign:r}=t;return c.keccak256(i.concat("0x05",h(function(e){let{address:t,chainId:r,nonce:n}=e,s=w(e);return[r?i.fromNumber(r):"0x",t,n?i.fromNumber(n):"0x",...s?E(s):[]]}(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}(e,{presign:!0})}function k(e){let{address:t,chainId:r,nonce:n,...s}=e;return{address:t,chainId:i.fromNumber(r),nonce:i.fromNumber(n),...B(s)}}e.s(["assert",0,g,"extract",0,w,"from",0,x,"fromHex",0,v,"fromRpc",0,P,"fromTuple",0,function(e){let[t,r,i]=e;return x({r:"0x"===r?0n:BigInt(r),s:"0x"===i?0n:BigInt(i),yParity:"0x"===t?0:Number(t)})},"toHex",0,function(e){g(e);let t=e.r,r=e.s;return i.concat(i.fromNumber(t,{size:32}),i.fromNumber(r,{size:32}),"number"==typeof e.yParity?i.fromNumber(I(e.yParity),{size:1}):"0x")},"toRpc",0,B,"toTuple",0,E,"yParityToV",0,I],4369),e.s(["from",0,L,"fromRpcList",0,function(e){return e.map(C)},"getSignPayload",0,O,"toRpcList",0,function(e){return e.map(k)}],388766);var j=r,V=e.i(337575),H=e.i(718484),T=e.i(733132);function D(e){return H.fromPublicKey(M(e))}function M(e){let{payload:t,signature:r}=e,{r:n,s,yParity:a}=r,o=new V.secp256k1.Signature(BigInt(n),BigInt(s)).addRecoveryBit(a).recoverPublicKey(i.from(t).substring(2));return T.from(o)}V.secp256k1,e.s(["recoverAddress",0,D,"recoverPublicKey",0,M,"verify",0,function(e){let{hash:t,payload:r}=e;return e.address?H.isEqual(e.address,D({payload:r,signature:e.signature})):V.secp256k1.verify(e.signature,l.from(r),T.toBytes(e.publicKey),...t?[{prehash:!0,lowS:!0}]:[])}],108121);let _="0x8010801080108010801080108010801080108010801080108010801080108010",W=t.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function F(e){if("string"==typeof e){if(i.slice(e,-32)!==_)throw new q(e)}else g(e.authorization)}function K(e){F(e);let r=i.toNumber(i.slice(e,-64,-32)),n=i.slice(e,-r-64,-64),s=i.slice(e,0,-r-64),[a,o,u]=t.decode(W,n);return{authorization:L({address:a.delegation,chainId:Number(a.chainId),nonce:a.nonce,yParity:a.yParity,r:a.r,s:a.s}),signature:s,...u&&"0x"!==u?{data:u,to:o}:{}}}class q extends j.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}e.s(["InvalidWrappedSignatureError",0,q,"assert",0,F,"from",0,function(e){return"string"==typeof e?K(e):e},"magicBytes",0,_,"suffixParameters",0,W,"unwrap",0,K,"validate",0,function(e){try{return F(e),!0}catch{return!1}},"wrap",0,function(e){let{data:r,signature:n}=e;F(e);let s=D({payload:O(e.authorization),signature:x(e.authorization)}),a=t.encode(W,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??s,r??"0x"]),o=i.fromNumber(i.size(a),{size:32});return i.concat(n,a,o,_)}],696350);var G=e.i(696350);e.s(["SignatureErc8010",0,G],394760);var Y=e.i(823838),Z=e.i(806685),J=e.i(290392);async function Q({address:e,authorization:t,signature:r}){return(0,Z.isAddressEqual)((0,Y.getAddress)(e),await (0,J.recoverAuthorizationAddress)({authorization:t,signature:r}))}e.s(["verifyAuthorization",0,Q],639897)},493617,e=>{"use strict";var t=e.i(185201),r=e.i(394760),i=e.i(752012),n=e.i(472503),s=e.i(878023),a=e.i(289169),o=e.i(656679),u=e.i(823838),c=e.i(806685),l=e.i(639897),f=e.i(147526),d=e.i(880841),h=e.i(450323),p=e.i(675107),b=e.i(467125),m=e.i(418217),y=e.i(913091),g=e.i(989509),v=e.i(528804),w=e.i(388750);async function x(e,t){let i,{address:n,chain:s=e.chain,hash:a,erc6492VerifierAddress:o=t.universalSignatureVerifierAddress??s?.contracts?.erc6492Verifier?.address,multicallAddress:l=t.multicallAddress??s?.contracts?.multicall3?.address,mode:f="auto"}=t;if(s?.verifyHash)return await s.verifyHash(e,t);let h=(i=t.signature,(0,d.isHex)(i)?i:"object"==typeof i&&"r"in i&&"s"in i?(0,y.serializeSignature)(i):(0,p.bytesToHex)(i));try{if("eoa"===f)try{if((0,c.isAddressEqual)((0,u.getAddress)(n),await (0,m.recoverAddress)({hash:a,signature:h})))return!0}catch{}if(r.SignatureErc8010.validate(h))return await P(e,{...t,multicallAddress:l,signature:h});return await B(e,{...t,verifierAddress:o,signature:h})}catch(e){if("eoa"!==f)try{if((0,c.isAddressEqual)((0,u.getAddress)(n),await (0,m.recoverAddress)({hash:a,signature:h})))return!0}catch{}if(e instanceof A)return!1;throw e}}async function P(e,t){let{address:s,blockHash:a,blockNumber:u,blockTag:c,hash:d,multicallAddress:h,requireCanonical:m}=t,{authorization:y,data:g,signature:x,to:P}=r.SignatureErc8010.unwrap(t.signature);if(await (0,v.getCode)(e,{address:s,blockHash:a,blockNumber:u,blockTag:c,requireCanonical:m})===(0,f.concatHex)(["0xef0100",y.address]))return await E(e,{...t,signature:x});let B={address:y.address,chainId:Number(y.chainId),nonce:Number(y.nonce),r:(0,p.numberToHex)(y.r,{size:32}),s:(0,p.numberToHex)(y.s,{size:32}),yParity:y.yParity};if(!await (0,l.verifyAuthorization)({address:s,authorization:B}))throw new A;let I=await (0,b.getAction)(e,w.readContract,"readContract")({...h?{address:h}:{code:n.multicall3Bytecode},authorizationList:[B],abi:i.multicall3Abi,blockHash:a,blockNumber:u,blockTag:"pending",functionName:"aggregate3",requireCanonical:m,args:[[...g?[{allowFailure:!0,target:P??s,callData:g}
4]:[],{allowFailure:!0,target:s,callData:(0,o.encodeFunctionData)({abi:i.erc1271Abi,functionName:"isValidSignature",args:[d,x]})}]]}),z=I[I.length-1]?.returnData;if(z?.startsWith("0x1626ba7e"))return!0;throw new A}async function B(e,r){let{address:u,factory:c,factoryData:l,hash:f,signature:d,verifierAddress:p,...m}=r,y=await (async()=>!c&&!l||t.SignatureErc6492.validate(d)?d:t.SignatureErc6492.wrap({data:l,signature:d,to:c}))(),v=p?{to:p,data:(0,o.encodeFunctionData)({abi:i.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[u,f,y]}),...m}:{data:(0,a.encodeDeployData)({abi:i.erc6492SignatureValidatorAbi,args:[u,f,y],bytecode:n.erc6492SignatureValidatorByteCode}),...m},{data:w}=await (0,b.getAction)(e,g.call,"call")(v).catch(e=>{if(e instanceof s.CallExecutionError)throw new A;throw e});if((0,h.hexToBool)(w??"0x0"))return!0;throw new A}async function E(e,t){let{address:r,blockHash:n,blockNumber:a,blockTag:o,hash:u,requireCanonical:c,signature:l}=t;if((await (0,b.getAction)(e,w.readContract,"readContract")({address:r,abi:i.erc1271Abi,args:[u,l],blockHash:n,blockNumber:a,blockTag:o,functionName:"isValidSignature",requireCanonical:c}).catch(e=>{if(e instanceof s.ContractFunctionExecutionError)throw new A;throw e})).startsWith("0x1626ba7e"))return!0;throw new A}class A extends Error{}e.s(["verifyHash",0,x])}]);
5
6//# debugId=f05011d1-799c-837c-d78d-4358e09ddab8
7//# sourceMappingURL=0177xxm.8.3d8.js.map

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.