{"sources":{"Ghoulfarm.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.24;\n\n// File: @openzeppelin/contracts/utils/introspection/IERC165.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)\n\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/IERC721.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)\n\n\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n    /**\n     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n     */\n    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n     */\n    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n    /**\n     * @dev Returns the number of tokens in ``owner``'s account.\n     */\n    function balanceOf(address owner) external view returns (uint256 balance);\n\n    /**\n     * @dev Returns the owner of the `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function ownerOf(uint256 tokenId) external view returns (address owner);\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n     * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or\n     *   {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Transfers `tokenId` token from `from` to `to`.\n     *\n     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\n     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n     * understand this adds an external call which potentially creates a reentrancy vulnerability.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n     * The approval is cleared when the token is transferred.\n     *\n     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n     *\n     * Requirements:\n     *\n     * - The caller must own the token or be an approved operator.\n     * - `tokenId` must exist.\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address to, uint256 tokenId) external;\n\n    /**\n     * @dev Approve or remove `operator` as an operator for the caller.\n     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n     *\n     * Requirements:\n     *\n     * - The `operator` cannot be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function setApprovalForAll(address operator, bool approved) external;\n\n    /**\n     * @dev Returns the account approved for `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function getApproved(uint256 tokenId) external view returns (address operator);\n\n    /**\n     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n     *\n     * See {setApprovalForAll}\n     */\n    function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)\n\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n    /**\n     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n     * by `operator` from `from`, this function is called.\n     *\n     * It must return its Solidity selector to confirm the token transfer.\n     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be\n     * reverted.\n     *\n     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n     */\n    function onERC721Received(\n        address operator,\n        address from,\n        uint256 tokenId,\n        bytes calldata data\n    ) external returns (bytes4);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)\n\n\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n    /**\n     * @dev Returns the token collection name.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the token collection symbol.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n     */\n    function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n\n// File: @openzeppelin/contracts/utils/Context.sol\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n\n// File: @openzeppelin/contracts/utils/math/Math.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\n\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    /**\n     * @dev Muldiv operation overflow.\n     */\n    error MathOverflowedMulDiv();\n\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with an overflow flag.\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            uint256 c = a + b;\n            if (c < a) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b > a) return (false, 0);\n            return (true, a - b);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n            // benefit is lost if 'b' is also tested.\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n            if (a == 0) return (true, 0);\n            uint256 c = a * b;\n            if (c / a != b) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a division by zero flag.\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a / b);\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a % b);\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            return a / b;\n        }\n\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0 = x * y; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            if (denominator <= prod1) {\n                revert MathOverflowedMulDiv();\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n}\n\n// File: @openzeppelin/contracts/utils/math/SignedMath.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\n\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n\n// File: @openzeppelin/contracts/utils/Strings.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\n\n\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n    uint8 private constant ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev The `value` string doesn't fit in the specified `length`.\n     */\n    error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toStringSigned(int256 value) internal pure returns (string memory) {\n        return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        uint256 localValue = value;\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = HEX_DIGITS[localValue & 0xf];\n            localValue >>= 4;\n        }\n        if (localValue != 0) {\n            revert StringsInsufficientHexLength(value, length);\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n     * representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n\n// File: @openzeppelin/contracts/utils/introspection/ERC165.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)\n\n\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165 is IERC165 {\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n\n// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)\n\n/**\n * @dev Standard ERC20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/ERC721.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)\n\n\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\nabstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {\n    using Strings for uint256;\n\n    // Token name\n    string private _name;\n\n    // Token symbol\n    string private _symbol;\n\n    mapping(uint256 tokenId => address) private _owners;\n\n    mapping(address owner => uint256) private _balances;\n\n    mapping(uint256 tokenId => address) private _tokenApprovals;\n\n    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;\n\n    /**\n     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n        return\n            interfaceId == type(IERC721).interfaceId ||\n            interfaceId == type(IERC721Metadata).interfaceId ||\n            super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev See {IERC721-balanceOf}.\n     */\n    function balanceOf(address owner) public view virtual returns (uint256) {\n        if (owner == address(0)) {\n            revert ERC721InvalidOwner(address(0));\n        }\n        return _balances[owner];\n    }\n\n    /**\n     * @dev See {IERC721-ownerOf}.\n     */\n    function ownerOf(uint256 tokenId) public view virtual returns (address) {\n        return _requireOwned(tokenId);\n    }\n\n    /**\n     * @dev See {IERC721Metadata-name}.\n     */\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev See {IERC721Metadata-symbol}.\n     */\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev See {IERC721Metadata-tokenURI}.\n     */\n    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {\n        _requireOwned(tokenId);\n\n        string memory baseURI = _baseURI();\n        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : \"\";\n    }\n\n    /**\n     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n     * by default, can be overridden in child contracts.\n     */\n    function _baseURI() internal view virtual returns (string memory) {\n        return \"\";\n    }\n\n    /**\n     * @dev See {IERC721-approve}.\n     */\n    function approve(address to, uint256 tokenId) public virtual {\n        _approve(to, tokenId, _msgSender());\n    }\n\n    /**\n     * @dev See {IERC721-getApproved}.\n     */\n    function getApproved(uint256 tokenId) public view virtual returns (address) {\n        _requireOwned(tokenId);\n\n        return _getApproved(tokenId);\n    }\n\n    /**\n     * @dev See {IERC721-setApprovalForAll}.\n     */\n    function setApprovalForAll(address operator, bool approved) public virtual {\n        _setApprovalForAll(_msgSender(), operator, approved);\n    }\n\n    /**\n     * @dev See {IERC721-isApprovedForAll}.\n     */\n    function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {\n        return _operatorApprovals[owner][operator];\n    }\n\n    /**\n     * @dev See {IERC721-transferFrom}.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) public virtual {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        // Setting an \"auth\" arguments enables the `_isAuthorized` check which verifies that the token exists\n        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.\n        address previousOwner = _update(to, tokenId, _msgSender());\n        if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev See {IERC721-safeTransferFrom}.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) public {\n        safeTransferFrom(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev See {IERC721-safeTransferFrom}.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {\n        transferFrom(from, to, tokenId);\n        _checkOnERC721Received(from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist\n     *\n     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the\n     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances\n     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by\n     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.\n     */\n    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {\n        return _owners[tokenId];\n    }\n\n    /**\n     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.\n     */\n    function _getApproved(uint256 tokenId) internal view virtual returns (address) {\n        return _tokenApprovals[tokenId];\n    }\n\n    /**\n     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in\n     * particular (ignoring whether it is owned by `owner`).\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {\n        return\n            spender != address(0) &&\n            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);\n    }\n\n    /**\n     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.\n     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets\n     * the `spender` for the specific `tokenId`.\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {\n        if (!_isAuthorized(owner, spender, tokenId)) {\n            if (owner == address(0)) {\n                revert ERC721NonexistentToken(tokenId);\n            } else {\n                revert ERC721InsufficientApproval(spender, tokenId);\n            }\n        }\n    }\n\n    /**\n     * @dev Unsafe write access to the balances, used by extensions that \"mint\" tokens using an {ownerOf} override.\n     *\n     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that\n     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.\n     *\n     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the\n     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership\n     * remain consistent with one another.\n     */\n    function _increaseBalance(address account, uint128 value) internal virtual {\n        unchecked {\n            _balances[account] += value;\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner\n     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that\n     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.\n     */\n    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {\n        address from = _ownerOf(tokenId);\n\n        // Perform (optional) operator check\n        if (auth != address(0)) {\n            _checkAuthorized(from, auth, tokenId);\n        }\n\n        // Execute the update\n        if (from != address(0)) {\n            // Clear approval. No need to re-authorize or emit the Approval event\n            _approve(address(0), tokenId, address(0), false);\n\n            unchecked {\n                _balances[from] -= 1;\n            }\n        }\n\n        if (to != address(0)) {\n            unchecked {\n                _balances[to] += 1;\n            }\n        }\n\n        _owners[tokenId] = to;\n\n        emit Transfer(from, to, tokenId);\n\n        return from;\n    }\n\n    /**\n     * @dev Mints `tokenId` and transfers it to `to`.\n     *\n     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - `to` cannot be the zero address.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _mint(address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner != address(0)) {\n            revert ERC721InvalidSender(address(0));\n        }\n    }\n\n    /**\n     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeMint(address to, uint256 tokenId) internal {\n        _safeMint(to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {\n        _mint(to, tokenId);\n        _checkOnERC721Received(address(0), to, tokenId, data);\n    }\n\n    /**\n     * @dev Destroys `tokenId`.\n     * The approval is cleared when the token is burned.\n     * This is an internal function that does not check if the sender is authorized to operate on the token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _burn(uint256 tokenId) internal {\n        address previousOwner = _update(address(0), tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from `from` to `to`.\n     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _transfer(address from, address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        } else if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients\n     * are aware of the ERC721 standard to prevent tokens from being forever locked.\n     *\n     * `data` is additional data, it has no specified format and it is sent in call to `to`.\n     *\n     * This internal function is like {safeTransferFrom} in the sense that it invokes\n     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.\n     * implement alternative mechanisms to perform token transfer, such as signature-based.\n     *\n     * Requirements:\n     *\n     * - `tokenId` token must exist and be owned by `from`.\n     * - `to` cannot be the zero address.\n     * - `from` cannot be the zero address.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId) internal {\n        _safeTransfer(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {\n        _transfer(from, to, tokenId);\n        _checkOnERC721Received(from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Approve `to` to operate on `tokenId`\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is\n     * either the owner of the token, or approved to operate on all tokens held by this owner.\n     *\n     * Emits an {Approval} event.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address to, uint256 tokenId, address auth) internal {\n        _approve(to, tokenId, auth, true);\n    }\n\n    /**\n     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not\n     * emitted in the context of transfers.\n     */\n    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {\n        // Avoid reading the owner unless necessary\n        if (emitEvent || auth != address(0)) {\n            address owner = _requireOwned(tokenId);\n\n            // We do not use _isAuthorized because single-token approvals should not be able to call approve\n            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {\n                revert ERC721InvalidApprover(auth);\n            }\n\n            if (emitEvent) {\n                emit Approval(owner, to, tokenId);\n            }\n        }\n\n        _tokenApprovals[tokenId] = to;\n    }\n\n    /**\n     * @dev Approve `operator` to operate on all of `owner` tokens\n     *\n     * Requirements:\n     * - operator can't be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {\n        if (operator == address(0)) {\n            revert ERC721InvalidOperator(operator);\n        }\n        _operatorApprovals[owner][operator] = approved;\n        emit ApprovalForAll(owner, operator, approved);\n    }\n\n    /**\n     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).\n     * Returns the owner.\n     *\n     * Overrides to ownership logic should be done to {_ownerOf}.\n     */\n    function _requireOwned(uint256 tokenId) internal view returns (address) {\n        address owner = _ownerOf(tokenId);\n        if (owner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n        return owner;\n    }\n\n    /**\n     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the\n     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.\n     *\n     * @param from address representing the previous owner of the given token ID\n     * @param to target address that will receive the tokens\n     * @param tokenId uint256 ID of the token to be transferred\n     * @param data bytes optional data to send along with the call\n     */\n    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {\n        if (to.code.length > 0) {\n            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {\n                if (retval != IERC721Receiver.onERC721Received.selector) {\n                    revert ERC721InvalidReceiver(to);\n                }\n            } catch (bytes memory reason) {\n                if (reason.length == 0) {\n                    revert ERC721InvalidReceiver(to);\n                } else {\n                    /// @solidity memory-safe-assembly\n                    assembly {\n                        revert(add(32, reason), mload(reason))\n                    }\n                }\n            }\n        }\n    }\n}\n\n// File: @openzeppelin/contracts/interfaces/IERC2981.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)\n\n\n\n/**\n * @dev Interface for the NFT Royalty Standard.\n *\n * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal\n * support for royalty payments across all NFT marketplaces and ecosystem participants.\n */\ninterface IERC2981 is IERC165 {\n    /**\n     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of\n     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.\n     */\n    function royaltyInfo(\n        uint256 tokenId,\n        uint256 salePrice\n    ) external view returns (address receiver, uint256 royaltyAmount);\n}\n\n// File: @openzeppelin/contracts/token/common/ERC2981.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)\n\n\n\n/**\n * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.\n *\n * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for\n * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.\n *\n * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the\n * fee is specified in basis points by default.\n *\n * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See\n * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to\n * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.\n */\nabstract contract ERC2981 is IERC2981, ERC165 {\n    struct RoyaltyInfo {\n        address receiver;\n        uint96 royaltyFraction;\n    }\n\n    RoyaltyInfo private _defaultRoyaltyInfo;\n    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;\n\n    /**\n     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The default royalty receiver is invalid.\n     */\n    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);\n\n    /**\n     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The royalty receiver for `tokenId` is invalid.\n     */\n    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {\n        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @inheritdoc IERC2981\n     */\n    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) {\n        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];\n\n        if (royalty.receiver == address(0)) {\n            royalty = _defaultRoyaltyInfo;\n        }\n\n        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();\n\n        return (royalty.receiver, royaltyAmount);\n    }\n\n    /**\n     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a\n     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an\n     * override.\n     */\n    function _feeDenominator() internal pure virtual returns (uint96) {\n        return 10000;\n    }\n\n    /**\n     * @dev Sets the royalty information that all ids in this contract will default to.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));\n        }\n\n        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Removes default royalty information.\n     */\n    function _deleteDefaultRoyalty() internal virtual {\n        delete _defaultRoyaltyInfo;\n    }\n\n    /**\n     * @dev Sets the royalty information for a specific token id, overriding the global default.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));\n        }\n\n        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Resets royalty information for the token id back to the global default.\n     */\n    function _resetTokenRoyalty(uint256 tokenId) internal virtual {\n        delete _tokenRoyaltyInfo[tokenId];\n    }\n}\n\n// File: @openzeppelin/contracts/access/Ownable.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\n\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n\n// File: @openzeppelin/contracts/utils/Base64.sol\n// OpenZeppelin Contracts (last updated v5.0.2) (utils/Base64.sol)\n\n\n/**\n * @dev Provides a set of functions to operate with Base64 strings.\n */\nlibrary Base64 {\n    /**\n     * @dev Base64 Encoding/Decoding Table\n     */\n    string internal constant _TABLE = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n    /**\n     * @dev Converts a `bytes` to its Bytes64 `string` representation.\n     */\n    function encode(bytes memory data) internal pure returns (string memory) {\n        /**\n         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence\n         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol\n         */\n        if (data.length == 0) return \"\";\n\n        // Loads the table into memory\n        string memory table = _TABLE;\n\n        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter\n        // and split into 4 numbers of 6 bits.\n        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up\n        // - `data.length + 2`  -> Round up\n        // - `/ 3`              -> Number of 3-bytes chunks\n        // - `4 *`              -> 4 characters for each chunk\n        string memory result = new string(4 * ((data.length + 2) / 3));\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the lookup table (skip the first \"length\" byte)\n            let tablePtr := add(table, 1)\n\n            // Prepare result pointer, jump over length\n            let resultPtr := add(result, 0x20)\n            let dataPtr := data\n            let endPtr := add(data, mload(data))\n\n            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and\n            // set it to zero to make sure no dirty bytes are read in that section.\n            let afterPtr := add(endPtr, 0x20)\n            let afterCache := mload(afterPtr)\n            mstore(afterPtr, 0x00)\n\n            // Run over the input, 3 bytes at a time\n            for {\n\n            } lt(dataPtr, endPtr) {\n\n            } {\n                // Advance 3 bytes\n                dataPtr := add(dataPtr, 3)\n                let input := mload(dataPtr)\n\n                // To write each character, shift the 3 byte (24 bits) chunk\n                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)\n                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.\n                // Use this as an index into the lookup table, mload an entire word\n                // so the desired character is in the least significant byte, and\n                // mstore8 this least significant byte into the result and continue.\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n            }\n\n            // Reset the value that was cached\n            mstore(afterPtr, afterCache)\n\n            // When data `bytes` is not exactly 3 bytes long\n            // it is padded with `=` characters at the end\n            switch mod(mload(data), 3)\n            case 1 {\n                mstore8(sub(resultPtr, 1), 0x3d)\n                mstore8(sub(resultPtr, 2), 0x3d)\n            }\n            case 2 {\n                mstore8(sub(resultPtr, 1), 0x3d)\n            }\n        }\n\n        return result;\n    }\n}\n\n// File: Ghoulfarm.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Ghoulfarm - 1000 Zombie farmer with straw hat holding a glowing jack-o-lantern on a purple-orange gradient for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 1000 free pool lasts (gas only).\n/// Every other mint costs 0.00007 BNB. Max 50 per wallet, 1000 total. Collectible only, not an investment.\n/// @dev Art and metadata are generated fully on-chain from each token id. No IPFS, no reveal, nothing to set after deploy.\ncontract Ghoulfarm is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 1000;\n    uint256 public constant FREE_SUPPLY = 1000;\n    uint256 public constant FREE_PER_WALLET = 2;\n    uint256 public constant MAX_PER_WALLET = 50;\n    uint256 public constant PRICE = 0.00007 ether;\n\n    uint256 public totalSupply;\n    uint256 public freeClaimed;\n    bool public mintOpen = true;\n    mapping(address => uint256) public mintedBy;\n    mapping(address => uint256) public freeUsed;\n\n    error NoAgentId();\n    error OnlyWallets();\n    error MintClosed();\n    error BadQuantity();\n    error SoldOut();\n    error WalletLimit();\n    error WrongPayment();\n    error WithdrawFailed();\n\n    event Launched(address indexed to, uint256 indexed tokenId, string agent);\n\n    /// @notice Contract whose runtime code holds the artwork bytes (WebP), after a leading 0x00 STOP byte.\n    address public immutable IMAGE;\n\n    /// @dev The WebP artwork is embedded in this source and written, in this same deploy transaction,\n    /// into a small storage contract (runtime = 0x00 STOP byte + image bytes) owned by nobody.\n    constructor(address initialOwner) ERC721(\"Ghoulfarm\", \"GHOULFARM\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"52494646de3800005745425056503820d2380000f020019d012a900190013ec158a54da7a533af28d40b927018094ddaa783afa191939346d83e265abba41d67c93ab8635f986767d5feae14a79c3fb5e890f71e9d7fa96f27f373e6d1ea67fb76fceef50ff6fb62f6dc0105e5eeb9c045feee30ce4960da06f181d458cead0ae4f483504341bd30facbe954ad7f392529f9176027a9b89923ad0834f46e8165f761676cca0cd49c54bde545c23d3bfe8646a356fcee7eb532d857fe4211528587dc829139e326f64271e9fcefd789aa0b2484fba2713ba1adb9a92dfee2ef514932d112a2b5ac209f5943de85a7c4d92095ab2651fcadc607997d5dba2b6d3172cfc5a51da9d735717db4914dab51f5eda98524ac1920541125c74db260239815c2a3cc631964eadbb06ecd02fac2846794987d1b599a3ec2585658e7da56271b6abc8fbd0cb27777e0f088416082836fc19af2538ffa9b3dcf4b27da0ca303ecd2eeaffa3f7bdbef9ab5d72ab37091546238841310fd9a71bb4a22fec87211896326adf4eac5532e9d88ccea6f5e7750aeda01015113deb2ff4b279e86c0651fc279a768369458b4e687039f3da21ccf3281d39dceda9725c5e0ee8591b0ac176efef338ef6b628b7d4c60598cd7041f27d5f69e473a7cf8a3c7ae2be7a776839ad654386021a4acb8469cc6d15e88d41c6b206aff39e1a4f5bb4c6b938fa2f313f32deadd088902ab94890a3699369a1fe341a108d2e2e4df9e6ffa2fa17d1eeaec84db8c34bf56d7f19cab037cdfd091692b7ce16da92737d360c30d9139a1d74f817e5151a5cdd22585455d6a91d3f49a73243372d5354ddb7a461113870ef9a4a064c95dd7f1e7c0d3c18a48a833d10bbf6d3ea43a906c97d7aeed56c685b49275fea634470089aec02b5fff58aec9d2e03c741c646d5b9c5f8fcf148983747ff73c37649c2d9c9da25323105c23f2722aa8b6bad1d8851fb6c367abe1c677377869b38e89afb06f1a76a0b14ff4fb93b48a531eb89f09224b1c56988eff23bd31172ba14310de3d30d77fc42d4772d45a6808d0b5eaa7435b30b3ce894f0d8936cd900ca35953455fe222dc6fd67434e270228b53054967343e78be9e5d769ae8fa561d27013ceff471a7b8732c448d9e88c3c7e66dda1daf716cd01b1901fb9e763d413772b2dac0ca7cd895df50ff954d6b6978e49fa4703fba2cb6ab504b4edf45f83a70a1892d87e89e049fb318b005ccf3b5e69e273359a3cf0504eb4923855b61007762bd869196f41cbe376c85672c25b1b2368311e93f4975c407e7c5e48c240be5ce1d76b40f63ceb9662af07e013d4848c81707a1451e69b6d004a99048807a0ee2f8af037031aee752643f9fbe433884bd8c278cca681df7d8014451d885e536982372345409b0b41cc19ccda9e6270922eceb41e411eae26694846b84423ca6a92a0ceb0ea737612babb355c4c4b33d2d1052ced42bec20bb297cf270babfc07feaf8023a7c82ca17c2f24cbbe35503df0b17bac3fe054151aef24e6847da71df194ad8f76d926755f6814aabd6d77009646c3752a188831fa76d1a071844c8a451c6c508dae87dcee253c4f510d470d61ae3df9699c4900e1bfaa89ce8bc2603e63b63ca4b3421c7fac7462c50de14f6360fa3db711a06eaeb1a2d9069dec2b51e4a9806817b0bc188236cecc756eb4c7ca858618d47cb5f57ffeb0b4eafc56adbe677ded934cdceac0a4c8d162bbcbdb9fb8d03aa17679ba23785b7f9451bd5c8dded4ff0344217f0dc6c1cf40c7e8a43c992f7cc5ee7538d446a3d443a2d085f0776130b29c117d5eea81a6fead9a83050360339424be653ea37ab216e134d5023580fb1def8029643106b9203498f7814c1374eea3829dd6af6c2d08bd7f53b9b03ead9b92f25d7ae34dd5141a940fb0fdc9bd143c140b0eecb82c0fe8bcacc6f3a1992079bff1797f87125582620b3908c7b279a02a3dcba065531d220dd93252f25e63a35d42af854362fc509a675f7728f469f7e32e4ead431a5af7e828315c66990cef5da34e47868e56cbd10862a4d0b981f6ff87f5fc06466f7f781e2291fa9f0bab2130ebabf0efda2d366f9d5e54b77870472478a3191605db09ff02a9e75f532bc29c9ad24b771ccf9dbb84b6830662b9b7cefa2b309a211d5d01ac1f0e13ef6e0e894338a119eed6ef3484faf2dcc07e1b493f203dfc72d877f247f87a8502a14917f9b68b3bcc81f53e0e6666b1ed06af4f02b7c5777d5e9563fad12244cf7433ab42305543cf1d2e19ae281e16dfbab20c1caf783d26c832f1a4263b20999455588e5edac0105c3b0ed90447c20d41039377652ca2b6bd782c90f68eb8444dbf7d05833fd20449b345b9494d838a98cb799de28a6c6ddb66cec0af383dc29fa8be14c88124749bc9e3da3d186a1cebe79c23d763a5f3a902b7433f9eb0f9aa37097efc7c7d6c8470c65753dc869d9a54b00d213259a5f22163948025201edbfb3cb9876719e5ea448274a1f8272afa2a950bf4dc0a400f994d6dc2c1254cf5e3128d38e9c1788062b5f64e534f7d71a96dfcad8d161d84e2a1fbc62a989fd0f08e6ed5050883c6ae71f8cf836cedd21d604827c5ea900283ed7e692a2d2a13cb6002d36da3e3ff1b756a3b60af7b5115d76fc4fbbfc400693eb652c8f795d42993ff4e1ee5f1f6ced7d46c1ffecb4365921fd37bca9f351e189b01ffb79a262d8992f47bb3ad90fb3c8ee493618cf0720ad8fe7b128414f63ebafe29ad305eb7cac4202d7c9746ab8004018412abfd806db26cc6624ceec30ddd36ddd7122c20c18aa9f53f3f49f6fe80e34fe26f23ad58804280125daed9de6e4b64b81f54fd3897f6c39f58511839760e449c89c9a1a5ecf3d67e1b4b578fd72694021db91dad522172412eab4003b258bd2cd8e7110660e078afd604d4ff6d161b0375cec1194dce02be0fbdfd812f5ab6261aba2e30107c8e8c83c497adbf61dcb7d4f38f9fd345bf7cd3fddc7d119c0cdf61b461ebf8d5302d14da1111845112e3a84bb3ce73b1659de4768dd0a355014725ebb2b3c5ab6c1237c480e84b57291532df603812a529992b99f94afdab4cc412283896a25f22d7ae1abbe2a0f7c68c9cdbaf95471734f46880289f73595bf1b099d20c79af2f0dac33bc1bbac47ed56ee3fc69fd9ec715f866ff1481b8c7f84f56c08843a3615de75cbaca1de0b12a848eca1d9f9a09bf295d98ab5e80a21adf776ff8888858a24fcaa1412814e3ab76919512b54598652a7d3d1577f6dba003d667dbe0000feee83970bf4a6b530caddc28d6a73b70b65511928f7373949e0a8f13827554e54e4b24d28326e6381fd7362573472e5884469a460703484541c93bc3991e84750872cdf964835d2b04981f1467b6d6497b40fc58f2661a13b58dd637d4c8c761d2456c636ae56f59849659cf61ce3ba8fad7db30d13293a70a70fa7f0c8a72522f8810f6f770b20c5f131fb7b19af30ed7024bd10f03c1d5abc0f985cec6fe00355d873ce7a9c72c5558be9d60a4752a0675c4e824ea7d2a102633b856f2410639e812ba25a7793574e304db6dda23f550ccd780004897f4de4670364115fef73bf3e028f8f852b33e7ab36666f0f60c57f22a9837133ca2786e34f8074fa2e33e8e90d25b6c0d18341d7c322d8e80e4c84c385695bad7715aadac95a147edfff9ef52112f25724ce0b17258d70c09b7f67dd4d44fc8864d2da10905e6d5fad02e7dd2f535397f6d1c0291ca08dabaab44e4a4d79abec35158cac4721cd6886046c065ccab5e1a13026044de756dee372f489ef138baad510a9a2230f92dd7f253e2c92d9204a08f3f86f49f65388a43e727e59c3e98be06bff9112841069076b9610b512995291c82d1a6a065dced50168d08e807375e6db22e138b35bab067d3fc9fbc444e91cc0a808f533cbcb30bd47c8c75482ed8e2d31b94fe1ef8db1b5ee1d6d0e41eba96ef985658a0f3542dcdcc39642c3453588d46aa6f76a7f6be23b6d46a44e7c38363c12b99ca847f782df165fc90efb41b1ef6228e46706a6e13597e2c92a2845e8ccc19ac92519c2fd35491b2cac158ff088efe36a39474bd76042ea810b325e0588e6f348c98edac930ef64029d0d9d88d876b31d956c2965f6eeebcbc76bae0d16a58019fd692a30e53393e96bb1e7cb90327cd05d01c99149d05a9a9a85f7b2141834259a8728e5050974fe349b1ef29cef46df841290aec04f98541882465cf8f06e01d1a66c0b8e38b47e3cd7f21c0bca4f0d74d3fbb4bca4dd95818b71b250b960b6aef0107d9376410b11ccc6aad95ee4292fd7e64f2ca9aff7e1bfa5976af12d60d8b9a48a7939223d2cc1ed2f4d6e0613970d0f433aa03876fe4d352167f718cc8056142c458f7073d81007525e62a23b10356f730be8ea0c89f772c32c2897924044d5ddb796dc47fe6fbb49ee88b07dddb587c47ee9e01edcc293eb36a9ec5352d255892cf0de590dc360a5ab58432ef13ab800e137a1406284bc94b5fd606729141f36cfb5657b97bde2c547c84da5d47ce96ed3aaf7c983a85f5faf2c443afe36a9b88bdd89feedf89767c899f8bb9b7d71fb5add80027d3162102c029be5606e239ca591a52904a7fdf211e0755f4f75f948c6a77682d9835404879a11c7d3d042c8cee6a6ae7053d7d81fe16e524436890a7896493dfcc1db34a86b754000f997373e3cda66b7ede120df6efe96e46a58a165c503903fabec228e71ddfb59cb29613633c0ab32b6b7f57c3e44c66f2713ae1524ebecc651d4bdc9a00b67be16c079201fc5b0fdc97ceae2835526a9a210515d207c5649d85c2a2130bf608c9b9e5b4d5eee50f06165c5410781da10b92f7593d5f2820f85b6e825ba2bc146ac66af09a26f19eb5e95cfe85fd2f14ea83936cdc576f91b84d1e69a29118d60c0e55d7e39357619021155c2e5e47e27fc6f7d124e3ae4e19dce8ffe599abe723f1cce6e89e1f2332fc26a3c34e29816aa04878af04020869821aefbae928aea48aef5642c1192791248ba5133aa875ae7f742ca5a28cc2d63b3a7548e096067ef184e866e21fa826574a8fed57ca1faa87be49443ba02f7f37b3fd1c0020f80fea436bbbbb4659d376bba1372d51b5ba24e62c6c7fc88baae4ddc34c1af25e73e59e4fb89221a894a3fbc2c67be005e2648c627dfa24f5d4953490501db5bba3209096c1a6b2fbef04b9f82a094e9d15a4e9cf15ea71a3557bc49d0895d01fc742d04c655e9c9fa71c39ac35dc129454afc89bab756651c486a68252a7b5d3394d036cfc102fbbf54c60934432002de5c2f1baa413e266213d276ad01449bf8bb9c31514b27a4d58b5aa095eea558a744847b234b7a426aee3f705cf25422cb9160fab0058ee7519821c328ab26e7abf25a50943bf72034ea03d9b812ebecab02263e50453332be7c6e87011d3ff2af366371cf3245078f419e233267ad4aa27e06af0981b11649678358db44baf1f896c42f77aafdc7daf9d98a7a3e6226f5e25da0a78804c96cb3e974dd6ee62024e13955122330d42f50561cf05f274de8ae59f3113826812e286b429a3e91b3473d4a357eee7e0a67e13d4457e265bcea5a49e1f64e85afd5cbc0072356cc8c1737e231f57590043d667f89b4c24c90cf6076a71f3a5ede67da8a59e29dd16ea8c6ddadcaf95894ea9bedd03860a10ce465d1474d95b25c6214d6ff6cf0937714bf8cee0781af100af8b2b7159ecc68607110d75e1de2dc0dc390ddbcc311723164b65c06b0b4643cddc76c9c5c2476a048106d35aed1fdd21c8a5ed5dbbe162c56b574e628d6f48a73c547345a40cf86aa3e2f86b7d031628fe381b8b920325e3326b87012a1552efb6629f5f76e653108c271290cf78156f52921059b45cdb1f2859cc59ec5d6544e77ca055f4e289d661279511ddd950420176ed54613c90e01773876a67d8491090d864043ba6b0f32268df06c93633b947b61b0ec10afb7fa36aeffcd75484a89639039f34da0e500b0c25c7350e0535cd9d1be42097680a78596a2db93cab781d1e3d00cc96a9abf9c544ac79c2086ba48eaf7264f91902d872f8c6463e9577399e0c5e692f54f2f745195a71653cda3d21431f54c3b054a8a37c870978fa64bdcfe4222d80cb6f288a1239f036373398b7d834fda6f188bfc1176aaa347a845896013ab82056f94f3472cdc5dd2b0b7b735044a3066e9b1d00656a64d056dc451623e6a9ad2beab052a41c080ce954a67884095783c547eb781597ac4023952ade8dc2bd8b6cf792ba83d60f2d10ffcc561fa70162618250cabe2d4f42f7a67fa7190260805404a08c48bcd7d3d32572dde8c12824256754d3a305df8bfd05aefe449e7e4f0dc5bc0c9f913963554f51577687b9edb40d256eda4e8e19ffc1c0ea53a2c66ff8fd8e3fc0154c256609b364e2bea4efa2da88fa3ba69dd4c2b4fef047aee915a275d6ff006ab33e98afdb27eaa5dd26df01c473837833e6ed8f2ced3faac49ec05448222b48ad6cdd5065d45a5b518db6d9de954561bef89325257b748d509d251f819f9e114cae22e69d59d5d32ea3b3aea11c1db0ad851032e3d965245bb782f5168932917950db4ad59063464881b3b398358228060bf898f2906475988d3c5a1292d3b8bf02e8b23d746c1124cbe9b56e194bd5c6f1f81dc548309e380c255ac19df7931f7cb6dbfb4724bdc4ec7b831387d4bc687457266d793edc0393d77000340c45e710b9af2cb3d5de994c8b5eec58d86c7597aa7aaf791bd413bd8f85e43c1359512345d1e554ab41b5c34f1e6a35773a0cbd5f524e0f83c35bef77b58600046c98cb9bb84df9bb2756722120015f3b743998050b487b9ccf681bdf3218862418dc6fe3e8a4f2ad56dc67989312eb8e55eee54e7a6bf602db2ef66ff8548476d709e899114f5a7f4968145b114bc4baa40b1d0d0888d21b48b87b0aaf325f6e2cbd208649180f30be043136757782e77a72627c0c6bf2b7b24d41baf373957a36e45695b9dd040071763df97b23228b57cae9d8e5c3cdb06cae57e4ac407d94a4e38a4c83951e7c81b3634d87342782ddca8ac98776dffbf1bf51fffd13da661a942dd926b08795222bc251cf5abfc3344e1c9509c259e4f6884213a1896d97baf5d94969c62565f420b8c610637e9a45a7c5195c0953a5fad954f981cdb0229981d00283e5273e080cd506a61acc96e6a14e4acfe97dbc9d56b94943bce43a88e989c5bf345701cae12da13a48e843a37f60c84c5f6b9a352814ae671364f68f271eb7094b8d36231e36cd9b26a1a3eb1274dac8eafc5db321ec233917994d234d960d610b712610d2fca97a3252acb59c43ff8ecddb2cc11195be3c80d773ba080c6d84d430be6492427f26ef24a7a7b4809afadb1824533922134848313156e2ede449c04ee3c5f2bfd73e0b5cd92fe2273d015ef9874eefc1153b6c3a7c864846561ffd64c60dd6d189d7d5036cbb1d6a93a307975102f0237daf303a694c5b698af17e73cf2df736c590637ee2474f1485bbd037ab4c87436d4a57ec9c9377d277f87c6b39c74b853f0f9b86bb1f0fd428ef92753a222595f5c5b8f8fafb2402aaca6c415e8591966ddca1cef2438b35407dd11b49b2fb3858e015dd5d2003eeb4070e6825308ce95842b81a0274f639049a2e4064f4660266755de41773de8d8fa037219df51df15528e89977c5e397ee805199bcd378cc4fc77c40c8139bdd79bb18df7525316ead35936219bbda09412802d86ca63a8c525d2f448fa26972ec8eb022182e315630b06f6b838f66a9b3f504b70cdbdb5e60d3b4a0ab52ad25fe1e70fad1447a38ca019d2a98b81ef3bfd38592544e44ea1eda306a7a0121aed112b8823588651d80b0daec8855baf62e034af4b93df7fc10553f14bf32db59170ebb6305b69feb8dbe0c1379b00de4e5f16d64432a8c6e6ea6eaa5e7a752ef52db9d041dbdeb370a72a9833e32359acd0cd51911813d91a4758ef3d038431e56e3b50df6a0443bbcc3f3e82f8f094c361bb049c4b21cdc1ff75e59f9095ac288e6b7e6349ea0ddd260b6935044520de876c3920d6f27de98b78e1e3efb61656f4caab2d27f9bff6f0a8eff7e1892a78ba28b177c77bf0884e7f11624511d8f74a9cb3ac2482dc3521ec28d391403ffe8a1d6dc7f3074b8b596d365c3f2d9ee7f4332fa3b7c305c30d16b73f8e0fc779bd27675f53f1dac5d66872dd2cfd8fba1415401f9020ec9e2cd186deee9aa06c677c1246a2e4c3b9985e4c112a4ec3bd77f70763af7f59d1c4cd6c30bd2e1fba9de42dd9128a27994bca5c97e584a06232586ec12eee75cfda7693a6637c2e5a927560a1136d7936e14e4b23ca3f81ce245ca5a24f4142c8fdbf81a5a481326574cec87677b43237c1909b0adeda6f65f181333c034f2ad2be73e6a3b284d4309a18bebf421f4bed78eca226ed0f24e254394bc127a858c6a2a9cfa4fda86c37ac73f0fab5fc540aaa840bd1c5b5257222e15fb21b971ff40021156fd4d3b756782bac78323a9d526286f9c1ed8f3e0f329c5727edfe3e011104d2cb115f760f91dd331f041c180723e8a1bf1e137e03b4a1f02cb10bbf5e044bac6f72ff317353405d6819df5a815c7bdfdd0af66569a4f3c42b5421cc4b5b865ac92167964b7e4f7db9f8ccbd65ef1ad96a4b640fae8f0896475dd5505142a206556bb7ba01e0172a0fe4b34d0cb7d994fe59c40dfe043127fac1cae1a8ab3fff596b838b10d95e56c514ce7caf48d6470292797e15fd870bd913b10f9ca9c234b37dfa1405d885b4454d02495fbba96218d88cbf16642a5490f2bff93d9cc9d348f4ae906cdc3efb0e9c61bccc140d5d92ec84d250530415497722aa302585353e20926d9deee87ccfe8c62c1dc40880f99dd041a91198b679510d1804b5c48cd13aa6b4787dc2b3040cb1e8320d22bae93aba4bd76fe9c2c0b366850d23bf05a46c6fcf060ab1240f8cf4da4ae5894955bed467e15c94a0463ec9ff48974db4088ea9385c7b600347add11a38def6e725b4ba8a929f667f747a1c38c7658573e8bdeb5fcbe55440be74f0dd51b12a958fd79adaa47d09c4c22c6d5275b0e9380ccc4dafb517472187b24459c1fcf35e8f060a8c82f9f61fd5722e03f5ecdc5b679eeb090cb841a299512d8c1dc142479c6335a43b753992d0daa12f435e3f7eb4ad01f1365461ddd26d440316009d662292847e661b51ab49822f246456caab428e7bd5046ca20b5d1dace6c3d6f9b2a0d4d977506fbb0f3dbf19b289c45bc3afac2323ce235722e84615cb90c583af6ad9af3b8d3a20b35066f3455f7b6229bb9085687d6a6f0ed5e2e85747aba5742c6a1609a2e2ab8d214d386d40d05dee8c708b1ddc5753fb20e1a4fd47b35298580393d1b6407d876dc94689a707b1df2d5b080ced58da325a86910fd3a5fba5c26d8af1091d7ec65a64f13ce8c11d41bece4510a5ef9ace17ebabc1ec2ae3e2414d6c3dfa0f88078e56e9a77d852bb3a1d8b0a0165df1679398ea16ced3fedf82d036128627288df872eeb5ecc56a122faaf9b29ff8b211e66dc99fc938d88c65b12f1d0a0356212b4e21f1db3743429320be18adfe7685219bba2d14d9ead5717e64af2c0dac5f6e2fd8cddfcfc490587697c03d8bb3caf45c4bdd7da777051e638851fafa82afef039a70828ee2f037fffdd18c3b6a351023ea085204a1f4526f4cfe5280d0f06563c126792a5a9491bb02ce646d71ec51b360885cb9a9c304bba2fe097185eb8acee224e41825166143677f51e6e7acd654616b4310563ed25da093c5ea58978cbbb4a4afede9c142dc880db1f8938a2bf40bb074c970a26f80a27aa7bf15d80439dbcfe4b8bc8ab04a28db7f498d8080ad617b7560533b6d6b1cb615aea6f388ba31dd88bd84ae5a6a1246b529c9fe338f27a642c0b51eacece1b5cf8a07fd15cc0614cd620dcd69227179c45d327a07756d71d21c0879a9e02f67259200abc1b47b588740b20a0777c4dbb9a455caf69fe47728e009591dbe912de0a1eedf8b60f79fa3f41699158f155cdd2b7c2e513cbd465fb67de50dc7f85d1c59da5cbe6b73d08894260dfd430eb771f2811da5e69b36e84b29b13d8dbdbd0a2d44d1e5cdd3ff3ab136ff1216b7cfbc9dce1bd4a3574ba6500fa101b26053886634d5eeffd1e86837dae6a7fcf60b49522bd302e854f814753dd9c00d8a4346e8bd7c8f44d5ae9741ad100d48cd0921a025a70d7adfd4281d6ecfafd84c325040ec239e5f3784564120e3a96650b6cd1003cc68f41e39e4dbd45aec7f5f2b3190f1e185a99b09f6356480e4b814c8e29821250e5a5b7a071efdc476ce08f30fb5b4cd50b6102b86f130bff48678ed97c947b38812350c2709502cde336404a65ec4523d458f9952b93a7206656c9c6ea91857fc3dcb6c2badc9e1a34a2c5392fc40b3d42efe0b99ec0093d8fe1ac16b8177a25f60d0582da16246991ca43d286d2590bb04cb26806ca73877e05bff47455105d9370171bd8941164236dcd60ed766e4cf74199b806628ddbdceb961d23068a1cec10a5956ef3dad7bf0c6df9cf7e3a7d31abce0e217d4e3ae0d57d837308cb72efc00cba2112982076a6a570c9b7a11acab865d20a361a22739a3abd6f9181b3ecf38766f32f69db903597bdd3a77fb50679a2edcebab4676e9039f6c721c1bf301e77e5dc8d3d1dc34385724c76bbe5b9d6ca4bdf01885ef6f8b17f58c0664c215e229d9971d2840abf2620fdb34ec3a2476e54ab51349ffb87aeffc6f761e24467e9ab0ca121b363b1331c6c5d13efb46a3b9d4be858e3f825249b069b693521ca674591db0c635f7fab921efdc0e0445779c8ca9453208882689ee7396d6d89acbdc8ac15e5f55ce1518784cb7f1b7b5f4492008675853879db0398c9266179ad15966a2fcb203e23faed8f15ad0d689659e77bafd71dfbdc2ea53f797450b34dd707b1400b2d9f5bcceaa677edfa5924695561f6324e04417105bade2175e801a70b4eb018c9d21a2635ad2e233e685abf607d1b415461c248e3880f93cf2e6e8d17b2c61c4f4b489452f4ee13a3811a4a309bf8785ccfb9c992d2fbb6e95ae2e98e4b3d0d2214943cb056e4489bcb4c55c0637db695fe5d8218ac358121c95e44685ae84b162453639689f45dffc0d4efb02a1e42253336cb9b85cdd4e2dc4204030d60389669401dead36e5fb5e1d25b39bc71e96518696455404e4149b37551f97a0ac6dd9a182093204a602c7374324ef9833283e0f053e568afca2d67385ab91d8e497618cc7ef73dbcf1c7292d39609cb211d36470d78dcecca082ce27db444be23b131416b026ce6d5796cd05e5d67399db7a47967129af436c8a74372fed8a16f95333652d2e763512c8e8cb7101dad8f21d3ad41a447546320cce31692b3c0e31d84d036392855c626921a3536d95a4d8b1a86b04b56d61d31a38eb27fb7f75b3c82d6330d5e03ac5b02250574ae797fa1a82bfa74e5b11caa34ab391366be6c72e2353c203789b2a8b2beb49ff62ab8b957e70b5be1a1f2a544c2117ee5488903c8b416852783a0be6d15f756c3c752e611fbf4ed968ebff6dea155e440cf1cbe0796c2588e31eb063e0f8442dd172aa06d7becc02b37f3289ade98c4c9ba68fd507e92e0311fd49998db9f9a1e18b0c07eadae72e33dda077732ec0ee5beb288e49ad1b3c695abe17b79e3c0caa0ec6293361e5a4d648a480dd0dceff10449ee1ea021cfdf260b7d90547280713d5cd15c4eae8aea386cba11645f206b3ffe31042d77af4fab4206302efe971c4a466fd31a9db24d0481124030fd367bcbfb6a7a8b39cfde7eea5282a3a82198a89fc20df26a06731dcdb7ae56bedc5ba752b784c64dda70b5793888d952b4e20f1a1793dbc76b55426b594a4efd45260b93e3b186405ce8809e8655f03b2312514c5d9d97b13bce5a7d365c97b1c3e2ff1b96d8aabb00f57076cb85bb1d29c1bb294d3628c75e0955da9d2c43d77d38690946f40ba6e20b03222eacec0855359c5009166963489f23200b843db963f590cf92669fb4578c8408b41d1fcf9527f13ce1a99101c54809c18305b115ef39fc240ee626401b6534bfc5ac8d6e9bec5c39924b00a6965ead7a33fe2b87232bf79a8747ce805f4e436d6e6c65d8576554cc4bc2e0f000ac778e71e861cb119638a8453e56121852772ce1311c7be002361e84e84c34c7c288f9f61ce9eb4df0b080a6f7f04d2cd0dc6c0c8df37f04492e97753a79b4f4235caddaa95791e1f9494c5145e7e00db98b1e60ad8f829efd1bedb8717c9a1eb39b74648780d51bffb8db8a745365e1918a9d29276c4ab7c671c554e3b04ba239b17490e4c97441ffd1a777d7171a078a7a4ab3b12178cff94144b58facd85ee92fae79cc156c1c813a403889a6fa6373330da3dd1096c394807eeb8126f2d7b308faa188c1e00b6a5987293168b4277c2cef1fa045a98151434a77723f0caf072870b3ca13b3a83181ea4ccda5b28a7b6954b05dca63cb18935fb5df01f287ddd8f0aa81fac33154aaa7e539e3b94dd1ab6b0c31a16e02f0b869acfdedbe79efad89f87d290bf23e480d575ad3891ad8ac95e3460d62e5c9e908ae54c9371c3a8198cf34543fb44054bc627f53988a2cb4ef402b514a61c7b51ba027d7a36761dc29ea5c301bb2fc5cfdc70a4c79042175725fbccbee29657e93d0d92cdf7c86ab647461c5cca920f31b5d2f2901ca42ff0ab2ebce07c692c2894c3346974882af7acc62f6b2c0a38bd87a982e4c2e0c3d8c85562b76bd858c36d96739535ad34f1f0bf8dddaa6a174bfa86e2ec8b7cd630320b3d3e1239f10980a47d7570c1d0371b636bb42e05f597ffc0c0c37765e10d7d7b1069866676ac282817240897f25461192a09cecc028376362716ba58a80c9f903a82816bf9d703d1b9327b71efd17cb6c9ee08b927f58229fba77e6d9baa5dfbd7fecb5d17b66a68933627c21de4761f497cb2517f8e5b829701b302b9e891fb9247991118d772a499fb4bc3e099fb04f4ceb4161d49598cc2d693cae4d646a6ba3534ffbbbc961d6808fb29d47208c5dd275303fd201431c663ce87e6923757f62e15c8e9566d434145a6a61cc274b6e651fc8989f6a499293fe7c1ed4774dc7ecf8359a46ceb36b112dec161dc674e0efa594e03dfd4916ffc1ebc555d18d4db4c9225b83c0a2ef1b9d74a5c4005447b72c025c19965d39f3f03dd943e50cda8605f4d594b0164e8a04e51ddefad60ff13fad05cb7b6588c4e811a2758e1e8a5804ccce415440f8727f91399d87a45cc195f7f1daadb032e125efad2338b7def7ccb705ad47fd3cc134e8be210e5bba6aa912e0be47d742bc2ee815bf450a3c65c34d5b3f2f3c63ea26b2da8ddc5296e2b1bdcedc22ea907bbd874acfc42a16f7aacbd88fc624aa5812af4c3b2004f8b022edc0901a7a442e97d577e8912b0eb7344319775ea3d088b2a841b0191cf7aea16ba119f9188051609d2de41c0d470c82445e8078310a03bc9ac0c3f1aba1085d00ad4de895a2dc55a06f9e6193a30eb7a7260f60c93a6e7d4e20614090b7fc873699bba6923bbd81fd48b6baa114713014bb69e7233a11b25636a25f5a7b552288e431232dbbeefd9c78848060ddb69335b57693b8258a16b51f0bbd097c9032d76778000156da4090146e83c4413137e48268ae4a98e54b8deffdf87ed1e07a1b59a3f28e4ab9305aa24c4151add3a571d824b0910e9355ad2d4c545cc79b7146380bba32e08676ed3f0229583be1709e71f95e7c313e2cacb214c1c406848fc8eab2cccca5d1a034803a3301868771ed562cea230592d9e00fa58a9aa1ae17db8d7b65302a729e782f00e547abac523d15226678aeb5221b0b7f8d8cb518a659c4ebf8d0b1e547b895c4ee815c6ab0bdb9c3f96f9cc53a7034251ab2ae74b47b9648b2614e8ac221f93d92090d97e111e70994ea6b659d25dfd90ad85a773c18283c4b8d18e56ddf14ff49415aef85c574ef60db8614589ead23b5fa0da324098ccb014f38cb1c87688575952b13fed38dfad62b72245b97626bf2625a42b22c8a681eb503156ddb036df7395ebedca582fa2b105cf7b1f60de5cf574934a3918a87cb914ac15f411ff3fe6d6b2e196dd020a676e6204cc8ab8608139de8a0607157b2b0ff4fa8d029971057897ba4b46ab40d4da0862cb93e8f7b2fcca6ed75fa15f730d2149a2a9dfcfc8ddae94c3285a532b8279b241ea73c2f66c76f300ed5b5ed6aaf057522a026d7246df6585a412fd261167f3abe3fc193159d7997a2ee2d21a3f7cec925518912d972b6e7a4861a5a21f7ddad9314cca426698df3b276d6eea96b4494c62e86430ada6c8266a7d36e98a9b81c9f5bc735bf42842f125f4b5e6a269534ef03fafc4c2eda09bfcd8fb4fdff744996eb3bc5cb7777f68bc472d0c7d079d5a6db52f2b07b9e77e6f3f197ebff474bb3f2348fe6b7dbdfffbd40fc20768f24bfcfa29aa035025431175334d7cbe83831cb9da184f1c0113cebd42ae18051c46686093904f6457bc7b6a49b1390923ab5fa7977158d412228d85f7a42f9420dd1d0ed484a73a88f1feab7cd7f2203dc4d2399a14fa9a1cfa30013d6b8ff093976dcb510880c5ef5e5b84cfce8155e23513ab884ddd1862d79a8c8acb8e174687a4c1922e5193909ca817be9db220928c20e1fb8cb30acdeffb520dcdc1f8bc70f825f0d45594a8180299167e8f5b709d1fb568f3d9298582b900c9a6b02631d6291c977bae4f72c231e4a5e4193604b8c6b731681ba9550a81a270dd8047c45b1a2c0ed4479c9218eb0216ea9cb10661fa8afc5e7dbadcf5927c77442ea2474a53e482a603cdc1067baf1a1f306cec6eb5586a8b351efd576c4c378952c8020510774ca70fec8e737cd11a83b5d86237c72952498dc0bd686e8f42ceeae9a63a43f78cfed0feed5e14fc2187cc9845f0ec3ad55ad21a8cdc482c9557a1e188c967bff8b81af21d9cb25d332a05176a3c3c0d90a8c05eb24441ad1c2aeed677e0bf7f519d37fa749d5129d2a1fb64c0765145398b117355cf95416539fcb32973799c9627a6574ca4946d792a396963162ae9c51ae384f950b8498d2d7630e4e295bb50fa85abc9ae0024edecb7632da9403d96d8a0045b59f3cb24415959d3f2331b3e43b0c5c3efb734a3fdc0f13f6c45afbf40f84a099729b71f8df2453e240fc667681687cae31bf6fcedcd8169627e6a5a1cee3636997ca82c4e5b6bbb38d838d5a7d7138d306a9f0261aed2130c4c51f904b7cf551b36113a3cf27cfc48377b748c1a7173e71570f3dc077e449885b59b2a162bba660b8e1c95518aadf9d6e48be25f3fac51b30e98a647cd32b4115b623b02fc3791716c75101309d3677f5c8ebd255680d094238b454fa4ab0657da85fe6cd25ef80e531ee477613fe0181f4d58d5abe5443c36ba69ad5b546f2620a8a9c1f38ba563d6b9324f1523752ae68a4d260a5c137662d4ef4af280277617a5609170476802fc7633ed73d09c39bf64e656772f463a8013bf608c96175f136abb18e1f9e78143e3f4cfaf5dd218332f5c9af9f063e33acdb43a2dfda5edb9b5562f4b5782062825357cdab58ee37b6895d63570d7ec55af5e754e042e9643e3a9118ad2c5fac5aef2fb7ea0bc68fd70ae3af803596c0ea4f92932dc161eb3b9a4c3c1b63a7f4947d8e0416c1ba3d466c8c547d5e0ff9015f530d2af08cc21b6caa7623889511b5972fd7030504bbabe1a766421feedbff5edf9961478891353398531fc1f12340d1d90b9a2d057ab7418e2edd95fa258c6953754534056bd9080997f2a678410e1ae74571cc516e6b176522221aac93516de284f44ae5b88dc362240b5222febbc396f59b11e80f2f515f9757dd0de997253ccf93c8f37113a066e7d637c515cfb9734a3c0d5ce15db56479e7ed9abce76853936dba33e78714ebc60089c618167515e358027dd8b83f5185425445ad637e5726e5b0f652e9ed3bf2faf53c117a025f0f7bf8e49bd7f5ed7d02d78f06811ee91b595d2567d1194e693d1e3ca419bf5eb24ad85fcb6a21abf2a8e6c83bd45a14d7fd005fbdb4ac469dfd2fa58ce4b1b17a8ec1221da6b6439af073f0d2487f08858ff73316508f6dd92793872745bfc6d511cd51e0918f7badc7bee887bc6ff278ea630bdb872456e4d73987bcd7a1434d87cb9692e7cef407d1b2bd15deed1fb08443ecfc10046dbadc763df3de35381ca58466d9d16d2389aa7b7d45089b2028bce6d3acd5fff17fc90520ee639aa8dab4f9fbfef3d22b9b64dd60418c70c87e971f549553b06754ff5df20ffd1e0f3d583ea850d0c38eba7de2132b0c0ef9da2821db5a371666052e36cdbdaf0a72ab1b68faf53ad7d26b2558a3248a2fc9b964d739db6ab5b024d71c999059e0f567c3187fef5c55c5afffdf334a61419ee5b86ce89488e182629731258686bca4ca9ea2d841805fc449f62b63a8baadf59fadfefa2c5e7403d6b034a672b32833513dbbec259e428657e1ac92309e48bc512ebeef9887062173103496ef5abd9130ee96afce0ca1de0cf85a7c94afaa57381dcd73a7f94dcd68085153a1b09813b35ec1e9ddfdc6f7319e2b19b0cad8bab3fbc9126cba6c974be0e53ee9a97a20717a7980a7140203210135a0953392bd1d21ed6a91c1c4db84b6772138cb0adeb02ef3d0be6caffa28f45f36cf9a1921f4efecd16c293ff4b56db492bc5131853d576164a1690d8b6233735097f39d135456e2287c1d7e0fea94dbb8d9e1779b29f28ee552d53fd3f1be1bbd702e94874d1f42c130ed8040f37b4bc42bcac60d6bbb3da342aa4bbeac769f77ba8b9e17bbce53a9bb7003bee1da47fb0d0492094157f143bf4235d221b7f383dda1c1f57d5921d51bbcf368ea2b07111c2fa09f6fdf97d2db707e5e5d097e7b0e70b101308bdd41f13b2c704bc984b4d53e0f1ed2d4a3331c809b186f8ee19977770cb5005268a6fc45f0f3f6afff7a5b1041b13c6cc5df3612bcef9c231cb40ecc763df228d0122d12fbbc5cb8cc844ae0bb727f4e3c05c684f5ba0c039e067addfba6e8d76698170ef2effe3cc210ae461c3ebd7f762401f714387ed8dc8e1c1879d0411d406bc55c33091348e81ce935856876dfb1ae5c37479fefee4742e1d11242cba55096f081ee0bd7735f129d4d23d3722f9182462e0d3b4a9dc8d2c37e4c89213e8c874cf1db787685fcfcb441bd3924016ac6a035af27357d8c05b78eabc84a4986e92363f3dcd7a522838ca8142a6336a6c42b5935f92e400a1f845beeac32a2fa839bba32617059d44d8aa746600d59bb731ec7d62045c70fa1a6bcd84cf4ad44b9961cfe951abcb35372bb346055449df8f387c3e3cdd113dee3e9d396248f17a77bc492c9cbbc021201539aa503f8e424f8974892256ba3fc7fa49bab4da8cb148b71879fac9c1ac9fc546a41c452586a22f6ea55885968aa09142beebc6ff645112ebbf8cb128c7ec3f238d48c77309220161d6453b9dce076483ede8527dd8d0a1059746f72bc1dd820a96fcf03a826fe877cc95197001ab066f60be1471295e5f88b189cb20d10bd9241ed46945c5cc359869db502408ae84f7fcf39d87f7a60835d7c229c7e10b83cd03b3530e8cae04f6839ba00574043c0a242f3cb46914d6cf4596439476ccd010beb801e51201f67de77db50c453d88e2d6711ef80a7cbebb1f01185a01bfd5e58787c15d8908a235cb3139b48a98d6c85743a91acdad038c278ab8f69c5555d853eccbdb2b40d7c443f2fa9b621478c4ffe461fe376d87d2e5e40dd20447998a55e2c54b8caffb29240db454c5bff04aba3dcf2b5e78d074ca477ce734242702d5ba7169fb7a22614f775c34577b622198d495bbac92bc9be0d57fc9ec6a6c33df190cfd7450006d8244f429925737ae084734200b91c52627845c5099eff98bf6788bf6b47bd220a942bb3c9930b06cb174f5d0f1d0d74240f948703e1eb0304e5f85c53da4105064a340310094396cd472be4d2166582756cb7f672583e16ae5f9004d0a79be5eb0bf613be4c2cc5e910a018f9587a090081955e29d9e2bef1fdf8d4d1e22305b1c72fd10387f16e5631ef6a6a815985cab48322f610ce195a1bd9c471e3561f93fd17792bbc669d8b9254822477f69ef71ae8519bd0756d960048d5fbd07b62e6fcb2e2b4c7c047b18f69d8b939b705601fce3c63856159c75e8f8ae12872db89b535c94aabacd8c9041a297d4c43e6470568c95dca850a4083a0c98e300cc007ca7db00670a6620ae631e9d7cca64fe97b22a7db3ae1ac254a63d7bb66c36a96858fec91cf3e4a9eff77580dffaec1914db658c993214f0aea86cf9f07933288f37b0ef6ddacd1d9438c7aaa149dd6bcc8eea0434dd1eb27e5d6b0ec233af51f7fb212875e88a6fa2ea018e12cbf9c67494634bc4e2454847a014752a791966045a47277f19ca64645d407e086b1b8c55216c6090686bf89bec31f4f42c157a715c4193e69360833640a4b0a96dda0d652db0633168a95ef6f81f19889e0a9e349c04c700714b9307fe9e6eac989bc677206c576d1ce7bac0ba6705cdefdf37621fa125645c16ddb07d9e3bc6326cf65d61b00707db86df4c88338ddc34db9c43e53b7cb9140aecb15aece0a40230eaaed52b272524d7636b3849d719ca9fc83e39c7b01e2b456a01402a26cc87a184b190063354b1934dcada303a9e9674ca8d86fdaea5f4d7eb07ee4ad02ca29df04f422c16b5577573d124ab9c56ae2abbf8638ae986058de935011d0760a1a3ccf17212331d16dfa7e5f6f4601af1ee1d8deb90113d0239e34a927071ef9c9afb6f58e272c3fb1495a995a0c2930826a082f9c59ea01a6f4be3efb0996747a1a8f33dc41fa23f8c861645f7e900bda421f092c1b8338a6955614f2fa26d8968ba879cf08dd781b97b7b2e0d7206af3fe8fee11ada86e97107e8068ea7aadd901db2c8ce48f2428ca01d5f7a0c14060fa5605cb1ead0d9c40e9f5358fce3dbc69bf439240b494885ee1f3005ccaaf7f41a0be07e2a210c09dfcf78cc54e44d6e3490c4c87f7b8b53128eb3829436b4c973a6c3f901ea692aaf395e1ba2f8f777f3a81e52e77cfb09341409cc219a67fe2a611dcee68a3bbfcae5754a6334ed4e335e80f8e5661339bad7a0deee70673bcb9a22e7abbd66647b506b724990a31545eb1ed38af33ba5104909c0c00f7a28147f361cc820ecf2d8aa863f992f2e42d6b20e9fd8d78307c749fd25052f63d93740ef1d778197c8bb014a3b75e057bd8e3c10ca32c7de5688ecd3048a0b583e4495dc741129198b8a9428c1c2d29fcaa6b56d04f77e99d767892ba22e899eeff4f2f47aef47bbf06269687eeefc4cec036d26612489e531a5eee8b8da364ce7eae3035ec72ebb8b18a84f580dbf9f2db03e03c60735877c89d81805bc40ad14a3ccc464d516a7211f525c5fd6af165d86b551f10d129f9312b9dacdbbec835be1fdc04e6a478dd4cee66f36729d3a94008d9427239d8c8cb180141c9adcc2365ebdd4b08ce2dec97ecd65129b194d33ca60277c452db794453d682eba3f9d058e3fb0bb5274d54e59267c4e6f443c9609511b1b02993589a8f96f5b16b600b7227e61e0f23ac8ed6922c61904c40ef1a2ea0b9ab58a2b455b4b29601acb720a51a873d7114c59075119a20db1b0f34cd45bbf705852c01e725d93fa11ac7f282b429de9bb05e10c8fb87be87a9cb7bccac870db7528e16b7371338f1034ca6063fc19ab165cb914819479106cc45ab4063e296fb277a826ad2afa8a56fe62eb2b915423159235157ba3a9b37f35f366183ec98462c4b710649443511f90eeb76bbefdd7d9e4b1763ff26fcce178b21881d38c6336e281fb101d13923cc95d614e02f7d27aadce407c250406c094695092404cd26e1aa2dfe5d937f07e7c9adff0485484bd920817dfc8447794894e9463255cea282d1c6226207bee98ac878cb7df5af9f29044512d66e46dcf3a6287d94132346fb30dd1cbb1cf893ccecd0e2715694ca245b02b998dfb613a78dcb19027154d7d06fd52457479c71687025796f406dc7f751cba3947cd05ec8ceef771560c77b9b12f9b41ba19670a6bae3b0e82c31aab0658fa9eeb3fa9aa4bebc1d0d37f63a3528969b8067acbe0bfb30dbfd4e00581c1cb4f5211d844db2ca277e1e7456e861c55a20a983ad866a89bd0747d55441ba53d4c3644bb0a286af323df2bd8fb4cec1762e08fd77e03f9f7c87ac0b9057181cafbb72e21f03f1e5f542aec8d77b7ef23b9cb244956739563d45f304e415fad6331a9847cc9ffafe6ed8b3212d12df06d0a65147137258b2c902acd8ccf5bcdb590432f0ee233f22e296a2a1cc5be3ba65324a1777df9f6f20c5b07f60968e43c947c6874a55c8dd8048abcd4323ead3ed1c3eb3987be8c7654a79fbe8fa2e58ba9ee1d1cbbbaf30086b343b0fa42142dc07b7873646bc29e56dffd606553c11303ad80000\";\n        uint256 len = image_.length + 1;\n        require(len <= 24576, \"image too big\");\n        bytes memory code = abi.encodePacked(hex\"61\", uint16(len), hex\"80600c6000396000f300\", image_);\n        address a;\n        assembly {\n            a := create(0, add(code, 32), mload(code))\n        }\n        require(a != address(0), \"image store failed\");\n        IMAGE = a;\n        _setDefaultRoyalty(initialOwner, 500); // 5%\n    }\n\n    /// @notice How many of `qty` mints would be free for this wallet right now.\n    function freeFor(address wallet, uint256 qty) public view returns (uint256 n) {\n        uint256 w = FREE_PER_WALLET - freeUsed[wallet];\n        uint256 p = FREE_SUPPLY - freeClaimed;\n        n = w < p ? w : p;\n        if (qty < n) n = qty;\n    }\n\n    /// @notice Free mints this wallet still has (limited by the remaining free pool).\n    function freeLeft(address wallet) external view returns (uint256) {\n        return freeFor(wallet, FREE_PER_WALLET);\n    }\n\n    /// @notice Exact BNB (wei) a wallet must send to mint qty.\n    function quote(address wallet, uint256 qty) public view returns (uint256) {\n        return (qty - freeFor(wallet, qty)) * PRICE;\n    }\n\n    function mint(uint256 qty) external payable {\n        if (msg.sender != tx.origin) revert OnlyWallets();\n        if (!mintOpen) revert MintClosed();\n        if (qty == 0) revert BadQuantity();\n        if (totalSupply + qty > MAX_SUPPLY) revert SoldOut();\n        if (mintedBy[msg.sender] + qty > MAX_PER_WALLET) revert WalletLimit();\n        string memory handle;\n        try AGENT_ID.handleOf(msg.sender) returns (string memory h) {\n            handle = h;\n        } catch {\n            revert NoAgentId();\n        }\n        if (bytes(handle).length == 0) revert NoAgentId();\n        uint256 free = freeFor(msg.sender, qty);\n        if (msg.value != (qty - free) * PRICE) revert WrongPayment();\n\n        if (free > 0) {\n            freeUsed[msg.sender] += free;\n            freeClaimed += free;\n        }\n        mintedBy[msg.sender] += qty;\n        for (uint256 i; i < qty; ++i) {\n            uint256 id = ++totalSupply;\n            _mint(msg.sender, id);\n            emit Launched(msg.sender, id, handle);\n        }\n    }\n\n    // ---------------- on-chain art ----------------\n\n    function _seed(uint256 id) internal pure returns (uint256) {\n        return uint256(keccak256(abi.encodePacked(\"Ghoulfarm\", id)));\n    }\n\n    function _r(uint256 s, uint256 i) internal pure returns (uint256) {\n        return uint256(keccak256(abi.encodePacked(s, i)));\n    }\n\n    /// @dev HSL (h 0-359, s and l 0-100) to an rgb() string, which every SVG renderer reads.\n    function _hsl(uint256 h, uint256 s, uint256 l) internal pure returns (string memory) {\n        h %= 360;\n        int256 c = (100 - _abs(int256(2 * l) - 100)) * int256(s) * 255 / 10000;\n        int256 x = c * (60 - _abs(int256(h % 120) - 60)) / 60;\n        int256 m = int256(l) * 255 / 100 - c / 2;\n        int256 r; int256 g; int256 b;\n        if (h < 60) (r, g, b) = (c, x, 0);\n        else if (h < 120) (r, g, b) = (x, c, 0);\n        else if (h < 180) (r, g, b) = (0, c, x);\n        else if (h < 240) (r, g, b) = (0, x, c);\n        else if (h < 300) (r, g, b) = (x, 0, c);\n        else (r, g, b) = (c, 0, x);\n        return string.concat(\"rgb(\", _u(r + m), \",\", _u(g + m), \",\", _u(b + m), \")\");\n    }\n\n    function _abs(int256 v) internal pure returns (int256) {\n        return v < 0 ? -v : v;\n    }\n\n    function _u(int256 v) internal pure returns (string memory) {\n        if (v < 0) v = 0;\n        if (v > 255) v = 255;\n        return uint256(v).toString();\n    }\n\n    function _pick(string[4] memory names, uint256 r) internal pure returns (string memory) {\n        return names[r % 4];\n    }\n\n    function _T1() internal pure returns (string[4] memory) {\n        return [\"Zombie farmer\", \"Zombie farmer\", \"Zombie farmer\", \"Zombie farmer\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Straw hat\", \"Straw hat\", \"Straw hat\", \"Straw hat\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Orange-purple rim light\", \"Orange-purple rim light\", \"Orange-purple rim light\", \"Orange-purple rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Purple-orange gradient\", \"Purple-orange gradient\", \"Purple-orange gradient\", \"Purple-orange gradient\"];\n    }\n\n\n    /// @notice Raw artwork bytes read from the IMAGE data contract.\n    function _img() internal view returns (bytes memory b) {\n        address a = IMAGE;\n        uint256 n = a.code.length - 1;\n        b = new bytes(n);\n        assembly {\n            extcodecopy(a, add(b, 32), 1, n)\n        }\n    }\n\n    function _svg(uint256) internal view returns (string memory) {\n        return string.concat('<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 400 400\"><image width=\"400\" height=\"400\" href=\"data:image/webp;base64,', Base64.encode(_img()), '\"/></svg>');\n    }\n\n    function _attributes(uint256 s) internal pure returns (string memory) {\n        return string.concat(\n            '[{\"trait_type\":\"Character\",\"value\":\"', _pick(_T1(), s), '\"},',\n            '{\"trait_type\":\"Outfit\",\"value\":\"', _pick(_T2(), s >> 8), '\"},',\n            '{\"trait_type\":\"Light\",\"value\":\"', _pick(_T3(), s >> 16), '\"},',\n            '{\"trait_type\":\"Background\",\"value\":\"', _pick(_T4(), s >> 80), '\"}]'\n        );\n    }\n\n    /// @notice The token's SVG image.\n    function image(uint256 id) public view returns (string memory) {\n        _requireOwned(id);\n        return _svg(_seed(id));\n    }\n\n    function tokenURI(uint256 id) public view override returns (string memory) {\n        _requireOwned(id);\n        uint256 s = _seed(id);\n        string memory json = string.concat(\n            '{\"name\":\"Ghoulfarm #', id.toString(),\n            '\",\"description\":\"Ghoulfarm is 1000 Zombie farmer with straw hat holding a glowing jack-o-lantern on a purple-orange gradient. Art generated fully on-chain on BNB Chain. Minted by .ai Agent ID holders.\",',\n            '\"image\":\"data:image/svg+xml;base64,', Base64.encode(bytes(_svg(s))),\n            '\",\"attributes\":', _attributes(s), '}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    /// @notice Collection-level metadata for marketplaces.\n    function contractURI() external pure returns (string memory) {\n        string memory json = string.concat(\n            '{\"name\":\"Ghoulfarm\",\"description\":\"Ghoulfarm is 1000 Zombie farmer with straw hat holding a glowing jack-o-lantern on a purple-orange gradient. Art generated fully on-chain on BNB Chain. Mint is gated to .ai Agent ID holders.\",',\n            '\"seller_fee_basis_points\":500}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    // ---------------- owner ----------------\n\n    function setMintOpen(bool open) external onlyOwner {\n        mintOpen = open;\n    }\n\n    function setRoyalty(address receiver, uint96 feeBps) external onlyOwner {\n        _setDefaultRoyalty(receiver, feeBps);\n    }\n\n    function withdraw() external onlyOwner {\n        (bool ok,) = owner().call{value: address(this).balance}(\"\");\n        if (!ok) revert WithdrawFailed();\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981) returns (bool) {\n        return super.supportsInterface(interfaceId);\n    }\n}"}},"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"BadQuantity","type":"error","inputs":[]},{"name":"ERC2981InvalidDefaultRoyalty","type":"error","inputs":[{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC2981InvalidTokenRoyalty","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721IncorrectOwner","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InsufficientApproval","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"ERC721InvalidApprover","type":"error","inputs":[{"name":"approver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOperator","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InvalidReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidSender","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"}]},{"name":"ERC721NonexistentToken","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"MintClosed","type":"error","inputs":[]},{"name":"NoAgentId","type":"error","inputs":[]},{"name":"OnlyWallets","type":"error","inputs":[]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"SoldOut","type":"error","inputs":[]},{"name":"WalletLimit","type":"error","inputs":[]},{"name":"WithdrawFailed","type":"error","inputs":[]},{"name":"WrongPayment","type":"error","inputs":[]},{"name":"Approval","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ApprovalForAll","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"Launched","type":"event","inputs":[{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"agent","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Transfer","type":"event","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"AGENT_ID","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IAgentIdRegistry"}],"stateMutability":"view"},{"name":"FREE_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"FREE_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"IMAGE","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"MAX_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"approve","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"balanceOf","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"contractURI","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"pure"},{"name":"freeClaimed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeFor","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"n","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeLeft","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeUsed","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getApproved","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"image","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"isApprovedForAll","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mint","type":"function","inputs":[{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"mintOpen","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintedBy","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"name","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"ownerOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"quote","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"royaltyInfo","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"salePrice","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setApprovalForAll","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setMintOpen","type":"function","inputs":[{"name":"open","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRoyalty","type":"function","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"feeBps","type":"uint96","internalType":"uint96"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"symbol","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"tokenURI","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"totalSupply","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdraw","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"}],"matchId":"58206259","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-03T11:04:53Z","match":"exact_match","chainId":"56","address":"0x99B26bf54De6eb30c7f412aBE33e1C5523ffbD2F"}