;
! 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] = "c5322f27-f6a3-88fd-c3c1-c9f7f841a949")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 882860, e => {
    "use strict";
    e.s(["formatUnits", 0, function(e, t) {
        let r = e.toString(),
            n = r.startsWith("-");
        n && (r = r.slice(1));
        let [a, s] = [(r = r.padStart(t, "0")).slice(0, r.length - t), r.slice(r.length - t)];
        return s = s.replace(/(0+)$/, ""), `${n?"-":""}${a||"0"}${s?`.${s}`:""}`
    }])
}, 621030, e => {
    "use strict";
    let t = "2.48.11",
        r = {
            getDocsUrl: ({
                docsBaseUrl: e,
                docsPath: t = "",
                docsSlug: r
            }) => t ? `${e??"https://viem.sh"}${t}${r?`#${r}`:""}` : void 0,
            version: `viem@${t}`
        };
    class n extends Error {
        constructor(e, a = {}) {
            const s = a.cause instanceof n ? a.cause.details : a.cause ? .message ? a.cause.message : a.details,
                o = a.cause instanceof n && a.cause.docsPath || a.docsPath,
                i = r.getDocsUrl ? .({ ...a,
                    docsPath: o
                });
            super([e || "An error occurred.", "", ...a.metaMessages ? [...a.metaMessages, ""] : [], ...i ? [`Docs: ${i}`] : [], ...s ? [`Details: ${s}`] : [], ...r.version ? [`Version: ${r.version}`] : []].join("\n"), a.cause ? {
                cause: a.cause
            } : void 0), Object.defineProperty(this, "details", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "docsPath", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "metaMessages", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "shortMessage", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "version", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "name", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: "BaseError"
            }), this.details = s, this.docsPath = o, this.metaMessages = a.metaMessages, this.name = a.name ? ? this.name, this.shortMessage = e, this.version = t
        }
        walk(e) {
            return function e(t, r) {
                return r ? .(t) ? t : t && "object" == typeof t && "cause" in t && void 0 !== t.cause ? e(t.cause, r) : r ? null : t
            }(this, e)
        }
    }
    e.s(["BaseError", 0, n, "setErrorConfig", 0, function(e) {
        r = e
    }], 621030)
}, 866674, e => {
    "use strict";
    let t = [{
            inputs: [{
                components: [{
                    name: "target",
                    type: "address"
                }, {
                    name: "allowFailure",
                    type: "bool"
                }, {
                    name: "callData",
                    type: "bytes"
                }],
                name: "calls",
                type: "tuple[]"
            }],
            name: "aggregate3",
            outputs: [{
                components: [{
                    name: "success",
                    type: "bool"
                }, {
                    name: "returnData",
                    type: "bytes"
                }],
                name: "returnData",
                type: "tuple[]"
            }],
            stateMutability: "view",
            type: "function"
        }, {
            inputs: [{
                name: "addr",
                type: "address"
            }],
            name: "getEthBalance",
            outputs: [{
                name: "balance",
                type: "uint256"
            }],
            stateMutability: "view",
            type: "function"
        }, {
            inputs: [],
            name: "getCurrentBlockTimestamp",
            outputs: [{
                internalType: "uint256",
                name: "timestamp",
                type: "uint256"
            }],
            stateMutability: "view",
            type: "function"
        }],
        r = [{
            name: "query",
            type: "function",
            stateMutability: "view",
            inputs: [{
                type: "tuple[]",
                name: "queries",
                components: [{
                    type: "address",
                    name: "sender"
                }, {
                    type: "string[]",
                    name: "urls"
                }, {
                    type: "bytes",
                    name: "data"
                }]
            }],
            outputs: [{
                type: "bool[]",
                name: "failures"
            }, {
                type: "bytes[]",
                name: "responses"
            }]
        }, {
            name: "HttpError",
            type: "error",
            inputs: [{
                type: "uint16",
                name: "status"
            }, {
                type: "string",
                name: "message"
            }]
        }],
        n = [{
            inputs: [{
                name: "dns",
                type: "bytes"
            }],
            name: "DNSDecodingFailed",
            type: "error"
        }, {
            inputs: [{
                name: "ens",
                type: "string"
            }],
            name: "DNSEncodingFailed",
            type: "error"
        }, {
            inputs: [],
            name: "EmptyAddress",
            type: "error"
        }, {
            inputs: [{
                name: "status",
                type: "uint16"
            }, {
                name: "message",
                type: "string"
            }],
            name: "HttpError",
            type: "error"
        }, {
            inputs: [],
            name: "InvalidBatchGatewayResponse",
            type: "error"
        }, {
            inputs: [{
                name: "errorData",
                type: "bytes"
            }],
            name: "ResolverError",
            type: "error"
        }, {
            inputs: [{
                name: "name",
                type: "bytes"
            }, {
                name: "resolver",
                type: "address"
            }],
            name: "ResolverNotContract",
            type: "error"
        }, {
            inputs: [{
                name: "name",
                type: "bytes"
            }],
            name: "ResolverNotFound",
            type: "error"
        }, {
            inputs: [{
                name: "primary",
                type: "string"
            }, {
                name: "primaryAddress",
                type: "bytes"
            }],
            name: "ReverseAddressMismatch",
            type: "error"
        }, {
            inputs: [{
                internalType: "bytes4",
                name: "selector",
                type: "bytes4"
            }],
            name: "UnsupportedResolverProfile",
            type: "error"
        }],
        a = [...n, {
            name: "resolveWithGateways",
            type: "function",
            stateMutability: "view",
            inputs: [{
                name: "name",
                type: "bytes"
            }, {
                name: "data",
                type: "bytes"
            }, {
                name: "gateways",
                type: "string[]"
            }],
            outputs: [{
                name: "",
                type: "bytes"
            }, {
                name: "address",
                type: "address"
            }]
        }],
        s = [...n, {
            name: "reverseWithGateways",
            type: "function",
            stateMutability: "view",
            inputs: [{
                type: "bytes",
                name: "reverseName"
            }, {
                type: "uint256",
                name: "coinType"
            }, {
                type: "string[]",
                name: "gateways"
            }],
            outputs: [{
                type: "string",
                name: "resolvedName"
            }, {
                type: "address",
                name: "resolver"
            }, {
                type: "address",
                name: "reverseResolver"
            }]
        }];
    e.s(["addressResolverAbi", 0, [{
        name: "addr",
        type: "function",
        stateMutability: "view",
        inputs: [{
            name: "name",
            type: "bytes32"
        }],
        outputs: [{
            name: "",
            type: "address"
        }]
    }, {
        name: "addr",
        type: "function",
        stateMutability: "view",
        inputs: [{
            name: "name",
            type: "bytes32"
        }, {
            name: "coinType",
            type: "uint256"
        }],
        outputs: [{
            name: "",
            type: "bytes"
        }]
    }], "batchGatewayAbi", 0, r, "erc1155Abi", 0, [{
        inputs: [{
            internalType: "address",
            name: "sender",
            type: "address"
        }, {
            internalType: "uint256",
            name: "balance",
            type: "uint256"
        }, {
            internalType: "uint256",
            name: "needed",
            type: "uint256"
        }, {
            internalType: "uint256",
            name: "tokenId",
            type: "uint256"
        }],
        name: "ERC1155InsufficientBalance",
        type: "error"
    }, {
        inputs: [{
            internalType: "address",
            name: "approver",
            type: "address"
        }],
        name: "ERC1155InvalidApprover",
        type: "error"
    }, {
        inputs: [{
            internalType: "uint256",
            name: "idsLength",
            type: "uint256"
        }, {
            internalType: "uint256",
            name: "valuesLength",
            type: "uint256"
        }],
        name: "ERC1155InvalidArrayLength",
        type: "error"
    }, {
        inputs: [{
            internalType: "address",
            name: "operator",
            type: "address"
        }],
        name: "ERC1155InvalidOperator",
        type: "error"
    }, {
        inputs: [{
            internalType: "address",
            name: "receiver",
            type: "address"
        }],
        name: "ERC1155InvalidReceiver",
        type: "error"
    }, {
        inputs: [{
            internalType: "address",
            name: "sender",
            type: "address"
        }],
        name: "ERC1155InvalidSender",
        type: "error"
    }, {
        inputs: [{
            internalType: "address",
            name: "operator",
            type: "address"
        }, {
            internalType: "address",
            name: "owner",
            type: "address"
        }],
        name: "ERC1155MissingApprovalForAll",
        type: "error"
    }, {
        anonymous: !1,
        inputs: [{
            indexed: !0,
            internalType: "address",
            name: "account",
            type: "address"
        }, {
            indexed: !0,
            internalType: "address",
            name: "operator",
            type: "address"
        }, {
            indexed: !1,
            internalType: "bool",
            name: "approved",
            type: "bool"
        }],
        name: "ApprovalForAll",
        type: "event"
    }, {
        anonymous: !1,
        inputs: [{
            indexed: !0,
            internalType: "address",
            name: "operator",
            type: "address"
        }, {
            indexed: !0,
            internalType: "address",
            name: "from",
            type: "address"
        }, {
            indexed: !0,
            internalType: "address",
            name: "to",
            type: "address"
        }, {
            indexed: !1,
            internalType: "uint256[]",
            name: "ids",
            type: "uint256[]"
        }, {
            indexed: !1,
            internalType: "uint256[]",
            name: "values",
            type: "uint256[]"
        }],
        name: "TransferBatch",
        type: "event"
    }, {
        anonymous: !1,
        inputs: [{
            indexed: !0,
            internalType: "address",
            name: "operator",
            type: "address"
        }, {
            indexed: !0,
            internalType: "address",
            name: "from",
            type: "address"
        }, {
            indexed: !0,
            internalType: "address",
            name: "to",
            type: "address"
        }, {
            indexed: !1,
            internalType: "uint256",
            name: "id",
            type: "uint256"
        }, {
            indexed: !1,
            internalType: "uint256",
            name: "value",
            type: "uint256"
        }],
        name: "TransferSingle",
        type: "event"
    }, {
        anonymous: !1,
        inputs: [{
            indexed: !1,
            internalType: "string",
            name: "value",
            type: "string"
        }, {
            indexed: !0,
            internalType: "uint256",
            name: "id",
            type: "uint256"
        }],
        name: "URI",
        type: "event"
    }, {
        inputs: [{
            internalType: "address",
            name: "account",
            type: "address"
        }, {
            internalType: "uint256",
            name: "id",
            type: "uint256"
        }],
        name: "balanceOf",
        outputs: [{
            internalType: "uint256",
            name: "",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            internalType: "address[]",
            name: "accounts",
            type: "address[]"
        }, {
            internalType: "uint256[]",
            name: "ids",
            type: "uint256[]"
        }],
        name: "balanceOfBatch",
        outputs: [{
            internalType: "uint256[]",
            name: "",
            type: "uint256[]"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            internalType: "address",
            name: "account",
            type: "address"
        }, {
            internalType: "address",
            name: "operator",
            type: "address"
        }],
        name: "isApprovedForAll",
        outputs: [{
            internalType: "bool",
            name: "",
            type: "bool"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            internalType: "address",
            name: "from",
            type: "address"
        }, {
            internalType: "address",
            name: "to",
            type: "address"
        }, {
            internalType: "uint256[]",
            name: "ids",
            type: "uint256[]"
        }, {
            internalType: "uint256[]",
            name: "values",
            type: "uint256[]"
        }, {
            internalType: "bytes",
            name: "data",
            type: "bytes"
        }],
        name: "safeBatchTransferFrom",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [{
            internalType: "address",
            name: "from",
            type: "address"
        }, {
            internalType: "address",
            name: "to",
            type: "address"
        }, {
            internalType: "uint256",
            name: "id",
            type: "uint256"
        }, {
            internalType: "uint256",
            name: "value",
            type: "uint256"
        }, {
            internalType: "bytes",
            name: "data",
            type: "bytes"
        }],
        name: "safeTransferFrom",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [{
            internalType: "address",
            name: "operator",
            type: "address"
        }, {
            internalType: "bool",
            name: "approved",
            type: "bool"
        }],
        name: "setApprovalForAll",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [{
            internalType: "bytes4",
            name: "interfaceId",
            type: "bytes4"
        }],
        name: "supportsInterface",
        outputs: [{
            internalType: "bool",
            name: "",
            type: "bool"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            internalType: "uint256",
            name: "",
            type: "uint256"
        }],
        name: "uri",
        outputs: [{
            internalType: "string",
            name: "",
            type: "string"
        }],
        stateMutability: "view",
        type: "function"
    }], "erc1271Abi", 0, [{
        name: "isValidSignature",
        type: "function",
        stateMutability: "view",
        inputs: [{
            name: "hash",
            type: "bytes32"
        }, {
            name: "signature",
            type: "bytes"
        }],
        outputs: [{
            name: "",
            type: "bytes4"
        }]
    }], "erc20Abi", 0, [{
        type: "event",
        name: "Approval",
        inputs: [{
            indexed: !0,
            name: "owner",
            type: "address"
        }, {
            indexed: !0,
            name: "spender",
            type: "address"
        }, {
            indexed: !1,
            name: "value",
            type: "uint256"
        }]
    }, {
        type: "event",
        name: "Transfer",
        inputs: [{
            indexed: !0,
            name: "from",
            type: "address"
        }, {
            indexed: !0,
            name: "to",
            type: "address"
        }, {
            indexed: !1,
            name: "value",
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "allowance",
        stateMutability: "view",
        inputs: [{
            name: "owner",
            type: "address"
        }, {
            name: "spender",
            type: "address"
        }],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "approve",
        stateMutability: "nonpayable",
        inputs: [{
            name: "spender",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        outputs: [{
            type: "bool"
        }]
    }, {
        type: "function",
        name: "balanceOf",
        stateMutability: "view",
        inputs: [{
            name: "account",
            type: "address"
        }],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "decimals",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "uint8"
        }]
    }, {
        type: "function",
        name: "name",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "string"
        }]
    }, {
        type: "function",
        name: "symbol",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "string"
        }]
    }, {
        type: "function",
        name: "totalSupply",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "transfer",
        stateMutability: "nonpayable",
        inputs: [{
            name: "recipient",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        outputs: [{
            type: "bool"
        }]
    }, {
        type: "function",
        name: "transferFrom",
        stateMutability: "nonpayable",
        inputs: [{
            name: "sender",
            type: "address"
        }, {
            name: "recipient",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        outputs: [{
            type: "bool"
        }]
    }], "erc20Abi_bytes32", 0, [{
        type: "event",
        name: "Approval",
        inputs: [{
            indexed: !0,
            name: "owner",
            type: "address"
        }, {
            indexed: !0,
            name: "spender",
            type: "address"
        }, {
            indexed: !1,
            name: "value",
            type: "uint256"
        }]
    }, {
        type: "event",
        name: "Transfer",
        inputs: [{
            indexed: !0,
            name: "from",
            type: "address"
        }, {
            indexed: !0,
            name: "to",
            type: "address"
        }, {
            indexed: !1,
            name: "value",
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "allowance",
        stateMutability: "view",
        inputs: [{
            name: "owner",
            type: "address"
        }, {
            name: "spender",
            type: "address"
        }],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "approve",
        stateMutability: "nonpayable",
        inputs: [{
            name: "spender",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        outputs: [{
            type: "bool"
        }]
    }, {
        type: "function",
        name: "balanceOf",
        stateMutability: "view",
        inputs: [{
            name: "account",
            type: "address"
        }],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "decimals",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "uint8"
        }]
    }, {
        type: "function",
        name: "name",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "bytes32"
        }]
    }, {
        type: "function",
        name: "symbol",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "bytes32"
        }]
    }, {
        type: "function",
        name: "totalSupply",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "transfer",
        stateMutability: "nonpayable",
        inputs: [{
            name: "recipient",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        outputs: [{
            type: "bool"
        }]
    }, {
        type: "function",
        name: "transferFrom",
        stateMutability: "nonpayable",
        inputs: [{
            name: "sender",
            type: "address"
        }, {
            name: "recipient",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        outputs: [{
            type: "bool"
        }]
    }], "erc4626Abi", 0, [{
        anonymous: !1,
        inputs: [{
            indexed: !0,
            name: "owner",
            type: "address"
        }, {
            indexed: !0,
            name: "spender",
            type: "address"
        }, {
            indexed: !1,
            name: "value",
            type: "uint256"
        }],
        name: "Approval",
        type: "event"
    }, {
        anonymous: !1,
        inputs: [{
            indexed: !0,
            name: "sender",
            type: "address"
        }, {
            indexed: !0,
            name: "receiver",
            type: "address"
        }, {
            indexed: !1,
            name: "assets",
            type: "uint256"
        }, {
            indexed: !1,
            name: "shares",
            type: "uint256"
        }],
        name: "Deposit",
        type: "event"
    }, {
        anonymous: !1,
        inputs: [{
            indexed: !0,
            name: "from",
            type: "address"
        }, {
            indexed: !0,
            name: "to",
            type: "address"
        }, {
            indexed: !1,
            name: "value",
            type: "uint256"
        }],
        name: "Transfer",
        type: "event"
    }, {
        anonymous: !1,
        inputs: [{
            indexed: !0,
            name: "sender",
            type: "address"
        }, {
            indexed: !0,
            name: "receiver",
            type: "address"
        }, {
            indexed: !0,
            name: "owner",
            type: "address"
        }, {
            indexed: !1,
            name: "assets",
            type: "uint256"
        }, {
            indexed: !1,
            name: "shares",
            type: "uint256"
        }],
        name: "Withdraw",
        type: "event"
    }, {
        inputs: [{
            name: "owner",
            type: "address"
        }, {
            name: "spender",
            type: "address"
        }],
        name: "allowance",
        outputs: [{
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "spender",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        name: "approve",
        outputs: [{
            type: "bool"
        }],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [],
        name: "asset",
        outputs: [{
            name: "assetTokenAddress",
            type: "address"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "account",
            type: "address"
        }],
        name: "balanceOf",
        outputs: [{
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "shares",
            type: "uint256"
        }],
        name: "convertToAssets",
        outputs: [{
            name: "assets",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "assets",
            type: "uint256"
        }],
        name: "convertToShares",
        outputs: [{
            name: "shares",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "assets",
            type: "uint256"
        }, {
            name: "receiver",
            type: "address"
        }],
        name: "deposit",
        outputs: [{
            name: "shares",
            type: "uint256"
        }],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [{
            name: "caller",
            type: "address"
        }],
        name: "maxDeposit",
        outputs: [{
            name: "maxAssets",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "caller",
            type: "address"
        }],
        name: "maxMint",
        outputs: [{
            name: "maxShares",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "owner",
            type: "address"
        }],
        name: "maxRedeem",
        outputs: [{
            name: "maxShares",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "owner",
            type: "address"
        }],
        name: "maxWithdraw",
        outputs: [{
            name: "maxAssets",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "shares",
            type: "uint256"
        }, {
            name: "receiver",
            type: "address"
        }],
        name: "mint",
        outputs: [{
            name: "assets",
            type: "uint256"
        }],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [{
            name: "assets",
            type: "uint256"
        }],
        name: "previewDeposit",
        outputs: [{
            name: "shares",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "shares",
            type: "uint256"
        }],
        name: "previewMint",
        outputs: [{
            name: "assets",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "shares",
            type: "uint256"
        }],
        name: "previewRedeem",
        outputs: [{
            name: "assets",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "assets",
            type: "uint256"
        }],
        name: "previewWithdraw",
        outputs: [{
            name: "shares",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "shares",
            type: "uint256"
        }, {
            name: "receiver",
            type: "address"
        }, {
            name: "owner",
            type: "address"
        }],
        name: "redeem",
        outputs: [{
            name: "assets",
            type: "uint256"
        }],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [],
        name: "totalAssets",
        outputs: [{
            name: "totalManagedAssets",
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [],
        name: "totalSupply",
        outputs: [{
            type: "uint256"
        }],
        stateMutability: "view",
        type: "function"
    }, {
        inputs: [{
            name: "to",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        name: "transfer",
        outputs: [{
            type: "bool"
        }],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [{
            name: "from",
            type: "address"
        }, {
            name: "to",
            type: "address"
        }, {
            name: "amount",
            type: "uint256"
        }],
        name: "transferFrom",
        outputs: [{
            type: "bool"
        }],
        stateMutability: "nonpayable",
        type: "function"
    }, {
        inputs: [{
            name: "assets",
            type: "uint256"
        }, {
            name: "receiver",
            type: "address"
        }, {
            name: "owner",
            type: "address"
        }],
        name: "withdraw",
        outputs: [{
            name: "shares",
            type: "uint256"
        }],
        stateMutability: "nonpayable",
        type: "function"
    }], "erc6492SignatureValidatorAbi", 0, [{
        inputs: [{
            name: "_signer",
            type: "address"
        }, {
            name: "_hash",
            type: "bytes32"
        }, {
            name: "_signature",
            type: "bytes"
        }],
        stateMutability: "nonpayable",
        type: "constructor"
    }, {
        inputs: [{
            name: "_signer",
            type: "address"
        }, {
            name: "_hash",
            type: "bytes32"
        }, {
            name: "_signature",
            type: "bytes"
        }],
        outputs: [{
            type: "bool"
        }],
        stateMutability: "nonpayable",
        type: "function",
        name: "isValidSig"
    }], "erc721Abi", 0, [{
        type: "event",
        name: "Approval",
        inputs: [{
            indexed: !0,
            name: "owner",
            type: "address"
        }, {
            indexed: !0,
            name: "spender",
            type: "address"
        }, {
            indexed: !0,
            name: "tokenId",
            type: "uint256"
        }]
    }, {
        type: "event",
        name: "ApprovalForAll",
        inputs: [{
            indexed: !0,
            name: "owner",
            type: "address"
        }, {
            indexed: !0,
            name: "operator",
            type: "address"
        }, {
            indexed: !1,
            name: "approved",
            type: "bool"
        }]
    }, {
        type: "event",
        name: "Transfer",
        inputs: [{
            indexed: !0,
            name: "from",
            type: "address"
        }, {
            indexed: !0,
            name: "to",
            type: "address"
        }, {
            indexed: !0,
            name: "tokenId",
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "approve",
        stateMutability: "payable",
        inputs: [{
            name: "spender",
            type: "address"
        }, {
            name: "tokenId",
            type: "uint256"
        }],
        outputs: []
    }, {
        type: "function",
        name: "balanceOf",
        stateMutability: "view",
        inputs: [{
            name: "account",
            type: "address"
        }],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "getApproved",
        stateMutability: "view",
        inputs: [{
            name: "tokenId",
            type: "uint256"
        }],
        outputs: [{
            type: "address"
        }]
    }, {
        type: "function",
        name: "isApprovedForAll",
        stateMutability: "view",
        inputs: [{
            name: "owner",
            type: "address"
        }, {
            name: "operator",
            type: "address"
        }],
        outputs: [{
            type: "bool"
        }]
    }, {
        type: "function",
        name: "name",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "string"
        }]
    }, {
        type: "function",
        name: "ownerOf",
        stateMutability: "view",
        inputs: [{
            name: "tokenId",
            type: "uint256"
        }],
        outputs: [{
            name: "owner",
            type: "address"
        }]
    }, {
        type: "function",
        name: "safeTransferFrom",
        stateMutability: "payable",
        inputs: [{
            name: "from",
            type: "address"
        }, {
            name: "to",
            type: "address"
        }, {
            name: "tokenId",
            type: "uint256"
        }],
        outputs: []
    }, {
        type: "function",
        name: "safeTransferFrom",
        stateMutability: "nonpayable",
        inputs: [{
            name: "from",
            type: "address"
        }, {
            name: "to",
            type: "address"
        }, {
            name: "id",
            type: "uint256"
        }, {
            name: "data",
            type: "bytes"
        }],
        outputs: []
    }, {
        type: "function",
        name: "setApprovalForAll",
        stateMutability: "nonpayable",
        inputs: [{
            name: "operator",
            type: "address"
        }, {
            name: "approved",
            type: "bool"
        }],
        outputs: []
    }, {
        type: "function",
        name: "symbol",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "string"
        }]
    }, {
        type: "function",
        name: "tokenByIndex",
        stateMutability: "view",
        inputs: [{
            name: "index",
            type: "uint256"
        }],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "tokenByIndex",
        stateMutability: "view",
        inputs: [{
            name: "owner",
            type: "address"
        }, {
            name: "index",
            type: "uint256"
        }],
        outputs: [{
            name: "tokenId",
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "tokenURI",
        stateMutability: "view",
        inputs: [{
            name: "tokenId",
            type: "uint256"
        }],
        outputs: [{
            type: "string"
        }]
    }, {
        type: "function",
        name: "totalSupply",
        stateMutability: "view",
        inputs: [],
        outputs: [{
            type: "uint256"
        }]
    }, {
        type: "function",
        name: "transferFrom",
        stateMutability: "payable",
        inputs: [{
            name: "sender",
            type: "address"
        }, {
            name: "recipient",
            type: "address"
        }, {
            name: "tokenId",
            type: "uint256"
        }],
        outputs: []
    }], "multicall3Abi", 0, t, "textResolverAbi", 0, [{
        name: "text",
        type: "function",
        stateMutability: "view",
        inputs: [{
            name: "name",
            type: "bytes32"
        }, {
            name: "key",
            type: "string"
        }],
        outputs: [{
            name: "",
            type: "string"
        }]
    }], "universalResolverResolveAbi", 0, a, "universalResolverReverseAbi", 0, s])
}, 979281, e => {
    "use strict";
    class t extends Map {
        constructor(e) {
            super(), Object.defineProperty(this, "maxSize", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.maxSize = e
        }
        get(e) {
            let t = super.get(e);
            return super.has(e) && (super.delete(e), super.set(e, t)), t
        }
        set(e, t) {
            if (super.has(e) && super.delete(e), super.set(e, t), this.maxSize && this.size > this.maxSize) {
                let e = super.keys().next().value;
                void 0 !== e && super.delete(e)
            }
            return this
        }
    }
    e.s(["LruMap", 0, t])
}, 865692, e => {
    "use strict";
    e.s(["stringify", 0, (e, t, r) => JSON.stringify(e, (e, r) => {
        let n = "bigint" == typeof r ? r.toString() : r;
        return "function" == typeof t ? t(e, n) : n
    }, r)])
}, 416930, e => {
    "use strict";
    e.s(["getContractAddress", 0, e => e, "getUrl", 0, e => {
        try {
            let t = new URL(e);
            if (!t.username && !t.password) return e;
            return t.username = "", t.password = "", t.toString()
        } catch {
            return e
        }
    }])
}, 479322, e => {
    "use strict";
    var t = e.i(865692),
        r = e.i(621030),
        n = e.i(416930);
    class a extends r.BaseError {
        constructor({
            body: e,
            cause: r,
            details: a,
            headers: s,
            status: o,
            url: i
        }) {
            super("HTTP request failed.", {
                cause: r,
                details: a,
                metaMessages: [o && `Status: ${o}`, `URL: ${(0,n.getUrl)(i)}`, e && `Request body: ${(0,t.stringify)(e)}`].filter(Boolean),
                name: "HttpRequestError"
            }), Object.defineProperty(this, "body", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "headers", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "status", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "url", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.body = e, this.headers = s, this.status = o, this.url = i
        }
    }
    class s extends r.BaseError {
        constructor({
            body: e,
            cause: r,
            details: a,
            url: s
        }) {
            super("WebSocket request failed.", {
                cause: r,
                details: a,
                metaMessages: [`URL: ${(0,n.getUrl)(s)}`, e && `Request body: ${(0,t.stringify)(e)}`].filter(Boolean),
                name: "WebSocketRequestError"
            }), Object.defineProperty(this, "url", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.url = s
        }
    }
    class o extends r.BaseError {
        constructor({
            body: e,
            error: r,
            url: a
        }) {
            super("RPC Request failed.", {
                cause: r,
                details: r.message,
                metaMessages: [`URL: ${(0,n.getUrl)(a)}`, `Request body: ${(0,t.stringify)(e)}`],
                name: "RpcRequestError"
            }), Object.defineProperty(this, "code", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "data", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), Object.defineProperty(this, "url", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.code = r.code, this.data = r.data, this.url = a
        }
    }
    class i extends r.BaseError {
        constructor({
            url: e
        } = {}) {
            super("The socket has been closed.", {
                metaMessages: [e && `URL: ${(0,n.getUrl)(e)}`].filter(Boolean),
                name: "SocketClosedError"
            }), Object.defineProperty(this, "url", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.url = e
        }
    }
    class u extends r.BaseError {
        constructor({
            body: e,
            url: r
        }) {
            super("The request took too long to respond.", {
                details: "The request timed out.",
                metaMessages: [`URL: ${(0,n.getUrl)(r)}`, `Request body: ${(0,t.stringify)(e)}`],
                name: "TimeoutError"
            }), Object.defineProperty(this, "url", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.url = r
        }
    }
    e.s(["HttpRequestError", 0, a, "RpcRequestError", 0, o, "SocketClosedError", 0, i, "TimeoutError", 0, u, "WebSocketRequestError", 0, s])
}, 949853, 642615, e => {
    "use strict";
    let t = {
        ether: -9,
        wei: 9
    };
    e.s(["etherUnits", 0, {
        gwei: 9,
        wei: 18
    }, "gweiUnits", 0, t, "weiUnits", 0, {
        ether: -18,
        gwei: -9
    }], 642615);
    var r = e.i(882860);
    e.s(["formatGwei", 0, function(e, n = "wei") {
        return (0, r.formatUnits)(e, t[n])
    }], 949853)
}, 869076, e => {
    "use strict";
    var t = e.i(949853),
        r = e.i(621030);
    class n extends r.BaseError {
        constructor({
            cause: e,
            message: t
        } = {}) {
            const r = t ? .replace("execution reverted: ", "") ? .replace("execution reverted", "");
            super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`, {
                cause: e,
                name: "ExecutionRevertedError"
            })
        }
    }
    Object.defineProperty(n, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 3
    }), Object.defineProperty(n, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /execution reverted|gas required exceeds allowance/
    });
    class a extends r.BaseError {
        constructor({
            cause: e,
            maxFeePerGas: r
        } = {}) {
            super(`The fee cap (\`maxFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`, {
                cause: e,
                name: "FeeCapTooHighError"
            })
        }
    }
    Object.defineProperty(a, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
    });
    class s extends r.BaseError {
        constructor({
            cause: e,
            maxFeePerGas: r
        } = {}) {
            super(`The fee cap (\`maxFeePerGas\`${r?` = ${(0,t.formatGwei)(r)}`:""} gwei) cannot be lower than the block base fee.`, {
                cause: e,
                name: "FeeCapTooLowError"
            })
        }
    }
    Object.defineProperty(s, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
    });
    class o extends r.BaseError {
        constructor({
            cause: e,
            nonce: t
        } = {}) {
            super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`, {
                cause: e,
                name: "NonceTooHighError"
            })
        }
    }
    Object.defineProperty(o, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /nonce too high/
    });
    class i extends r.BaseError {
        constructor({
            cause: e,
            nonce: t
        } = {}) {
            super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`, {
                cause: e,
                name: "NonceTooLowError"
            })
        }
    }
    Object.defineProperty(i, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /nonce too low|transaction already imported|already known/
    });
    class u extends r.BaseError {
        constructor({
            cause: e,
            nonce: t
        } = {}) {
            super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`, {
                cause: e,
                name: "NonceMaxValueError"
            })
        }
    }
    Object.defineProperty(u, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /nonce has max value/
    });
    class p extends r.BaseError {
        constructor({
            cause: e
        } = {}) {
            super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.", {
                cause: e,
                metaMessages: ["This error could arise when the account does not have enough funds to:", " - pay for the total gas fee,", " - pay for the value to send.", " ", "The cost of the transaction is calculated as `gas * gas fee + value`, where:", " - `gas` is the amount of gas needed for transaction to execute,", " - `gas fee` is the gas fee,", " - `value` is the amount of ether to send to the recipient."],
                name: "InsufficientFundsError"
            })
        }
    }
    Object.defineProperty(p, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /insufficient funds|exceeds transaction sender account balance/
    });
    class d extends r.BaseError {
        constructor({
            cause: e,
            gas: t
        } = {}) {
            super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`, {
                cause: e,
                name: "IntrinsicGasTooHighError"
            })
        }
    }
    Object.defineProperty(d, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /intrinsic gas too high|gas limit reached/
    });
    class c extends r.BaseError {
        constructor({
            cause: e,
            gas: t
        } = {}) {
            super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`, {
                cause: e,
                name: "IntrinsicGasTooLowError"
            })
        }
    }
    Object.defineProperty(c, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /intrinsic gas too low/
    });
    class l extends r.BaseError {
        constructor({
            cause: e
        }) {
            super("The transaction type is not supported for this chain.", {
                cause: e,
                name: "TransactionTypeNotSupportedError"
            })
        }
    }
    Object.defineProperty(l, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /transaction type not valid/
    });
    class y extends r.BaseError {
        constructor({
            cause: e,
            maxPriorityFeePerGas: r,
            maxFeePerGas: n
        } = {}) {
            super(`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,t.formatGwei)(n)} gwei`:""}).`, {
                cause: e,
                name: "TipAboveFeeCapError"
            })
        }
    }
    Object.defineProperty(y, "nodeMessage", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
    });
    class m extends r.BaseError {
        constructor({
            cause: e
        }) {
            super(`An error occurred while executing: ${e?.shortMessage}`, {
                cause: e,
                name: "UnknownNodeError"
            })
        }
    }
    e.s(["ExecutionRevertedError", 0, n, "FeeCapTooHighError", 0, a, "FeeCapTooLowError", 0, s, "InsufficientFundsError", 0, p, "IntrinsicGasTooHighError", 0, d, "IntrinsicGasTooLowError", 0, c, "NonceMaxValueError", 0, u, "NonceTooHighError", 0, o, "NonceTooLowError", 0, i, "TipAboveFeeCapError", 0, y, "TransactionTypeNotSupportedError", 0, l, "UnknownNodeError", 0, m])
}, 175947, 481436, e => {
    "use strict";

    function t() {
        let e = () => void 0,
            t = () => void 0;
        return {
            promise: new Promise((r, n) => {
                e = r, t = n
            }),
            resolve: e,
            reject: t
        }
    }
    e.s(["withResolvers", 0, t], 481436);
    let r = new Map;
    e.s(["createBatchScheduler", 0, function({
        fn: e,
        id: n,
        shouldSplitBatch: a,
        wait: s = 0,
        sort: o
    }) {
        let i = async () => {
                let t = p();
                u();
                let r = t.map(({
                    args: e
                }) => e);
                0 !== r.length && e(r).then(e => {
                    o && Array.isArray(e) && e.sort(o);
                    for (let r = 0; r < t.length; r++) {
                        let {
                            resolve: n
                        } = t[r];
                        n ? .([e[r], e])
                    }
                }).catch(e => {
                    for (let r = 0; r < t.length; r++) {
                        let {
                            reject: n
                        } = t[r];
                        n ? .(e)
                    }
                })
            },
            u = () => r.delete(n),
            p = () => r.get(n) || [],
            d = e => r.set(n, [...p(), e]);
        return {
            flush: u,
            async schedule(e) {
                let {
                    promise: r,
                    resolve: n,
                    reject: o
                } = t();
                return (a ? .([...p().map(({
                    args: e
                }) => e), e]) && i(), p().length > 0) ? d({
                    args: e,
                    resolve: n,
                    reject: o
                }) : (d({
                    args: e,
                    resolve: n,
                    reject: o
                }), setTimeout(i, s)), r
            }
        }
    }], 175947)
}, 762281, e => {
    "use strict";
    let t, r = 256;
    e.s(["uid", 0, function(e = 11) {
        if (!t || r + e > 512) {
            t = "", r = 0;
            for (let e = 0; e < 256; e++) t += (256 + 256 * Math.random() | 0).toString(16).substring(1)
        }
        return t.substring(r, r++ + e)
    }])
}, 962702, e => {
    "use strict";
    var t = e.i(621030),
        r = e.i(479322);
    class n extends t.BaseError {
        constructor(e, {
            code: t,
            docsPath: n,
            metaMessages: a,
            name: s,
            shortMessage: o
        }) {
            super(o, {
                cause: e,
                docsPath: n,
                metaMessages: a || e ? .metaMessages,
                name: s || "RpcError"
            }), Object.defineProperty(this, "code", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.name = s || e.name, this.code = e instanceof r.RpcRequestError ? e.code : t ? ? -1
        }
    }
    class a extends n {
        constructor(e, t) {
            super(e, t), Object.defineProperty(this, "data", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: void 0
            }), this.data = t.data
        }
    }
    class s extends n {
        constructor(e) {
            super(e, {
                code: s.code,
                name: "ParseRpcError",
                shortMessage: "Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."
            })
        }
    }
    Object.defineProperty(s, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32700
    });
    class o extends n {
        constructor(e) {
            super(e, {
                code: o.code,
                name: "InvalidRequestRpcError",
                shortMessage: "JSON is not a valid request object."
            })
        }
    }
    Object.defineProperty(o, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32600
    });
    class i extends n {
        constructor(e, {
            method: t
        } = {}) {
            super(e, {
                code: i.code,
                name: "MethodNotFoundRpcError",
                shortMessage: `The method${t?` "${t}"`:""} does not exist / is not available.`
            })
        }
    }
    Object.defineProperty(i, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32601
    });
    class u extends n {
        constructor(e) {
            super(e, {
                code: u.code,
                name: "InvalidParamsRpcError",
                shortMessage: "Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."
            })
        }
    }
    Object.defineProperty(u, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32602
    });
    class p extends n {
        constructor(e) {
            super(e, {
                code: p.code,
                name: "InternalRpcError",
                shortMessage: "An internal error was received."
            })
        }
    }
    Object.defineProperty(p, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32603
    });
    class d extends n {
        constructor(e) {
            super(e, {
                code: d.code,
                name: "InvalidInputRpcError",
                shortMessage: "Missing or invalid parameters.\nDouble check you have provided the correct parameters."
            })
        }
    }
    Object.defineProperty(d, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32e3
    });
    class c extends n {
        constructor(e) {
            super(e, {
                code: c.code,
                name: "ResourceNotFoundRpcError",
                shortMessage: "Requested resource not found."
            }), Object.defineProperty(this, "name", {
                enumerable: !0,
                configurable: !0,
                writable: !0,
                value: "ResourceNotFoundRpcError"
            })
        }
    }
    Object.defineProperty(c, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32001
    });
    class l extends n {
        constructor(e) {
            super(e, {
                code: l.code,
                name: "ResourceUnavailableRpcError",
                shortMessage: "Requested resource not available."
            })
        }
    }
    Object.defineProperty(l, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32002
    });
    class y extends n {
        constructor(e) {
            super(e, {
                code: y.code,
                name: "TransactionRejectedRpcError",
                shortMessage: "Transaction creation failed."
            })
        }
    }
    Object.defineProperty(y, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32003
    });
    class m extends n {
        constructor(e, {
            method: t
        } = {}) {
            super(e, {
                code: m.code,
                name: "MethodNotSupportedRpcError",
                shortMessage: `Method${t?` "${t}"`:""} is not supported.`
            })
        }
    }
    Object.defineProperty(m, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32004
    });
    class b extends n {
        constructor(e) {
            super(e, {
                code: b.code,
                name: "LimitExceededRpcError",
                shortMessage: "Request exceeds defined limit."
            })
        }
    }
    Object.defineProperty(b, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32005
    });
    class h extends n {
        constructor(e) {
            super(e, {
                code: h.code,
                name: "JsonRpcVersionUnsupportedError",
                shortMessage: "Version of JSON-RPC protocol is not supported."
            })
        }
    }
    Object.defineProperty(h, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: -32006
    });
    class f extends a {
        constructor(e) {
            super(e, {
                code: f.code,
                name: "UserRejectedRequestError",
                shortMessage: "User rejected the request."
            })
        }
    }
    Object.defineProperty(f, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 4001
    });
    class w extends a {
        constructor(e) {
            super(e, {
                code: w.code,
                name: "UnauthorizedProviderError",
                shortMessage: "The requested method and/or account has not been authorized by the user."
            })
        }
    }
    Object.defineProperty(w, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 4100
    });
    class v extends a {
        constructor(e, {
            method: t
        } = {}) {
            super(e, {
                code: v.code,
                name: "UnsupportedProviderMethodError",
                shortMessage: `The Provider does not support the requested method${t?` " ${t}"`:""}.`
            })
        }
    }
    Object.defineProperty(v, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 4200
    });
    class g extends a {
        constructor(e) {
            super(e, {
                code: g.code,
                name: "ProviderDisconnectedError",
                shortMessage: "The Provider is disconnected from all chains."
            })
        }
    }
    Object.defineProperty(g, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 4900
    });
    class E extends a {
        constructor(e) {
            super(e, {
                code: E.code,
                name: "ChainDisconnectedError",
                shortMessage: "The Provider is not connected to the requested chain."
            })
        }
    }
    Object.defineProperty(E, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 4901
    });
    class R extends a {
        constructor(e) {
            super(e, {
                code: R.code,
                name: "SwitchChainError",
                shortMessage: "An error occurred when attempting to switch chain."
            })
        }
    }
    Object.defineProperty(R, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 4902
    });
    class x extends a {
        constructor(e) {
            super(e, {
                code: x.code,
                name: "UnsupportedNonOptionalCapabilityError",
                shortMessage: "This Wallet does not support a capability that was not marked as optional."
            })
        }
    }
    Object.defineProperty(x, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 5700
    });
    class M extends a {
        constructor(e) {
            super(e, {
                code: M.code,
                name: "UnsupportedChainIdError",
                shortMessage: "This Wallet does not support the requested chain ID."
            })
        }
    }
    Object.defineProperty(M, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 5710
    });
    class T extends a {
        constructor(e) {
            super(e, {
                code: T.code,
                name: "DuplicateIdError",
                shortMessage: "There is already a bundle submitted with this ID."
            })
        }
    }
    Object.defineProperty(T, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 5720
    });
    class P extends a {
        constructor(e) {
            super(e, {
                code: P.code,
                name: "UnknownBundleIdError",
                shortMessage: "This bundle id is unknown / has not been submitted"
            })
        }
    }
    Object.defineProperty(P, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 5730
    });
    class j extends a {
        constructor(e) {
            super(e, {
                code: j.code,
                name: "BundleTooLargeError",
                shortMessage: "The call bundle is too large for the Wallet to process."
            })
        }
    }
    Object.defineProperty(j, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 5740
    });
    class O extends a {
        constructor(e) {
            super(e, {
                code: O.code,
                name: "AtomicReadyWalletRejectedUpgradeError",
                shortMessage: "The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."
            })
        }
    }
    Object.defineProperty(O, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 5750
    });
    class U extends a {
        constructor(e) {
            super(e, {
                code: U.code,
                name: "AtomicityNotSupportedError",
                shortMessage: "The wallet does not support atomic execution but the request requires it."
            })
        }
    }
    Object.defineProperty(U, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 5760
    });
    class A extends a {
        constructor(e) {
            super(e, {
                code: A.code,
                name: "WalletConnectSessionSettlementError",
                shortMessage: "WalletConnect session settlement failed."
            })
        }
    }
    Object.defineProperty(A, "code", {
        enumerable: !0,
        configurable: !0,
        writable: !0,
        value: 7e3
    }), e.s(["AtomicReadyWalletRejectedUpgradeError", 0, O, "AtomicityNotSupportedError", 0, U, "BundleTooLargeError", 0, j, "ChainDisconnectedError", 0, E, "DuplicateIdError", 0, T, "InternalRpcError", 0, p, "InvalidInputRpcError", 0, d, "InvalidParamsRpcError", 0, u, "InvalidRequestRpcError", 0, o, "JsonRpcVersionUnsupportedError", 0, h, "LimitExceededRpcError", 0, b, "MethodNotFoundRpcError", 0, i, "MethodNotSupportedRpcError", 0, m, "ParseRpcError", 0, s, "ProviderDisconnectedError", 0, g, "ProviderRpcError", 0, a, "ResourceNotFoundRpcError", 0, c, "ResourceUnavailableRpcError", 0, l, "RpcError", 0, n, "SwitchChainError", 0, R, "TransactionRejectedRpcError", 0, y, "UnauthorizedProviderError", 0, w, "UnknownBundleIdError", 0, P, "UnknownRpcError", 0, class extends n {
        constructor(e) {
            super(e, {
                name: "UnknownRpcError",
                shortMessage: "An unknown RPC error occurred."
            })
        }
    }, "UnsupportedChainIdError", 0, M, "UnsupportedNonOptionalCapabilityError", 0, x, "UnsupportedProviderMethodError", 0, v, "UserRejectedRequestError", 0, f, "WalletConnectSessionSettlementError", 0, A])
}, 273643, e => {
    "use strict";
    let t = new(e.i(979281)).LruMap(8192);
    e.s(["withDedupe", 0, function(e, {
        enabled: r = !0,
        id: n
    }) {
        if (!r || !n) return e();
        if (t.get(n)) return t.get(n);
        let a = e().finally(() => t.delete(n));
        return t.set(n, a), a
    }])
}, 777641, e => {
    "use strict";
    async function t(e) {
        return new Promise(t => setTimeout(t, e))
    }
    e.s(["wait", 0, t])
}, 644988, e => {
    "use strict";
    var t = e.i(777641);
    e.s(["withRetry", 0, function(e, {
        delay: r = 100,
        retryCount: n = 2,
        shouldRetry: a = () => !0
    } = {}) {
        return new Promise((s, o) => {
            let i = async ({
                count: u = 0
            } = {}) => {
                let p = async ({
                    error: e
                }) => {
                    let n = "function" == typeof r ? r({
                        count: u,
                        error: e
                    }) : r;
                    n && await (0, t.wait)(n), i({
                        count: u + 1
                    })
                };
                try {
                    let t = await e();
                    s(t)
                } catch (e) {
                    if (u < n && await a({
                            count: u,
                            error: e
                        })) return p({
                        error: e
                    });
                    o(e)
                }
            };
            i()
        })
    }])
}, 684860, e => {
    "use strict";
    var t = e.i(621030),
        r = e.i(479322),
        n = e.i(962702),
        a = e.i(273643),
        s = e.i(644988),
        o = e.i(865692);
    e.s(["buildRequest", 0, function(e, i = {}) {
        return async (u, p = {}) => {
            let {
                dedupe: d = !1,
                methods: c,
                retryDelay: l = 150,
                retryCount: y = 3,
                uid: m
            } = { ...i,
                ...p
            }, {
                method: b
            } = u;
            if (c ? .exclude ? .includes(b) || c ? .include && !c.include.includes(b)) throw new n.MethodNotSupportedRpcError(Error("method not supported"), {
                method: b
            });
            let h = d ? function(e, t = 0) {
                let r = 0xdeadbeef ^ t,
                    n = 0x41c6ce57 ^ t;
                for (let t = 0; t < e.length; t++) {
                    let a = e.charCodeAt(t);
                    r = Math.imul(r ^ a, 0x9e3779b1), n = Math.imul(n ^ a, 0x5f356495)
                }
                return r = Math.imul(r ^ r >>> 16, 0x85ebca6b) ^ Math.imul(n ^ n >>> 16, 0xc2b2ae35), (0x100000000 * (2097151 & (n = Math.imul(n ^ n >>> 16, 0x85ebca6b) ^ Math.imul(r ^ r >>> 16, 0xc2b2ae35))) + (r >>> 0)).toString(36)
            }(`${m}.${(0,o.stringify)(u)}`) : void 0;
            return (0, a.withDedupe)(() => (0, s.withRetry)(async () => {
                try {
                    return await e(u)
                } catch (e) {
                    switch (e.code) {
                        case n.ParseRpcError.code:
                            throw new n.ParseRpcError(e);
                        case n.InvalidRequestRpcError.code:
                            throw new n.InvalidRequestRpcError(e);
                        case n.MethodNotFoundRpcError.code:
                            throw new n.MethodNotFoundRpcError(e, {
                                method: u.method
                            });
                        case n.InvalidParamsRpcError.code:
                            throw new n.InvalidParamsRpcError(e);
                        case n.InternalRpcError.code:
                            throw new n.InternalRpcError(e);
                        case n.InvalidInputRpcError.code:
                            throw new n.InvalidInputRpcError(e);
                        case n.ResourceNotFoundRpcError.code:
                            throw new n.ResourceNotFoundRpcError(e);
                        case n.ResourceUnavailableRpcError.code:
                            throw new n.ResourceUnavailableRpcError(e);
                        case n.TransactionRejectedRpcError.code:
                            throw new n.TransactionRejectedRpcError(e);
                        case n.MethodNotSupportedRpcError.code:
                            throw new n.MethodNotSupportedRpcError(e, {
                                method: u.method
                            });
                        case n.LimitExceededRpcError.code:
                            throw new n.LimitExceededRpcError(e);
                        case n.JsonRpcVersionUnsupportedError.code:
                            throw new n.JsonRpcVersionUnsupportedError(e);
                        case n.UserRejectedRequestError.code:
                            throw new n.UserRejectedRequestError(e);
                        case n.UnauthorizedProviderError.code:
                            throw new n.UnauthorizedProviderError(e);
                        case n.UnsupportedProviderMethodError.code:
                            throw new n.UnsupportedProviderMethodError(e);
                        case n.ProviderDisconnectedError.code:
                            throw new n.ProviderDisconnectedError(e);
                        case n.ChainDisconnectedError.code:
                            throw new n.ChainDisconnectedError(e);
                        case n.SwitchChainError.code:
                            throw new n.SwitchChainError(e);
                        case n.UnsupportedNonOptionalCapabilityError.code:
                            throw new n.UnsupportedNonOptionalCapabilityError(e);
                        case n.UnsupportedChainIdError.code:
                            throw new n.UnsupportedChainIdError(e);
                        case n.DuplicateIdError.code:
                            throw new n.DuplicateIdError(e);
                        case n.UnknownBundleIdError.code:
                            throw new n.UnknownBundleIdError(e);
                        case n.BundleTooLargeError.code:
                            throw new n.BundleTooLargeError(e);
                        case n.AtomicReadyWalletRejectedUpgradeError.code:
                            throw new n.AtomicReadyWalletRejectedUpgradeError(e);
                        case n.AtomicityNotSupportedError.code:
                            throw new n.AtomicityNotSupportedError(e);
                        case 5e3:
                            throw new n.UserRejectedRequestError(e);
                        case n.WalletConnectSessionSettlementError.code:
                            throw new n.WalletConnectSessionSettlementError(e);
                        default:
                            if (e instanceof t.BaseError) throw e;
                            throw new n.UnknownRpcError(e)
                    }
                }
            }, {
                delay: ({
                    count: e,
                    error: t
                }) => {
                    if (t && t instanceof r.HttpRequestError) {
                        let e = t ? .headers ? .get("Retry-After");
                        if (e ? .match(/\d/)) return 1e3 * Number.parseInt(e, 10)
                    }
                    return ~~(1 << e) * l
                },
                retryCount: y,
                shouldRetry: ({
                    error: e
                }) => {
                    var t;
                    return "code" in (t = e) && "number" == typeof t.code ? -1 === t.code || t.code === n.LimitExceededRpcError.code || t.code === n.InternalRpcError.code || 429 === t.code : !(t instanceof r.HttpRequestError) || !t.status || 403 === t.status || 408 === t.status || 413 === t.status || 429 === t.status || 500 === t.status || 502 === t.status || 503 === t.status || 504 === t.status || !1
                }
            }), {
                enabled: d,
                id: h
            })
        }
    }])
}, 881997, e => {
    "use strict";
    var t = e.i(684860),
        r = e.i(762281);
    e.s(["createTransport", 0, function({
        key: e,
        methods: n,
        name: a,
        request: s,
        retryCount: o = 3,
        retryDelay: i = 150,
        timeout: u,
        type: p
    }, d) {
        let c = (0, r.uid)();
        return {
            config: {
                key: e,
                methods: n,
                name: a,
                request: s,
                retryCount: o,
                retryDelay: i,
                timeout: u,
                type: p
            },
            request: (0, t.buildRequest)(s, {
                methods: n,
                retryCount: o,
                retryDelay: i,
                uid: c
            }),
            value: d
        }
    }])
}, 765464, e => {
    "use strict";
    var t = e.i(869076),
        r = e.i(962702),
        n = e.i(777641),
        a = e.i(881997);

    function s(e) {
        return !!("code" in e && "number" == typeof e.code && (e.code === r.TransactionRejectedRpcError.code || e.code === r.UserRejectedRequestError.code || e.code === r.WalletConnectSessionSettlementError.code || t.ExecutionRevertedError.nodeMessage.test(e.message) || 5e3 === e.code))
    }
    e.s(["fallback", 0, function(e, t = {}) {
        let {
            key: r = "fallback",
            name: o = "Fallback",
            rank: i = !1,
            shouldThrow: u = s,
            retryCount: p,
            retryDelay: d
        } = t;
        return ({
            chain: t,
            pollingInterval: s = 4e3,
            timeout: c,
            ...l
        }) => {
            let y = e,
                m = () => {},
                b = (0, a.createTransport)({
                    key: r,
                    name: o,
                    async request({
                        method: e,
                        params: r
                    }) {
                        let n, a = async (s = 0) => {
                            let o = y[s]({ ...l,
                                chain: t,
                                retryCount: 0,
                                timeout: c
                            });
                            try {
                                let t = await o.request({
                                    method: e,
                                    params: r
                                });
                                return m({
                                    method: e,
                                    params: r,
                                    response: t,
                                    transport: o,
                                    status: "success"
                                }), t
                            } catch (i) {
                                if (m({
                                        error: i,
                                        method: e,
                                        params: r,
                                        transport: o,
                                        status: "error"
                                    }), u(i) || s === y.length - 1 || !(n ? ? = y.slice(s + 1).some(r => {
                                        let {
                                            include: n,
                                            exclude: a
                                        } = r({
                                            chain: t
                                        }).config.methods || {};
                                        return n ? n.includes(e) : !a || !a.includes(e)
                                    }))) throw i;
                                return a(s + 1)
                            }
                        };
                        return a()
                    },
                    retryCount: p,
                    retryDelay: d,
                    type: "fallback"
                }, {
                    onResponse: e => m = e,
                    transports: y.map(e => e({
                        chain: t,
                        retryCount: 0
                    }))
                });
            if (i) {
                let e = "object" == typeof i ? i : {};
                ! function({
                    chain: e,
                    interval: t = 4e3,
                    onTransports: r,
                    ping: a,
                    sampleCount: s = 10,
                    timeout: o = 1e3,
                    transports: i,
                    weights: u = {}
                }) {
                    let {
                        stability: p = .7,
                        latency: d = .3
                    } = u, c = [], l = async () => {
                        let u = await Promise.all(i.map(async t => {
                            let r, n, s = t({
                                    chain: e,
                                    retryCount: 0,
                                    timeout: o
                                }),
                                i = Date.now();
                            try {
                                await (a ? a({
                                    transport: s
                                }) : s.request({
                                    method: "net_listening"
                                })), n = 1
                            } catch {
                                n = 0
                            } finally {
                                r = Date.now()
                            }
                            return {
                                latency: r - i,
                                success: n
                            }
                        }));
                        c.push(u), c.length > s && c.shift();
                        let y = Math.max(...c.map(e => Math.max(...e.map(({
                            latency: e
                        }) => e))));
                        r(i.map((e, t) => {
                            let r = c.map(e => e[t].latency),
                                n = r.reduce((e, t) => e + t, 0) / r.length,
                                a = c.map(e => e[t].success),
                                s = a.reduce((e, t) => e + t, 0) / a.length;
                            return 0 === s ? [0, t] : [d * (1 - n / y) + p * s, t]
                        }).sort((e, t) => t[0] - e[0]).map(([, e]) => i[e])), await (0, n.wait)(t), l()
                    };
                    l()
                }({
                    chain: t,
                    interval: e.interval ? ? s,
                    onTransports: e => y = e,
                    ping: e.ping,
                    sampleCount: e.sampleCount,
                    timeout: e.timeout,
                    transports: y,
                    weights: e.weights
                })
            }
            return b
        }
    }, "shouldThrow", 0, s])
}, 18014, e => {
    "use strict";
    var t = e.i(621030);
    class r extends t.BaseError {
        constructor() {
            super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
                docsPath: "/docs/clients/intro",
                name: "UrlRequiredError"
            })
        }
    }
    e.s(["UrlRequiredError", 0, r])
}, 46933, e => {
    "use strict";
    e.s(["withTimeout", 0, function(e, {
        errorInstance: t = Error("timed out"),
        timeout: r,
        signal: n
    }) {
        return new Promise((a, s) => {
            (async () => {
                let o;
                try {
                    let i = new AbortController;
                    r > 0 && (o = setTimeout(() => {
                        n ? i.abort() : s(t)
                    }, r)), a(await e({
                        signal: i ? .signal || null
                    }))
                } catch (e) {
                    e ? .name === "AbortError" && s(t), s(e)
                } finally {
                    clearTimeout(o)
                }
            })()
        })
    }])
}, 205780, 700447, 328798, e => {
    "use strict";
    var t = e.i(479322),
        r = e.i(18014),
        n = e.i(175947),
        a = e.i(46933),
        s = e.i(865692);
    let o = {
        current: 0,
        take() {
            return this.current++
        },
        reset() {
            this.current = 0
        }
    };

    function i(e, r = {}) {
        let {
            url: n,
            headers: u
        } = function(e) {
            try {
                let t = new URL(e),
                    r = (() => {
                        if (t.username) {
                            let e = `${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;
                            return t.username = "", t.password = "", {
                                url: t.toString(),
                                headers: {
                                    Authorization: `Basic ${btoa(e)}`
                                }
                            }
                        }
                    })();
                return {
                    url: t.toString(),
                    ...r
                }
            } catch {
                return {
                    url: e
                }
            }
        }(e);
        return {
            async request(e) {
                let {
                    body: i,
                    fetchFn: p = r.fetchFn ? ? fetch,
                    onRequest: d = r.onRequest,
                    onResponse: c = r.onResponse,
                    timeout: l = r.timeout ? ? 1e4
                } = e, y = { ...r.fetchOptions ? ? {},
                    ...e.fetchOptions ? ? {}
                }, {
                    headers: m,
                    method: b,
                    signal: h
                } = y;
                try {
                    let e, r = await (0, a.withTimeout)(async ({
                        signal: e
                    }) => {
                        let t = { ...y,
                                body: Array.isArray(i) ? (0, s.stringify)(i.map(e => ({
                                    jsonrpc: "2.0",
                                    id: e.id ? ? o.take(),
                                    ...e
                                }))) : (0, s.stringify)({
                                    jsonrpc: "2.0",
                                    id: i.id ? ? o.take(),
                                    ...i
                                }),
                                headers: { ...u,
                                    "Content-Type": "application/json",
                                    ...m
                                },
                                method: b || "POST",
                                signal: h || (l > 0 ? e : null)
                            },
                            r = new Request(n, t),
                            a = await d ? .(r, t) ? ? { ...t,
                                url: n
                            };
                        return await p(a.url ? ? n, a)
                    }, {
                        errorInstance: new t.TimeoutError({
                            body: i,
                            url: n
                        }),
                        timeout: l,
                        signal: !0
                    });
                    if (c && await c(r), r.headers.get("Content-Type") ? .startsWith("application/json")) e = await r.json();
                    else {
                        e = await r.text();
                        try {
                            e = JSON.parse(e || "{}")
                        } catch (t) {
                            if (r.ok) throw t;
                            e = {
                                error: e
                            }
                        }
                    }
                    if (!r.ok) {
                        if ("number" == typeof e.error ? .code && "string" == typeof e.error ? .message) return e;
                        throw new t.HttpRequestError({
                            body: i,
                            details: (0, s.stringify)(e.error) || r.statusText,
                            headers: r.headers,
                            status: r.status,
                            url: n
                        })
                    }
                    return e
                } catch (e) {
                    if (e instanceof t.HttpRequestError || e instanceof t.TimeoutError) throw e;
                    throw new t.HttpRequestError({
                        body: i,
                        cause: e,
                        url: n
                    })
                }
            }
        }
    }
    e.s(["idCache", 0, o], 700447), e.s(["getHttpRpcClient", 0, i], 328798);
    var u = e.i(881997);
    e.s(["http", 0, function(e, a = {}) {
        let {
            batch: s,
            fetchFn: o,
            fetchOptions: p,
            key: d = "http",
            methods: c,
            name: l = "HTTP JSON-RPC",
            onFetchRequest: y,
            onFetchResponse: m,
            retryDelay: b,
            raw: h
        } = a;
        return ({
            chain: f,
            retryCount: w,
            timeout: v
        }) => {
            let {
                batchSize: g = 1e3,
                wait: E = 0
            } = "object" == typeof s ? s : {}, R = a.retryCount ? ? w, x = v ? ? a.timeout ? ? 1e4, M = e || f ? .rpcUrls.default.http[0];
            if (!M) throw new r.UrlRequiredError;
            let T = i(M, {
                fetchFn: o,
                fetchOptions: p,
                onRequest: y,
                onResponse: m,
                timeout: x
            });
            return (0, u.createTransport)({
                key: d,
                methods: c,
                name: l,
                async request({
                    method: e,
                    params: r
                }) {
                    let a = {
                            method: e,
                            params: r
                        },
                        {
                            schedule: o
                        } = (0, n.createBatchScheduler)({
                            id: M,
                            wait: E,
                            shouldSplitBatch: e => e.length > g,
                            fn: e => T.request({
                                body: e
                            }),
                            sort: (e, t) => e.id - t.id
                        }),
                        i = async e => s ? o(e) : [await T.request({
                            body: e
                        })],
                        [{
                            error: u,
                            result: p
                        }] = await i(a);
                    if (h) return {
                        error: u,
                        result: p
                    };
                    if (u) throw new t.RpcRequestError({
                        body: a,
                        error: u,
                        url: M
                    });
                    return p
                },
                retryCount: R,
                retryDelay: b,
                timeout: x,
                type: "http"
            }, {
                fetchOptions: p,
                url: M
            })
        }
    }], 205780)
}]);

//# debugId=c5322f27-f6a3-88fd-c3c1-c9f7f841a949