{"sources":{"Hivefacai.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: Hivefacai.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Hivefacai - 700 Cheerful little robot with a tiny crown holding a glowing red envelope with a lucky fa cai smile on a red-gold gradient for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 700 free pool lasts (gas only).\n/// Every other mint costs 0.00007 BNB. Max 50 per wallet, 700 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 Hivefacai is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 700;\n    uint256 public constant FREE_SUPPLY = 700;\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(\"Hivefacai\", \"HIVEFACAI\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"524946463a2c000057454250565038202e2c000090e3009d012a900190013ec15ca74ea7a53fb326d3ea93f018094ddf08d69f792790416f5b387d53bf7dec5375a25a228b90f13cbe792fce88dc64bbd839cdfbb77d2ffbfeb3ffafef06f395e729ea2ffc76fdcfa2879cd7ad3ff7bb6206de710592839f701d7f1f323d07701bc36fe335dcb5192d9977965f14466c65bea82622740cbbcaecfeed205998c5c3cb797fc05862da39199a407c43401ca60570bf3868a5219533026f259d319897ff473e4c118f9b93030721d928217be4d83b545eb64b23f1b0e24f224a2c5df14feda1c027148cd904b55bfc97d75e7df20690e73898697616583d563dab32bebe4a0f85f61515a822c90baefaec75a36277f32dff19f76061247d126a4810d84ec00cbb9db12c08bc2d3fb16f444cf0e8ffd69ae7a805b0859e89b831416c221418c14c14c929e21e6f8efd8c95bc1824686c4ee91530de53f9df8315dee8300fc262b9137e01ec02369da72ec5ebff69129362dabb80b0ca8d71fa5d025395cf0b24d6cfa1e69c7bf138c4bc68e86d63eb8f77f161b7c831c2a83495dbfed4f28404e3705b5c4b72787cb347178ccf01857d1417f488cae8462de700a699438730beb4273826f45d91964aa12f2ab9b5e17ea9b5a3bbf4a38183c5423e873517aafa6fca4da9d4f3d04c4e9bb505bb5a1668e312cb8cbcb0b3ac977c2eb561da0917f8820028374ea03dc61eb9767f954e238d182f211d8683bcabcc56eaa6bec0ce31541d4275c42d8942bb350ec009ceb5bea1fa012cf828de5a45f7fb19b22ff3b8148c1148e278d6562a49e3fd2d6dc4de0dd056c2437d93e598065a31453c64c1a11f6eacb18052799f857f44134e0d70516e1a57d0356b92e8d31baf924ad8638257884597d0c8f9f87596ff67016648af3c54bcde93d207d4ac54706f3eb3846937685a77671a75ab15e187b5a4f040616730528c5907ebc3217cfe87a5d402166707511b074e4e8605fa44d9a9f884d69420ca5fbc323c698c424ef982e3b4c38d83af84eb8155f29beaf2ae2ce6bd6814ab4ec36cdc4842221063ff764f318c2928540cf114fa50e8b0a28142c9eaa146e639fb7f66e02f173f66352b2c2905e52e6fd906b2790fc3ad9ab443ff7d1036eddba2ea110f08c235a42d1a5ab21256c4aeaa99662c3d345a137caaaf20d8d982ab232057b473f33bdf4abd6ddbed2e4e19aca86a9cc272e8b3b9e143bb91231e139d022ef5cf9e0cf635e9309a9acdb3a0ed9d33c4422f6f4186559025d2ce355aad4572149362e386c96dbd36cb71621df126b7cfddf7f9540ba35317c3d0f3a5b56f5571762bcfae0b0e99834ebd86f99d5f8b6af3a55a17fae4ee74a1efade7b0c04945a99d03fa7b782a80e71a0512304ebd5742871b6b4fb30b475c2e10198ccea76ce9e9d17ec8869b3b2db357b6fb129755e6ef8c6fc288b54144ebd7511f3d5d9d9a756769e9bf8c02f74ba4e3a5a6b5d5fa04a3d061e320f57e6f76484e616ad08a4c05d141b4cf8424dd9519a3bf6058ef18ee57997472eaa53480e5df17a881058dc559adb53533ac69fe32e542edb0c5dac86b4a4f9aa9bb5295fff88ca674115305c6d52e64fb2cd4622a2bb0dea4fa3bc3258b31acc8d2819b7962b185f1bca34bc316eb1c3e39885ee584f865c25ff675685f4759d44b05ef87e1e609feeacc1ca7ad80d37c1f24df21ff11e377ca0418b07cc01b2f9639caae55f1f7f928d7399e34e50eaec02363868920011b236eeb643f97cf4781a71aa449b30fa46c59d5d3040dc97238185ddb73e91254a91bcd401c8d37849ebe3cc8d3851f3b5add86f1d453b17b1c788372ad0c4011b15e7240483e6f5b9a330cbfa5adb811a97e1b0d84bbc60b6c9cfbbe6806db8b1b37031d50798819dcfd1fc861e7b0d6057ab5bf68b2088d2615b4ed58314dac1d655ff6fe98f49e14bee245daec6b2a446c202d2ef616d91166376dcc63a2e8c703b795773ad88383147ed172765da5e84744427f2a154b1557d85cbba3f88e1f9a4c57d307440f17b30b26cc838f5550cdf76229644fe21e4da6df97cf4ff031d47b8a06645cc16dc09f4ce4bff4a9d16aa3a8b1a08fb60c0a665bfaa45950c79f19bb8a99509ccccea4232075e89dbcb19d8801ff77dd5846a952e6ba6435220bdd6c04aed8c0c03b37e0f946dba174b0b0e0ef16f35523f244dbb5f3e5b29cd1ee37ecde67aaf387f32fff15560619518f5043ceaf3ce359b8552dc81acd2922c73adbadaaddcb72c12937a3e062507bd182862f9e9d279d53d9efd2ec2bab9df6608322f1488e98a20be4bd227cbd6676cd265b625caea2578a42e3a719f7ade2510485d62bc3988f06b57f22e73cb194df64351ab4c8af1501eb614e9e1780e4cb1ffff5ddffc44e3d11d2ff172aab4de4877f8e97d50fa5d419cdd3df1bee2f679e91570cdb2e9f9be8ef7f89fecb4265c396b44ffca1c65f9d02e78ec6ea3859e6168bc80b7a791414552c1f04b147302294f73677ffec48b59e37ed777d0adfcbb6e516d202d06ce27615f24db3841ba20ac2d7c21166009fbcfffa2d94e69f118563d5a9ec73b400feef534dfa93532a5067ffc6affd16ff1fb996b04ade0cedb6a2c8025b8179efbb650c5cf21836c9a62f0f69d9696d245c9a69247ea0ddfa5fcd2d7ba5f2800054fae9afbc55bf9e263747cb05ee5858d19be2f5702088e0eb62ebcf7d1ac67e92505633bc0b77566edd5dc581923b1980f8281c969536bcdd61e4a81ae12b2bf600dac5f7fe1df796fbe6ad3f847243f4cc6980b375a420908c1033ccdd541b32008d8db5c8d45c21a9cf685c655efdd0dfaed651f23ccef0f09f2ed16e106676f965a75a5d015847f4ac9a0000086b192ba379c7fb1d33fd20e294638e0c31c7360ba4f83448c6c86ca1105a2da89f3629e4b514ec8106f29132e35c30cb94097a279b549b8aecb05409f568cf7ae9e3fbfa8a6cc3da11ceb68e100dd045e3c05a42629185586d448840ef3b64804a6abffdb70e2534eee4d3edc1baf0b2fcf96cedb86a9c0f85a6098a737a9de4fc6d4b8877aac607d21e4c403a070de1d489f450355f29b69852b4a90949c922d5741049f010ccb3118aaed198cca025b99a5987946793bf634d42a248f33290d39dec76384af67a43a0a7d2988a8f21601a54dbaba78d5183ef202b780dd9ded64d36067ddeb388ac1cd402240b3206d136e496049f3d243d9f83669134a8b5fdab6946f3b9062f1790fdfe5c64dbeed7c6e7ee9dd06bce81b8a9cc87679d927d7a4e970a8630c2eb9df612e5bc2b5a0ff6c3aa53f5afad7667d1a1636133b1e5617eda4ce7b48290dd4318f9c12acf6b049ac1d1ab2609463e8e4af29b26e36ec9dee9f2901e75b16f8f9032b25277b66974530b0f001dd1972131bf314ff15c14473135db8cbecce2334bf107e55cec0c89863f5c707217072d90577f6b731e8fbd12d66c4b563d8bcf3e96c9b225d3117b48b48297cb08db4d63c981d64413d1cc39ae31fbb48209f5349c330146ce4979e6ecd8ae784d2c935fb413f6d1b9d2242d1a2df7d2cb814d7d7c2daf8fda215e962ddbec8146f91feb6b39a024323da71284cc722d74481348388ebbedbbcb41fc18c6b4c10b3d1719aa0b65fe714aff123c76a3dd49ad220f2e02858c190ccdbb31bcdaeb5b38baac6b57085b945e40f92dd574d85f345ea1f0d06b55ac1d6bf593dd4c093b3f2d93e249fad65bdc320a3a9ad74e032e47eb56694b1a2c21f8bdf46c188210405e345c48922fb3b738c92247de9eab1f3a6565b7248e230b93436c5d957f1a9f0faba7924051695b3d8f3ee81177c5fe88c9e2c390b10ae3bc6e00d131bd93269bde34175f210725cd1ad394e83539674cfe4e8a9ac9e818610583609a934ef725dcc0fd913b65350dec813642aa553043570da24e4408ec72318ea2bc40d19afdbbe738dd828875e174065bd6db03b6ca51771369de438cfd28e05620c8ceb1fb15c5de6a358825129a46812341ba7f650e7d1b565ef86631db781b4ac47ccc3fbeac87c4ae389eafd44ac3529e5d0a73cda8fcf3ebe58f82bafd4202b398c6830b332bbcb1dafd29e8592dedc340463d9d3c361ca058c47df51477e9acf8a4029a15d3fd883e8de8ce418962688b27a5d2024d112ccdd3dc8193e767cde7e88f342b3bf1c981a4b56ce09fe8e45a587d56458b8cbb0c47ec87865e90961c327d5d4f1cc6f1f28c4d5021c4d4a3db731b5ea7620344847a21a1333168b5d2d20a495bfd9fbfec0997d72c81ad3f0a9a483dbb83e93bbd182aaf57caee6e4ef0541ce7650a9c811e51b9a75c3d7460525bbe104737a286a19caebc7eb9487392898fbcf0f0372e54466223ac9ff8a762d4897d2db4417ff564005354740234e0a648923f4128280cf1583d39c1d62fb3809167ee2c72290d4506c65f77cc0826fde255e39b45078140866c0a2677e7ea4fc0903072d31529391be6282ac79a27c6403981b5522c1153aaf49d52c1f3502dee8664f3364def34a53774c397f5b94d0ae176b234e671ec23d4230183d59e5ba0cac65fcf5f4c7a1f6f64295817582a9afe78ed565c57cb84a8f1d0356ddf2865a9eb56f311f5efc76f725f7ce2692c85b69ce6c54602ea14036acac90fcfeea853102facd46a16d57469ea3c3e774d45132662292a3596a0dc9f3777170115dc4359f1ceb7a06af131daebd0bfbaed03443b30f16a4e0ad1c3bc56d2b7590410f6c5812f814585245aa6f4b9f85e495f4127274ea8d8c99e92fd7b999745ef3f1c00bbbb195f1e8eed95ac83eb803cb6d4b174ade00021458e940050a2e96786e1e3c0407fb2bd1492049a675d2f3523e9ea886bf3759d1b3da39021555318ca65194a5854032c074a7c092b2829c5fadc3c685ec05622f258c31e485a8c30e903150ca2384acb020b9f18783927b403dab5998758e5a70011f1791cf0a81a8c779b2410ec3dd1ea31056aec07bfb3b793841464a196ec7ccb7721309500745274401817132936e4fdf6063987d573f967779d9a736197dddf759b7a4ae71f361a278f177f0aa391b20f5446099f7b019407b2e1d851aaff0497a7f7c8e59e818d17ef1a669a9a4e08b7685b035862fe7d19a309b275599a5c09a909bc1774cbb78a1364890967ca39cc88f7ba8052343269c36444c2d01fad9cfae16c8103022ef32c18909a910db34c9d701abf556cd5a8ec35da4e4963f56d20e1a11157d5195006e282e9bc87c5dcf9271e544a20c8b213df47b62028548f608979f562f0495b9c1af2946e8a7b60b2bb059883f20da298d8665e507d4dcece72967936d33eb25f59827262ffbbf9236b73139577c6cfaf8d4266f0a6e3508fef37267403bd5fa45544346722a02031631f1788d2e067824f179952914ced5d832297f85e5ec1ef67b872691ec924345ba776c8ba7fe977079d3397bbabdf250f0670acc5fcc32382377d88f8e79f7036837b1e25a5aae8a239a7f1bc68911aba96217a8bb185a74c91071baa8c71b610b4b284b6dc31b5fa0b4d7e655c9d46df9fcbeacddfa052e57b2cb8407414811b53f2cb3db585c160e2203a359d1923298d25c7477ac85a32ffeee5a2153c96c3b6d4e6c49d2686b958eafcf17894e17b1ceca02596936181e72785121f5e7fe4f22db127446d42b25161a1b6cdf86c2cde4eae7e8f0cf6fede16021475684613b2552290102ad3c89610eda47dddda408eee9848d90c684635002d6034118fdd31e83a88b6046560935756772b23add28803d266690dc4ae592eeaa73403c6211fe3cbd242b2c14d57e15c5edf6c80c3f30e854474c9f35645c42a33012039ca7c0ced158eef681da2cbb15dde784254ad538f9c6cd812ab01df450a22ea04d605a047437e606656f4a6d5e7c825a1d074e858fbd5f070a1a32c96c3a56b2ec49b169f575e3d0831bc10394c9708e5f53a251d1a059963fd082d4da4a694b9cc9f3aede4e325adf27fb7dd09df190cbb82d9c6beb1fec4b7851fe1c2f9538e8d0e5a9ecf7c6e4705ff7b1079cda0f7430582b80096b90d8e6c3a5588e79a84929d9539b560f6a7c0368ecf92dfa3e4391d3593a5a810ef85b9efd6d4626b2c93bcc4429a53d7e21b3b5d50c34d4a4a0d646fb2bd1000ba34d241c98889236284da348bf48e99095e1741b152db90bb334d0048d7c8d04321ec1c047363be47f033b1cdbb6b116b9b2ceb128e17d5e4cb4bd7be56b7d1f5bc15f37bc22afe79192b2a68513ca9b9ec8a1f420b6d501d42805a48063ed076d2fa833a2a726e50eea7240ad5ff29c339d670d8d1ca757f907d5232d8fba9317e62c998fa89af43d8817a0896ec719870c143e31f14903a69da57f43191abaaedafeeb2265eafe812d5fab91518d94cc0e096b5b0bafde0f1c808dabf10cbfada1354ef05d1d2e90babe07853ce542ebd88ce4360a8362e9e86588a1b0ba13abf9604c42e57bb4c80b4fde65072a36d293d016ed3bfd7662d8cb5043c0cff2279f42ad5aa27966a4d1ddf25587955b5a5bacbe6eacd2b6413a89b99e519d2a85802633f95cec03e4e2cace49ea6ac4f1272ddda8283d084b7f572b2b4634efa56d9cc13b478406417d3cfcb6a606a6fa9670d5c28607e77b99d4b7572ac2db10739beb9e52100584b1b62635342bdb63fa09e4f425c44d1adedb3066b141a322c6fe0bb22ac24e0d613408d1c596d0482291a90de149510d6fc6c52b5d5c5fcbc8062ac4ea44ffac2351fc0ffb643bf37e49dc5779fc6cdf87e3eb0390b16c7f78bfc7fc64b0b63720cb6e151bc8d472bf9ca6456d1094fe3ff77c843eeca1b2eeb49762774ed7daa5dff2d3eb903add03764ccb4d293344da87b53e00dc230b625428e5ee4f6873ad79c2a5ea57de72cb372320ac5905e6b31d1683fb1ffff994645a07e5486084842bb8b8fbe6deedb8924f36d7f6b7a086c801b45f395f9bdedd2cc1269382724e501d654e6dc36953a1fb9ca968d122566c5a389d4435e44148e4a75eb8bf4b3d157542114ea1df2d88f56c2f79b31ce3e447e2cc2eb53950b1f0ea710fb7c3474ea43dd1f866f17ef956506dc0303f394676f20d1e00e8f90dd43479f5370071a902b08951b97102185c9ae17542ae888f3d62b875d7be7348fc1c72239de2a152cfe76645a6cef10939865f6a3ce1e1d8fb7620be2046934c35da6355c9e32aeff57b813d6943a7651e5cefee2517ba2a2d3507152694322d535e77efc3c997e33bd570350cf7491e61ea17b11882ea27774c3bca0d20f829b351d8ac1219b25cd4ca9795f497b507a1ed9c8a868b8ecc812576aa0dec3236c729314206296ac65c74531d029fe95353f0002cb998e94a88c4eb0aa018edea6036ce44705a0d3a4d1bcec3e2e75223fa4c77c429560c10497cc7c799de04d8b99d27d99cff805537e6548912793d1e3c96fd99fad44ad2ebab19e4ddca0c499ef5ec1c180ac16bd818bab8bdc2236672abe9ee08cd6d8c145cf2e28884e7dc060a50c65259939084f21a77052d446325d37b788cae5c3b0b566294d64b0adabd18a1e264c2d8a9beeeb55691ea210063dd0383187409b1eaeae9935e7eace6050160df453f91d514cad2e67a88ca0e7d7badfd5fa4c00b1d9b6e0c0bbb43f662bdf0efc2d7aafbef1dcb08d2738ac426dbfb78ab39ad06dabc370e4b571b51e0c6853dd77ed7fb7c7765da192a876b50118e97daa081bb8088786e638c2361beeb8cb4c404ffdd72221df7a42a6acd2d4678416790b708ad12843d88e3f18f49c6558f30a8eb4f098b18b35455e1705e5a6bca448abd95aba13bfc24f46714380a16e090c8f448d07e13ba79a8d9c70aef1b892757361a5165912a9da5734985575a16f5fb9047f9306b5269e784e90587c14c60a934582c36b7b22918bc58ea915d9db8c7f0dde111c4c8b29c1d87148e419bdef780448d9df9c25de075596dadf3c63e5a8e0b2e1b32471cbec99ad01e225de8351dc76953edd54648113ccdfc4bba4e35d10960e32d813e54177675297b83f1f53c6b45b30e06bf30bb615a5bc69ef511ed91a1dab7c8c8b279c64c2a8569d7cb6adf594161cc921bc78018bcd50dfe7f894526efcfe4647f5ccb634cd8510c07ae7322e8b50ef11491cc0b1dcb3d04b7bc0313940a7bfb66d87da38c307b998e1779188549e9f0815c32127539626d87d0f745b83bd716f3e15649440f44f53106cc6a2b8d5167c4f6c3dbf507e62e93b4328b1775b9feb877e04b3fd25d82650b542c82273cdc6982d47f7e5a43a08f81f5c8596e9e7f7b9e1114b8ad96fda0a8f8d5e42f21f49a85f2908b444413ef86809da001d8ff9353f33659b8d8f611aa01bbbe83ab5eef9134834e67b1a1b7ba1db3338cafedc50dff6e32dc47ae1f9f777c360f10004ca7d0b5bd89ef6964e3bfe876cb254b1845c7d4e8c3d759c92b11e942a78124d72768b436f3e24697f8663ff5d5a46e9b88780f15b67b885544b23aefc3a7930db51533adc1e123912a79cbdcfb65a32b8241929eed1e9c2adc74c02ad02802a5c1db40f73f3a3f7000c73e6825b25301c3dc08ce3af3610ec4388ececee6c4ea1b1e0c13dcb4786f40e520530bf0e0d51a5f9b1d38a7a90d73acbcb95ea5946b683915d87109fac07a7ac40d2697673a38aaa472e17cac37abf5ee2877e3e619f2824606cdd2f21ee1d82056b45fe540d41517c9e62d500526ed04d2fcadeab8d8819dfea6e559d81853f3090d32d6e2f1a24ab8d53cb08acfee3a76f0d81de9e77da12b9aa5f17411fb8c4cd160ed16960613876fd3f2e9e4f7a6a566a0b78bb0b9623ce5d4628b6ff424599c4ce4e648aa09696e0d9e5b739fd9a31e7d605ec980a5e622fe3fcdc1e46da00775fd1ba1a7f549b4fec8a5c42f9e0f59f5e0cf44ad33aa00fac9e78d6c041a84fcec55b184d0c432a4f37b80bd000ba73193c30788089e11c9286f242325f3f34e75583e92e1edbbb4743495a72b541deb28f0706e011d3177243308669d02cd299fc5b1e66dbd25b5f4c1f7af77525738dfcb1bea84c812e2032252dc71cd910b31be205ae676b80bdc18d5598b7cd3d08605996bd41950b0d9ffe2d2facfc530a22e338884d5b308a145d6f7ccedb8543f1e2e040eaf56b30dfc586ef3f75f7250aef2d14155f6911245e2febe9feafd4b8eec0f95f6e7c1e52362c160acc7ab2533c03a97aa14ce6b124ba191cdfde4132fc3e73ad7dd7afa37aad05d09049d2544223d50766a1a60c3b348145009c7a046928358f277480a2a11e744a09d45d0cc7208f08d26f7366c5413121f6de6f32ba04822424d30171a9c2f7a57100c956a6ff68d5465d3f6157c018df154845d4ee7f066dd7f2680e147b57aec7d6c8641c0f65563a8802adff7e9a25411f44de6e03c20a5929a187af0ff95641482453669477e1ab28deab5bf43f9a9a6f6624d134977c67fd7577db6c805d1af4cf2328c446fe5f1b35225ddd5bef8bcb5c491a08e0c1abb0fdbe03456abed4413b3b97e66178132bb056a11fac96ab18c4f07121adc3dd2d6a28ce990e1ea9537c9e05eccc4e050d2e77edc255798b1083e59e3805efd74ed70baa9698bddd42523d022abf91c1d72ebe77dc59703209f5b374b36ce8a3f9e257acd5e6ef7b9c2e055eb9150ee897d53ec03ddc4cd68d92899e2790611818ee3844311b8ba7c05b8e5244b97f530b829a5e6b49e5fef6fc465ccec2fdb096ee156cf42896299b53f563056a3905e0903ff6c22d75de9b32249e35a8169ce950c3193290dccea7536e79e4a8ed49dd77a6c244da486720d96b1790cb87a5100addd458db130d6787899ac94ed8bcc38131574cb7205ed86032ee76087aaff0a8aa721eb3ab1c986098d5117cac288be5611716a72baca2ec4864c80431b92091955004af6729291f40a8aa75d5baf62c7f9dc64dc106b36da4f1f02bc670e7005123b25ec35885f7e1e6f284114d8446e521cf07e131c1894f20e171b7b62b3849f5920ec9231254909178153fc8b23e9ad37b9ac2f4e8005fc582c4c145b4de44b6082c67c9c86dcdcc33192f4999c1027f49964b1274486ecb4c649ac76878c2415cef85f88a21ed6a67cd365bbf71c120a22cb4618ad5468f7bfee4437bfb714849453a0bb7b185c866f6e3e922c6cf87a8cd9aef9cb7d207a05651e1c01debc730e79809043e1554d57599a415d6b001237a679c0b4d7fafd924a9b61da23fd17ce985f7984e425c57e8620f3a7402c751230feed43c19cfb7d3af04bb795380b24cfbc512b2b821521ebbbcf8276256948b4f0df22dad81c753f6d33701bdf0795c23d517900a2efb67dbd8e1bf6e8314b3077ef449e07fc8fe2506687177e696434bc95b940a0fa63b8e2837fa32b810433a16eb0d44cb58b81624ec7dea0f7d494dba63d4596ccc4f00ae63baa8798407330439a8afd6c1253592d120f78b1ce46c478a4a647532d5e25142712bba5a2cc59cac9ae1048c6b9673af6b42c08cea7ced27cbc0e755b45a306639b23e9de628b250b2a39e1b564493baeca04ab82602c2713dfa93cac93e430eba6621c9770f9de39a85f521c8c513748e605d3bbd4ac1a2fe29640b1a1414dac49456b2d8c202f94b710fa4d8689bb689d008c5027318e3ea727cb36fbbf9a24cd0df73e388c6fae2c99da767da3e6fe4a75fba5f3eddeb74bce14a088a51d6e95b578468c25b7b79ba80aec43bc5bf2fcd3c7ad71be096e2007f07fe0b1fdf67ad51a20421c8ba7da69e249264cbc09c9ae6968a5ec38a9c75e7b7301e625fb8debcab68282e5c0de34c74e8ab8952fc3dd62f2536c09d79a0a942dccff22e685e24416b521ef6a199091a5c1964a8513b8e8b3a5115e996923d16b5eeaea2c0bac31949bb199fa02b7cc8d7f6d32da9216abb2291b6a22a1275e1701792e527bff18e92cf30928178c372fdd4591b6b0fa1848874d0b41601434f4ba253e19d01aa4aa486392cc03234df2f1e882b93d024ed58793c51d26c83bba4e6e0803e6f38b324c9e3d0abeb6d2fbc39ef956a1b0ddc2fc4e47c14318f4b039739173dbd04b1bc52626ca594bc3e3057eff93139a17776554a00c76f4dc14123fd921d30562e4b74fb544f7888c53ae58c0905b6eb9222d6e260be5b138cb511ff83ff4870b33d7f26ca7cc9b317b944f344ba88fb765de6f9f86fbdccc5a89028f5444d7b4f16a30cbbb2be02e8e932203abab214bf213c5dd96885a7910695f939d943ce9a28d939667917debe614fbec8c537df850380ee24930dcd52c709618ca23fcb90254188264b2e77278671d06100dc75128a98119399bbc84924b978f926dc0fb1b6665b42176a96b3737679b7f507c50bfe141fae1f7e6469f323cfd244830e212860854adb4ca15ffabc99472316847e8ba0189c7ce7f080741e4f62f1522b77beefc3065a298470564aab2d252e5ba8045c500f9e568deeff398e9fcc8d76be434c9d435edb62c9df197c397ffd5f148870bd2abfa41eb7dd2265b3e235b1030cb59a90089243724f60e99f5d9ef8c6c088be559f02011796f6999a579012d26f69629c7056b3a1fa19baae65a2aa7a13ff3bf888dffc1b75ca2ddd195bc993642b89b377c0d829c98c83f4f8311ccb65fdb1de15472411a87ffb38fcba69bc14bb389d5d99d5b9de760f1c85bcb29e0b0cb962b6fdb4f05cac91b28bb0696ce62f02dbb6ee01fb0f025640828dcb7d6b61b3d2c562b8f9273a0d8d50bc9b07b6899bb141e08eb5188162215339388f6ee96fc3ad4268d319499532e6b2d2493cd3faf1c26a7059fb3d9dafc5f066d06c609e035be8409eb76baac2ce8193b51740e0a1295d3ac3648153c7063d7067cf722e00000cfbb9afb4542961db75334ed6058b72b29f8215ba05f918387bbeb6e59a1bb0c9607d1b099d82572b2e1662d0d94809d3d8de9b61d9623307617b96d33e80898cc0ca99cfc3a783b6a6c36d5c1474e32704ff016c292ffa6d74b8e6bad3c79f82a071bea82dc5f5182136fec974e2370a6794a2ac18d84c316e041f5afbd99129dce4b8ed86e672f0701beb43b34080641ff18cf6b4866a6e9b7c5935615439386add3b45f6e85e8db2b5666d0b764d728a2200fbd3557458095ce206e01ae0d29551be795e29c0285821e5c2c2bf9d486d2afa8517a44b8c1fb3040de47eb95a12949298fbc978f11e6db868ebdf6bd0715b19d0cb887338667e81513e09d935c2269f489f8bd10e3cb1de612375af1f7d8e7a122175379b1db85b7de0a0591933e7670e30d0d16206aa5321d214f8221464ff78ead41c2151e8ebbaaa9e9a0b8e5528ea72cab782fa63be8050dfcc51a5e4898b79eb615d8e71e7c45ae8895ea510ccee69c77cb8d0140f21845f315663f20add705662d9c4f42d6f9251451e213ea6e31a00cab94275d8f853e78029c7cd054502ff5c0bece0b641d84c6a07a8ba5c26c123bbfb6601639d1b2c6cd51ae999f458f507b34948b83d41a06ecd88e26307e7a5a0ae20c603e16ba8ee74ec0e2b5bbde0b1d8985105d992e290b8d78682025d5bd3caf652b279a9fdc255577e11e5e8457a1629d93b468146d792d421e57eb6feb582532f9281055ee46826e44d206da14a4f65fe74cee8e6e45c00638c4cc711b6654d0ca189e96bf048ac9ba741c1e397f19af2c03d945cb3a947377f1dbeb331b9f211c4be0153449fbb5163465ebedf7ee0ae1671549116bc9865abc7192f5e3a10e319fea9d38d4aec36965134a697576eec7b7e86c111f99f507f35407b0a20b8807995483f236abe112c59b2f919cec73a2e7834165913a7db9878983b82cb3770d306418b1651181fadaf8a7f4c31af8b77c1292e4b08a27fc00724fc2a2e3a928ed7cf26b1f9e5f90f92024e4b678450f869fc7d11956fb918bcca791f757a92c408135870a729f0bbc9e1d2a7e7477cea187ffdf93d3fe09ba0e78bee9d6607270262ee7b49ba9dfd059053b4bd225baaa270ad9a2ed438b5d34e3c4d45b185bb3bb297a94604f784c9e28e7b9aa8f2612fa7678f0897a2a302d5222c72a21aa10d0e3b9f4a261bc17579ac7368d9849c8a1502b7ebf547bf9004577857b53c0b82ec21dc3406d1bee68b08b2ce16aa7432f9f97ae1fe8f2ffc78f898e53a36eafa4ad1fba90306b6f5a435b13089919a86bcad8be0f8789b29e9c33321124ce2bc82a881bb47bca3f30b5712cca4100e21c9a69bde7c2559e26f08a7ca0cd469e226e3862d6291d348dddab7c7b074cdfaf4d35e8f958b880cfc09ef285beec823f24a1703f906c4fcc6084dd36dbfc4e8fa726416c2b536e475cd3fe7edc336b57b64c4e35c3ce3c35f12ee4a11234f65caa760cc4cd54084ed1998faaed93a5a2c26e96ed3564d0913d193a4a8a7ba7dad35a8fda6878224f27244f1ef376e1fdeedba528656cf8abc272039e6319a0baf0f8f06e55851f97a45ed9b7f6059f8438af95bdfb90369be109c4b8880d1d79729ecdb184cff0764111d5fff97cefb60bfb4f1063a26a0d12c1f53ecabe4f849e9a2657c42114bf6d21fb43ee9ffe65c2fafe9762bfcf3f4cf3e3c866c12b849256665687e8948056bc5ca79b7e7270b54f78660b607471378953097604bf0f946d86c8526951fe20982b6418f4ba6c5fc17f9f95e18cfc7694926ecc8c4046a4cb55b45db9addff70d473c8af8260d517dd082f761147c09ed71c7906ec796ab6b278c42f706f7b62982b1502784d76f9d37fde99daee3c9283a47bd9db85aa4f40e22037075622dcfa302f415be43ea5705dae43386503c66b5dcd5cc92e92d0841053d9d31f748d984a667b46ce5def76c1704ab4aec47dba64128c7127d8429f94dc308354a6d96743e232cf289fd7fb94ef000013e1fa7d1b7525d928de201c74b3de73d6cca1e99ffadb56ee5d17448543b9702ea2cc4856a90a7cb67f4d269269512b3c1611c1b57345bde310af855c27f1654ab68c965e68b6ffab3fbb5afdab37f737b4ffd1a31a717f4bb9deea72b6f34506f83aba3e88962a2668b5d0f24e353015bd90e935ba6e6b62ab205e6e176f8737aedd8d78f8fb35e6216f34d24a3cc7b331d29338feba7f2a6f4342254b4b66ab73ab6c05a40a14ecebb51bc39d568fee6b3097267e3bd3d190b098b62cdee834b5469af18e07ee64b5b5040bdc45f4851f1e8b8ce8a486de1c0f6efafd14019d4bb06aecbdd9d37eece5da1a0751c558a0028587c5a967d2275f0374587acd3ffb3efbfb8b4e1841d60a5c05b9b52e28eb59cdd54323937fb830ac2edc9cad00fd5cfc56cf8ddad10f824b37a6ca22ff5e05863c4890951c92e2e2e3df5987551840bcf13c7dc2c7eb1346b45f81dcc5fa5f7e9b8604f56ec58d92d8a3c41f7c1f4bf84f6f72e525ad21e9d4c7ac20e380e2c32dd586753b25038ef4b8aa41edfdd494f96d2bb223c3955dc855fc9d8e1a7cfef03fd4dc08529314ecbd65ea68d8b79e72f18bace49b43b34971399855a5daee27ad40dd161e3cf34648cd2889a4aeb7050adeebedfaf801d2fc467b1c2acdfeb2052ea62bdf488761bb64b5d054b63b16e835969de5f621e680077dc0cf030c6b392d9183723b1a16bdb48818e28de414aea957084bf89ca5be52e0000352f8fe3d440c9021bcb2f8862a6ef1eb02d669fe1a3660810d80fb3d9c07c7e3f7b3c8e55614e343a75e55e18940771924fd693d37608a1c6fd7efc50ffaa8926561d4d3f39b6716c187a3603f1917b2e7dc002de1dbd8c91600a8b0bb508a3be52549206bd8e7be72b836c8dd86258745f3e0082116bddf1661286f1a0bdc04be12f52131a171289daf6e21568868475a27d666e6ba67b257af1ef7e3b3e350009f59a327dacf7e78226af9601f6e3b9205690ae78040eab62210a4e18dda65e33454a812256354151b9b250c45584b786bc24315603ab49a4e6798d8c24c7b2faa7a19faf0d93eed29a5f9d9461696b380e1999c42be96910eb17af801172c07b65aa6a444d4bd4140c4076da91ce5e3f87af95f429a030c43556b1627964b9d76d595a6332ef1a17a97f68fafce6674fcc8133e083b0b88a0234415a11f506c0bef778763c6b45d5b7f1c2750c5a3940f17b4b85dd146ddbb7c461e209a6fd75c8abaf188e1ac5ed99728501f50502b06157003df6ea8c7840128a00d30719b5b65aa1a44ab1eec9f21d9b8d763136891a5855c1d260241737c2c2ae000293e4993242e52d988e7454759f8f92aae470ea2da15651d8bce921f0997dcb4cd7fa1aa0effd9b37e1b4baef3e28bce9919c99753a50f5968f62abb454b5b491a60bf41cad491d040a292f73ecd3757ccfb7041e63bd732775670a6a1a1ba21cf8055edf1b440d53619c770629cb7446bb7915402dc23db24f334d570c1a5e48d12eb12ca46757086f1a0eef96dd9682fe78df61a0c2a9c312deccb2e8ecc75dbc295e0ebeb6e422fb7165b21ee372c989d4fc843e9f082d7fd869d22c0e8803852279d955612f4264ae4f7cd0036b5bf81c7df5da6add3dfc741245cfa44e77bc1d78de513c054613e4dddd15b6c208664908904320ff2b9d0d7224acc5e0bdec799b1681b0b7f6f420f9a9e98cd6d422c6b2ac635c1817dd57f4eb68abbf03eb80974b5998107fa12ff27c60060b193315118b713d20ba912985743d17555c3237ebde30197f4c190c3490d403501d0c6f2ad0fc989a6b367628671c6829089052b92689024c7c50c7d5ca8688cb63b53ee66dfdbb6394751a9ab9029306596739dbd0416e0dabd15170e402be874e6e7eaeb0fc06904b76943fd57540f043d9e64f3b7e61cf08c3444892aa03a05bca56a21d59c32b3d77b7d0f100633c444367e0c94f39d2cf83f9abf369bc11c2a24631d2488e3c2b716641a143480061129c2e53e752d47722bcbc0e5187908814fd2ab020cc7784107b17c2d3475c710d4ce062a7561c3a2136fda606af07f1628f5000000\";\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(\"Hivefacai\", 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 [\"Lucky robot\", \"Lucky robot\", \"Lucky robot\", \"Lucky robot\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Tiny crown\", \"Tiny crown\", \"Tiny crown\", \"Tiny crown\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Golden rim light\", \"Golden rim light\", \"Golden rim light\", \"Golden rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Red-gold gradient\", \"Red-gold gradient\", \"Red-gold gradient\", \"Red-gold gradient\"];\n    }\n\n\n    /// @notice Raw artwork bytes read from the IMAGE data contract.\n    function _img() internal view returns (bytes memory b) {\n        address a = IMAGE;\n        uint256 n = a.code.length - 1;\n        b = new bytes(n);\n        assembly {\n            extcodecopy(a, add(b, 32), 1, n)\n        }\n    }\n\n    function _svg(uint256) internal view returns (string memory) {\n        return string.concat('<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 400 400\"><image width=\"400\" height=\"400\" href=\"data:image/webp;base64,', Base64.encode(_img()), '\"/></svg>');\n    }\n\n    function _attributes(uint256 s) internal pure returns (string memory) {\n        return string.concat(\n            '[{\"trait_type\":\"Character\",\"value\":\"', _pick(_T1(), s), '\"},',\n            '{\"trait_type\":\"Outfit\",\"value\":\"', _pick(_T2(), s >> 8), '\"},',\n            '{\"trait_type\":\"Light\",\"value\":\"', _pick(_T3(), s >> 16), '\"},',\n            '{\"trait_type\":\"Background\",\"value\":\"', _pick(_T4(), s >> 80), '\"}]'\n        );\n    }\n\n    /// @notice The token's SVG image.\n    function image(uint256 id) public view returns (string memory) {\n        _requireOwned(id);\n        return _svg(_seed(id));\n    }\n\n    function tokenURI(uint256 id) public view override returns (string memory) {\n        _requireOwned(id);\n        uint256 s = _seed(id);\n        string memory json = string.concat(\n            '{\"name\":\"Hivefacai #', id.toString(),\n            '\",\"description\":\"Hivefacai is 700 Cheerful little robot with a tiny crown holding a glowing red envelope with a lucky fa cai smile on a red-gold gradient. Art generated fully on-chain on BNB Chain. Minted by .ai Agent ID holders.\",',\n            '\"image\":\"data:image/svg+xml;base64,', Base64.encode(bytes(_svg(s))),\n            '\",\"attributes\":', _attributes(s), '}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    /// @notice Collection-level metadata for marketplaces.\n    function contractURI() external pure returns (string memory) {\n        string memory json = string.concat(\n            '{\"name\":\"Hivefacai\",\"description\":\"Hivefacai is 700 Cheerful little robot with a tiny crown holding a glowing red envelope with a lucky fa cai smile on a red-gold gradient. Art generated fully on-chain on BNB Chain. Mint is gated to .ai Agent ID holders.\",',\n            '\"seller_fee_basis_points\":500}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    // ---------------- owner ----------------\n\n    function setMintOpen(bool open) external onlyOwner {\n        mintOpen = open;\n    }\n\n    function setRoyalty(address receiver, uint96 feeBps) external onlyOwner {\n        _setDefaultRoyalty(receiver, feeBps);\n    }\n\n    function withdraw() external onlyOwner {\n        (bool ok,) = owner().call{value: address(this).balance}(\"\");\n        if (!ok) revert WithdrawFailed();\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981) returns (bool) {\n        return super.supportsInterface(interfaceId);\n    }\n}"}},"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"BadQuantity","type":"error","inputs":[]},{"name":"ERC2981InvalidDefaultRoyalty","type":"error","inputs":[{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC2981InvalidTokenRoyalty","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721IncorrectOwner","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InsufficientApproval","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"ERC721InvalidApprover","type":"error","inputs":[{"name":"approver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOperator","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InvalidReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidSender","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"}]},{"name":"ERC721NonexistentToken","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"MintClosed","type":"error","inputs":[]},{"name":"NoAgentId","type":"error","inputs":[]},{"name":"OnlyWallets","type":"error","inputs":[]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"SoldOut","type":"error","inputs":[]},{"name":"WalletLimit","type":"error","inputs":[]},{"name":"WithdrawFailed","type":"error","inputs":[]},{"name":"WrongPayment","type":"error","inputs":[]},{"name":"Approval","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ApprovalForAll","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"Launched","type":"event","inputs":[{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"agent","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Transfer","type":"event","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"AGENT_ID","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IAgentIdRegistry"}],"stateMutability":"view"},{"name":"FREE_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"FREE_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"IMAGE","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"MAX_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"approve","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"balanceOf","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"contractURI","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"pure"},{"name":"freeClaimed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeFor","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"n","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeLeft","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeUsed","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getApproved","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"image","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"isApprovedForAll","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mint","type":"function","inputs":[{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"mintOpen","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintedBy","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"name","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"ownerOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"quote","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"royaltyInfo","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"salePrice","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setApprovalForAll","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setMintOpen","type":"function","inputs":[{"name":"open","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRoyalty","type":"function","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"feeBps","type":"uint96","internalType":"uint96"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"symbol","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"tokenURI","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"totalSupply","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdraw","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"}],"matchId":"58368682","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-04T13:22:46Z","match":"exact_match","chainId":"56","address":"0xd337F2cb906CD5c571eDF4a28DbE66a2447A6281"}