{"sources":{"Pumpkinfarm.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: Pumpkinfarm.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Pumpkinfarm - 999 Friendly scarecrow robot farmer with a glowing pumpkin lamp and straw hat in a misty purple Halloween night with candles for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 999 free pool lasts (gas only).\n/// Every other mint costs 0.00007 BNB. Max 50 per wallet, 999 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 Pumpkinfarm is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 999;\n    uint256 public constant FREE_SUPPLY = 999;\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(\"Pumpkinfarm\", \"PUMPKINFARM\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"52494646362b000057454250565038202a2b000090ec009d012a900190013ec15aa64e27a5242f26d5fb21e018094dda3167e2581058c6e7214cd36811e22fa8c7e327f532b9728ca8ec20f9ccbef8ba652e275293c73e5b897bca9ed7feb7af9dc55e6dfcdd3d4b7f70f480eaaef400e99bb5576e170f6a43bd60197b97fdb38bc633de2fc40d3a3377f3a5f7795ed7c7355152197f0721a408bb8192902280a98c732a0ba816bfd3f093e2b8dab1c35690e6fec2d33c3ceca744ed00c31907d9fa34235a080d53ee344d318ebb374425d48cf9057b2e3bcd826840ff333858d47d6762b72bc9705629f900b8176a29dde0051ce5385c02dbc83979c301a0e5e91d4e33ac3e64a20efca8cba2756323579d29067096bad0d271a4b5d68a060e83b886a6f1b1c19bab1fda7f074323c2cfc8e50a51e40e8b92735061c52b587e2a2d6169a0105fe27a209852dc3dc06604bd89cefad62d0a6ebb3dc08f3cb3c5c7521f38a1cf69b8735c27ecf22fa16836ff740fba32c10dbbd87e6b518247c20f8fcb933d7da0060444a29792b54ba9a0e559a02cd80c733704b2898c4b0ab885f23559ab154fac860820af731b25db8bac626410b53aa75aa248f260cc50d08229ebdfcc2c17012a369cb8096fe79278509b9043487442259e2f0671ae2b21d373b8ba412903a4b2e0a47d5df737153ae5bbaa6325726ea5de017bd9021d9a97f06823640187d910e04ad4b1bba4c579fe99578ee0dd7d696891f73f21c4210e629f86a8bbc9a45e2e020866464b7394d7c0b8ef5806165f0603c783c3e2e8066d25a74f578248557e5308b612843609fcfc2386b91a5834a0b6e754b712621eaca40ce29db9052ea49991c43e3fb3aedfefe8bf773f797ca0160a8061eaf8f58e4e57a4edc0b09bf0bb7a63a858737409a3122b6b5dd78fc7cdeb1561b0033589ef37d505bac27d24fbae057d40e74cb719f4a8c482fe01fe75902f75fd538cccc6f6900402507649c292eaf33aa9acee5ac791e9e8ec64049626f60ef4cab0b4757c05e96ac8a52e74f848e1cf56d3de612c39b7e36fe7e61dc254e55da510f25fe48ae21fc24ff0ed0650f116ca4a3d6a0156d8fcc4d8589af9b464f2d7bf29fa4ace1e6262bfe1f0aeb0f5d8d187f8fd3b70e412917e3eef8e8c4d347521b66dcb2278a407eb902a55e8aa20cb37b1d7debea7599a78104db55a825b56d299820024ace4c2964f3c25e07bd427d40360ce16095f7cd75f893812ae89986f16e4afc0e4356dc741974be0cc019179095675fe9527acd65f921882d1573dc88fe33616a2a7413c63df0d7d8aba018a209e4a325deda0ae2937af02cd846c8052450566d21d9667bb813b7471bac4d2d08732f9e3dc213e326f726c5ca3d69fe1e51bc9f2d3163ab24a892f431f98345d43292b9b092fbc2e779a719910abebb65e2eacb4363e518a99ae91c26b0bd8fca7174c324c2fee0fccbd3c845df46b0e95dfb278b1f7b028ce754af956644bd1583de3c8e593ecd86710d78b8e6d0fc634319be0141dddff5924e6239752bdda34dd59db1ec145f4d1cec14e70bf30f71ff281d207a0078095d04a8a1be963d352c56a66125f6e95a0d7f390e57ed5ca212041548c489400f5b9c91e902c8288935c67b9f9312ce2aaf15e69d6e050d9c387fe417a9f112067608b03aaf6aaf0d02f2b1b33da17369515fbea69aed2228904d6a85dba171dca3ce0f921f93a641241d5819b1d530fa790956046c69e0b6c3df8ac87a3832d5b4c4306549a7e0b09ef7cad470155d470e39f9aa2a2d25f3f61cac27a34f89e5a932923b3128feaadce267eb639be86625d8fcc96ab011715546534cdfe837306dd354ad7cfd821ca45381f45c60d5a1c29180230501d0386b041663c27bddbc33f2e25df5e617a6f7aa9db1c423f99b00a507370f48d8a942aed0c98d36145abaa762382301a6fd47c919c15569032d86c6fb2ba011d09f4103585507a8a5cd1b13231d57abed02ee29e217e0d270e5b24abd120c112bbf94b0a5aab0db41fbd30f874b25a7adc9d6180eb1b0850b7e2402efbf822f72053e5e9844e23ac8b932bc0dd13a5afe4086b588c08e81273e68502589cf2c83f69c193564de6e48171b911fd7636fc0ecf17ddd3b996c45a515d75641729e295088c403b53260643fcd9ed0c67d16144f23ac945ead8f9da13080b574e4a2e0ab7eae8ac316a3dc8a9b3e8b9ce4f9257e9e6a5f2bb76a34e5c7a9a058d0c62b48b9c3d74f6c79e80ba3867f3699d5aec1be65f01f7302c59251cd0ecd6b981f289cdb739de7682344658ede92c5e739e395402cf90eaf123884ac24b0c6641ee36766df6e882eb26e915a6cff582710568f46cf668bcbdb59504dc9df2bed35a1a18f688f41ae6653b1e63fabd548f696ede37487b61c7dd0f727584014be9344964c4cbed28f401ca73197d7c5817009b5642f5931ea8672e1f49b58f3ec19531f4de710545ca49cc7ba115dab29260c8175f326287ba48a0f24f6143d55a08b5fc140cfd1857b57b2c0795f61f825cce647709f3634b6aefa78555a64780c768a66b1641745b7dcdf3f650ebfab4c7d1c5b70ae1c3615cad48188195e4f3da1b2c038d0c85c35ba2c20afdb97aee52635e99af9032acfee02d76d2f21b9ef8394f09faf92fe55bf49ef39cad079d20bffb13bb87fe41bc68fa8b9ef0370000fef151abe955427885509e4278569799e1dc4b33100c7e50255e6726d7628c9e610c947d1e3f17c41800ad1a4723f7c81d3860b28610f274701f3d20c70365ba24d30e0c942296a10ae85fcca634e3b5061ae86549ca9f79a0cbe808e541f040000c466132c02f979cd394cc734a09f93c6c409dcb6f278a624c4b9dc31a75364637d769651f59dc59c614b65f4ad40e946e52b36ba6ef546374809204185cd1760b69afa7c56b056a68869581f4253c42765db267f2075ff931b78b67e0977eb1bbe29a21e947c15a7b41b179f9df109a92d1795c2119bcc866d951888c493c424ed8c5aea22cd74789fc819715afc82acfb56d64e02717b75fb845140e7f5c6f5c63fa399bdc4d7b35d05dada52044a5db5aaf979da8e7e90922793a510be73b755174f4ccf80d5b61d181a7e4b3d0c3c27c3e20cccb9f2349bc4ebb1682c866737c082f32a455f6c95d275c38dd65cfd26bdcfeffd437fe56e5f2d0a4b789af8f1000056800065b0b2bc87e091e693700515ab0c01d0338f999d5f14baa04bf4917e22720f9b408eb8d798050328ffc06f356c347746d63f0805da1efe44b90efb77d719ca3f198d501ec551daa49c24006b65d553c4ea1d060ef0f1d45b97d1a789c6ae66bf79f93b403dd0826718af6ff191064b1b7166be580ae47101dde54be25aaa0118ff4922cbb30222637805e4fd2cc4ea8658e4f8616d3a2cf390bbcbee3a8ca0baadf83bac6f88fcbe34731206e3de109de71574d19eb7ca4c7a603008efa79bbd458442baad291ced9b7429f8aeb2ccff12ca1e10ee928a87aa86a4dfdd804577348ded7692250b2e61006cf316d7fe52e7661fbb5a89c49ee43e79725940ec8cf9678ee99d997a3f066c86ee0d8ae08ed071800035d9ad96550933d4995027314b60f02c240f2512bbfcaa713c41d2ec74dadb5320b32217ce1f97a9028cf8dd454f849da2f01d96ab9ad720614456476ea221839e98ccb211f70744081b073b80697e3178d037aa7007a9d67899e711f08c25a5a8a7be0e28d8939fc333b95acc42c79b4d6e762902df028efdd9c8f4176a87175ca64b95022cec5e62d594bdb8971ff8ae8e541ad28f3368affcacd978e9bd76bbdf35e9ebcbf9aa401f24c3a7edd6c5123e364ec838e0a7f41883ffafab5d4c024e76ca2878e70bd81fd0b144f0e00240a123c6fd9387ce268eb5ff34c695d49d66cd9183164e6b82f76bfb8ab95516aeb7c0080dc67aa9806e44e8ef53455d57a38db60c717208455733beae019671caaa723089331112a608af3d14218c3c739ac4b97e3cd8f3f50e8880d134db16c4f455907023e435bdde210aa49cd3005edd5c23b47d4e485a091e85285dfc1e34bb58aa5e5bddb3060180470aa4aaeb9897555d59f1787d82978eeb8434e63fb56fd5c3eb7500bbb1b022f0c08f0dd9abe32888fdb71f9a3f77073551e860ffaf79eef23d55101ec902fb7708024eee067fdec0b4cded8abdd9a927599c491682db1fa90716101b312bfed0338c5f94c8f6302e2305a6b95f7b5713246393f89145d485ccdd7cdf160ca3dc376878c02c0cea078e6af217051242e7cbf04211e7c2ea2f8f84fd8c575ba6fbed6f4b2f54ca188d00d50dacaec133dcc413e039327c03f3a45ad2b9c7da45c716cb0cbff49c0b1459d9ac1ea69c6714b312681ea11965fed348e2b38f5b7cf4dbd3eed9ad135f059d0f5fbc60b469a2c12fb44dfe5cd64b765e44e57e7a02980bc93f0981b795692ac1b0d8d6826e23119b9077c1249bdc741d37715c4414e8246db4eb82ae46076a1473d22f82cb78dd9578ba151b3a59d418ad8fb0e50b9d1a6f30c9ac326d4ed97d52fb42cc82e24281e89a8cdaa9e0935ba3a4da35339b18063cbb2ec6a88bb5e16e428359578ff9d4acb695c0b9a20b2726a5a720b1ede984e1bb87acb3abaff3db07576157a9fb8ccbe37b369a346aecfe08ca865d12bd58f6b6bc8a1fa943d2e044b19801e551a1d30b118c42f4aebe3283fe518009902d52359057aebc029b7e323d7fe7666358075d20885483be9cb80ba8ad0db87496caa20f79cb3ba365f5e5ff8087f23cc816c6281199c88d690e4abd7b42b3087a941c408fd1c0f8aec1d99aba72959b6b2cb0ae88cd6ffd3a8f375133b36b0dbfe0270a974116bb6c0a82cc7fc37ef7268e12aa85b3664b44fe6954d971ce8ecd13b7f5d3430a6ded43263518684191a45429d57a0c9bbcc150bf55d46589e15ddad437db8bf2f535a0e59d2076f888aa1a1526bb9f7a5848d52214c29bfa443cce0f6324b53866e575d7f0982907ae1a5d627b8f0451468a48b79c07a50ec489c3e27292665cd08c9ead519d997045f89d2813df05cb02c7d10733744a4304ab7962b9cb3b8e7d1fcf4884188fcb91aa8f8d8c5816ad656c3a6e18d20dc4f6492196fed3008d3152ff8d2ddacedd999306b4b80526639d68b5d30ed254c021fa84151434637aefc0d584d731ae68a9deb2d2d526d28a9cdf45e02f8c35b35273f4f157080aa3b0fbd73f5f977a142f5f42aaa2cbd615253d4079447bbf248847168ce27342e33322d92f2f72c5095477e6ba8e43e0d5f30f23b2d38ee1ca75f380e8a4ef42a790e7f14bbf82573282034ad0e8a9e9e43bb5b4cf678600427c371494563026e673bc0960b576824e9868828d05a0966cdf60a38192320c06c2040e80e3f410a916699efb0ea4ccf14f332d5e7ea9e154bfc7168caf2960047a8f82ac97a9c3dd1f3f76466f56fe03064ada20837a4d89ba5eb5cc634151a8f9705916603d4d9c2bf50eedba3548f07be3b9bdce02aa6a74c968115d6e8ce30ff435fc53ab0064d87246aa955123c1ceb5f6232207f58d894615ee5291f8e88d288d38364725c9d92d2d5a7ec9aeda069fc420edde2854ce9b14b6a08ad49d3b9f66c71f6919fee0f9f550392f8076bd050e8e42503a1d578bcda847e955538e6dd0683bf04065a183b57038df9b7c50b9a6c0690ec0e2984f0b72d014bf11416976630232bdd031cfaf08964c6c45d596f6857f92198626662c7f13fc8f505d41a6ed061b517b04f1d81793c25cc961c43960aaedbd8a7201891093145498cb75baf1efbf70f069586673b15825c10d83bb8269ed9dea8649904351bba6b7e6f28f5e7924a469f5263c5158eecc5f9c6ad28eeaf93750ddc7a4c897b047f121a04e22c4b77089491e4fe4cf9f15e4771e4934b8b0352a0f2eb726344e9b8b6a94efbbf134fa3576b786768695e76c1499c9b3a27b1188e158aeed49d33d262e13903ac0388e3f63086873a8772e050e6f939ac4dbe260b5e7e36b96438e2427ea78be37bc7b08688928cd18be07653f5ada96dc2c2bb855606af35212f481d74be1c624f92132e50d2cc47875d67f6ac0d0b691bef5a29f0e3d3c5f73d214bdabbe1c0bfcf1d98bb2180559096f66af163357161cc6e354e95dadd0ce788d7e3d98aafa382dc2a3b5f35915befa2fb0cc6f3d66d5adcf2b588533486836823b67093fcf8c17bfcdef9a864c3632d0865cebbc8670623061144d9443369c89bb877f19a2f7dd7cdbea6edb160f64bb9af3d1d6bfa5cf1e631acb32d9908b0f3af7eacd53de2d79b298131015bf6e7d77788d36073e54aeed06f1dd9aecbc6f23bdc5446ca740d33a00eed52bbe36012a9609abdcbb857dbd81c5a30420f97031ac5c5e33e4157b3c218f655a1d972e17d50405353c8ee1c121572134302046f0cea9cc470ccde9bc1695dd472003cf6feaf53a412c61aad06aaeeab18b6d58189dcb15ee1481c2b9cfbb812916bbb88a41256dd68f7588d0e18953f68f94fe18bfb17fa9ce98724a4c98d102d006ec2192f31f593cd6487b613a01331a7090be4c90bf39125ca21435097f06013c48c0182df9d2fb414c99e883252aa799e494acc2c9d2409fb6246170bfaa6da067e5289dc737319912a4ed37ecfdd7bc47b80fab87bfd37d91a4b43867d61a07e7e31ea78c02838a380f6abf3bdc802fb08e582f6ffd84f95098ee3b67d142ed589ce0683b28cf5a5ccc4d7701a3b7bda571cd6093bfafdcf5bd2b4c608a5b88a87a3ee6e3e042c360e09d3eb856b3a3c5ca9cd4e5a9cf70287cf2e5c30ca19a8bce360b95ade85f6d55cfd1d3737afe5ca517ee47b8335e21dd028fab96bf6427a51503d76f6a95a6707106fd18a823f17d8052916529a54ea8f8557976afd4a40caba2af41674ef8f8c8939e4ad53f0517e92f95c57b709bece0804eab6ff98f331215790d085b64cb0df345d01d3e9f5cddc7faee18fcaa9bf2a141d87b8aed24f2a06ddab0413e5e94fb1e15f049e1653594adba9fdf0498b8aef2cb6342eb269e6ec5b210f562cb8ee1a78fb25df7cd561a3da7147bc0390bb2b5e0510f8dc1661229b233a2d8447c86623f9e0eb89ba44e268233105f08fd412e578ec8557103a28e6abc9494f405bd9ed6d2087773f551182e32d54e17d9e7d246fb6d2f06059a1d649e178035699a51329a903e876be3ff8ffd0c5e9276782464eebb0440a7a6c2a0c76a02eee4f6c17be09caf47f09ab1a435f411bd0ef6cd17d6e85ae8cd52acac458bbd9508c22ad9dabb7312f21655a28db2c2058db8f4cb75a437cf79e998b3a47333767d4190358b545012640bd3ad8673470b830e854d3545ffaa13e8d9ff0f8dfcafea702ad53ed3e90c3b33d9a69c9ec09759f6b5e2aae5f8f936cf465265ca3b549e07414d462f4dd545ca23c19a7fe7c2fd36254cece7d74da4357067d0ea7815804d94784e52688676a9b6c44fcf15b699efcc9ddd62ea0a8a637cdac076c2e9c7cf678d64d27be5d76b29df54401aceef48e75b5cd2e96b2e0cdadcae9c27a06c08996c30a7d7d9ebfb6a2733ed47903fa286ec6f23865e07874707d4507e5eb3a18189cec516c261f2b16a0d02a9c3a9a2d9cff336ebc9a5960ce002106194728cfa4a2433a1871ffe225412da66d0400691162ac40fb2314e5639a149a5a5a46810f3f77ba0f6e1aa285d63f74fe7195bef004fab678004603d1e21d7ccf9c11fa67cfa1cc7379e27e36332d5cdab8758bbe8c52dc074f848ca18668bbe9eca480fd8f06387b05c4ebdb2b8dc969a2edb7985bbc0907bdd77368f0a6f9e25eae2482c7e1cb5ad4966ff17f6674efbf175d0a7d0f3e71fd5fbb7c7285247f58e06d1c479354119b2f8c8e26f7ca34d8f201b3540edf62520b675a1340af0deb562e19ed01632274123b38d4a5ab7866834a0eb9c4ae428bfceee61744ece4d7293d82d73d35a84cb38d8ce9cfe4248c7bc6259b02b0c1a420b79d63effdd98f6c7f0aae5b40ee7b2cdc8063e0097653227bc42ecd0e50399e2c5b0af130a2a0566374ec02fe1566442d7706b596662d04ed6d74ac126b0d09a0ddf7690d606336845f6dfb328fc5db1bab64b850aa141dfe18886d9777202f433fa00bd45b5079589348e3ab798c42192183cb92e3b533c7907c7f5e3dab0e4690f3f344e1e9e6b115057d70eba993c984f3e15b16d6b98a15cbeba1d40bdb4946fa174687fcec98b0c7df781cea82a464901d80e55f4e3b397b704be1fdedc48456b8b05d7f807cdad7b7e4d8a84f0bf61db03ef766247296cbb7bde05cc654906383c27307771e3523ba927189d4ed58c6d8cbcbf53afc3d0a8c1ddd15d43907b5c80030cd260509ef5dac7796b184e2e3a35232c9f2a8e8080f2083d37a2dc4e79cba87f1091f4dce105152223c5e63466b9c2e19bc8668dd034e1d84814b2aa433e557a26dce4f647d2d4123c8aca44e7df6ee8a71dcb33c1ebb9c0b13aa9b874a9fba0336d930afb6b3f064e937b1f257ecea4fdc277bfb27749249a6361479dc03d1b928514d4674df9e1bba2945cf200f4159859d921e9809e3ee82c98056436782fde02c3618a60f8f8e6724a470879aabd753f8bda576824dc5c99e16749312770dc96607baf20777c11095bd0304fb1c03a3950066287516dadf2b3cf1ba2001b665e055979db254247d51a06ce08bd6b3a3a4691a2896fcd4fc0243aca19b133f254800c3d12eabbed8dea34b526a609658665f218dcf3f0147969e1e440c0af8dc720172020bc3b463120acb02e9abab4fc26085e00ca6a3cd84759c2b38936b95e125b5282b8885c835eb098b5e3cfbd4f7d2e551e72e06b59f8884f426e9c83789b0314024b084b6108b5523c529b8314180b47a7ecb93e69442703e9dd6735637e7210aa6c1798e7c81a2617845805f5d992bcc6897d66d2239d85534ebc3d52535f16a745bbf6d16ee3caac8b45e6ce1e39398d95edbfefa7f9cad55ff7b85f4c8a78115548a252b45b9185d5563bea67d5c750887b2a4092b2e2d0924231da92d22784b703057e07772beb65303b672c1826877caa391d8f47d5a99683ef55e1abe1b494e1651ff6a643c7506edc9261e27ab32af47fbf97bae6b03ab4ad50a1a7e1b9a0f2c87b78314cad7402225437c9c2a7d2882a1b6c11c72472595ee708c368fa78ec95d93987a077d24a42b586474cddfb51f18c7760b44d9add266f40c1bd704729dbc8528753bd55c2a13ed459a6cc8bcfff3fdb06dbcf90a8db414de72845a67ab3b64c12e97a301f858fe6fa146f322836765e9eff9bea79d2e74ee9cfdeeee8ea683a876df6814b0c0adf4431a7ad6f0753c18a395084a2d3b00bc8fbe8c8e54ebbbb4d60579539bca2c362e1012216a1b092447cd64f9ca7ad6ba51c07758865128ea2a175cd3c05faa504763fbe6e03958d8a9888d21274e44f1663bf11bdb42cd9a7d3e53c75e29c27f9c0a05b57f981845f442880f0455a4fd5af95fa924f55b143862963d6cb013e29d7c99e5546ce996c4bd92eb0bcca0726597d2dabada82ad65098e17c3bd903610f7baad89b5e97d8663ac94649bb5d7c9395b795358b3fb9aea822cc59d13f920970b75db11afb1988c72c564111bcfb77e5ae47d39a75eba84bd0e52e3428b5666d63c6ba523183a26aad9a82bfd9fea0fff9a0bec275b06340f624c447b8735493750c8a8851194c25d51b8676a9887a7989e86a1101681037b2889a67f8eaa48ac45ee0250f38e379d6d291ffe2bfe313322b2721484939b8f80fa68098aca293b6df4d90de6d832a80cc988146fb6341698ec9df924b6e73c7a922d89bf41862503d6770b1e039514253845bd05fe364384b299938f91a59d54c044661233500ffcbf7a669f6b42db0945f8e438381b9ad65237cbe82bbf35b8d917ddcaee3b211df6f446b480238bdbd363609169950fecc0e902160b25e93577f41f7f9740176901f8a4d70d30bd8710b008dba6023198748383c0861ac2d4adaef26c490443b955352c832367711d03899be31ffbfb72dcdd1da61f5c560f6df66efe298bd309cb9091ca08a94b1838ce20b1d67d04ebb921a6cf6752d92d0514805309c79e48b5b454488d5722c0ea47f67a034e7b4d891032acd381681efe4b732c61d8ef01b799d88d28003c545b7316680eca82e216d804dc3e184faa87b03bd0ff9e2633c5294265a95ea6c37d22d565ad836c1d5ace7d579c04ab4688cc543275f7d6f75b40ec9aad6e9b188f6af4994d917ea9b0dd08a10ed67a0370559d7aeca3e84a818bd11b19c44430978055916fe878cab55ecc4e85a8801b18549b4b76e196df4f8910b4ce110e5029a0f518e3edece5b1403efec3071d67f91c2e2987fccc3e4c12af8a2e7205a2a43c262a721bf0db0e89ec34cf82a3f659dc0e8543a1483695c63748fa4e2bdfc8cb72c3138bf98a1ee5db165e3e42762d60b1132325f2870bb6a8994b3eab8e9abdaed5427601186e53876886f81e479d00eb37f47a3ecd98c4e6d0463e515f78fe495c15324909c1a69b6b3894083be389d7371afe4392fd4efcb3fbf5bf4de3cfba99e36bcacccfe062fc1ab702276e97801b31213ebe2b291c85b44efdacb94ec2a47e3a98db9260aaf70291d0cd8243b4f889382783cf729e95f79332d7b62b98461991627bfd4263853d6d7cd3bac2799f1335605f40c5a00b24ae68c2830abb6a98cee8ced4a2da8d1637f512fa7c5a1f10adc5418d86d0e5c4d201270660b06672e7fc41798447f9c4b1f906842b7b86c06faf424a7334cf2ad955a30b79eba7c31c9922d0dd5bd218a3cebf6aef44d9c1c01e6a3b61efcf0e2452a1dcd6f698a0211e9bf5f1b4c5a9fffcb20b92cff6495d4a4f0af42821c5ca9b1a3890f59a89dd94843e6eb06265f42fcbd984736882bcf0e3e94509a7e1865b1d2b7776dd0975e844485dde894e2d4733d5c07fa9ef6e8e2653d58f684f362bce35cdbc87272674526253977dc6dbb002b0d3b99f6fee5ad2a4ec2d84cea9163220fb85115a29b896c01d0554de8103b85b0ff3d64fc798c09ebddcad021c2409e9e6df2a5c71261df2d71499becae4ea66d9186651cdd2ed9fac5867e289531b7dcce7e0ceba8d13edbd45cb118eaafd661b8b6d723862eb5c2fc341dc5ce091904eefb07405210d1b9797721229f4be60854bbea55813738f33ba2eedef2faa9f0d93bac7a73bbb8aa733731123b337aa17466fc0f94a79446a355c85315a4a130d1322c27f9bd897ede6e99b992b5ebac5df37ae21d2784d4efe9d9d089d9350d37f252850603e7a25b8c139838135ca3117b32c2e98e26ff5db344309bb206c320582833593cf202f86197c91b5da4100ea1369ad0ba29f80dbdcf8c95f4073695d8de4ee0f73bbeb3f38c1d80068398d9bc308d94746a0c781b7900c4eb69521c4986ac437e6c19e86dd78e23be7086aea7021f2011ba9019a2c8e86cc6beb8317f808d2799fa207ece552d85b535838d7cbb5737fca660934ce8c34f4cb3d12163825c5ad23596956cc753d8b1b3a3c61323e7e04855d208d6dd9b52077d143bb6cf5599a9907e888fcee580c111e53d9370368cae7ed95af649552850cb0d9e82d60ad1111b08ba1fe30d1aa4523c0f52a4f5c91e778623635647e34fd7edadf37c247295d74ee20e66421c39365cffc35f20bc5841519e9498d764b7d2343bfd8e39453c166b48f8a82479748e30189663c0b16dc8ca20f1a36530a13ee90fb5a949a862b4bea865741fd6b1e5cf1404c1a948ffa488dda0ab932631ae21bdc2e0749ac3e5ad741955c6c898bfaf33affab588732bea282af6e52e258f326c3b546f5141bdf2e7a632e330a9b16f2259f6edaa65abfabe765338ee8ea76b87f3cfb7be934d385847abf56b18ef604b8933cbd0d0849dca7aae131ba646fdf90fa047557d4aa38f1be2eafeb46911c43507473c5f93092b881f6612f5d8b602d639ca88ebbbe193bb0d03427e3028050acb109adc65cd0f21f34efb53832f487f665b6f77216f9fdc1db569df74f0ce8d2743a818827957d3fcb5a7a6e1a40c682894ed60450fb3e1228ddc37d1a77da4a5cf6824c23430e63dbe876cc75499e818473d9485299b3416aca4249cda25bde0fe1c4666b1d8fe68e511467a47763fa414bb219e9beb07a208e78d70fe7affc1886378b647aead52e368f071ef9f236b8efaea99d760bb054fb73464697413b59510bb556a6c59ca52ed39968b488a5dd5b5d3000016508b7fdb1f7c9a3a31539179c359dcb500cced3dc92fe4181822e378629934d0fb2978eec317cbf3940fbdc25135eda9fe810b4c7b6a35c63d2d17ab15a68b7955765ef43d04caf03fe48d31f850ba692ea15721dc3fcfcf00fe3a6e5a05c79ed0f7d4d5da9ba36986ab818102189f43738b4af06ab5ed3c9c649055b4875f15f585fbf2bc6ffbbfe0786e1af22625e4ec78d7b9f725bb122ee4a0c9f0c28f4fd69fc3984a6d4f4c65f452bd0f81d7a6f4ff118884dc1a3bebb186ab08b77157fd8ef52fab6546454a872e2dfcac1f8ae7bf8ef6d2a60de1fd79a5791f41161eb039ce426a5af8491bad358f3658bc1c801d5c9c9b695f9383da60dfc7ac9bace25a9b52434205689ba2c577b671ab65abe4100fb3eaac37875880f1bcc150ef1faa1688114ce31d18f85b8bd8ed26f00b2ff7a41e4f7dc196131c41988871437389cc0e2f89af551649061d7cae8a1d1ec6eca0ca36c505b34a750c4e89a461b69169af37c72e693be1dc913b5a0db8ad26ddf8bd45fd838e2fb23d1a8538c3467c2f5727ebce405eb2b0e12345e439d0e6dc1f7da468ff74aa9fb813f94d820a4dc95301ac5009f42df07925131e7cc41e0d63dde0ef21464efb2283baedee34da4a9864eb44daf50cdb238e27057dd966a9f7a558cb924efa6ec2826e11ee29f8afcc4d0722d6f6e6e3d2ae8b67dd96a6074a19ce7d4bb09f9475ae06fcd4b3e96301323ccfade6f2c656076a4564258b06099c088e13382f7ec488e2ea1f74e8f9f768e2fa38a1f577fa5c62ea7e40d6e050aabc3f5b34ef4c9b0502ad2b1f06483549f25ec277e706a64ddfe73b23e02d0b2ee317d699b43ee46b133c94b7cdd1333058311fdea134d5743296233f6a3cde4c2857cf591f3a5fe8fb13ca6868de8b64d813a21fefdca1fb625dd9488285a176009c129744f2e8dd4788c0e32f538751d0ab352036555d0d32772301fe48e8579981400e5ea069c0e3656d30e16117a1ec9c67ea12650886eacc7eeb22e0ff309ec18421b609010086087a76beee4905d44b2e4f6e33054b471ab61bbac35d53d7dc0fdb9fce6cef6913afe0310c5e5db998688b05a2ab0a5541ed0bc66b7efed05ad9dd7a6529b5420fc2984f1f0e841779fc5f99c7baf9f585ee54dfd14a71354bf826190dc45883235273c5c944638b6e10cce3f637f1baf9c32d448a1c43567e319f7ff357161091c65b2df44980bd44eddb90cc23db71e38b9fcfa759b7dfba0e4a0e1e91b22f4e35da7d0283a1016b015761bff437d750fd1c29c9ee56761deb6f2ad508fec402339e758d4aa81c38de0fde708457ffbdf7b84b624b941176883d5d2057b84042cf96b355b40fb0aedc151c2f081b428b982542618e16512ac8aa3a43d81cc6d9c3cbd2ab63b6183398d223bb4e8f2fc73799001d7a0fc96a1e947f80baa799d365c702752bf96c75742303eabb7481525bfea0d71d7bc7ec96e0c044faef948431b83e5dac0017696af44eac11e916b3eb8b29ea2c4cb02b52203cf235b69e7768a33117c7dbfc28856e19c176021b30c7a2d76af5bc576a8d46eba3574eed1b70281679d20374873cb50bc6dd983a7e29040e55d393d9577db069977cba1dbf20e17d091af559fd47e9be5b85f90f772268c9aef8528eb329227b02a919374a18677fe945001c7f6d5b7df37d5a1c682fd7705b565997e68d73048c45521e2553bbc93d4b12b0af31d7c45d0b24084579196e6f5b17b2e7f20982e70b8e64dff6eb0b5e2ffd2687ff67aee1acf17d34c5b1559911bee94a2e852d8672428a29f33f655d543617d1a35b616f983111faa098a6af3b1ad327c28a145afbb60fb08e9dc225d6fa815d653083dae4c33aa98edd684531b73ff585f69a295f6bfd6599e5b142223c4afbac5d6e79f8444a41583ad9b18d5a58c172a22ca167a7240e919791df36ea1032ae4db1aedc0c7e83e4b824957e7d86699d61fa39ef4adea4f992d4fddb7af325c57b18d44beaffef508659a7687c430af11f12ca8f02208fb55a9657212aeca4979a5999083feb358b72f04f94a07f939db68e0d43d15c37a295c8d5c77e57f17fea205abe3c19c0eb0d6c2cf4e20cdfd650cbfc86babc55f6929bc7d5e740b06d0f612daa7ceb5e179533780bed27ee24644246ac06d3a01f196da1d78b0053973314f49f6ca88a37641e23b153e798c47238ca59abf269d108876a2dbd0492b2216ed73624d9ea5f1c255b39ce0e26b408c3c9ff301d34904055386fe53204baf0450a891d773015c1f716b2b6d1859aa8b2392902fd9fea2ed797c70e5d6a83954074bf339785d67ea944258df934fa4b440939517076061fa223fdd0d02c84ffedb381b1a7829b03947378353aa16dcea466fea8e505b085c272ebe3ddfb21015e8a8cdb8c13eaf951d378b7cb996bb97e22d5ae4e5650e8572cfeab44aa14e29b4970d6062ec49535328f7fefde51d015553cbe14f77ed564883ed513431751c02f93d1eb7086776d2b4faea7f6c8fc57d0a848484fab3de5702b3607a983d580b87bd0e9d78899201643b2a623dc26dbf7c99a4949eceb4bda85525c8382ad4888ad07537ecaa9414e29ac6e121fc98bab7c8643fb50232c1b0eb92300b8aee6dfc2e2b899a599e854ce44325a2a6636a3e8a2aee649a44e9c83170491e426620866728c9d7b4f7517b8f30e76a8213c71c4b705cfb8c23857d8567bc9f05bf0f4a7d2bbcce119bf6d47402c1052f4859a8a8acacb49ac0bd5aa1457199e51191e75f4bca84e14a87c1d6a657a712d9b4c408fa8cd83122bd6802095ad5abe059434a6861c25300a225b50daa42db1d32db651870fb725fd448e4ceda76e140e33658e58ed0471248bc659c69ff2a9006a3b392305ea81ae4215fd6f218640563c643abf51ed041d7df72cbd7ab93769e3510992fd2c182f04b21b6eccf339705e5be01e15bfd5584a9a2627870d7a857a6ec1141d150e582a77aab3b8147a0dc3720da3ffaa142dc86fa5dddc2a28e4d81d02ddf776f61ff580624fd4ac0552d451e5c1f992280b7c1cac356386446f6fbdb9a12a935c590fa5baac047ea2eb2debcc9f9008e921be99f97af66da7a5c903fce58e766706d7888d539334b608d8a9c8d430476a5e5101c49c8136b13008f7256963844c48e428777276b8007539a7a71a324db7072ea9f073e69286e53724a4424ca42b928df8a90f656eae4d9d920295b29e7ba3c6661906a23ea6a8f377f4e228e6f4479c595cc380d2cfa8ad2e32884a802c042d0c182043cd87f85cb541cde7a4cc2eeea7ac6e50fa869041cf02bf8eda2dc0d8dab27560a86750a3e2018165d8000\";\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(\"Pumpkinfarm\", 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 [\"Scarecrow robot\", \"Scarecrow robot\", \"Scarecrow robot\", \"Scarecrow robot\"];\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 rim light\", \"Orange rim light\", \"Orange rim light\", \"Orange rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Misty purple night\", \"Misty purple night\", \"Misty purple night\", \"Misty purple night\"];\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\":\"Pumpkinfarm #', id.toString(),\n            '\",\"description\":\"Pumpkinfarm is 999 Friendly scarecrow robot farmer with a glowing pumpkin lamp and straw hat in a misty purple Halloween night with candles. 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\":\"Pumpkinfarm\",\"description\":\"Pumpkinfarm is 999 Friendly scarecrow robot farmer with a glowing pumpkin lamp and straw hat in a misty purple Halloween night with candles. 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":"58377019","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-04T14:55:18Z","match":"exact_match","chainId":"56","address":"0x77E38295603a06654a6ED3Ed0849e6AA50749963"}