ETH Price: $2,973.95 (+1.85%)
Gas: 2 Gwei

Token

CypherDudes (CYD)
 

Overview

Max Total Supply

1,450 CYD

Holders

372

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CypherDudes

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 19 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 3 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

File 4 of 19 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;

import {IERC2981} from "../../interfaces/IERC2981.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 5 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.20;

import {IERC721} from "./IERC721.sol";
import {IERC721Receiver} from "./IERC721Receiver.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual returns (uint256) {
        if (owner == address(0)) {
            revert ERC721InvalidOwner(address(0));
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return _requireOwned(tokenId);
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {
        _requireOwned(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        _approve(to, tokenId, _msgSender());
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual returns (address) {
        _requireOwned(tokenId);

        return _getApproved(tokenId);
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
        transferFrom(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner != address(0)) {
            revert ERC721InvalidSender(address(0));
        }
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
        _mint(to, tokenId);
        _checkOnERC721Received(address(0), to, tokenId, data);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal {
        address previousOwner = _update(address(0), tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        } else if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients
     * are aware of the ERC721 standard to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is like {safeTransferFrom} in the sense that it invokes
     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `tokenId` token must exist and be owned by `from`.
     * - `to` cannot be the zero address.
     * - `from` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId) internal {
        _safeTransfer(from, to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

File 6 of 19 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.20;

import {ERC721} from "../ERC721.sol";
import {ERC2981} from "../../common/ERC2981.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually
 * for specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

File 7 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 8 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 9 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be
     * reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 19 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 11 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the Merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 12 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 14 of 19 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 15 of 19 : SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.

pragma solidity ^0.8.20;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeCast {
    /**
     * @dev Value doesn't fit in an uint of `bits` size.
     */
    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);

    /**
     * @dev An int value doesn't fit in an uint of `bits` size.
     */
    error SafeCastOverflowedIntToUint(int256 value);

    /**
     * @dev Value doesn't fit in an int of `bits` size.
     */
    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);

    /**
     * @dev An uint value doesn't fit in an int of `bits` size.
     */
    error SafeCastOverflowedUintToInt(uint256 value);

    /**
     * @dev Returns the downcasted uint248 from uint256, reverting on
     * overflow (when the input is greater than largest uint248).
     *
     * Counterpart to Solidity's `uint248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     */
    function toUint248(uint256 value) internal pure returns (uint248) {
        if (value > type(uint248).max) {
            revert SafeCastOverflowedUintDowncast(248, value);
        }
        return uint248(value);
    }

    /**
     * @dev Returns the downcasted uint240 from uint256, reverting on
     * overflow (when the input is greater than largest uint240).
     *
     * Counterpart to Solidity's `uint240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     */
    function toUint240(uint256 value) internal pure returns (uint240) {
        if (value > type(uint240).max) {
            revert SafeCastOverflowedUintDowncast(240, value);
        }
        return uint240(value);
    }

    /**
     * @dev Returns the downcasted uint232 from uint256, reverting on
     * overflow (when the input is greater than largest uint232).
     *
     * Counterpart to Solidity's `uint232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     */
    function toUint232(uint256 value) internal pure returns (uint232) {
        if (value > type(uint232).max) {
            revert SafeCastOverflowedUintDowncast(232, value);
        }
        return uint232(value);
    }

    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        if (value > type(uint224).max) {
            revert SafeCastOverflowedUintDowncast(224, value);
        }
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint216 from uint256, reverting on
     * overflow (when the input is greater than largest uint216).
     *
     * Counterpart to Solidity's `uint216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     */
    function toUint216(uint256 value) internal pure returns (uint216) {
        if (value > type(uint216).max) {
            revert SafeCastOverflowedUintDowncast(216, value);
        }
        return uint216(value);
    }

    /**
     * @dev Returns the downcasted uint208 from uint256, reverting on
     * overflow (when the input is greater than largest uint208).
     *
     * Counterpart to Solidity's `uint208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     */
    function toUint208(uint256 value) internal pure returns (uint208) {
        if (value > type(uint208).max) {
            revert SafeCastOverflowedUintDowncast(208, value);
        }
        return uint208(value);
    }

    /**
     * @dev Returns the downcasted uint200 from uint256, reverting on
     * overflow (when the input is greater than largest uint200).
     *
     * Counterpart to Solidity's `uint200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     */
    function toUint200(uint256 value) internal pure returns (uint200) {
        if (value > type(uint200).max) {
            revert SafeCastOverflowedUintDowncast(200, value);
        }
        return uint200(value);
    }

    /**
     * @dev Returns the downcasted uint192 from uint256, reverting on
     * overflow (when the input is greater than largest uint192).
     *
     * Counterpart to Solidity's `uint192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     */
    function toUint192(uint256 value) internal pure returns (uint192) {
        if (value > type(uint192).max) {
            revert SafeCastOverflowedUintDowncast(192, value);
        }
        return uint192(value);
    }

    /**
     * @dev Returns the downcasted uint184 from uint256, reverting on
     * overflow (when the input is greater than largest uint184).
     *
     * Counterpart to Solidity's `uint184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     */
    function toUint184(uint256 value) internal pure returns (uint184) {
        if (value > type(uint184).max) {
            revert SafeCastOverflowedUintDowncast(184, value);
        }
        return uint184(value);
    }

    /**
     * @dev Returns the downcasted uint176 from uint256, reverting on
     * overflow (when the input is greater than largest uint176).
     *
     * Counterpart to Solidity's `uint176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     */
    function toUint176(uint256 value) internal pure returns (uint176) {
        if (value > type(uint176).max) {
            revert SafeCastOverflowedUintDowncast(176, value);
        }
        return uint176(value);
    }

    /**
     * @dev Returns the downcasted uint168 from uint256, reverting on
     * overflow (when the input is greater than largest uint168).
     *
     * Counterpart to Solidity's `uint168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     */
    function toUint168(uint256 value) internal pure returns (uint168) {
        if (value > type(uint168).max) {
            revert SafeCastOverflowedUintDowncast(168, value);
        }
        return uint168(value);
    }

    /**
     * @dev Returns the downcasted uint160 from uint256, reverting on
     * overflow (when the input is greater than largest uint160).
     *
     * Counterpart to Solidity's `uint160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     */
    function toUint160(uint256 value) internal pure returns (uint160) {
        if (value > type(uint160).max) {
            revert SafeCastOverflowedUintDowncast(160, value);
        }
        return uint160(value);
    }

    /**
     * @dev Returns the downcasted uint152 from uint256, reverting on
     * overflow (when the input is greater than largest uint152).
     *
     * Counterpart to Solidity's `uint152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     */
    function toUint152(uint256 value) internal pure returns (uint152) {
        if (value > type(uint152).max) {
            revert SafeCastOverflowedUintDowncast(152, value);
        }
        return uint152(value);
    }

    /**
     * @dev Returns the downcasted uint144 from uint256, reverting on
     * overflow (when the input is greater than largest uint144).
     *
     * Counterpart to Solidity's `uint144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     */
    function toUint144(uint256 value) internal pure returns (uint144) {
        if (value > type(uint144).max) {
            revert SafeCastOverflowedUintDowncast(144, value);
        }
        return uint144(value);
    }

    /**
     * @dev Returns the downcasted uint136 from uint256, reverting on
     * overflow (when the input is greater than largest uint136).
     *
     * Counterpart to Solidity's `uint136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     */
    function toUint136(uint256 value) internal pure returns (uint136) {
        if (value > type(uint136).max) {
            revert SafeCastOverflowedUintDowncast(136, value);
        }
        return uint136(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        if (value > type(uint128).max) {
            revert SafeCastOverflowedUintDowncast(128, value);
        }
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint120 from uint256, reverting on
     * overflow (when the input is greater than largest uint120).
     *
     * Counterpart to Solidity's `uint120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     */
    function toUint120(uint256 value) internal pure returns (uint120) {
        if (value > type(uint120).max) {
            revert SafeCastOverflowedUintDowncast(120, value);
        }
        return uint120(value);
    }

    /**
     * @dev Returns the downcasted uint112 from uint256, reverting on
     * overflow (when the input is greater than largest uint112).
     *
     * Counterpart to Solidity's `uint112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     */
    function toUint112(uint256 value) internal pure returns (uint112) {
        if (value > type(uint112).max) {
            revert SafeCastOverflowedUintDowncast(112, value);
        }
        return uint112(value);
    }

    /**
     * @dev Returns the downcasted uint104 from uint256, reverting on
     * overflow (when the input is greater than largest uint104).
     *
     * Counterpart to Solidity's `uint104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     */
    function toUint104(uint256 value) internal pure returns (uint104) {
        if (value > type(uint104).max) {
            revert SafeCastOverflowedUintDowncast(104, value);
        }
        return uint104(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        if (value > type(uint96).max) {
            revert SafeCastOverflowedUintDowncast(96, value);
        }
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint88 from uint256, reverting on
     * overflow (when the input is greater than largest uint88).
     *
     * Counterpart to Solidity's `uint88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     */
    function toUint88(uint256 value) internal pure returns (uint88) {
        if (value > type(uint88).max) {
            revert SafeCastOverflowedUintDowncast(88, value);
        }
        return uint88(value);
    }

    /**
     * @dev Returns the downcasted uint80 from uint256, reverting on
     * overflow (when the input is greater than largest uint80).
     *
     * Counterpart to Solidity's `uint80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     */
    function toUint80(uint256 value) internal pure returns (uint80) {
        if (value > type(uint80).max) {
            revert SafeCastOverflowedUintDowncast(80, value);
        }
        return uint80(value);
    }

    /**
     * @dev Returns the downcasted uint72 from uint256, reverting on
     * overflow (when the input is greater than largest uint72).
     *
     * Counterpart to Solidity's `uint72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     */
    function toUint72(uint256 value) internal pure returns (uint72) {
        if (value > type(uint72).max) {
            revert SafeCastOverflowedUintDowncast(72, value);
        }
        return uint72(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        if (value > type(uint64).max) {
            revert SafeCastOverflowedUintDowncast(64, value);
        }
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint56 from uint256, reverting on
     * overflow (when the input is greater than largest uint56).
     *
     * Counterpart to Solidity's `uint56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     */
    function toUint56(uint256 value) internal pure returns (uint56) {
        if (value > type(uint56).max) {
            revert SafeCastOverflowedUintDowncast(56, value);
        }
        return uint56(value);
    }

    /**
     * @dev Returns the downcasted uint48 from uint256, reverting on
     * overflow (when the input is greater than largest uint48).
     *
     * Counterpart to Solidity's `uint48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     */
    function toUint48(uint256 value) internal pure returns (uint48) {
        if (value > type(uint48).max) {
            revert SafeCastOverflowedUintDowncast(48, value);
        }
        return uint48(value);
    }

    /**
     * @dev Returns the downcasted uint40 from uint256, reverting on
     * overflow (when the input is greater than largest uint40).
     *
     * Counterpart to Solidity's `uint40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     */
    function toUint40(uint256 value) internal pure returns (uint40) {
        if (value > type(uint40).max) {
            revert SafeCastOverflowedUintDowncast(40, value);
        }
        return uint40(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        if (value > type(uint32).max) {
            revert SafeCastOverflowedUintDowncast(32, value);
        }
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint24 from uint256, reverting on
     * overflow (when the input is greater than largest uint24).
     *
     * Counterpart to Solidity's `uint24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     */
    function toUint24(uint256 value) internal pure returns (uint24) {
        if (value > type(uint24).max) {
            revert SafeCastOverflowedUintDowncast(24, value);
        }
        return uint24(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        if (value > type(uint16).max) {
            revert SafeCastOverflowedUintDowncast(16, value);
        }
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        if (value > type(uint8).max) {
            revert SafeCastOverflowedUintDowncast(8, value);
        }
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        if (value < 0) {
            revert SafeCastOverflowedIntToUint(value);
        }
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int248 from int256, reverting on
     * overflow (when the input is less than smallest int248 or
     * greater than largest int248).
     *
     * Counterpart to Solidity's `int248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     */
    function toInt248(int256 value) internal pure returns (int248 downcasted) {
        downcasted = int248(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(248, value);
        }
    }

    /**
     * @dev Returns the downcasted int240 from int256, reverting on
     * overflow (when the input is less than smallest int240 or
     * greater than largest int240).
     *
     * Counterpart to Solidity's `int240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     */
    function toInt240(int256 value) internal pure returns (int240 downcasted) {
        downcasted = int240(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(240, value);
        }
    }

    /**
     * @dev Returns the downcasted int232 from int256, reverting on
     * overflow (when the input is less than smallest int232 or
     * greater than largest int232).
     *
     * Counterpart to Solidity's `int232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     */
    function toInt232(int256 value) internal pure returns (int232 downcasted) {
        downcasted = int232(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(232, value);
        }
    }

    /**
     * @dev Returns the downcasted int224 from int256, reverting on
     * overflow (when the input is less than smallest int224 or
     * greater than largest int224).
     *
     * Counterpart to Solidity's `int224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toInt224(int256 value) internal pure returns (int224 downcasted) {
        downcasted = int224(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(224, value);
        }
    }

    /**
     * @dev Returns the downcasted int216 from int256, reverting on
     * overflow (when the input is less than smallest int216 or
     * greater than largest int216).
     *
     * Counterpart to Solidity's `int216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     */
    function toInt216(int256 value) internal pure returns (int216 downcasted) {
        downcasted = int216(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(216, value);
        }
    }

    /**
     * @dev Returns the downcasted int208 from int256, reverting on
     * overflow (when the input is less than smallest int208 or
     * greater than largest int208).
     *
     * Counterpart to Solidity's `int208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     */
    function toInt208(int256 value) internal pure returns (int208 downcasted) {
        downcasted = int208(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(208, value);
        }
    }

    /**
     * @dev Returns the downcasted int200 from int256, reverting on
     * overflow (when the input is less than smallest int200 or
     * greater than largest int200).
     *
     * Counterpart to Solidity's `int200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     */
    function toInt200(int256 value) internal pure returns (int200 downcasted) {
        downcasted = int200(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(200, value);
        }
    }

    /**
     * @dev Returns the downcasted int192 from int256, reverting on
     * overflow (when the input is less than smallest int192 or
     * greater than largest int192).
     *
     * Counterpart to Solidity's `int192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     */
    function toInt192(int256 value) internal pure returns (int192 downcasted) {
        downcasted = int192(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(192, value);
        }
    }

    /**
     * @dev Returns the downcasted int184 from int256, reverting on
     * overflow (when the input is less than smallest int184 or
     * greater than largest int184).
     *
     * Counterpart to Solidity's `int184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     */
    function toInt184(int256 value) internal pure returns (int184 downcasted) {
        downcasted = int184(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(184, value);
        }
    }

    /**
     * @dev Returns the downcasted int176 from int256, reverting on
     * overflow (when the input is less than smallest int176 or
     * greater than largest int176).
     *
     * Counterpart to Solidity's `int176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     */
    function toInt176(int256 value) internal pure returns (int176 downcasted) {
        downcasted = int176(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(176, value);
        }
    }

    /**
     * @dev Returns the downcasted int168 from int256, reverting on
     * overflow (when the input is less than smallest int168 or
     * greater than largest int168).
     *
     * Counterpart to Solidity's `int168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     */
    function toInt168(int256 value) internal pure returns (int168 downcasted) {
        downcasted = int168(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(168, value);
        }
    }

    /**
     * @dev Returns the downcasted int160 from int256, reverting on
     * overflow (when the input is less than smallest int160 or
     * greater than largest int160).
     *
     * Counterpart to Solidity's `int160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     */
    function toInt160(int256 value) internal pure returns (int160 downcasted) {
        downcasted = int160(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(160, value);
        }
    }

    /**
     * @dev Returns the downcasted int152 from int256, reverting on
     * overflow (when the input is less than smallest int152 or
     * greater than largest int152).
     *
     * Counterpart to Solidity's `int152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     */
    function toInt152(int256 value) internal pure returns (int152 downcasted) {
        downcasted = int152(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(152, value);
        }
    }

    /**
     * @dev Returns the downcasted int144 from int256, reverting on
     * overflow (when the input is less than smallest int144 or
     * greater than largest int144).
     *
     * Counterpart to Solidity's `int144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     */
    function toInt144(int256 value) internal pure returns (int144 downcasted) {
        downcasted = int144(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(144, value);
        }
    }

    /**
     * @dev Returns the downcasted int136 from int256, reverting on
     * overflow (when the input is less than smallest int136 or
     * greater than largest int136).
     *
     * Counterpart to Solidity's `int136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     */
    function toInt136(int256 value) internal pure returns (int136 downcasted) {
        downcasted = int136(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(136, value);
        }
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toInt128(int256 value) internal pure returns (int128 downcasted) {
        downcasted = int128(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(128, value);
        }
    }

    /**
     * @dev Returns the downcasted int120 from int256, reverting on
     * overflow (when the input is less than smallest int120 or
     * greater than largest int120).
     *
     * Counterpart to Solidity's `int120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     */
    function toInt120(int256 value) internal pure returns (int120 downcasted) {
        downcasted = int120(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(120, value);
        }
    }

    /**
     * @dev Returns the downcasted int112 from int256, reverting on
     * overflow (when the input is less than smallest int112 or
     * greater than largest int112).
     *
     * Counterpart to Solidity's `int112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     */
    function toInt112(int256 value) internal pure returns (int112 downcasted) {
        downcasted = int112(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(112, value);
        }
    }

    /**
     * @dev Returns the downcasted int104 from int256, reverting on
     * overflow (when the input is less than smallest int104 or
     * greater than largest int104).
     *
     * Counterpart to Solidity's `int104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     */
    function toInt104(int256 value) internal pure returns (int104 downcasted) {
        downcasted = int104(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(104, value);
        }
    }

    /**
     * @dev Returns the downcasted int96 from int256, reverting on
     * overflow (when the input is less than smallest int96 or
     * greater than largest int96).
     *
     * Counterpart to Solidity's `int96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toInt96(int256 value) internal pure returns (int96 downcasted) {
        downcasted = int96(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(96, value);
        }
    }

    /**
     * @dev Returns the downcasted int88 from int256, reverting on
     * overflow (when the input is less than smallest int88 or
     * greater than largest int88).
     *
     * Counterpart to Solidity's `int88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     */
    function toInt88(int256 value) internal pure returns (int88 downcasted) {
        downcasted = int88(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(88, value);
        }
    }

    /**
     * @dev Returns the downcasted int80 from int256, reverting on
     * overflow (when the input is less than smallest int80 or
     * greater than largest int80).
     *
     * Counterpart to Solidity's `int80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     */
    function toInt80(int256 value) internal pure returns (int80 downcasted) {
        downcasted = int80(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(80, value);
        }
    }

    /**
     * @dev Returns the downcasted int72 from int256, reverting on
     * overflow (when the input is less than smallest int72 or
     * greater than largest int72).
     *
     * Counterpart to Solidity's `int72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     */
    function toInt72(int256 value) internal pure returns (int72 downcasted) {
        downcasted = int72(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(72, value);
        }
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toInt64(int256 value) internal pure returns (int64 downcasted) {
        downcasted = int64(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(64, value);
        }
    }

    /**
     * @dev Returns the downcasted int56 from int256, reverting on
     * overflow (when the input is less than smallest int56 or
     * greater than largest int56).
     *
     * Counterpart to Solidity's `int56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     */
    function toInt56(int256 value) internal pure returns (int56 downcasted) {
        downcasted = int56(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(56, value);
        }
    }

    /**
     * @dev Returns the downcasted int48 from int256, reverting on
     * overflow (when the input is less than smallest int48 or
     * greater than largest int48).
     *
     * Counterpart to Solidity's `int48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     */
    function toInt48(int256 value) internal pure returns (int48 downcasted) {
        downcasted = int48(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(48, value);
        }
    }

    /**
     * @dev Returns the downcasted int40 from int256, reverting on
     * overflow (when the input is less than smallest int40 or
     * greater than largest int40).
     *
     * Counterpart to Solidity's `int40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     */
    function toInt40(int256 value) internal pure returns (int40 downcasted) {
        downcasted = int40(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(40, value);
        }
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toInt32(int256 value) internal pure returns (int32 downcasted) {
        downcasted = int32(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(32, value);
        }
    }

    /**
     * @dev Returns the downcasted int24 from int256, reverting on
     * overflow (when the input is less than smallest int24 or
     * greater than largest int24).
     *
     * Counterpart to Solidity's `int24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     */
    function toInt24(int256 value) internal pure returns (int24 downcasted) {
        downcasted = int24(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(24, value);
        }
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toInt16(int256 value) internal pure returns (int16 downcasted) {
        downcasted = int16(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(16, value);
        }
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     */
    function toInt8(int256 value) internal pure returns (int8 downcasted) {
        downcasted = int8(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(8, value);
        }
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        if (value > uint256(type(int256).max)) {
            revert SafeCastOverflowedUintToInt(value);
        }
        return int256(value);
    }
}

File 16 of 19 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 17 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 18 of 19 : CypherDudes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import {SafeCast} from "@openzeppelin/contracts/utils/math/SafeCast.sol";
import {File, Content} from "./ethfs/File.sol";

error NotTheOwner(string filename, address caller);
error NotAuthorized();
error MaxSupplyReached();
error SupplyLocked();

interface ICypherdudesFileStore {
    function storeFile(string calldata filename, bytes calldata content) external returns(File memory file);
    function deleteCard(string calldata filename) external;
    function readFile(string calldata filename) external view returns(string memory content);
    error NottheOwner(string filename, address wrongAddress);
}

interface ICypherDudesRenderer {
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// Returns the decimal string representation of value
function itoa(uint value) pure returns (string memory) {

  // Count the length of the decimal string representation
  uint length = 1;
  uint v = value;
  while ((v /= 10) != 0) { length++; }

  // Allocated enough bytes
  bytes memory result = new bytes(length);

  // Place each ASCII string character in the string,
  // right to left
  while (true) {
    length--;

    // The ASCII value of the modulo 10 value
    result[length] = bytes1(uint8(0x30 + (value % 10)));

    value /= 10;

    if (length == 0) { break; }
  }

  return string(result);
}

/// @title CypherDudes
/// @author @felixfelixfelix

contract CypherDudes is ERC721Royalty, Ownable {
    using SafeCast for uint256;

    uint256 public totalSupply = 0;
    uint256 public maxSupply;
    uint256 public cost = 0.031337 ether;


    uint private constant MAX_SALE = 1792;
    uint private constant MAX_GIFT = 256;

    bytes32 public merkleRoot;

    uint256 public publicSaleStartTime = 1708621200000;
    uint256 public wlSaleStartTime = 1708614000000;

/// @dev Token variable to generate traits and track the progression
    struct TokenData {
        uint256 seed;
        uint256 globalProgression;
        string secretWord;
    }

/// @dev EIP-2098 compact signature representation
    struct SignatureCompact {
        bytes32 r;
        bytes32 yParityAndS;
    }

    ICypherdudesFileStore public fileStore;
    ICypherDudesRenderer public renderer;

/// @dev Mapping from token ID to token data
    mapping(uint256 => TokenData) public tokenData;

    constructor(
        address filestore_,
        address cypherdudesRenderer
    ) ERC721("CypherDudes", "CYD") Ownable(msg.sender) {
        maxSupply = 2048;
        fileStore = ICypherdudesFileStore(filestore_);
        renderer = ICypherDudesRenderer(cypherdudesRenderer);
        _setDefaultRoyalty(msg.sender, 500);
    }

    function setMerkleRoot(bytes32 _root) public onlyOwner {
        merkleRoot = _root;
    }

    /// @dev Reentrancy protection
    modifier callerIsUser(){
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    /// @dev Whitelist managment
    function isWhiteListed(address _account, bytes32[] calldata _proof) internal view returns(bool){
        return _verify(leaf(_account), _proof);
    }

    function leaf(address _account) internal pure returns(bytes32){
        return keccak256(abi.encodePacked(_account));
    }

    function _verify(bytes32 _leaf, bytes32[] memory _proof) internal view returns(bool){
        return MerkleProof.verify(_proof, merkleRoot, _leaf);
    }
    
    /// @dev contract dependency managment
    function setFileStoreContract(address _FileStoreContract) public onlyOwner{
        fileStore = ICypherdudesFileStore(_FileStoreContract);
    }
    function setRenderer(address _cypherdudesRenderer) public onlyOwner{
        renderer = ICypherDudesRenderer(_cypherdudesRenderer);
    }
    
    /// @dev internal mint function
    function mint() internal {
        if (totalSupply >= maxSupply-320) revert MaxSupplyReached();
        if (_msgSender() == owner()) revert NotAuthorized();

        uint256 _tokenId = totalSupply;
        totalSupply++;
        uint256 seed = uint256(keccak256(abi.encodePacked( block.number, block.timestamp, _msgSender(), _tokenId)));
        tokenData[_tokenId].globalProgression = seed%192 + 1;
        seed >>=8;
        tokenData[_tokenId].seed = seed;
        tokenData[_tokenId].secretWord = "";
        //
        fileStore.storeFile(string.concat("cypherCard_",toString(_tokenId)), "0x02797021a27e3f37a6631267647187c784f4a893cede9fd11089b7be3fefa5e972e0776cbe6bef2990c009a41138469675399bdba49c5e979e46aec7095cf428ccde43f6060c320d6680b73432f757d8660bbdd1e4144638fdb516b74fa77778ac8c65c42bed2d9176ed6cf973961bd1ba0d6b0bc548fdf583b645adb6f737e5c68abd277d3381484333309d3cc785091b92850f4c29f1f32dcd098d0adcdc70999a86c099b4b2a6a8333f764737ba6c0674375064b04ed8336e0f7bf6ab05a0");
        _safeMint(_msgSender(), _tokenId);
    }

    /// @dev Whitelist mint function
    function whitelistMint(uint256 _quantity, bytes32[] calldata _proof) external payable callerIsUser{
        require(block.timestamp < wlSaleStartTime, "WhiteList Sale is not activated");
        require(isWhiteListed(_msgSender(), _proof), "Not Whitelisted");
        require(totalSupply + _quantity <= MAX_SALE, "Not enough Cypherdudes left");
        require(_quantity >= 1, "No minting request");
        require(msg.value >= _quantity * 0.031337 ether, "Not enough funds");
        uint256 i;
        do {
            mint();
            unchecked{++i;}
        } while (i < _quantity);
    }

    /// @dev Public mint function
    function publicMint(uint256 _quantity) external payable callerIsUser{
        require(block.timestamp < publicSaleStartTime, "Public sale not activated");
        require(totalSupply + _quantity <= MAX_SALE, "Not enough Cypherdudes left");
        require(_quantity >= 1, "No minting request");
        require(msg.value >= _quantity * 0.031337 ether, "Not enough funds");
        uint256 i;
        do {
            mint();
            unchecked{++i;}
        } while (i < _quantity);
    }

    /// @dev Owner mint function
    function gift(uint256 _quantity) external onlyOwner{
        require(block.timestamp > publicSaleStartTime, "Gift not possible yet");
        uint256 i;
        do {
            mint();
            unchecked{++i;}
        } while (i < _quantity);
    }

    /// @dev sale starts managment
    function setWlSaleStart(uint256 _time) public onlyOwner{
        wlSaleStartTime = _time;
    }

    function setPublicSaleStart(uint256 _time) public onlyOwner{
        publicSaleStartTime = _time;
    }

    /// @dev withdraw contract balance
    function withdraw() public payable onlyOwner {
        require(payable(_msgSender()).send(address(this).balance));
    }

    /// @dev claims the words from the offchain list after signature validation
    function signedClaimWord(string calldata word, SignatureCompact calldata sig, uint256 tokenId) public {
        // Decompose the EIP-2098 signature (the struct is 64 bytes in length)
        uint8 v = 27 + uint8(uint256(sig.yParityAndS) >> 255);
        bytes32 s = bytes32((uint256(sig.yParityAndS) << 1) >> 1);

        address caller = _ecrecover(word, v, sig.r, s);

        if (caller == ownerOf(tokenId)){
            tokenData[tokenId].secretWord = word;
        } else {
            revert NotAuthorized();
        }
    }
    
    /// @dev read the message writen on the card
    function readCard(uint256 tokenId) public view returns(string memory content){
        return fileStore.readFile(string.concat("cypherCard_",toString(tokenId)));
    }

    /// @dev writes the message on the card
    function writeCard(uint256 tokenId, bytes memory content) public returns(File memory file){
        string memory filename = string.concat("cypherCard_",toString(tokenId));
        if(ownerOf(tokenId) == msg.sender){
            fileStore.deleteCard(filename);
            if(tokenData[tokenId].globalProgression < 289){
                ++tokenData[tokenId].globalProgression;
            }
            return fileStore.storeFile(filename, content);
        } else {
            revert NotTheOwner(filename, msg.sender);
            }
    }

    /// @dev calls the renderer token URI function
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        return renderer.tokenURI(tokenId);
    }

    /// @dev Decryption main function
    function encrypt(string memory key, string memory message) public pure returns(bytes memory mainHash){
       bytes memory hash = abi.encode(key, message);
       bytes memory hashedRecipient = abi.encode(key);

       return translate(hash, hashedRecipient);
   }

   /// @dev Decryption main function
   function decrypt(string memory key,bytes memory hash) public pure returns(string memory _message) {
       bytes memory hashedRecipient = abi.encode(key);
       bytes memory hashedMessage = translate(hash, hashedRecipient);

       return _message = read(hashedMessage);

   }

   /// @dev decode and extract message
   function read(bytes memory hash) private pure returns (string memory _message){
       (, _message) = abi.decode(hash, (string, string));
           return _message;  
   }

   /// @dev Bidirectional Encryption function
   function translate (bytes memory data, bytes memory key) private pure returns (bytes memory result) {
   // Store data length on stack for later use
   uint256 length = data.length;

   assembly {
       // Set result to free memory pointer
       result := mload (0x40)
       // Increase free memory pointer by lenght + 32
       mstore (0x40, add (add (result, length), 32))
       // Set result length
       mstore (result, length)
   }

   // Iterate over the data stepping by 32 bytes
   for (uint i = 0; i < length; i += 32) {
       // Generate hash of the key and offset
       bytes32 hash = keccak256 (abi.encodePacked (key, i));

       bytes32 chunk;
       assembly {
       // Read 32-bytes data chunk
       chunk := mload (add (data, add (i, 32)))
       }
       // XOR the chunk with hash
       chunk ^= hash;
       assembly {
       // Write 32-byte encrypted chunk
       mstore (add (result, add (i, 32)), chunk)
       }
   }
   }
    /// @dev Helper function to convert uint256 into string
    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
 
        uint256 temp = value;
        uint256 digits;
 
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
 
        bytes memory buffer = new bytes(digits);
 
        while (value != 0) {
            digits--;
            buffer[digits] = bytes1(uint8(48 + (value % 10)));
            value /= 10;
        }
 
        return string(buffer);
    }

    /// @dev Signer function
    function _ecrecover(string memory message, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // Compute the EIP-191 prefixed message
        bytes memory prefixedMessage = abi.encodePacked(
        "\x19Ethereum Signed Message:\n",
        itoa(bytes(message).length),
        message
        );

        // Compute the message digest
        bytes32 digest = keccak256(prefixedMessage);

        // Use the native ecrecover provided by the EVM
        return ecrecover(digest, v, r, s);
    }

}

File 19 of 19 : File.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.20;

struct Content {
    bytes32 checksum;
    address pointer;
}

struct File {
    uint256 size; // content length in bytes, max 24k
    Content[] contents;
}

function read(File memory file) view returns (string memory contents) {
    Content[] memory chunks = file.contents;

    // Adapted from https://gist.github.com/xtremetom/20411eb126aaf35f98c8a8ffa00123cd
    assembly {
        let len := mload(chunks)
        let totalSize := 0x20
        contents := mload(0x40)
        let size
        let chunk
        let pointer

        // loop through all pointer addresses
        // - get content
        // - get address
        // - get data size
        // - get code and add to contents
        // - update total size

        for { let i := 0 } lt(i, len) { i := add(i, 1) } {
            chunk := mload(add(chunks, add(0x20, mul(i, 0x20))))
            pointer := mload(add(chunk, 0x20))

            size := sub(extcodesize(pointer), 1)
            extcodecopy(pointer, add(contents, totalSize), 1, size)
            totalSize := add(totalSize, size)
        }

        // update contents size
        mstore(contents, sub(totalSize, 0x20))
        // store contents
        mstore(0x40, add(contents, and(add(totalSize, 0x1f), not(0x1f))))
    }
}

using {read} for File global;

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"filestore_","type":"address"},{"internalType":"address","name":"cypherdudesRenderer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[{"internalType":"string","name":"filename","type":"string"},{"internalType":"address","name":"caller","type":"address"}],"name":"NotTheOwner","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"bytes","name":"hash","type":"bytes"}],"name":"decrypt","outputs":[{"internalType":"string","name":"_message","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"message","type":"string"}],"name":"encrypt","outputs":[{"internalType":"bytes","name":"mainHash","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"fileStore","outputs":[{"internalType":"contract ICypherdudesFileStore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readCard","outputs":[{"internalType":"string","name":"content","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract ICypherDudesRenderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_FileStoreContract","type":"address"}],"name":"setFileStoreContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setPublicSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cypherdudesRenderer","type":"address"}],"name":"setRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setWlSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"word","type":"string"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"yParityAndS","type":"bytes32"}],"internalType":"struct CypherDudes.SignatureCompact","name":"sig","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"signedClaimWord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenData","outputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint256","name":"globalProgression","type":"uint256"},{"internalType":"string","name":"secretWord","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"content","type":"bytes"}],"name":"writeCard","outputs":[{"components":[{"internalType":"uint256","name":"size","type":"uint256"},{"components":[{"internalType":"bytes32","name":"checksum","type":"bytes32"},{"internalType":"address","name":"pointer","type":"address"}],"internalType":"struct Content[]","name":"contents","type":"tuple[]"}],"internalType":"struct File","name":"file","type":"tuple"}],"stateMutability":"nonpayable","type":"function"}]

60806040526000600955666f54d5e1539000600b5565018dd1c27a80600d5565018dd1549d80600e553480156200003557600080fd5b5060405162005b6b38038062005b6b83398181016040528101906200005b919062000505565b336040518060400160405280600b81526020017f43797068657244756465730000000000000000000000000000000000000000008152506040518060400160405280600381526020017f43594400000000000000000000000000000000000000000000000000000000008152508160029081620000d99190620007c6565b508060039081620000eb9190620007c6565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001635760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016200015a9190620008be565b60405180910390fd5b62000174816200021c60201b60201c565b50610800600a8190555081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000214336101f4620002e260201b60201c565b50506200096a565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000620002f46200049160201b60201c565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff1611156200035c5781816040517f6f483d09000000000000000000000000000000000000000000000000000000008152600401620003539291906200093d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620003d15760006040517fb6d9900a000000000000000000000000000000000000000000000000000000008152600401620003c89190620008be565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b6000612710905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004cd82620004a0565b9050919050565b620004df81620004c0565b8114620004eb57600080fd5b50565b600081519050620004ff81620004d4565b92915050565b600080604083850312156200051f576200051e6200049b565b5b60006200052f85828601620004ee565b92505060206200054285828601620004ee565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005ce57607f821691505b602082108103620005e457620005e362000586565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200064e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200060f565b6200065a86836200060f565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006a7620006a16200069b8462000672565b6200067c565b62000672565b9050919050565b6000819050919050565b620006c38362000686565b620006db620006d282620006ae565b8484546200061c565b825550505050565b600090565b620006f2620006e3565b620006ff818484620006b8565b505050565b5b8181101562000727576200071b600082620006e8565b60018101905062000705565b5050565b601f82111562000776576200074081620005ea565b6200074b84620005ff565b810160208510156200075b578190505b620007736200076a85620005ff565b83018262000704565b50505b505050565b600082821c905092915050565b60006200079b600019846008026200077b565b1980831691505092915050565b6000620007b6838362000788565b9150826002028217905092915050565b620007d1826200054c565b67ffffffffffffffff811115620007ed57620007ec62000557565b5b620007f98254620005b5565b620008068282856200072b565b600060209050601f8311600181146200083e576000841562000829578287015190505b620008358582620007a8565b865550620008a5565b601f1984166200084e86620005ea565b60005b82811015620008785784890151825560018201915060208501945060208101905062000851565b8683101562000898578489015162000894601f89168262000788565b8355505b6001600288020188555050505b505050505050565b620008b881620004c0565b82525050565b6000602082019050620008d56000830184620008ad565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6000620009146200090e6200090884620008db565b6200067c565b62000672565b9050919050565b6200092681620008f3565b82525050565b620009378162000672565b82525050565b60006040820190506200095460008301856200091b565b6200096360208301846200092c565b9392505050565b6151f1806200097a6000396000f3fe60806040526004361061023b5760003560e01c80636bb7b1d91161012e578063b298247e116100ab578063d5474f2b1161006f578063d5474f2b14610883578063d5abeb01146108ac578063e4604df4146108d7578063e985e9c514610900578063f2fde38b1461093d5761023b565b8063b298247e14610799578063b4b5b48f146107c2578063b88d4fde14610801578063c87b56dd1461082a578063d2cab056146108675761023b565b80638da5cb5b116100f25780638da5cb5b146106b457806395d89b41146106df578063a101ef3e1461070a578063a22cb46514610747578063a25f751f146107705761023b565b80636bb7b1d9146105e157806370a082311461060c578063715018a6146106495780637cb64759146106605780638ada6b0f146106895761023b565b806323b872dd116101bc57806342842e0e1161018057806342842e0e146104ea57806345ea45e11461051357806356d3163d1461053e5780636100447b146105675780636352211e146105a45761023b565b806323b872dd146104325780632a55205a1461045b5780632db11544146104995780632eb4a7ab146104b55780633ccfd60b146104e05761023b565b8063125704b811610203578063125704b81461033757806313faede61461037457806318160ddd1461039f57806320c7c466146103ca57806321ea07e1146104075761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630ca282f71461030e575b600080fd5b34801561024c57600080fd5b506102676004803603810190610262919061322a565b610966565b6040516102749190613272565b60405180910390f35b34801561028957600080fd5b50610292610978565b60405161029f919061331d565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190613375565b610a0a565b6040516102dc91906133e3565b60405180910390f35b3480156102f157600080fd5b5061030c6004803603810190610307919061342a565b610a26565b005b34801561031a57600080fd5b5061033560048036038101906103309190613375565b610a3c565b005b34801561034357600080fd5b5061035e6004803603810190610359919061359f565b610a4e565b60405161036b919061366c565b60405180910390f35b34801561038057600080fd5b50610389610aae565b604051610396919061369d565b60405180910390f35b3480156103ab57600080fd5b506103b4610ab4565b6040516103c1919061369d565b60405180910390f35b3480156103d657600080fd5b506103f160048036038101906103ec9190613759565b610aba565b6040516103fe9190613907565b60405180910390f35b34801561041357600080fd5b5061041c610cf3565b6040516104299190613988565b60405180910390f35b34801561043e57600080fd5b50610459600480360381019061045491906139a3565b610d19565b005b34801561046757600080fd5b50610482600480360381019061047d91906139f6565b610e1b565b604051610490929190613a36565b60405180910390f35b6104b360048036038101906104ae9190613375565b611005565b005b3480156104c157600080fd5b506104ca6111be565b6040516104d79190613a6e565b60405180910390f35b6104e86111c4565b005b3480156104f657600080fd5b50610511600480360381019061050c91906139a3565b611213565b005b34801561051f57600080fd5b50610528611233565b604051610535919061369d565b60405180910390f35b34801561054a57600080fd5b5061056560048036038101906105609190613a89565b611239565b005b34801561057357600080fd5b5061058e60048036038101906105899190613ab6565b611285565b60405161059b919061331d565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c69190613375565b6112cc565b6040516105d891906133e3565b60405180910390f35b3480156105ed57600080fd5b506105f66112de565b604051610603919061369d565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190613a89565b6112e4565b604051610640919061369d565b60405180910390f35b34801561065557600080fd5b5061065e61139e565b005b34801561066c57600080fd5b5061068760048036038101906106829190613b5a565b6113b2565b005b34801561069557600080fd5b5061069e6113c4565b6040516106ab9190613ba8565b60405180910390f35b3480156106c057600080fd5b506106c96113ea565b6040516106d691906133e3565b60405180910390f35b3480156106eb57600080fd5b506106f4611414565b604051610701919061331d565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c9190613375565b6114a6565b60405161073e919061331d565b60405180910390f35b34801561075357600080fd5b5061076e60048036038101906107699190613bef565b611577565b005b34801561077c57600080fd5b5061079760048036038101906107929190613a89565b61158d565b005b3480156107a557600080fd5b506107c060048036038101906107bb9190613375565b6115d9565b005b3480156107ce57600080fd5b506107e960048036038101906107e49190613375565b611641565b6040516107f893929190613c2f565b60405180910390f35b34801561080d57600080fd5b5061082860048036038101906108239190613c6d565b6116f3565b005b34801561083657600080fd5b50610851600480360381019061084c9190613375565b611710565b60405161085e919061331d565b60405180910390f35b610881600480360381019061087c9190613d50565b6117ba565b005b34801561088f57600080fd5b506108aa60048036038101906108a59190613375565b6119c6565b005b3480156108b857600080fd5b506108c16119d8565b6040516108ce919061369d565b60405180910390f35b3480156108e357600080fd5b506108fe60048036038101906108f99190613e2a565b6119de565b005b34801561090c57600080fd5b5061092760048036038101906109229190613e9e565b611b09565b6040516109349190613272565b60405180910390f35b34801561094957600080fd5b50610964600480360381019061095f9190613a89565b611b9d565b005b600061097182611c23565b9050919050565b60606002805461098790613f0d565b80601f01602080910402602001604051908101604052809291908181526020018280546109b390613f0d565b8015610a005780601f106109d557610100808354040283529160200191610a00565b820191906000526020600020905b8154815290600101906020018083116109e357829003601f168201915b5050505050905090565b6000610a1582611d05565b50610a1f82611d8d565b9050919050565b610a388282610a33611dca565b611dd2565b5050565b610a44611de4565b80600d8190555050565b606060008383604051602001610a65929190613f3e565b6040516020818303038152906040529050600084604051602001610a89919061331d565b6040516020818303038152906040529050610aa48282611e6b565b9250505092915050565b600b5481565b60095481565b610ac26131a4565b6000610acd84611ef2565b604051602001610add9190613fd7565b60405160208183030381529060405290503373ffffffffffffffffffffffffffffffffffffffff16610b0e856112cc565b73ffffffffffffffffffffffffffffffffffffffff1603610cae57600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637fc92bf9826040518263ffffffff1660e01b8152600401610b84919061331d565b600060405180830381600087803b158015610b9e57600080fd5b505af1158015610bb2573d6000803e3d6000fd5b5050505061012160116000868152602001908152602001600020600101541015610c01576011600085815260200190815260200160002060010160008154610bf99061402c565b919050819055505b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638cb5e7dc82856040518363ffffffff1660e01b8152600401610c5e929190614074565b6000604051808303816000875af1158015610c7d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610ca69190614273565b915050610ced565b80336040517f919560ad000000000000000000000000000000000000000000000000000000008152600401610ce49291906142bc565b60405180910390fd5b92915050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d8b5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610d8291906133e3565b60405180910390fd5b6000610d9f8383610d9a611dca565b612051565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e15578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610e0c939291906142ec565b60405180910390fd5b50505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610fb05760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610fba61226b565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610fe69190614323565b610ff09190614394565b90508160000151819350935050509250929050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106a90614411565b60405180910390fd5b600d5442106110b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ae9061447d565b60405180910390fd5b610700816009546110c8919061449d565b1115611109576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111009061451d565b60405180910390fd5b600181101561114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490614589565b60405180910390fd5b666f54d5e1539000816111609190614323565b3410156111a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611199906145f5565b60405180910390fd5b60005b6111ad612275565b8060010190508181106111a5575050565b600c5481565b6111cc611de4565b6111d4611dca565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505061121157600080fd5b565b61122e838383604051806020016040528060008152506116f3565b505050565b600e5481565b611241611de4565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008360405160200161129a919061331d565b604051602081830303815290604052905060006112b78483611e6b565b90506112c2816124f4565b9250505092915050565b60006112d782611d05565b9050919050565b600d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113575760006040517f89c62b6400000000000000000000000000000000000000000000000000000000815260040161134e91906133e3565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113a6611de4565b6113b06000612515565b565b6113ba611de4565b80600c8190555050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461142390613f0d565b80601f016020809104026020016040519081016040528092919081815260200182805461144f90613f0d565b801561149c5780601f106114715761010080835404028352916020019161149c565b820191906000526020600020905b81548152906001019060200180831161147f57829003601f168201915b5050505050905090565b6060600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166360f9bb116114ef84611ef2565b6040516020016114ff9190613fd7565b6040516020818303038152906040526040518263ffffffff1660e01b815260040161152a919061331d565b600060405180830381865afa158015611547573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906115709190614685565b9050919050565b611589611582611dca565b83836125db565b5050565b611595611de4565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115e1611de4565b600d544211611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c9061471a565b60405180910390fd5b60005b611630612275565b806001019050818110611628575050565b601160205280600052604060002060009150905080600001549080600101549080600201805461167090613f0d565b80601f016020809104026020016040519081016040528092919081815260200182805461169c90613f0d565b80156116e95780601f106116be576101008083540402835291602001916116e9565b820191906000526020600020905b8154815290600101906020018083116116cc57829003601f168201915b5050505050905083565b6116fe848484610d19565b61170a8484848461274a565b50505050565b6060601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b815260040161176d919061369d565b600060405180830381865afa15801561178a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906117b39190614685565b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90614411565b60405180910390fd5b600e54421061186c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186390614786565b60405180910390fd5b61187e611877611dca565b8383612901565b6118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b4906147f2565b60405180910390fd5b610700836009546118ce919061449d565b111561190f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119069061451d565b60405180910390fd5b6001831015611953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194a90614589565b60405180910390fd5b666f54d5e1539000836119669190614323565b3410156119a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199f906145f5565b60405180910390fd5b60005b6119b3612275565b8060010190508381106119ab5750505050565b6119ce611de4565b80600e8190555050565b600a5481565b600060ff836020013560001c901c601b6119f8919061481f565b90506000600180856020013560001c901b901c60001b90506000611a6687878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508487600001358561295f565b9050611a71846112cc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ace578686601160008781526020019081526020016000206002019182611ac8929190614a01565b50611b00565b6040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ba5611de4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c175760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611c0e91906133e3565b60405180910390fd5b611c2081612515565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611cee57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611cfe5750611cfd826129f6565b5b9050919050565b600080611d1183612a70565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d8457826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611d7b919061369d565b60405180910390fd5b80915050919050565b60006006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b611ddf8383836001612aad565b505050565b611dec611dca565b73ffffffffffffffffffffffffffffffffffffffff16611e0a6113ea565b73ffffffffffffffffffffffffffffffffffffffff1614611e6957611e2d611dca565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611e6091906133e3565b60405180910390fd5b565b6060600083519050604051915060208183010160405280825260005b81811015611eea5760008482604051602001611ea4929190614b2e565b6040516020818303038152906040528051906020012090506000602083018701519050818118905080602084018601525050602081611ee3919061449d565b9050611e87565b505092915050565b606060008203611f39576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061204c565b600082905060005b60008214611f6b578080611f549061402c565b915050600a82611f649190614394565b9150611f41565b60008167ffffffffffffffff811115611f8757611f86613474565b5b6040519080825280601f01601f191660200182016040528015611fb95781602001600182028036833780820191505090505b5090505b60008514612045578180611fd090614b56565b925050600a85611fe09190614b7f565b6030611fec919061449d565b60f81b81838151811061200257612001614bb0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561203e9190614394565b9450611fbd565b8093505050505b919050565b60008061205d84612a70565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461209f5761209e818486612c72565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612130576120e1600085600080612aad565b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146121b3576001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846004600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6000612710905090565b610140600a546122859190614bdf565b600954106122bf576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122c76113ea565b73ffffffffffffffffffffffffffffffffffffffff166122e5611dca565b73ffffffffffffffffffffffffffffffffffffffff1603612332576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060095490506009600081548092919061234c9061402c565b91905055506000434261235d611dca565b846040516020016123719493929190614c5b565b6040516020818303038152906040528051906020012060001c9050600160c08261239b9190614b7f565b6123a5919061449d565b6011600084815260200190815260200160002060010181905550600881901c9050806011600084815260200190815260200160002060000181905550604051806020016040528060008152506011600084815260200190815260200160002060020190816124139190614ca9565b50600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638cb5e7dc61245b84611ef2565b60405160200161246b9190613fd7565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016124969190614f96565b6000604051808303816000875af11580156124b5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906124de9190614273565b506124f06124ea611dca565b83612d36565b5050565b60608180602001905181019061250a9190614fcb565b905080915050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361264c57816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161264391906133e3565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161273d9190613272565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b11156128fb578273ffffffffffffffffffffffffffffffffffffffff1663150b7a0261278e611dca565b8685856040518563ffffffff1660e01b81526004016127b09493929190615043565b6020604051808303816000875af19250505080156127ec57506040513d601f19601f820116820180604052508101906127e991906150a4565b60015b612870573d806000811461281c576040519150601f19603f3d011682016040523d82523d6000602084013e612821565b606091505b50600081510361286857836040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161285f91906133e3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146128f957836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016128f091906133e3565b60405180910390fd5b505b50505050565b600061295661290f85612d54565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612d84565b90509392505050565b60008061296c8651612d9b565b8660405160200161297e92919061511d565b6040516020818303038152906040529050600081805190602001209050600181878787604051600081526020016040526040516129be949392919061515b565b6020604051602081039080840390855afa1580156129e0573d6000803e3d6000fd5b5050506020604051035192505050949350505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a695750612a6882612ebb565b5b9050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080612ae65750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612c1a576000612af684611d05565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b6157508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015612b745750612b728184611b09565b155b15612bb657826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401612bad91906133e3565b60405180910390fd5b8115612c1857838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836006600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612c7d838383612f25565b612d3157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612cf257806040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612ce9919061369d565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612d28929190613a36565b60405180910390fd5b505050565b612d50828260405180602001604052806000815250612fe6565b5050565b600081604051602001612d6791906151a0565b604051602081830303815290604052805190602001209050919050565b6000612d9382600c5485613002565b905092915050565b606060006001905060008390505b6000600a82612db89190614394565b91508114612dd3578180612dcb9061402c565b925050612da9565b60008267ffffffffffffffff811115612def57612dee613474565b5b6040519080825280601f01601f191660200182016040528015612e215781602001600182028036833780820191505090505b5090505b600115612eb0578280612e3790614b56565b935050600a85612e479190614b7f565b6030612e53919061449d565b60f81b818481518110612e6957612e68614bb0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ea59190614394565b945060008303612e25575b809350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612fdd57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f9e5750612f9d8484611b09565b5b80612fdc57508273ffffffffffffffffffffffffffffffffffffffff16612fc483611d8d565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b612ff08383613019565b612ffd600084848461274a565b505050565b60008261300f8584613112565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361308b5760006040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161308291906133e3565b60405180910390fd5b600061309983836000612051565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461310d5760006040517f73c6ac6e00000000000000000000000000000000000000000000000000000000815260040161310491906133e3565b60405180910390fd5b505050565b60008082905060005b8451811015613157576131488286838151811061313b5761313a614bb0565b5b6020026020010151613162565b9150808060010191505061311b565b508091505092915050565b600081831061317a57613175828461318d565b613185565b613184838361318d565b5b905092915050565b600082600052816020526040600020905092915050565b604051806040016040528060008152602001606081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613207816131d2565b811461321257600080fd5b50565b600081359050613224816131fe565b92915050565b6000602082840312156132405761323f6131c8565b5b600061324e84828501613215565b91505092915050565b60008115159050919050565b61326c81613257565b82525050565b60006020820190506132876000830184613263565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132c75780820151818401526020810190506132ac565b60008484015250505050565b6000601f19601f8301169050919050565b60006132ef8261328d565b6132f98185613298565b93506133098185602086016132a9565b613312816132d3565b840191505092915050565b6000602082019050818103600083015261333781846132e4565b905092915050565b6000819050919050565b6133528161333f565b811461335d57600080fd5b50565b60008135905061336f81613349565b92915050565b60006020828403121561338b5761338a6131c8565b5b600061339984828501613360565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133cd826133a2565b9050919050565b6133dd816133c2565b82525050565b60006020820190506133f860008301846133d4565b92915050565b613407816133c2565b811461341257600080fd5b50565b600081359050613424816133fe565b92915050565b60008060408385031215613441576134406131c8565b5b600061344f85828601613415565b925050602061346085828601613360565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134ac826132d3565b810181811067ffffffffffffffff821117156134cb576134ca613474565b5b80604052505050565b60006134de6131be565b90506134ea82826134a3565b919050565b600067ffffffffffffffff82111561350a57613509613474565b5b613513826132d3565b9050602081019050919050565b82818337600083830152505050565b600061354261353d846134ef565b6134d4565b90508281526020810184848401111561355e5761355d61346f565b5b613569848285613520565b509392505050565b600082601f8301126135865761358561346a565b5b813561359684826020860161352f565b91505092915050565b600080604083850312156135b6576135b56131c8565b5b600083013567ffffffffffffffff8111156135d4576135d36131cd565b5b6135e085828601613571565b925050602083013567ffffffffffffffff811115613601576136006131cd565b5b61360d85828601613571565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b600061363e82613617565b6136488185613622565b93506136588185602086016132a9565b613661816132d3565b840191505092915050565b600060208201905081810360008301526136868184613633565b905092915050565b6136978161333f565b82525050565b60006020820190506136b2600083018461368e565b92915050565b600067ffffffffffffffff8211156136d3576136d2613474565b5b6136dc826132d3565b9050602081019050919050565b60006136fc6136f7846136b8565b6134d4565b9050828152602081018484840111156137185761371761346f565b5b613723848285613520565b509392505050565b600082601f8301126137405761373f61346a565b5b81356137508482602086016136e9565b91505092915050565b600080604083850312156137705761376f6131c8565b5b600061377e85828601613360565b925050602083013567ffffffffffffffff81111561379f5761379e6131cd565b5b6137ab8582860161372b565b9150509250929050565b6137be8161333f565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b613803816137f0565b82525050565b613812816133c2565b82525050565b60408201600082015161382e60008501826137fa565b5060208201516138416020850182613809565b50505050565b60006138538383613818565b60408301905092915050565b6000602082019050919050565b6000613877826137c4565b61388181856137cf565b935061388c836137e0565b8060005b838110156138bd5781516138a48882613847565b97506138af8361385f565b925050600181019050613890565b5085935050505092915050565b60006040830160008301516138e260008601826137b5565b50602083015184820360208601526138fa828261386c565b9150508091505092915050565b6000602082019050818103600083015261392181846138ca565b905092915050565b6000819050919050565b600061394e613949613944846133a2565b613929565b6133a2565b9050919050565b600061396082613933565b9050919050565b600061397282613955565b9050919050565b61398281613967565b82525050565b600060208201905061399d6000830184613979565b92915050565b6000806000606084860312156139bc576139bb6131c8565b5b60006139ca86828701613415565b93505060206139db86828701613415565b92505060406139ec86828701613360565b9150509250925092565b60008060408385031215613a0d57613a0c6131c8565b5b6000613a1b85828601613360565b9250506020613a2c85828601613360565b9150509250929050565b6000604082019050613a4b60008301856133d4565b613a58602083018461368e565b9392505050565b613a68816137f0565b82525050565b6000602082019050613a836000830184613a5f565b92915050565b600060208284031215613a9f57613a9e6131c8565b5b6000613aad84828501613415565b91505092915050565b60008060408385031215613acd57613acc6131c8565b5b600083013567ffffffffffffffff811115613aeb57613aea6131cd565b5b613af785828601613571565b925050602083013567ffffffffffffffff811115613b1857613b176131cd565b5b613b248582860161372b565b9150509250929050565b613b37816137f0565b8114613b4257600080fd5b50565b600081359050613b5481613b2e565b92915050565b600060208284031215613b7057613b6f6131c8565b5b6000613b7e84828501613b45565b91505092915050565b6000613b9282613955565b9050919050565b613ba281613b87565b82525050565b6000602082019050613bbd6000830184613b99565b92915050565b613bcc81613257565b8114613bd757600080fd5b50565b600081359050613be981613bc3565b92915050565b60008060408385031215613c0657613c056131c8565b5b6000613c1485828601613415565b9250506020613c2585828601613bda565b9150509250929050565b6000606082019050613c44600083018661368e565b613c51602083018561368e565b8181036040830152613c6381846132e4565b9050949350505050565b60008060008060808587031215613c8757613c866131c8565b5b6000613c9587828801613415565b9450506020613ca687828801613415565b9350506040613cb787828801613360565b925050606085013567ffffffffffffffff811115613cd857613cd76131cd565b5b613ce48782880161372b565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613d1057613d0f61346a565b5b8235905067ffffffffffffffff811115613d2d57613d2c613cf0565b5b602083019150836020820283011115613d4957613d48613cf5565b5b9250929050565b600080600060408486031215613d6957613d686131c8565b5b6000613d7786828701613360565b935050602084013567ffffffffffffffff811115613d9857613d976131cd565b5b613da486828701613cfa565b92509250509250925092565b60008083601f840112613dc657613dc561346a565b5b8235905067ffffffffffffffff811115613de357613de2613cf0565b5b602083019150836001820283011115613dff57613dfe613cf5565b5b9250929050565b600080fd5b600060408284031215613e2157613e20613e06565b5b81905092915050565b60008060008060808587031215613e4457613e436131c8565b5b600085013567ffffffffffffffff811115613e6257613e616131cd565b5b613e6e87828801613db0565b94509450506020613e8187828801613e0b565b9250506060613e9287828801613360565b91505092959194509250565b60008060408385031215613eb557613eb46131c8565b5b6000613ec385828601613415565b9250506020613ed485828601613415565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f2557607f821691505b602082108103613f3857613f37613ede565b5b50919050565b60006040820190508181036000830152613f5881856132e4565b90508181036020830152613f6c81846132e4565b90509392505050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600081905092915050565b6000613fb18261328d565b613fbb8185613f9b565b9350613fcb8185602086016132a9565b80840191505092915050565b6000613fe282613f75565b600b82019150613ff28284613fa6565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140378261333f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361406957614068613ffd565b5b600182019050919050565b6000604082019050818103600083015261408e81856132e4565b905081810360208301526140a28184613633565b90509392505050565b600080fd5b600080fd5b6000815190506140c481613349565b92915050565b600067ffffffffffffffff8211156140e5576140e4613474565b5b602082029050602081019050919050565b60008151905061410581613b2e565b92915050565b60008151905061411a816133fe565b92915050565b600060408284031215614136576141356140ab565b5b61414060406134d4565b90506000614150848285016140f6565b60008301525060206141648482850161410b565b60208301525092915050565b600061418361417e846140ca565b6134d4565b905080838252602082019050604084028301858111156141a6576141a5613cf5565b5b835b818110156141cf57806141bb8882614120565b8452602084019350506040810190506141a8565b5050509392505050565b600082601f8301126141ee576141ed61346a565b5b81516141fe848260208601614170565b91505092915050565b60006040828403121561421d5761421c6140ab565b5b61422760406134d4565b90506000614237848285016140b5565b600083015250602082015167ffffffffffffffff81111561425b5761425a6140b0565b5b614267848285016141d9565b60208301525092915050565b600060208284031215614289576142886131c8565b5b600082015167ffffffffffffffff8111156142a7576142a66131cd565b5b6142b384828501614207565b91505092915050565b600060408201905081810360008301526142d681856132e4565b90506142e560208301846133d4565b9392505050565b600060608201905061430160008301866133d4565b61430e602083018561368e565b61431b60408301846133d4565b949350505050565b600061432e8261333f565b91506143398361333f565b92508282026143478161333f565b9150828204841483151761435e5761435d613ffd565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061439f8261333f565b91506143aa8361333f565b9250826143ba576143b9614365565b5b828204905092915050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b60006143fb601e83613298565b9150614406826143c5565b602082019050919050565b6000602082019050818103600083015261442a816143ee565b9050919050565b7f5075626c69632073616c65206e6f742061637469766174656400000000000000600082015250565b6000614467601983613298565b915061447282614431565b602082019050919050565b600060208201905081810360008301526144968161445a565b9050919050565b60006144a88261333f565b91506144b38361333f565b92508282019050808211156144cb576144ca613ffd565b5b92915050565b7f4e6f7420656e6f756768204379706865726475646573206c6566740000000000600082015250565b6000614507601b83613298565b9150614512826144d1565b602082019050919050565b60006020820190508181036000830152614536816144fa565b9050919050565b7f4e6f206d696e74696e6720726571756573740000000000000000000000000000600082015250565b6000614573601283613298565b915061457e8261453d565b602082019050919050565b600060208201905081810360008301526145a281614566565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b60006145df601083613298565b91506145ea826145a9565b602082019050919050565b6000602082019050818103600083015261460e816145d2565b9050919050565b6000614628614623846134ef565b6134d4565b9050828152602081018484840111156146445761464361346f565b5b61464f8482856132a9565b509392505050565b600082601f83011261466c5761466b61346a565b5b815161467c848260208601614615565b91505092915050565b60006020828403121561469b5761469a6131c8565b5b600082015167ffffffffffffffff8111156146b9576146b86131cd565b5b6146c584828501614657565b91505092915050565b7f47696674206e6f7420706f737369626c65207965740000000000000000000000600082015250565b6000614704601583613298565b915061470f826146ce565b602082019050919050565b60006020820190508181036000830152614733816146f7565b9050919050565b7f57686974654c6973742053616c65206973206e6f742061637469766174656400600082015250565b6000614770601f83613298565b915061477b8261473a565b602082019050919050565b6000602082019050818103600083015261479f81614763565b9050919050565b7f4e6f742057686974656c69737465640000000000000000000000000000000000600082015250565b60006147dc600f83613298565b91506147e7826147a6565b602082019050919050565b6000602082019050818103600083015261480b816147cf565b9050919050565b600060ff82169050919050565b600061482a82614812565b915061483583614812565b9250828201905060ff81111561484e5761484d613ffd565b5b92915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614884565b6148cb8683614884565b95508019841693508086168417925050509392505050565b60006148fe6148f96148f48461333f565b613929565b61333f565b9050919050565b6000819050919050565b614918836148e3565b61492c61492482614905565b848454614891565b825550505050565b600090565b614941614934565b61494c81848461490f565b505050565b5b8181101561497057614965600082614939565b600181019050614952565b5050565b601f8211156149b5576149868161485f565b61498f84614874565b8101602085101561499e578190505b6149b26149aa85614874565b830182614951565b50505b505050565b600082821c905092915050565b60006149d8600019846008026149ba565b1980831691505092915050565b60006149f183836149c7565b9150826002028217905092915050565b614a0b8383614854565b67ffffffffffffffff811115614a2457614a23613474565b5b614a2e8254613f0d565b614a39828285614974565b6000601f831160018114614a685760008415614a56578287013590505b614a6085826149e5565b865550614ac8565b601f198416614a768661485f565b60005b82811015614a9e57848901358255600182019150602085019450602081019050614a79565b86831015614abb5784890135614ab7601f8916826149c7565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b6000614ae782613617565b614af18185614ad1565b9350614b018185602086016132a9565b80840191505092915050565b6000819050919050565b614b28614b238261333f565b614b0d565b82525050565b6000614b3a8285614adc565b9150614b468284614b17565b6020820191508190509392505050565b6000614b618261333f565b915060008203614b7457614b73613ffd565b5b600182039050919050565b6000614b8a8261333f565b9150614b958361333f565b925082614ba557614ba4614365565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614bea8261333f565b9150614bf58361333f565b9250828203905081811115614c0d57614c0c613ffd565b5b92915050565b60008160601b9050919050565b6000614c2b82614c13565b9050919050565b6000614c3d82614c20565b9050919050565b614c55614c50826133c2565b614c32565b82525050565b6000614c678287614b17565b602082019150614c778286614b17565b602082019150614c878285614c44565b601482019150614c978284614b17565b60208201915081905095945050505050565b614cb28261328d565b67ffffffffffffffff811115614ccb57614cca613474565b5b614cd58254613f0d565b614ce0828285614974565b600060209050601f831160018114614d135760008415614d01578287015190505b614d0b85826149e5565b865550614d73565b601f198416614d218661485f565b60005b82811015614d4957848901518255600182019150602085019450602081019050614d24565b86831015614d665784890151614d62601f8916826149c7565b8355505b6001600288020188555050505b505050505050565b7f307830323739373032316132376533663337613636333132363736343731383760008201527f633738346634613839336365646539666431313038396237626533666566613560208201527f653937326530373736636265366265663239393063303039613431313338343660408201527f393637353339396264626134396335653937396534366165633730393563663460608201527f323863636465343366363036306333323064363638306237333433326637353760808201527f643836363062626464316534313434363338666462353136623734666137373760a08201527f373861633863363563343262656432643931373665643663663937333936316260c08201527f643162613064366230626335343866646635383362363435616462366637333760e08201527f65356336386162643237376433333831343834333333333039643363633738356101008201527f30393162393238353066346332396631663332646364303938643061646364636101208201527f37303939396138366330393962346232613661383333336637363437333762616101408201527f36633036373433373530363462303465643833333665306637626636616230356101608201527f613000000000000000000000000000000000000000000000000000000000000061018082015250565b6000614f7f61018283613622565b9150614f8a82614d7b565b6101a082019050919050565b60006040820190508181036000830152614fb081846132e4565b90508181036020830152614fc381614f71565b905092915050565b60008060408385031215614fe257614fe16131c8565b5b600083015167ffffffffffffffff81111561500057614fff6131cd565b5b61500c85828601614657565b925050602083015167ffffffffffffffff81111561502d5761502c6131cd565b5b61503985828601614657565b9150509250929050565b600060808201905061505860008301876133d4565b61506560208301866133d4565b615072604083018561368e565b81810360608301526150848184613633565b905095945050505050565b60008151905061509e816131fe565b92915050565b6000602082840312156150ba576150b96131c8565b5b60006150c88482850161508f565b91505092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000600082015250565b6000615107601a83613f9b565b9150615112826150d1565b601a82019050919050565b6000615128826150fa565b91506151348285613fa6565b91506151408284613fa6565b91508190509392505050565b61515581614812565b82525050565b60006080820190506151706000830187613a5f565b61517d602083018661514c565b61518a6040830185613a5f565b6151976060830184613a5f565b95945050505050565b60006151ac8284614c44565b6014820191508190509291505056fea26469706673582212201f7365a00fc6a952d7917dcd02aa7a85b1d5f326fa7fed5dcc697bd76365915a64736f6c634300081600330000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b000000000000000000000000ecb4df2f40dac46b9bf0a90dfd133b78147e9b47

Deployed Bytecode

0x60806040526004361061023b5760003560e01c80636bb7b1d91161012e578063b298247e116100ab578063d5474f2b1161006f578063d5474f2b14610883578063d5abeb01146108ac578063e4604df4146108d7578063e985e9c514610900578063f2fde38b1461093d5761023b565b8063b298247e14610799578063b4b5b48f146107c2578063b88d4fde14610801578063c87b56dd1461082a578063d2cab056146108675761023b565b80638da5cb5b116100f25780638da5cb5b146106b457806395d89b41146106df578063a101ef3e1461070a578063a22cb46514610747578063a25f751f146107705761023b565b80636bb7b1d9146105e157806370a082311461060c578063715018a6146106495780637cb64759146106605780638ada6b0f146106895761023b565b806323b872dd116101bc57806342842e0e1161018057806342842e0e146104ea57806345ea45e11461051357806356d3163d1461053e5780636100447b146105675780636352211e146105a45761023b565b806323b872dd146104325780632a55205a1461045b5780632db11544146104995780632eb4a7ab146104b55780633ccfd60b146104e05761023b565b8063125704b811610203578063125704b81461033757806313faede61461037457806318160ddd1461039f57806320c7c466146103ca57806321ea07e1146104075761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630ca282f71461030e575b600080fd5b34801561024c57600080fd5b506102676004803603810190610262919061322a565b610966565b6040516102749190613272565b60405180910390f35b34801561028957600080fd5b50610292610978565b60405161029f919061331d565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190613375565b610a0a565b6040516102dc91906133e3565b60405180910390f35b3480156102f157600080fd5b5061030c6004803603810190610307919061342a565b610a26565b005b34801561031a57600080fd5b5061033560048036038101906103309190613375565b610a3c565b005b34801561034357600080fd5b5061035e6004803603810190610359919061359f565b610a4e565b60405161036b919061366c565b60405180910390f35b34801561038057600080fd5b50610389610aae565b604051610396919061369d565b60405180910390f35b3480156103ab57600080fd5b506103b4610ab4565b6040516103c1919061369d565b60405180910390f35b3480156103d657600080fd5b506103f160048036038101906103ec9190613759565b610aba565b6040516103fe9190613907565b60405180910390f35b34801561041357600080fd5b5061041c610cf3565b6040516104299190613988565b60405180910390f35b34801561043e57600080fd5b50610459600480360381019061045491906139a3565b610d19565b005b34801561046757600080fd5b50610482600480360381019061047d91906139f6565b610e1b565b604051610490929190613a36565b60405180910390f35b6104b360048036038101906104ae9190613375565b611005565b005b3480156104c157600080fd5b506104ca6111be565b6040516104d79190613a6e565b60405180910390f35b6104e86111c4565b005b3480156104f657600080fd5b50610511600480360381019061050c91906139a3565b611213565b005b34801561051f57600080fd5b50610528611233565b604051610535919061369d565b60405180910390f35b34801561054a57600080fd5b5061056560048036038101906105609190613a89565b611239565b005b34801561057357600080fd5b5061058e60048036038101906105899190613ab6565b611285565b60405161059b919061331d565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c69190613375565b6112cc565b6040516105d891906133e3565b60405180910390f35b3480156105ed57600080fd5b506105f66112de565b604051610603919061369d565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190613a89565b6112e4565b604051610640919061369d565b60405180910390f35b34801561065557600080fd5b5061065e61139e565b005b34801561066c57600080fd5b5061068760048036038101906106829190613b5a565b6113b2565b005b34801561069557600080fd5b5061069e6113c4565b6040516106ab9190613ba8565b60405180910390f35b3480156106c057600080fd5b506106c96113ea565b6040516106d691906133e3565b60405180910390f35b3480156106eb57600080fd5b506106f4611414565b604051610701919061331d565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c9190613375565b6114a6565b60405161073e919061331d565b60405180910390f35b34801561075357600080fd5b5061076e60048036038101906107699190613bef565b611577565b005b34801561077c57600080fd5b5061079760048036038101906107929190613a89565b61158d565b005b3480156107a557600080fd5b506107c060048036038101906107bb9190613375565b6115d9565b005b3480156107ce57600080fd5b506107e960048036038101906107e49190613375565b611641565b6040516107f893929190613c2f565b60405180910390f35b34801561080d57600080fd5b5061082860048036038101906108239190613c6d565b6116f3565b005b34801561083657600080fd5b50610851600480360381019061084c9190613375565b611710565b60405161085e919061331d565b60405180910390f35b610881600480360381019061087c9190613d50565b6117ba565b005b34801561088f57600080fd5b506108aa60048036038101906108a59190613375565b6119c6565b005b3480156108b857600080fd5b506108c16119d8565b6040516108ce919061369d565b60405180910390f35b3480156108e357600080fd5b506108fe60048036038101906108f99190613e2a565b6119de565b005b34801561090c57600080fd5b5061092760048036038101906109229190613e9e565b611b09565b6040516109349190613272565b60405180910390f35b34801561094957600080fd5b50610964600480360381019061095f9190613a89565b611b9d565b005b600061097182611c23565b9050919050565b60606002805461098790613f0d565b80601f01602080910402602001604051908101604052809291908181526020018280546109b390613f0d565b8015610a005780601f106109d557610100808354040283529160200191610a00565b820191906000526020600020905b8154815290600101906020018083116109e357829003601f168201915b5050505050905090565b6000610a1582611d05565b50610a1f82611d8d565b9050919050565b610a388282610a33611dca565b611dd2565b5050565b610a44611de4565b80600d8190555050565b606060008383604051602001610a65929190613f3e565b6040516020818303038152906040529050600084604051602001610a89919061331d565b6040516020818303038152906040529050610aa48282611e6b565b9250505092915050565b600b5481565b60095481565b610ac26131a4565b6000610acd84611ef2565b604051602001610add9190613fd7565b60405160208183030381529060405290503373ffffffffffffffffffffffffffffffffffffffff16610b0e856112cc565b73ffffffffffffffffffffffffffffffffffffffff1603610cae57600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637fc92bf9826040518263ffffffff1660e01b8152600401610b84919061331d565b600060405180830381600087803b158015610b9e57600080fd5b505af1158015610bb2573d6000803e3d6000fd5b5050505061012160116000868152602001908152602001600020600101541015610c01576011600085815260200190815260200160002060010160008154610bf99061402c565b919050819055505b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638cb5e7dc82856040518363ffffffff1660e01b8152600401610c5e929190614074565b6000604051808303816000875af1158015610c7d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610ca69190614273565b915050610ced565b80336040517f919560ad000000000000000000000000000000000000000000000000000000008152600401610ce49291906142bc565b60405180910390fd5b92915050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d8b5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610d8291906133e3565b60405180910390fd5b6000610d9f8383610d9a611dca565b612051565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e15578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610e0c939291906142ec565b60405180910390fd5b50505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610fb05760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610fba61226b565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610fe69190614323565b610ff09190614394565b90508160000151819350935050509250929050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106a90614411565b60405180910390fd5b600d5442106110b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ae9061447d565b60405180910390fd5b610700816009546110c8919061449d565b1115611109576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111009061451d565b60405180910390fd5b600181101561114d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114490614589565b60405180910390fd5b666f54d5e1539000816111609190614323565b3410156111a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611199906145f5565b60405180910390fd5b60005b6111ad612275565b8060010190508181106111a5575050565b600c5481565b6111cc611de4565b6111d4611dca565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505061121157600080fd5b565b61122e838383604051806020016040528060008152506116f3565b505050565b600e5481565b611241611de4565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008360405160200161129a919061331d565b604051602081830303815290604052905060006112b78483611e6b565b90506112c2816124f4565b9250505092915050565b60006112d782611d05565b9050919050565b600d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113575760006040517f89c62b6400000000000000000000000000000000000000000000000000000000815260040161134e91906133e3565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113a6611de4565b6113b06000612515565b565b6113ba611de4565b80600c8190555050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461142390613f0d565b80601f016020809104026020016040519081016040528092919081815260200182805461144f90613f0d565b801561149c5780601f106114715761010080835404028352916020019161149c565b820191906000526020600020905b81548152906001019060200180831161147f57829003601f168201915b5050505050905090565b6060600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166360f9bb116114ef84611ef2565b6040516020016114ff9190613fd7565b6040516020818303038152906040526040518263ffffffff1660e01b815260040161152a919061331d565b600060405180830381865afa158015611547573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906115709190614685565b9050919050565b611589611582611dca565b83836125db565b5050565b611595611de4565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115e1611de4565b600d544211611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c9061471a565b60405180910390fd5b60005b611630612275565b806001019050818110611628575050565b601160205280600052604060002060009150905080600001549080600101549080600201805461167090613f0d565b80601f016020809104026020016040519081016040528092919081815260200182805461169c90613f0d565b80156116e95780601f106116be576101008083540402835291602001916116e9565b820191906000526020600020905b8154815290600101906020018083116116cc57829003601f168201915b5050505050905083565b6116fe848484610d19565b61170a8484848461274a565b50505050565b6060601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b815260040161176d919061369d565b600060405180830381865afa15801561178a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906117b39190614685565b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90614411565b60405180910390fd5b600e54421061186c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186390614786565b60405180910390fd5b61187e611877611dca565b8383612901565b6118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b4906147f2565b60405180910390fd5b610700836009546118ce919061449d565b111561190f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119069061451d565b60405180910390fd5b6001831015611953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194a90614589565b60405180910390fd5b666f54d5e1539000836119669190614323565b3410156119a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199f906145f5565b60405180910390fd5b60005b6119b3612275565b8060010190508381106119ab5750505050565b6119ce611de4565b80600e8190555050565b600a5481565b600060ff836020013560001c901c601b6119f8919061481f565b90506000600180856020013560001c901b901c60001b90506000611a6687878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508487600001358561295f565b9050611a71846112cc565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ace578686601160008781526020019081526020016000206002019182611ac8929190614a01565b50611b00565b6040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ba5611de4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c175760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611c0e91906133e3565b60405180910390fd5b611c2081612515565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611cee57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611cfe5750611cfd826129f6565b5b9050919050565b600080611d1183612a70565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d8457826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611d7b919061369d565b60405180910390fd5b80915050919050565b60006006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b611ddf8383836001612aad565b505050565b611dec611dca565b73ffffffffffffffffffffffffffffffffffffffff16611e0a6113ea565b73ffffffffffffffffffffffffffffffffffffffff1614611e6957611e2d611dca565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611e6091906133e3565b60405180910390fd5b565b6060600083519050604051915060208183010160405280825260005b81811015611eea5760008482604051602001611ea4929190614b2e565b6040516020818303038152906040528051906020012090506000602083018701519050818118905080602084018601525050602081611ee3919061449d565b9050611e87565b505092915050565b606060008203611f39576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061204c565b600082905060005b60008214611f6b578080611f549061402c565b915050600a82611f649190614394565b9150611f41565b60008167ffffffffffffffff811115611f8757611f86613474565b5b6040519080825280601f01601f191660200182016040528015611fb95781602001600182028036833780820191505090505b5090505b60008514612045578180611fd090614b56565b925050600a85611fe09190614b7f565b6030611fec919061449d565b60f81b81838151811061200257612001614bb0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561203e9190614394565b9450611fbd565b8093505050505b919050565b60008061205d84612a70565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461209f5761209e818486612c72565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612130576120e1600085600080612aad565b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146121b3576001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846004600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6000612710905090565b610140600a546122859190614bdf565b600954106122bf576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122c76113ea565b73ffffffffffffffffffffffffffffffffffffffff166122e5611dca565b73ffffffffffffffffffffffffffffffffffffffff1603612332576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060095490506009600081548092919061234c9061402c565b91905055506000434261235d611dca565b846040516020016123719493929190614c5b565b6040516020818303038152906040528051906020012060001c9050600160c08261239b9190614b7f565b6123a5919061449d565b6011600084815260200190815260200160002060010181905550600881901c9050806011600084815260200190815260200160002060000181905550604051806020016040528060008152506011600084815260200190815260200160002060020190816124139190614ca9565b50600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638cb5e7dc61245b84611ef2565b60405160200161246b9190613fd7565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016124969190614f96565b6000604051808303816000875af11580156124b5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906124de9190614273565b506124f06124ea611dca565b83612d36565b5050565b60608180602001905181019061250a9190614fcb565b905080915050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361264c57816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161264391906133e3565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161273d9190613272565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b11156128fb578273ffffffffffffffffffffffffffffffffffffffff1663150b7a0261278e611dca565b8685856040518563ffffffff1660e01b81526004016127b09493929190615043565b6020604051808303816000875af19250505080156127ec57506040513d601f19601f820116820180604052508101906127e991906150a4565b60015b612870573d806000811461281c576040519150601f19603f3d011682016040523d82523d6000602084013e612821565b606091505b50600081510361286857836040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161285f91906133e3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146128f957836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016128f091906133e3565b60405180910390fd5b505b50505050565b600061295661290f85612d54565b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612d84565b90509392505050565b60008061296c8651612d9b565b8660405160200161297e92919061511d565b6040516020818303038152906040529050600081805190602001209050600181878787604051600081526020016040526040516129be949392919061515b565b6020604051602081039080840390855afa1580156129e0573d6000803e3d6000fd5b5050506020604051035192505050949350505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a695750612a6882612ebb565b5b9050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080612ae65750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612c1a576000612af684611d05565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b6157508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015612b745750612b728184611b09565b155b15612bb657826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401612bad91906133e3565b60405180910390fd5b8115612c1857838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836006600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612c7d838383612f25565b612d3157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612cf257806040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612ce9919061369d565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612d28929190613a36565b60405180910390fd5b505050565b612d50828260405180602001604052806000815250612fe6565b5050565b600081604051602001612d6791906151a0565b604051602081830303815290604052805190602001209050919050565b6000612d9382600c5485613002565b905092915050565b606060006001905060008390505b6000600a82612db89190614394565b91508114612dd3578180612dcb9061402c565b925050612da9565b60008267ffffffffffffffff811115612def57612dee613474565b5b6040519080825280601f01601f191660200182016040528015612e215781602001600182028036833780820191505090505b5090505b600115612eb0578280612e3790614b56565b935050600a85612e479190614b7f565b6030612e53919061449d565b60f81b818481518110612e6957612e68614bb0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ea59190614394565b945060008303612e25575b809350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612fdd57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f9e5750612f9d8484611b09565b5b80612fdc57508273ffffffffffffffffffffffffffffffffffffffff16612fc483611d8d565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b612ff08383613019565b612ffd600084848461274a565b505050565b60008261300f8584613112565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361308b5760006040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161308291906133e3565b60405180910390fd5b600061309983836000612051565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461310d5760006040517f73c6ac6e00000000000000000000000000000000000000000000000000000000815260040161310491906133e3565b60405180910390fd5b505050565b60008082905060005b8451811015613157576131488286838151811061313b5761313a614bb0565b5b6020026020010151613162565b9150808060010191505061311b565b508091505092915050565b600081831061317a57613175828461318d565b613185565b613184838361318d565b5b905092915050565b600082600052816020526040600020905092915050565b604051806040016040528060008152602001606081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613207816131d2565b811461321257600080fd5b50565b600081359050613224816131fe565b92915050565b6000602082840312156132405761323f6131c8565b5b600061324e84828501613215565b91505092915050565b60008115159050919050565b61326c81613257565b82525050565b60006020820190506132876000830184613263565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132c75780820151818401526020810190506132ac565b60008484015250505050565b6000601f19601f8301169050919050565b60006132ef8261328d565b6132f98185613298565b93506133098185602086016132a9565b613312816132d3565b840191505092915050565b6000602082019050818103600083015261333781846132e4565b905092915050565b6000819050919050565b6133528161333f565b811461335d57600080fd5b50565b60008135905061336f81613349565b92915050565b60006020828403121561338b5761338a6131c8565b5b600061339984828501613360565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133cd826133a2565b9050919050565b6133dd816133c2565b82525050565b60006020820190506133f860008301846133d4565b92915050565b613407816133c2565b811461341257600080fd5b50565b600081359050613424816133fe565b92915050565b60008060408385031215613441576134406131c8565b5b600061344f85828601613415565b925050602061346085828601613360565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134ac826132d3565b810181811067ffffffffffffffff821117156134cb576134ca613474565b5b80604052505050565b60006134de6131be565b90506134ea82826134a3565b919050565b600067ffffffffffffffff82111561350a57613509613474565b5b613513826132d3565b9050602081019050919050565b82818337600083830152505050565b600061354261353d846134ef565b6134d4565b90508281526020810184848401111561355e5761355d61346f565b5b613569848285613520565b509392505050565b600082601f8301126135865761358561346a565b5b813561359684826020860161352f565b91505092915050565b600080604083850312156135b6576135b56131c8565b5b600083013567ffffffffffffffff8111156135d4576135d36131cd565b5b6135e085828601613571565b925050602083013567ffffffffffffffff811115613601576136006131cd565b5b61360d85828601613571565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b600061363e82613617565b6136488185613622565b93506136588185602086016132a9565b613661816132d3565b840191505092915050565b600060208201905081810360008301526136868184613633565b905092915050565b6136978161333f565b82525050565b60006020820190506136b2600083018461368e565b92915050565b600067ffffffffffffffff8211156136d3576136d2613474565b5b6136dc826132d3565b9050602081019050919050565b60006136fc6136f7846136b8565b6134d4565b9050828152602081018484840111156137185761371761346f565b5b613723848285613520565b509392505050565b600082601f8301126137405761373f61346a565b5b81356137508482602086016136e9565b91505092915050565b600080604083850312156137705761376f6131c8565b5b600061377e85828601613360565b925050602083013567ffffffffffffffff81111561379f5761379e6131cd565b5b6137ab8582860161372b565b9150509250929050565b6137be8161333f565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b613803816137f0565b82525050565b613812816133c2565b82525050565b60408201600082015161382e60008501826137fa565b5060208201516138416020850182613809565b50505050565b60006138538383613818565b60408301905092915050565b6000602082019050919050565b6000613877826137c4565b61388181856137cf565b935061388c836137e0565b8060005b838110156138bd5781516138a48882613847565b97506138af8361385f565b925050600181019050613890565b5085935050505092915050565b60006040830160008301516138e260008601826137b5565b50602083015184820360208601526138fa828261386c565b9150508091505092915050565b6000602082019050818103600083015261392181846138ca565b905092915050565b6000819050919050565b600061394e613949613944846133a2565b613929565b6133a2565b9050919050565b600061396082613933565b9050919050565b600061397282613955565b9050919050565b61398281613967565b82525050565b600060208201905061399d6000830184613979565b92915050565b6000806000606084860312156139bc576139bb6131c8565b5b60006139ca86828701613415565b93505060206139db86828701613415565b92505060406139ec86828701613360565b9150509250925092565b60008060408385031215613a0d57613a0c6131c8565b5b6000613a1b85828601613360565b9250506020613a2c85828601613360565b9150509250929050565b6000604082019050613a4b60008301856133d4565b613a58602083018461368e565b9392505050565b613a68816137f0565b82525050565b6000602082019050613a836000830184613a5f565b92915050565b600060208284031215613a9f57613a9e6131c8565b5b6000613aad84828501613415565b91505092915050565b60008060408385031215613acd57613acc6131c8565b5b600083013567ffffffffffffffff811115613aeb57613aea6131cd565b5b613af785828601613571565b925050602083013567ffffffffffffffff811115613b1857613b176131cd565b5b613b248582860161372b565b9150509250929050565b613b37816137f0565b8114613b4257600080fd5b50565b600081359050613b5481613b2e565b92915050565b600060208284031215613b7057613b6f6131c8565b5b6000613b7e84828501613b45565b91505092915050565b6000613b9282613955565b9050919050565b613ba281613b87565b82525050565b6000602082019050613bbd6000830184613b99565b92915050565b613bcc81613257565b8114613bd757600080fd5b50565b600081359050613be981613bc3565b92915050565b60008060408385031215613c0657613c056131c8565b5b6000613c1485828601613415565b9250506020613c2585828601613bda565b9150509250929050565b6000606082019050613c44600083018661368e565b613c51602083018561368e565b8181036040830152613c6381846132e4565b9050949350505050565b60008060008060808587031215613c8757613c866131c8565b5b6000613c9587828801613415565b9450506020613ca687828801613415565b9350506040613cb787828801613360565b925050606085013567ffffffffffffffff811115613cd857613cd76131cd565b5b613ce48782880161372b565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613d1057613d0f61346a565b5b8235905067ffffffffffffffff811115613d2d57613d2c613cf0565b5b602083019150836020820283011115613d4957613d48613cf5565b5b9250929050565b600080600060408486031215613d6957613d686131c8565b5b6000613d7786828701613360565b935050602084013567ffffffffffffffff811115613d9857613d976131cd565b5b613da486828701613cfa565b92509250509250925092565b60008083601f840112613dc657613dc561346a565b5b8235905067ffffffffffffffff811115613de357613de2613cf0565b5b602083019150836001820283011115613dff57613dfe613cf5565b5b9250929050565b600080fd5b600060408284031215613e2157613e20613e06565b5b81905092915050565b60008060008060808587031215613e4457613e436131c8565b5b600085013567ffffffffffffffff811115613e6257613e616131cd565b5b613e6e87828801613db0565b94509450506020613e8187828801613e0b565b9250506060613e9287828801613360565b91505092959194509250565b60008060408385031215613eb557613eb46131c8565b5b6000613ec385828601613415565b9250506020613ed485828601613415565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f2557607f821691505b602082108103613f3857613f37613ede565b5b50919050565b60006040820190508181036000830152613f5881856132e4565b90508181036020830152613f6c81846132e4565b90509392505050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600081905092915050565b6000613fb18261328d565b613fbb8185613f9b565b9350613fcb8185602086016132a9565b80840191505092915050565b6000613fe282613f75565b600b82019150613ff28284613fa6565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140378261333f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361406957614068613ffd565b5b600182019050919050565b6000604082019050818103600083015261408e81856132e4565b905081810360208301526140a28184613633565b90509392505050565b600080fd5b600080fd5b6000815190506140c481613349565b92915050565b600067ffffffffffffffff8211156140e5576140e4613474565b5b602082029050602081019050919050565b60008151905061410581613b2e565b92915050565b60008151905061411a816133fe565b92915050565b600060408284031215614136576141356140ab565b5b61414060406134d4565b90506000614150848285016140f6565b60008301525060206141648482850161410b565b60208301525092915050565b600061418361417e846140ca565b6134d4565b905080838252602082019050604084028301858111156141a6576141a5613cf5565b5b835b818110156141cf57806141bb8882614120565b8452602084019350506040810190506141a8565b5050509392505050565b600082601f8301126141ee576141ed61346a565b5b81516141fe848260208601614170565b91505092915050565b60006040828403121561421d5761421c6140ab565b5b61422760406134d4565b90506000614237848285016140b5565b600083015250602082015167ffffffffffffffff81111561425b5761425a6140b0565b5b614267848285016141d9565b60208301525092915050565b600060208284031215614289576142886131c8565b5b600082015167ffffffffffffffff8111156142a7576142a66131cd565b5b6142b384828501614207565b91505092915050565b600060408201905081810360008301526142d681856132e4565b90506142e560208301846133d4565b9392505050565b600060608201905061430160008301866133d4565b61430e602083018561368e565b61431b60408301846133d4565b949350505050565b600061432e8261333f565b91506143398361333f565b92508282026143478161333f565b9150828204841483151761435e5761435d613ffd565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061439f8261333f565b91506143aa8361333f565b9250826143ba576143b9614365565b5b828204905092915050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b60006143fb601e83613298565b9150614406826143c5565b602082019050919050565b6000602082019050818103600083015261442a816143ee565b9050919050565b7f5075626c69632073616c65206e6f742061637469766174656400000000000000600082015250565b6000614467601983613298565b915061447282614431565b602082019050919050565b600060208201905081810360008301526144968161445a565b9050919050565b60006144a88261333f565b91506144b38361333f565b92508282019050808211156144cb576144ca613ffd565b5b92915050565b7f4e6f7420656e6f756768204379706865726475646573206c6566740000000000600082015250565b6000614507601b83613298565b9150614512826144d1565b602082019050919050565b60006020820190508181036000830152614536816144fa565b9050919050565b7f4e6f206d696e74696e6720726571756573740000000000000000000000000000600082015250565b6000614573601283613298565b915061457e8261453d565b602082019050919050565b600060208201905081810360008301526145a281614566565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b60006145df601083613298565b91506145ea826145a9565b602082019050919050565b6000602082019050818103600083015261460e816145d2565b9050919050565b6000614628614623846134ef565b6134d4565b9050828152602081018484840111156146445761464361346f565b5b61464f8482856132a9565b509392505050565b600082601f83011261466c5761466b61346a565b5b815161467c848260208601614615565b91505092915050565b60006020828403121561469b5761469a6131c8565b5b600082015167ffffffffffffffff8111156146b9576146b86131cd565b5b6146c584828501614657565b91505092915050565b7f47696674206e6f7420706f737369626c65207965740000000000000000000000600082015250565b6000614704601583613298565b915061470f826146ce565b602082019050919050565b60006020820190508181036000830152614733816146f7565b9050919050565b7f57686974654c6973742053616c65206973206e6f742061637469766174656400600082015250565b6000614770601f83613298565b915061477b8261473a565b602082019050919050565b6000602082019050818103600083015261479f81614763565b9050919050565b7f4e6f742057686974656c69737465640000000000000000000000000000000000600082015250565b60006147dc600f83613298565b91506147e7826147a6565b602082019050919050565b6000602082019050818103600083015261480b816147cf565b9050919050565b600060ff82169050919050565b600061482a82614812565b915061483583614812565b9250828201905060ff81111561484e5761484d613ffd565b5b92915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614884565b6148cb8683614884565b95508019841693508086168417925050509392505050565b60006148fe6148f96148f48461333f565b613929565b61333f565b9050919050565b6000819050919050565b614918836148e3565b61492c61492482614905565b848454614891565b825550505050565b600090565b614941614934565b61494c81848461490f565b505050565b5b8181101561497057614965600082614939565b600181019050614952565b5050565b601f8211156149b5576149868161485f565b61498f84614874565b8101602085101561499e578190505b6149b26149aa85614874565b830182614951565b50505b505050565b600082821c905092915050565b60006149d8600019846008026149ba565b1980831691505092915050565b60006149f183836149c7565b9150826002028217905092915050565b614a0b8383614854565b67ffffffffffffffff811115614a2457614a23613474565b5b614a2e8254613f0d565b614a39828285614974565b6000601f831160018114614a685760008415614a56578287013590505b614a6085826149e5565b865550614ac8565b601f198416614a768661485f565b60005b82811015614a9e57848901358255600182019150602085019450602081019050614a79565b86831015614abb5784890135614ab7601f8916826149c7565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b6000614ae782613617565b614af18185614ad1565b9350614b018185602086016132a9565b80840191505092915050565b6000819050919050565b614b28614b238261333f565b614b0d565b82525050565b6000614b3a8285614adc565b9150614b468284614b17565b6020820191508190509392505050565b6000614b618261333f565b915060008203614b7457614b73613ffd565b5b600182039050919050565b6000614b8a8261333f565b9150614b958361333f565b925082614ba557614ba4614365565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614bea8261333f565b9150614bf58361333f565b9250828203905081811115614c0d57614c0c613ffd565b5b92915050565b60008160601b9050919050565b6000614c2b82614c13565b9050919050565b6000614c3d82614c20565b9050919050565b614c55614c50826133c2565b614c32565b82525050565b6000614c678287614b17565b602082019150614c778286614b17565b602082019150614c878285614c44565b601482019150614c978284614b17565b60208201915081905095945050505050565b614cb28261328d565b67ffffffffffffffff811115614ccb57614cca613474565b5b614cd58254613f0d565b614ce0828285614974565b600060209050601f831160018114614d135760008415614d01578287015190505b614d0b85826149e5565b865550614d73565b601f198416614d218661485f565b60005b82811015614d4957848901518255600182019150602085019450602081019050614d24565b86831015614d665784890151614d62601f8916826149c7565b8355505b6001600288020188555050505b505050505050565b7f307830323739373032316132376533663337613636333132363736343731383760008201527f633738346634613839336365646539666431313038396237626533666566613560208201527f653937326530373736636265366265663239393063303039613431313338343660408201527f393637353339396264626134396335653937396534366165633730393563663460608201527f323863636465343366363036306333323064363638306237333433326637353760808201527f643836363062626464316534313434363338666462353136623734666137373760a08201527f373861633863363563343262656432643931373665643663663937333936316260c08201527f643162613064366230626335343866646635383362363435616462366637333760e08201527f65356336386162643237376433333831343834333333333039643363633738356101008201527f30393162393238353066346332396631663332646364303938643061646364636101208201527f37303939396138366330393962346232613661383333336637363437333762616101408201527f36633036373433373530363462303465643833333665306637626636616230356101608201527f613000000000000000000000000000000000000000000000000000000000000061018082015250565b6000614f7f61018283613622565b9150614f8a82614d7b565b6101a082019050919050565b60006040820190508181036000830152614fb081846132e4565b90508181036020830152614fc381614f71565b905092915050565b60008060408385031215614fe257614fe16131c8565b5b600083015167ffffffffffffffff81111561500057614fff6131cd565b5b61500c85828601614657565b925050602083015167ffffffffffffffff81111561502d5761502c6131cd565b5b61503985828601614657565b9150509250929050565b600060808201905061505860008301876133d4565b61506560208301866133d4565b615072604083018561368e565b81810360608301526150848184613633565b905095945050505050565b60008151905061509e816131fe565b92915050565b6000602082840312156150ba576150b96131c8565b5b60006150c88482850161508f565b91505092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000600082015250565b6000615107601a83613f9b565b9150615112826150d1565b601a82019050919050565b6000615128826150fa565b91506151348285613fa6565b91506151408284613fa6565b91508190509392505050565b61515581614812565b82525050565b60006080820190506151706000830187613a5f565b61517d602083018661514c565b61518a6040830185613a5f565b6151976060830184613a5f565b95945050505050565b60006151ac8284614c44565b6014820191508190509291505056fea26469706673582212201f7365a00fc6a952d7917dcd02aa7a85b1d5f326fa7fed5dcc697bd76365915a64736f6c63430008160033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b000000000000000000000000ecb4df2f40dac46b9bf0a90dfd133b78147e9b47

-----Decoded View---------------
Arg [0] : filestore_ (address): 0x9181580FCe530e5FBD8DbA7141Fc0cCBb8e59b8B
Arg [1] : cypherdudesRenderer (address): 0xECb4dF2f40dAC46b9Bf0A90Dfd133b78147e9B47

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b
Arg [1] : 000000000000000000000000ecb4df2f40dac46b9bf0a90dfd133b78147e9b47


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.