ETH Price: $3,355.60 (-1.79%)
Gas: 6 Gwei

Token

Lucky (Lucky)
 

Overview

Max Total Supply

5,008 Lucky

Holders

1,914

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
3 Lucky
0xb82843F9F8F94F148E2f52BD856a61Da2b4722fA
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:
Lucky

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-12-05
*/

// Sources flattened with hardhat v2.9.9 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}


// File @openzeppelin/contracts/access/[email protected]


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 @openzeppelin/contracts/utils/cryptography/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @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 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}
     *
     * _Available since v4.7._
     */
    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.
     *
     * _Available since v4.4._
     */
    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}
     *
     * _Available since v4.7._
     */
    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.
     *
     * _Available since v4.7._
     */
    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.
     *
     * _Available since v4.7._
     */
    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).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild 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 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // 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 for 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) {
            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.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild 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 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // 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 for 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) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    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 @openzeppelin/contracts/security/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// File operator-filter-registry/src/[email protected]


pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}


// File operator-filter-registry/src/[email protected]


pragma solidity ^0.8.13;

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}


// File operator-filter-registry/src/[email protected]


pragma solidity ^0.8.13;

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}


// File contracts/interface/ILucky.sol


pragma solidity ^0.8.0;

// ILucky
interface ILucky {
    function superMint(address to, uint quantity) external;
}

interface ILuckyEx {
    function totalSupply() external view returns(uint);
    function superMint(address to, uint quantity) external;
}


// File contracts/interface/IStakingPool.sol


pragma solidity ^0.8.0;

interface IStakingPool {
    function pined(uint256 tokenId) external view returns (bool);
}


// File @openzeppelin/contracts/utils/introspection/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @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 caller.
     *
     * 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 @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @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 up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (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; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            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 (rounding == Rounding.Up && 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 down.
     *
     * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * 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 10, 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 + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @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) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        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);
    }
}


// File @openzeppelin/contracts/utils/introspection/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;







/**
 * @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}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => 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 override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

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

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(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 override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - 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,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * 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 virtual {
        _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);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @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 virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @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 virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @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 virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * 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
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}


// File @openzeppelin/contracts/utils/structs/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}


// File @openzeppelin/contracts/utils/structs/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableMap.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableMap.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * The following map types are supported:
 *
 * - `uint256 -> address` (`UintToAddressMap`) since v3.0.0
 * - `address -> uint256` (`AddressToUintMap`) since v4.6.0
 * - `bytes32 -> bytes32` (`Bytes32ToBytes32Map`) since v4.6.0
 * - `uint256 -> uint256` (`UintToUintMap`) since v4.7.0
 * - `bytes32 -> uint256` (`Bytes32ToUintMap`) since v4.7.0
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableMap.
 * ====
 */
library EnumerableMap {
    using EnumerableSet for EnumerableSet.Bytes32Set;

    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct Bytes32ToBytes32Map {
        // Storage of keys
        EnumerableSet.Bytes32Set _keys;
        mapping(bytes32 => bytes32) _values;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        Bytes32ToBytes32Map storage map,
        bytes32 key,
        bytes32 value
    ) internal returns (bool) {
        map._values[key] = value;
        return map._keys.add(key);
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(Bytes32ToBytes32Map storage map, bytes32 key) internal returns (bool) {
        delete map._values[key];
        return map._keys.remove(key);
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool) {
        return map._keys.contains(key);
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function length(Bytes32ToBytes32Map storage map) internal view returns (uint256) {
        return map._keys.length();
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32ToBytes32Map storage map, uint256 index) internal view returns (bytes32, bytes32) {
        bytes32 key = map._keys.at(index);
        return (key, map._values[key]);
    }

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool, bytes32) {
        bytes32 value = map._values[key];
        if (value == bytes32(0)) {
            return (contains(map, key), bytes32(0));
        } else {
            return (true, value);
        }
    }

    /**
     * @dev Returns the value associated with `key`. O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || contains(map, key), "EnumerableMap: nonexistent key");
        return value;
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        Bytes32ToBytes32Map storage map,
        bytes32 key,
        string memory errorMessage
    ) internal view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || contains(map, key), errorMessage);
        return value;
    }

    // UintToUintMap

    struct UintToUintMap {
        Bytes32ToBytes32Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        UintToUintMap storage map,
        uint256 key,
        uint256 value
    ) internal returns (bool) {
        return set(map._inner, bytes32(key), bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToUintMap storage map, uint256 key) internal returns (bool) {
        return remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToUintMap storage map, uint256 key) internal view returns (bool) {
        return contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToUintMap storage map) internal view returns (uint256) {
        return length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToUintMap storage map, uint256 index) internal view returns (uint256, uint256) {
        (bytes32 key, bytes32 value) = at(map._inner, index);
        return (uint256(key), uint256(value));
    }

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(UintToUintMap storage map, uint256 key) internal view returns (bool, uint256) {
        (bool success, bytes32 value) = tryGet(map._inner, bytes32(key));
        return (success, uint256(value));
    }

    /**
     * @dev Returns the value associated with `key`. O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToUintMap storage map, uint256 key) internal view returns (uint256) {
        return uint256(get(map._inner, bytes32(key)));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToUintMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (uint256) {
        return uint256(get(map._inner, bytes32(key), errorMessage));
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Bytes32ToBytes32Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        UintToAddressMap storage map,
        uint256 key,
        address value
    ) internal returns (bool) {
        return set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`. O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToAddressMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (address) {
        return address(uint160(uint256(get(map._inner, bytes32(key), errorMessage))));
    }

    // AddressToUintMap

    struct AddressToUintMap {
        Bytes32ToBytes32Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        AddressToUintMap storage map,
        address key,
        uint256 value
    ) internal returns (bool) {
        return set(map._inner, bytes32(uint256(uint160(key))), bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(AddressToUintMap storage map, address key) internal returns (bool) {
        return remove(map._inner, bytes32(uint256(uint160(key))));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(AddressToUintMap storage map, address key) internal view returns (bool) {
        return contains(map._inner, bytes32(uint256(uint160(key))));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(AddressToUintMap storage map) internal view returns (uint256) {
        return length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressToUintMap storage map, uint256 index) internal view returns (address, uint256) {
        (bytes32 key, bytes32 value) = at(map._inner, index);
        return (address(uint160(uint256(key))), uint256(value));
    }

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(AddressToUintMap storage map, address key) internal view returns (bool, uint256) {
        (bool success, bytes32 value) = tryGet(map._inner, bytes32(uint256(uint160(key))));
        return (success, uint256(value));
    }

    /**
     * @dev Returns the value associated with `key`. O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(AddressToUintMap storage map, address key) internal view returns (uint256) {
        return uint256(get(map._inner, bytes32(uint256(uint160(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        AddressToUintMap storage map,
        address key,
        string memory errorMessage
    ) internal view returns (uint256) {
        return uint256(get(map._inner, bytes32(uint256(uint160(key))), errorMessage));
    }

    // Bytes32ToUintMap

    struct Bytes32ToUintMap {
        Bytes32ToBytes32Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        Bytes32ToUintMap storage map,
        bytes32 key,
        uint256 value
    ) internal returns (bool) {
        return set(map._inner, key, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(Bytes32ToUintMap storage map, bytes32 key) internal returns (bool) {
        return remove(map._inner, key);
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool) {
        return contains(map._inner, key);
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(Bytes32ToUintMap storage map) internal view returns (uint256) {
        return length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32ToUintMap storage map, uint256 index) internal view returns (bytes32, uint256) {
        (bytes32 key, bytes32 value) = at(map._inner, index);
        return (key, uint256(value));
    }

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool, uint256) {
        (bool success, bytes32 value) = tryGet(map._inner, key);
        return (success, uint256(value));
    }

    /**
     * @dev Returns the value associated with `key`. O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(Bytes32ToUintMap storage map, bytes32 key) internal view returns (uint256) {
        return uint256(get(map._inner, key));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        Bytes32ToUintMap storage map,
        bytes32 key,
        string memory errorMessage
    ) internal view returns (uint256) {
        return uint256(get(map._inner, key, errorMessage));
    }
}


// File contracts/ERC721GWhitelistAuth/interfaces/IERC721G.sol


pragma solidity ^0.8.0;

struct Auth {
    address erc721;
    string name;
    string symbol;
    bool isOpen;
}

interface IERC721G is IERC721 {
    /**
     * @dev Emitted when reset `auth` opening status.
     */
    event SetGiftAuth(address auth, bool isOpen);

    /**
     * @dev Returns all auth info.
     */
    function getAllGiftAuth() external view returns (Auth[] memory);

    /**
     * @dev Returns minted quantity for the auth and auth token id.
     */
    function getGiftMintedQuantity(address auth, uint authTokenId) external view returns (uint);

    /**
     * @dev Returns mint count limit for each auth token id.
     */
    function getGiftMintLimit() external view returns (uint);

    /**
     * @dev Returns total mint quantity.
     */
    function getTotalGiftMint() external view returns (uint);

    /**
     * @dev Returns the max total mint limit.
     */
    function getMaxTotalGiftMint() external view returns (uint);

}


// File contracts/ERC721GWhitelistAuth/ERC721G.sol


pragma solidity ^0.8.0;



// ERC721 Gift
contract ERC721G is IERC721G, ERC721 {

    using EnumerableMap for EnumerableMap.AddressToUintMap;

    EnumerableMap.AddressToUintMap private allAuth;
    mapping(address => mapping(uint => uint)) private mintedQuantity;
    uint private giftMintLimit = 1;
    uint private totalGiftMint = 0;
    uint private maxTotalGiftMint = 0;

    constructor(string memory name_, string memory symbol_)
        ERC721(name_, symbol_)
    {
    }

    function _setGiftAuth(address erc721, bool isOpen) internal {
        uint v = isOpen ? 1 : 0;
        allAuth.set(erc721, v);
        emit SetGiftAuth(erc721, isOpen);
    }

    function _setGiftMintLimit(uint limit_) internal {
        giftMintLimit = limit_;
    }

    function _setMaxTotalGiftMint(uint maxTotalGiftMint_) internal {
        maxTotalGiftMint = maxTotalGiftMint_;
    }

    function _mint(uint256 tokenId, address auth, uint authTokenId) internal virtual returns (address) {
        (bool suc, uint v) = allAuth.tryGet(auth);
        require(suc, "ERC721G: invalid auth erc721");
        require(v != 0, "ERC721G: invalid auth erc721");
        require(totalGiftMint+1 <= maxTotalGiftMint, "ERC721G: over max total mint limit");
        require(mintedQuantity[auth][authTokenId] < giftMintLimit, "ERC721G: mint too many");
        mintedQuantity[auth][authTokenId]++;
        totalGiftMint++;
        address miner = ERC721(auth).ownerOf(authTokenId);
        require(miner != address(0), "ERC721G: invalid miner");
        ERC721._mint(miner, tokenId);
        return miner;
    }

    function _getRecipient(address auth, uint authTokenId) internal virtual returns (address) {
        (bool suc, uint v) = allAuth.tryGet(auth);
        if (!suc || v == 0) {
            return address(0);
        }

        return ERC721(auth).ownerOf(authTokenId);
    }


    // ------------------- view function -------------------
    function getAllGiftAuth() public view override returns(Auth[] memory) {
        uint v;
        address erc721;
        Auth[] memory arr = new Auth[](allAuth.length());
        for (uint i = 0; i < allAuth.length(); i++) {
            (erc721, v) = allAuth.at(i);
            arr[i].erc721 = erc721;
            arr[i].isOpen = (v != 0);
            if (v == 0) {
                continue;
            }

            arr[i].name = ERC721(erc721).name();
            arr[i].symbol = ERC721(erc721).symbol();
        }

        return arr;
    }

    function getGiftMintedQuantity(address auth, uint authTokenId) external view override returns (uint) {
        return mintedQuantity[auth][authTokenId];
    }

    function getGiftMintLimit() external view override returns (uint) {
        return giftMintLimit;
    }

    function getTotalGiftMint() external view override returns (uint) {
        return totalGiftMint;
    }

    function getMaxTotalGiftMint() external view override returns (uint) {
        return maxTotalGiftMint;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) {
        return
        interfaceId == type(IERC721G).interfaceId ||
        super.supportsInterface(interfaceId);
    }
}


// File contracts/ERC721GWhitelistAuth/Lucky.sol


pragma solidity ^0.8.0;







// Lucky
contract Lucky is DefaultOperatorFilterer, ILucky, Ownable, ERC721G, ReentrancyGuard {

    enum Mode { WHITELIST, BLUECHIP, SUPER }

    uint public maxTotalSupply = 10000;
    uint public totalSupply = 0;

    uint public whitelistMintLimit = 1;
    mapping(address => bool) public whitelistMinted;

    uint public bluechipMintLimit = 1;

    uint public firstStepMaxSupply = 3000;

    string public baseURI;
    bytes32 public merkleRoot;

    uint public startTime;
    Mode public mintMode = Mode.WHITELIST;
    address public superMinter;

    address public stakingPool;

    constructor(string memory name_, string memory symbol_, uint startTime_)
        ERC721G(name_, symbol_)
    {
        startTime = startTime_;
        ERC721G._setMaxTotalGiftMint(firstStepMaxSupply);
    }

    function setFirstStepMaxSupply(uint max) external onlyOwner {
        firstStepMaxSupply = max;
        ERC721G._setGiftMintLimit(firstStepMaxSupply);
    }

    function setStakingPool(address stakingPool_) external onlyOwner {
        stakingPool = stakingPool_;
    }

    function setBaseURI(string memory baseURI_) external onlyOwner {
        baseURI = baseURI_;
    }

    function setMerkleRoot(bytes32 merkleRoot_) external onlyOwner {
        merkleRoot = merkleRoot_;
    }

    function setStartTime(uint startTime_) external onlyOwner {
        startTime = startTime_;
    }

    function setMintMode(Mode mode_) external onlyOwner {
        mintMode = mode_;
    }

    function setWhitelistMintLimit(uint limit_) external onlyOwner {
        whitelistMintLimit = limit_;
    }

    function setBluechip(address erc721, bool isOpen) external onlyOwner {
        ERC721G._setGiftAuth(erc721, isOpen);
    }

    function setBluechipMintLimit(uint limit_) external onlyOwner {
        bluechipMintLimit = limit_;
        ERC721G._setGiftMintLimit(limit_);
    }

    function setBluechipMaxTotalMint(uint bluechipMaxTotalMint_) external onlyOwner {
        ERC721G._setMaxTotalGiftMint(bluechipMaxTotalMint_);
    }

    function setSuperMinter(address minter) external onlyOwner {
        superMinter = minter;
    }

    function whitelistMint(bytes32[] calldata proof) external nonReentrant {
        require(block.timestamp >= startTime, "not yet started");
        require(mintMode == Mode.WHITELIST, "invalid minting mode");
        require(totalSupply + whitelistMintLimit <= firstStepMaxSupply, "over first step max supply");
        require(totalSupply + whitelistMintLimit <= maxTotalSupply, "over total supply");
        require(!whitelistMinted[msg.sender], "minted already");
        require(MerkleProof.verify(proof, merkleRoot, _accountToMerkleLeaf(msg.sender)), "invalid whitelist proof");

        for (uint i = 0; i < whitelistMintLimit; i++) {
            ERC721._mint(msg.sender, totalSupply+i);
        }

        totalSupply += whitelistMintLimit;
        whitelistMinted[msg.sender] = true;
    }

    function bluechipMint(address bluechipERC721, uint bluechipTokenId) external nonReentrant {
        require(block.timestamp >= startTime, "not yet started");
        require(mintMode == Mode.BLUECHIP, "invalid minting mode");
        require(totalSupply + bluechipMintLimit <= firstStepMaxSupply, "over first step max supply");
        require(totalSupply + bluechipMintLimit <= maxTotalSupply, "over total supply");

        for (uint i = 0; i < bluechipMintLimit; i++) {
            ERC721G._mint(totalSupply+i, bluechipERC721, bluechipTokenId);
        }

        totalSupply += bluechipMintLimit;
    }

    function superMint(address to, uint quantity) external override nonReentrant {
        require(block.timestamp >= startTime, "not yet started");
        require(mintMode == Mode.SUPER, "invalid minting mode");
        require(msg.sender == superMinter, "invalid super minter");
        require(totalSupply + quantity <= maxTotalSupply, "over total supply");

        for (uint i = 0; i < quantity; i++) {
            ERC721._mint(to, totalSupply+i);
        }

        totalSupply += quantity;
    }

    // --------------------- internal function ---------------------
    function _transfer(address from, address to, uint256 tokenId) internal override {
        if(stakingPool != address(0)) {
            require(!IStakingPool(stakingPool).pined(tokenId), "token has been pined");
        }

        ERC721._transfer(from, to, tokenId);
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function _accountToMerkleLeaf(address account) internal pure returns (bytes32) {
        return bytes32(uint256(uint160(account)));
    }

    // --------------------- DefaultOperatorFilterer ---------------------
    function setApprovalForAll(address operator, bool approved) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override(ERC721, IERC721)
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"startTime_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":false,"internalType":"address","name":"auth","type":"address"},{"indexed":false,"internalType":"bool","name":"isOpen","type":"bool"}],"name":"SetGiftAuth","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":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bluechipERC721","type":"address"},{"internalType":"uint256","name":"bluechipTokenId","type":"uint256"}],"name":"bluechipMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bluechipMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstStepMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllGiftAuth","outputs":[{"components":[{"internalType":"address","name":"erc721","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"bool","name":"isOpen","type":"bool"}],"internalType":"struct Auth[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGiftMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"auth","type":"address"},{"internalType":"uint256","name":"authTokenId","type":"uint256"}],"name":"getGiftMintedQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxTotalGiftMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalGiftMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"maxTotalSupply","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":"mintMode","outputs":[{"internalType":"enum Lucky.Mode","name":"","type":"uint8"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc721","type":"address"},{"internalType":"bool","name":"isOpen","type":"bool"}],"name":"setBluechip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bluechipMaxTotalMint_","type":"uint256"}],"name":"setBluechipMaxTotalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit_","type":"uint256"}],"name":"setBluechipMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setFirstStepMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Lucky.Mode","name":"mode_","type":"uint8"}],"name":"setMintMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakingPool_","type":"address"}],"name":"setStakingPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime_","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"setSuperMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit_","type":"uint256"}],"name":"setWhitelistMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"superMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"superMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"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":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040526001600b556000600c556000600d55612710600f55600060105560016011556001601355610bb86014556000601860006101000a81548160ff0219169083600281111562000056576200005662000354565b02179055503480156200006857600080fd5b506040516200322d3803806200322d8339810160408190526200008b9162000437565b82828181733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620001eb5780156200013957604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200011a57600080fd5b505af11580156200012f573d6000803e3d6000fd5b50505050620001eb565b6001600160a01b038216156200018a5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000ff565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001d157600080fd5b505af1158015620001e6573d6000803e3d6000fd5b505050505b50620001f990503362000259565b81516200020e906001906020850190620002ae565b50805162000224906002906020840190620002ae565b50505050506001600e819055508060178190555062000250601454620002a960201b6200127f1760201c565b505050620004e6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600d55565b828054620002bc90620004aa565b90600052602060002090601f016020900481019282620002e057600085556200032b565b82601f10620002fb57805160ff19168380011785556200032b565b828001600101855582156200032b579182015b828111156200032b5782518255916020019190600101906200030e565b50620003399291506200033d565b5090565b5b808211156200033957600081556001016200033e565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200039257600080fd5b81516001600160401b0380821115620003af57620003af6200036a565b604051601f8301601f19908116603f01168101908282118183101715620003da57620003da6200036a565b81604052838152602092508683858801011115620003f757600080fd5b600091505b838210156200041b5785820183015181830184015290820190620003fc565b838211156200042d5760008385830101525b9695505050505050565b6000806000606084860312156200044d57600080fd5b83516001600160401b03808211156200046557600080fd5b620004738783880162000380565b945060208601519150808211156200048a57600080fd5b50620004998682870162000380565b925050604084015190509250925092565b600181811c90821680620004bf57607f821691505b602082108103620004e057634e487b7160e01b600052602260045260246000fd5b50919050565b612d3780620004f66000396000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c806372131db311610167578063ba55ce82116100ce578063ea979d8411610087578063ea979d8414610596578063ecab9152146105a9578063ed39a0a0146105be578063f1eccd35146105f4578063f2fde38b14610607578063fa6171e41461061a57600080fd5b8063ba55ce8214610543578063c87b56dd1461054b578063d5bb68791461055e578063ddd1783a14610567578063dfb218fa14610570578063e985e9c51461058357600080fd5b80638da5cb5b116101205780638da5cb5b146104ce57806395d89b41146104df57806398a8cffe146104e7578063a22cb4651461050a578063b41d74d81461051d578063b88d4fde1461053057600080fd5b806372131db31461046a578063788c59991461047d57806378e979251461049757806379489966146104a05780637a7aa044146104b35780637cb64759146104bb57600080fd5b8063381b965c1161020b57806362e42cb0116101c457806362e42cb0146104145780636352211e1461042c5780636bf326c61461043f5780636c0360eb1461044757806370a082311461044f578063715018a61461046257600080fd5b8063381b965c146103a05780633e0a322d146103b357806341f43434146103c657806342842e0e146103db57806355f804b3146103ee57806362dbb43e1461040157600080fd5b806318160ddd1161025d57806318160ddd1461034c57806323b872dd146103555780632ab4d052146103685780632eb4a7ab146103715780633028f63a1461037a578063372f657c1461038d57600080fd5b806301ffc9a7146102a557806306fdde03146102cd57806307e322a5146102e2578063081812fc146102f9578063095ea7b3146103245780630c56ae3b14610339575b600080fd5b6102b86102b3366004612515565b61062d565b60405190151581526020015b60405180910390f35b6102d5610658565b6040516102c4919061258a565b6102eb60145481565b6040519081526020016102c4565b61030c61030736600461259d565b6106ea565b6040516001600160a01b0390911681526020016102c4565b6103376103323660046125cb565b610711565b005b60195461030c906001600160a01b031681565b6102eb60105481565b6103376103633660046125f7565b61072a565b6102eb600f5481565b6102eb60165481565b610337610388366004612638565b610755565b61033761039b366004612655565b61077f565b6103376103ae36600461259d565b6109d0565b6103376103c136600461259d565b6109dd565b61030c6daaeb6d7670e522a718067333cd4e81565b6103376103e93660046125f7565b6109ea565b6103376103fc366004612777565b610a0f565b61033761040f36600461259d565b610a2a565b60185461030c9061010090046001600160a01b031681565b61030c61043a36600461259d565b610a43565b600c546102eb565b6102d5610aa3565b6102eb61045d366004612638565b610b31565b610337610bb7565b6103376104783660046127c0565b610bcb565b60185461048a9060ff1681565b6040516102c491906127f7565b6102eb60175481565b6103376104ae3660046125cb565b610bfa565b600d546102eb565b6103376104c936600461259d565b610d47565b6000546001600160a01b031661030c565b6102d5610d54565b6102b86104f5366004612638565b60126020526000908152604090205460ff1681565b61033761051836600461282d565b610d63565b61033761052b366004612638565b610d77565b61033761053e366004612866565b610da7565b600b546102eb565b6102d561055936600461259d565b610dd4565b6102eb60135481565b6102eb60115481565b61033761057e36600461259d565b610e3b565b6102b86105913660046128e6565b610e4c565b6103376105a436600461282d565b610e7a565b6105b1610e8c565b6040516102c49190612914565b6102eb6105cc3660046125cb565b6001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b61033761060236600461259d565b6110cc565b610337610615366004612638565b6110e2565b6103376106283660046125cb565b611158565b60006001600160e01b031982166355273cf960e11b1480610652575061065282611284565b92915050565b606060018054610667906129bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610693906129bd565b80156106e05780601f106106b5576101008083540402835291602001916106e0565b820191906000526020600020905b8154815290600101906020018083116106c357829003601f168201915b5050505050905090565b60006106f5826112d4565b506000908152600560205260409020546001600160a01b031690565b8161071b81611333565b61072583836113ec565b505050565b826001600160a01b03811633146107445761074433611333565b61074f8484846114fc565b50505050565b61075d61152d565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b610787611587565b6017544210156107b25760405162461bcd60e51b81526004016107a9906129f7565b60405180910390fd5b600060185460ff1660028111156107cb576107cb6127e1565b146107e85760405162461bcd60e51b81526004016107a990612a20565b6014546011546010546107fb9190612a64565b11156108495760405162461bcd60e51b815260206004820152601a60248201527f6f7665722066697273742073746570206d617820737570706c7900000000000060448201526064016107a9565b600f5460115460105461085c9190612a64565b111561087a5760405162461bcd60e51b81526004016107a990612a7c565b3360009081526012602052604090205460ff16156108cb5760405162461bcd60e51b815260206004820152600e60248201526d6d696e74656420616c726561647960901b60448201526064016107a9565b61090c8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060165491503390506115e0565b6109585760405162461bcd60e51b815260206004820152601760248201527f696e76616c69642077686974656c6973742070726f6f6600000000000000000060448201526064016107a9565b60005b60115481101561098e5761097c33826010546109779190612a64565b6115f6565b8061098681612aa7565b91505061095b565b50601154601060008282546109a39190612a64565b9091555050336000908152601260205260409020805460ff191660011790556109cc6001600e55565b5050565b6109d861152d565b601155565b6109e561152d565b601755565b826001600160a01b0381163314610a0457610a0433611333565b61074f84848461178f565b610a1761152d565b80516109cc906015906020840190612466565b610a3261152d565b6013819055610a4081600b55565b50565b6000818152600360205260408120546001600160a01b0316806106525760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107a9565b60158054610ab0906129bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610adc906129bd565b8015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b505050505081565b60006001600160a01b038216610b9b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107a9565b506001600160a01b031660009081526004602052604090205490565b610bbf61152d565b610bc960006117aa565b565b610bd361152d565b6018805482919060ff19166001836002811115610bf257610bf26127e1565b021790555050565b610c02611587565b601754421015610c245760405162461bcd60e51b81526004016107a9906129f7565b600160185460ff166002811115610c3d57610c3d6127e1565b14610c5a5760405162461bcd60e51b81526004016107a990612a20565b601454601354601054610c6d9190612a64565b1115610cbb5760405162461bcd60e51b815260206004820152601a60248201527f6f7665722066697273742073746570206d617820737570706c7900000000000060448201526064016107a9565b600f54601354601054610cce9190612a64565b1115610cec5760405162461bcd60e51b81526004016107a990612a7c565b60005b601354811015610d2457610d1181601054610d0a9190612a64565b84846117fa565b5080610d1c81612aa7565b915050610cef565b5060135460106000828254610d399190612a64565b90915550506001600e555050565b610d4f61152d565b601655565b606060028054610667906129bd565b81610d6d81611333565b6107258383611a9b565b610d7f61152d565b601880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b836001600160a01b0381163314610dc157610dc133611333565b610dcd85858585611aa6565b5050505050565b6060610ddf826112d4565b6000610de9611ad8565b90506000815111610e095760405180602001604052806000815250610e34565b80610e1384611ae7565b604051602001610e24929190612ac0565b6040516020818303038152906040525b9392505050565b610e4361152d565b610a4081600d55565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610e8261152d565b6109cc8282611b7a565b60606000806000610e9d6007611be5565b67ffffffffffffffff811115610eb557610eb56126ca565b604051908082528060200260200182016040528015610f1c57816020015b610f09604051806080016040528060006001600160a01b0316815260200160608152602001606081526020016000151581525090565b815260200190600190039081610ed35790505b50905060005b610f2c6007611be5565b8110156110c457610f3e600782611bf0565b809550819450505082828281518110610f5957610f59612aef565b60209081029190910101516001600160a01b039091169052815184151590839083908110610f8957610f89612aef565b602090810291909101015190151560609091015283156110b257826001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610fe1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110099190810190612b05565b82828151811061101b5761101b612aef565b602002602001015160200181905250826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015611068573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110909190810190612b05565b8282815181106110a2576110a2612aef565b6020026020010151604001819052505b806110bc81612aa7565b915050610f22565b509392505050565b6110d461152d565b6014819055610a4081600b55565b6110ea61152d565b6001600160a01b03811661114f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a9565b610a40816117aa565b611160611587565b6017544210156111825760405162461bcd60e51b81526004016107a9906129f7565b600260185460ff16600281111561119b5761119b6127e1565b146111b85760405162461bcd60e51b81526004016107a990612a20565b60185461010090046001600160a01b0316331461120e5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21039bab832b91036b4b73a32b960611b60448201526064016107a9565b600f548160105461121f9190612a64565b111561123d5760405162461bcd60e51b81526004016107a990612a7c565b60005b8181101561126c5761125a83826010546109779190612a64565b8061126481612aa7565b915050611240565b508060106000828254610d399190612a64565b600d55565b60006001600160e01b031982166380ac58cd60e01b14806112b557506001600160e01b03198216635b5e139f60e01b145b8061065257506301ffc9a760e01b6001600160e01b0319831614610652565b6000818152600360205260409020546001600160a01b0316610a405760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107a9565b6daaeb6d7670e522a718067333cd4e3b15610a4057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156113a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c49190612b7c565b610a4057604051633b79c77360e21b81526001600160a01b03821660048201526024016107a9565b60006113f782610a43565b9050806001600160a01b0316836001600160a01b0316036114645760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a9565b336001600160a01b038216148061148057506114808133610e4c565b6114f25760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107a9565b6107258383611c0e565b6115063382611c7c565b6115225760405162461bcd60e51b81526004016107a990612b99565b610725838383611cdb565b6000546001600160a01b03163314610bc95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107a9565b6002600e54036115d95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107a9565b6002600e55565b6000826115ed8584611da8565b14949350505050565b6001600160a01b03821661164c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a9565b6000818152600360205260409020546001600160a01b0316156116b15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a9565b6116bf600083836001611ded565b6000818152600360205260409020546001600160a01b0316156117245760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a9565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61072583838360405180602001604052806000815250610da7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008080611809600786611e75565b915091508161185a5760405162461bcd60e51b815260206004820152601c60248201527f455243373231473a20696e76616c69642061757468206572633732310000000060448201526064016107a9565b806000036118aa5760405162461bcd60e51b815260206004820152601c60248201527f455243373231473a20696e76616c69642061757468206572633732310000000060448201526064016107a9565b600d54600c546118bb906001612a64565b11156119145760405162461bcd60e51b815260206004820152602260248201527f455243373231473a206f766572206d617820746f74616c206d696e74206c696d6044820152611a5d60f21b60648201526084016107a9565b600b546001600160a01b0386166000908152600a60209081526040808320888452909152902054106119815760405162461bcd60e51b8152602060048201526016602482015275455243373231473a206d696e7420746f6f206d616e7960501b60448201526064016107a9565b6001600160a01b0385166000908152600a6020908152604080832087845290915281208054916119b083612aa7565b9091555050600c80549060006119c583612aa7565b90915550506040516331a9108f60e11b8152600481018590526000906001600160a01b03871690636352211e90602401602060405180830381865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a369190612be6565b90506001600160a01b038116611a875760405162461bcd60e51b815260206004820152601660248201527522a9219b9918a39d1034b73b30b634b21036b4b732b960511b60448201526064016107a9565b611a9181886115f6565b9695505050505050565b6109cc338383611e8d565b611ab03383611c7c565b611acc5760405162461bcd60e51b81526004016107a990612b99565b61074f84848484611f5b565b606060158054610667906129bd565b60606000611af483611f8e565b600101905060008167ffffffffffffffff811115611b1457611b146126ca565b6040519080825280601f01601f191660200182016040528015611b3e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611b4857509392505050565b600081611b88576000611b8b565b60015b60ff169050611b9c60078483612066565b50604080516001600160a01b038516815283151560208201527f377400ac3a6f567dd1f26d24a9205f1d26ece708879aa8aa41a3b67352e2aef5910160405180910390a1505050565b60006106528261207c565b6000808080611bff8686612087565b909450925050505b9250929050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c4382610a43565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c8883610a43565b9050806001600160a01b0316846001600160a01b03161480611caf5750611caf8185610e4c565b80611cd35750836001600160a01b0316611cc8846106ea565b6001600160a01b0316145b949350505050565b6019546001600160a01b031615611d9d57601954604051635d525cd560e01b8152600481018390526001600160a01b0390911690635d525cd590602401602060405180830381865afa158015611d35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d599190612b7c565b15611d9d5760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b881a185cc81899595b881c1a5b995960621b60448201526064016107a9565b6107258383836120b2565b600081815b84518110156110c457611dd982868381518110611dcc57611dcc612aef565b6020026020010151612223565b915080611de581612aa7565b915050611dad565b600181111561074f576001600160a01b03841615611e33576001600160a01b03841660009081526004602052604081208054839290611e2d908490612c03565b90915550505b6001600160a01b0383161561074f576001600160a01b03831660009081526004602052604081208054839290611e6a908490612a64565b909155505050505050565b6000808080611bff866001600160a01b03871661224f565b816001600160a01b0316836001600160a01b031603611eee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a9565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f66848484611cdb565b611f7284848484612289565b61074f5760405162461bcd60e51b81526004016107a990612c1a565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611fcd5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611ff9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061201757662386f26fc10000830492506010015b6305f5e100831061202f576305f5e100830492506008015b612710831061204357612710830492506004015b60648310612055576064830492506002015b600a83106106525760010192915050565b6000611cd3846001600160a01b0385168461238a565b6000610652826123a7565b6000808061209585856123b1565b600081815260029690960160205260409095205494959350505050565b826001600160a01b03166120c582610a43565b6001600160a01b0316146120eb5760405162461bcd60e51b81526004016107a990612c6c565b6001600160a01b03821661214d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107a9565b61215a8383836001611ded565b826001600160a01b031661216d82610a43565b6001600160a01b0316146121935760405162461bcd60e51b81526004016107a990612c6c565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081831061223f576000828152602084905260409020610e34565b5060009182526020526040902090565b600081815260028301602052604081205481908061227e5761227185856123bd565b925060009150611c079050565b600192509050611c07565b60006001600160a01b0384163b1561237f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122cd903390899088908890600401612cb1565b6020604051808303816000875af1925050508015612308575060408051601f3d908101601f1916820190925261230591810190612ce4565b60015b612365573d808015612336576040519150601f19603f3d011682016040523d82523d6000602084013e61233b565b606091505b50805160000361235d5760405162461bcd60e51b81526004016107a990612c1a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cd3565b506001949350505050565b60008281526002840160205260408120829055611cd384846123c9565b6000610652825490565b6000610e3483836123d5565b6000610e3483836123ff565b6000610e348383612417565b60008260000182815481106123ec576123ec612aef565b9060005260206000200154905092915050565b60008181526001830160205260408120541515610e34565b600081815260018301602052604081205461245e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610652565b506000610652565b828054612472906129bd565b90600052602060002090601f01602090048101928261249457600085556124da565b82601f106124ad57805160ff19168380011785556124da565b828001600101855582156124da579182015b828111156124da5782518255916020019190600101906124bf565b506124e69291506124ea565b5090565b5b808211156124e657600081556001016124eb565b6001600160e01b031981168114610a4057600080fd5b60006020828403121561252757600080fd5b8135610e34816124ff565b60005b8381101561254d578181015183820152602001612535565b8381111561074f5750506000910152565b60008151808452612576816020860160208601612532565b601f01601f19169290920160200192915050565b602081526000610e34602083018461255e565b6000602082840312156125af57600080fd5b5035919050565b6001600160a01b0381168114610a4057600080fd5b600080604083850312156125de57600080fd5b82356125e9816125b6565b946020939093013593505050565b60008060006060848603121561260c57600080fd5b8335612617816125b6565b92506020840135612627816125b6565b929592945050506040919091013590565b60006020828403121561264a57600080fd5b8135610e34816125b6565b6000806020838503121561266857600080fd5b823567ffffffffffffffff8082111561268057600080fd5b818501915085601f83011261269457600080fd5b8135818111156126a357600080fd5b8660208260051b85010111156126b857600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612709576127096126ca565b604052919050565b600067ffffffffffffffff82111561272b5761272b6126ca565b50601f01601f191660200190565b600061274c61274784612711565b6126e0565b905082815283838301111561276057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561278957600080fd5b813567ffffffffffffffff8111156127a057600080fd5b8201601f810184136127b157600080fd5b611cd384823560208401612739565b6000602082840312156127d257600080fd5b813560038110610e3457600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016003831061281957634e487b7160e01b600052602160045260246000fd5b91905290565b8015158114610a4057600080fd5b6000806040838503121561284057600080fd5b823561284b816125b6565b9150602083013561285b8161281f565b809150509250929050565b6000806000806080858703121561287c57600080fd5b8435612887816125b6565b93506020850135612897816125b6565b925060408501359150606085013567ffffffffffffffff8111156128ba57600080fd5b8501601f810187136128cb57600080fd5b6128da87823560208401612739565b91505092959194509250565b600080604083850312156128f957600080fd5b8235612904816125b6565b9150602083013561285b816125b6565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156129af57888303603f19018552815180516001600160a01b03168452878101516080898601819052906129748287018261255e565b915050878201518582038987015261298c828261255e565b60609384015115159690930195909552509487019492509086019060010161293b565b509098975050505050505050565b600181811c908216806129d157607f821691505b6020821081036129f157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e1b9bdd081e595d081cdd185c9d1959608a1b604082015260600190565b602080825260149082015273696e76616c6964206d696e74696e67206d6f646560601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a7757612a77612a4e565b500190565b6020808252601190820152706f76657220746f74616c20737570706c7960781b604082015260600190565b600060018201612ab957612ab9612a4e565b5060010190565b60008351612ad2818460208801612532565b835190830190612ae6818360208801612532565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b1757600080fd5b815167ffffffffffffffff811115612b2e57600080fd5b8201601f81018413612b3f57600080fd5b8051612b4d61274782612711565b818152856020838501011115612b6257600080fd5b612b73826020830160208601612532565b95945050505050565b600060208284031215612b8e57600080fd5b8151610e348161281f565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b600060208284031215612bf857600080fd5b8151610e34816125b6565b600082821015612c1557612c15612a4e565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a919083018461255e565b600060208284031215612cf657600080fd5b8151610e34816124ff56fea26469706673582212208b1ac96d1190ab3f07194a19cbf6f0fe08fa1dc552d2befcc1d56966acf5214164736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000063adb98000000000000000000000000000000000000000000000000000000000000000054c75636b7900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c75636b79000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102a05760003560e01c806372131db311610167578063ba55ce82116100ce578063ea979d8411610087578063ea979d8414610596578063ecab9152146105a9578063ed39a0a0146105be578063f1eccd35146105f4578063f2fde38b14610607578063fa6171e41461061a57600080fd5b8063ba55ce8214610543578063c87b56dd1461054b578063d5bb68791461055e578063ddd1783a14610567578063dfb218fa14610570578063e985e9c51461058357600080fd5b80638da5cb5b116101205780638da5cb5b146104ce57806395d89b41146104df57806398a8cffe146104e7578063a22cb4651461050a578063b41d74d81461051d578063b88d4fde1461053057600080fd5b806372131db31461046a578063788c59991461047d57806378e979251461049757806379489966146104a05780637a7aa044146104b35780637cb64759146104bb57600080fd5b8063381b965c1161020b57806362e42cb0116101c457806362e42cb0146104145780636352211e1461042c5780636bf326c61461043f5780636c0360eb1461044757806370a082311461044f578063715018a61461046257600080fd5b8063381b965c146103a05780633e0a322d146103b357806341f43434146103c657806342842e0e146103db57806355f804b3146103ee57806362dbb43e1461040157600080fd5b806318160ddd1161025d57806318160ddd1461034c57806323b872dd146103555780632ab4d052146103685780632eb4a7ab146103715780633028f63a1461037a578063372f657c1461038d57600080fd5b806301ffc9a7146102a557806306fdde03146102cd57806307e322a5146102e2578063081812fc146102f9578063095ea7b3146103245780630c56ae3b14610339575b600080fd5b6102b86102b3366004612515565b61062d565b60405190151581526020015b60405180910390f35b6102d5610658565b6040516102c4919061258a565b6102eb60145481565b6040519081526020016102c4565b61030c61030736600461259d565b6106ea565b6040516001600160a01b0390911681526020016102c4565b6103376103323660046125cb565b610711565b005b60195461030c906001600160a01b031681565b6102eb60105481565b6103376103633660046125f7565b61072a565b6102eb600f5481565b6102eb60165481565b610337610388366004612638565b610755565b61033761039b366004612655565b61077f565b6103376103ae36600461259d565b6109d0565b6103376103c136600461259d565b6109dd565b61030c6daaeb6d7670e522a718067333cd4e81565b6103376103e93660046125f7565b6109ea565b6103376103fc366004612777565b610a0f565b61033761040f36600461259d565b610a2a565b60185461030c9061010090046001600160a01b031681565b61030c61043a36600461259d565b610a43565b600c546102eb565b6102d5610aa3565b6102eb61045d366004612638565b610b31565b610337610bb7565b6103376104783660046127c0565b610bcb565b60185461048a9060ff1681565b6040516102c491906127f7565b6102eb60175481565b6103376104ae3660046125cb565b610bfa565b600d546102eb565b6103376104c936600461259d565b610d47565b6000546001600160a01b031661030c565b6102d5610d54565b6102b86104f5366004612638565b60126020526000908152604090205460ff1681565b61033761051836600461282d565b610d63565b61033761052b366004612638565b610d77565b61033761053e366004612866565b610da7565b600b546102eb565b6102d561055936600461259d565b610dd4565b6102eb60135481565b6102eb60115481565b61033761057e36600461259d565b610e3b565b6102b86105913660046128e6565b610e4c565b6103376105a436600461282d565b610e7a565b6105b1610e8c565b6040516102c49190612914565b6102eb6105cc3660046125cb565b6001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b61033761060236600461259d565b6110cc565b610337610615366004612638565b6110e2565b6103376106283660046125cb565b611158565b60006001600160e01b031982166355273cf960e11b1480610652575061065282611284565b92915050565b606060018054610667906129bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610693906129bd565b80156106e05780601f106106b5576101008083540402835291602001916106e0565b820191906000526020600020905b8154815290600101906020018083116106c357829003601f168201915b5050505050905090565b60006106f5826112d4565b506000908152600560205260409020546001600160a01b031690565b8161071b81611333565b61072583836113ec565b505050565b826001600160a01b03811633146107445761074433611333565b61074f8484846114fc565b50505050565b61075d61152d565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b610787611587565b6017544210156107b25760405162461bcd60e51b81526004016107a9906129f7565b60405180910390fd5b600060185460ff1660028111156107cb576107cb6127e1565b146107e85760405162461bcd60e51b81526004016107a990612a20565b6014546011546010546107fb9190612a64565b11156108495760405162461bcd60e51b815260206004820152601a60248201527f6f7665722066697273742073746570206d617820737570706c7900000000000060448201526064016107a9565b600f5460115460105461085c9190612a64565b111561087a5760405162461bcd60e51b81526004016107a990612a7c565b3360009081526012602052604090205460ff16156108cb5760405162461bcd60e51b815260206004820152600e60248201526d6d696e74656420616c726561647960901b60448201526064016107a9565b61090c8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060165491503390506115e0565b6109585760405162461bcd60e51b815260206004820152601760248201527f696e76616c69642077686974656c6973742070726f6f6600000000000000000060448201526064016107a9565b60005b60115481101561098e5761097c33826010546109779190612a64565b6115f6565b8061098681612aa7565b91505061095b565b50601154601060008282546109a39190612a64565b9091555050336000908152601260205260409020805460ff191660011790556109cc6001600e55565b5050565b6109d861152d565b601155565b6109e561152d565b601755565b826001600160a01b0381163314610a0457610a0433611333565b61074f84848461178f565b610a1761152d565b80516109cc906015906020840190612466565b610a3261152d565b6013819055610a4081600b55565b50565b6000818152600360205260408120546001600160a01b0316806106525760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107a9565b60158054610ab0906129bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610adc906129bd565b8015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b505050505081565b60006001600160a01b038216610b9b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107a9565b506001600160a01b031660009081526004602052604090205490565b610bbf61152d565b610bc960006117aa565b565b610bd361152d565b6018805482919060ff19166001836002811115610bf257610bf26127e1565b021790555050565b610c02611587565b601754421015610c245760405162461bcd60e51b81526004016107a9906129f7565b600160185460ff166002811115610c3d57610c3d6127e1565b14610c5a5760405162461bcd60e51b81526004016107a990612a20565b601454601354601054610c6d9190612a64565b1115610cbb5760405162461bcd60e51b815260206004820152601a60248201527f6f7665722066697273742073746570206d617820737570706c7900000000000060448201526064016107a9565b600f54601354601054610cce9190612a64565b1115610cec5760405162461bcd60e51b81526004016107a990612a7c565b60005b601354811015610d2457610d1181601054610d0a9190612a64565b84846117fa565b5080610d1c81612aa7565b915050610cef565b5060135460106000828254610d399190612a64565b90915550506001600e555050565b610d4f61152d565b601655565b606060028054610667906129bd565b81610d6d81611333565b6107258383611a9b565b610d7f61152d565b601880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b836001600160a01b0381163314610dc157610dc133611333565b610dcd85858585611aa6565b5050505050565b6060610ddf826112d4565b6000610de9611ad8565b90506000815111610e095760405180602001604052806000815250610e34565b80610e1384611ae7565b604051602001610e24929190612ac0565b6040516020818303038152906040525b9392505050565b610e4361152d565b610a4081600d55565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610e8261152d565b6109cc8282611b7a565b60606000806000610e9d6007611be5565b67ffffffffffffffff811115610eb557610eb56126ca565b604051908082528060200260200182016040528015610f1c57816020015b610f09604051806080016040528060006001600160a01b0316815260200160608152602001606081526020016000151581525090565b815260200190600190039081610ed35790505b50905060005b610f2c6007611be5565b8110156110c457610f3e600782611bf0565b809550819450505082828281518110610f5957610f59612aef565b60209081029190910101516001600160a01b039091169052815184151590839083908110610f8957610f89612aef565b602090810291909101015190151560609091015283156110b257826001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610fe1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110099190810190612b05565b82828151811061101b5761101b612aef565b602002602001015160200181905250826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015611068573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110909190810190612b05565b8282815181106110a2576110a2612aef565b6020026020010151604001819052505b806110bc81612aa7565b915050610f22565b509392505050565b6110d461152d565b6014819055610a4081600b55565b6110ea61152d565b6001600160a01b03811661114f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a9565b610a40816117aa565b611160611587565b6017544210156111825760405162461bcd60e51b81526004016107a9906129f7565b600260185460ff16600281111561119b5761119b6127e1565b146111b85760405162461bcd60e51b81526004016107a990612a20565b60185461010090046001600160a01b0316331461120e5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21039bab832b91036b4b73a32b960611b60448201526064016107a9565b600f548160105461121f9190612a64565b111561123d5760405162461bcd60e51b81526004016107a990612a7c565b60005b8181101561126c5761125a83826010546109779190612a64565b8061126481612aa7565b915050611240565b508060106000828254610d399190612a64565b600d55565b60006001600160e01b031982166380ac58cd60e01b14806112b557506001600160e01b03198216635b5e139f60e01b145b8061065257506301ffc9a760e01b6001600160e01b0319831614610652565b6000818152600360205260409020546001600160a01b0316610a405760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107a9565b6daaeb6d7670e522a718067333cd4e3b15610a4057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156113a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c49190612b7c565b610a4057604051633b79c77360e21b81526001600160a01b03821660048201526024016107a9565b60006113f782610a43565b9050806001600160a01b0316836001600160a01b0316036114645760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a9565b336001600160a01b038216148061148057506114808133610e4c565b6114f25760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107a9565b6107258383611c0e565b6115063382611c7c565b6115225760405162461bcd60e51b81526004016107a990612b99565b610725838383611cdb565b6000546001600160a01b03163314610bc95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107a9565b6002600e54036115d95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107a9565b6002600e55565b6000826115ed8584611da8565b14949350505050565b6001600160a01b03821661164c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a9565b6000818152600360205260409020546001600160a01b0316156116b15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a9565b6116bf600083836001611ded565b6000818152600360205260409020546001600160a01b0316156117245760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a9565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61072583838360405180602001604052806000815250610da7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008080611809600786611e75565b915091508161185a5760405162461bcd60e51b815260206004820152601c60248201527f455243373231473a20696e76616c69642061757468206572633732310000000060448201526064016107a9565b806000036118aa5760405162461bcd60e51b815260206004820152601c60248201527f455243373231473a20696e76616c69642061757468206572633732310000000060448201526064016107a9565b600d54600c546118bb906001612a64565b11156119145760405162461bcd60e51b815260206004820152602260248201527f455243373231473a206f766572206d617820746f74616c206d696e74206c696d6044820152611a5d60f21b60648201526084016107a9565b600b546001600160a01b0386166000908152600a60209081526040808320888452909152902054106119815760405162461bcd60e51b8152602060048201526016602482015275455243373231473a206d696e7420746f6f206d616e7960501b60448201526064016107a9565b6001600160a01b0385166000908152600a6020908152604080832087845290915281208054916119b083612aa7565b9091555050600c80549060006119c583612aa7565b90915550506040516331a9108f60e11b8152600481018590526000906001600160a01b03871690636352211e90602401602060405180830381865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a369190612be6565b90506001600160a01b038116611a875760405162461bcd60e51b815260206004820152601660248201527522a9219b9918a39d1034b73b30b634b21036b4b732b960511b60448201526064016107a9565b611a9181886115f6565b9695505050505050565b6109cc338383611e8d565b611ab03383611c7c565b611acc5760405162461bcd60e51b81526004016107a990612b99565b61074f84848484611f5b565b606060158054610667906129bd565b60606000611af483611f8e565b600101905060008167ffffffffffffffff811115611b1457611b146126ca565b6040519080825280601f01601f191660200182016040528015611b3e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611b4857509392505050565b600081611b88576000611b8b565b60015b60ff169050611b9c60078483612066565b50604080516001600160a01b038516815283151560208201527f377400ac3a6f567dd1f26d24a9205f1d26ece708879aa8aa41a3b67352e2aef5910160405180910390a1505050565b60006106528261207c565b6000808080611bff8686612087565b909450925050505b9250929050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c4382610a43565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611c8883610a43565b9050806001600160a01b0316846001600160a01b03161480611caf5750611caf8185610e4c565b80611cd35750836001600160a01b0316611cc8846106ea565b6001600160a01b0316145b949350505050565b6019546001600160a01b031615611d9d57601954604051635d525cd560e01b8152600481018390526001600160a01b0390911690635d525cd590602401602060405180830381865afa158015611d35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d599190612b7c565b15611d9d5760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b881a185cc81899595b881c1a5b995960621b60448201526064016107a9565b6107258383836120b2565b600081815b84518110156110c457611dd982868381518110611dcc57611dcc612aef565b6020026020010151612223565b915080611de581612aa7565b915050611dad565b600181111561074f576001600160a01b03841615611e33576001600160a01b03841660009081526004602052604081208054839290611e2d908490612c03565b90915550505b6001600160a01b0383161561074f576001600160a01b03831660009081526004602052604081208054839290611e6a908490612a64565b909155505050505050565b6000808080611bff866001600160a01b03871661224f565b816001600160a01b0316836001600160a01b031603611eee5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a9565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f66848484611cdb565b611f7284848484612289565b61074f5760405162461bcd60e51b81526004016107a990612c1a565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611fcd5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611ff9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061201757662386f26fc10000830492506010015b6305f5e100831061202f576305f5e100830492506008015b612710831061204357612710830492506004015b60648310612055576064830492506002015b600a83106106525760010192915050565b6000611cd3846001600160a01b0385168461238a565b6000610652826123a7565b6000808061209585856123b1565b600081815260029690960160205260409095205494959350505050565b826001600160a01b03166120c582610a43565b6001600160a01b0316146120eb5760405162461bcd60e51b81526004016107a990612c6c565b6001600160a01b03821661214d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107a9565b61215a8383836001611ded565b826001600160a01b031661216d82610a43565b6001600160a01b0316146121935760405162461bcd60e51b81526004016107a990612c6c565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081831061223f576000828152602084905260409020610e34565b5060009182526020526040902090565b600081815260028301602052604081205481908061227e5761227185856123bd565b925060009150611c079050565b600192509050611c07565b60006001600160a01b0384163b1561237f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122cd903390899088908890600401612cb1565b6020604051808303816000875af1925050508015612308575060408051601f3d908101601f1916820190925261230591810190612ce4565b60015b612365573d808015612336576040519150601f19603f3d011682016040523d82523d6000602084013e61233b565b606091505b50805160000361235d5760405162461bcd60e51b81526004016107a990612c1a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cd3565b506001949350505050565b60008281526002840160205260408120829055611cd384846123c9565b6000610652825490565b6000610e3483836123d5565b6000610e3483836123ff565b6000610e348383612417565b60008260000182815481106123ec576123ec612aef565b9060005260206000200154905092915050565b60008181526001830160205260408120541515610e34565b600081815260018301602052604081205461245e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610652565b506000610652565b828054612472906129bd565b90600052602060002090601f01602090048101928261249457600085556124da565b82601f106124ad57805160ff19168380011785556124da565b828001600101855582156124da579182015b828111156124da5782518255916020019190600101906124bf565b506124e69291506124ea565b5090565b5b808211156124e657600081556001016124eb565b6001600160e01b031981168114610a4057600080fd5b60006020828403121561252757600080fd5b8135610e34816124ff565b60005b8381101561254d578181015183820152602001612535565b8381111561074f5750506000910152565b60008151808452612576816020860160208601612532565b601f01601f19169290920160200192915050565b602081526000610e34602083018461255e565b6000602082840312156125af57600080fd5b5035919050565b6001600160a01b0381168114610a4057600080fd5b600080604083850312156125de57600080fd5b82356125e9816125b6565b946020939093013593505050565b60008060006060848603121561260c57600080fd5b8335612617816125b6565b92506020840135612627816125b6565b929592945050506040919091013590565b60006020828403121561264a57600080fd5b8135610e34816125b6565b6000806020838503121561266857600080fd5b823567ffffffffffffffff8082111561268057600080fd5b818501915085601f83011261269457600080fd5b8135818111156126a357600080fd5b8660208260051b85010111156126b857600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612709576127096126ca565b604052919050565b600067ffffffffffffffff82111561272b5761272b6126ca565b50601f01601f191660200190565b600061274c61274784612711565b6126e0565b905082815283838301111561276057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561278957600080fd5b813567ffffffffffffffff8111156127a057600080fd5b8201601f810184136127b157600080fd5b611cd384823560208401612739565b6000602082840312156127d257600080fd5b813560038110610e3457600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016003831061281957634e487b7160e01b600052602160045260246000fd5b91905290565b8015158114610a4057600080fd5b6000806040838503121561284057600080fd5b823561284b816125b6565b9150602083013561285b8161281f565b809150509250929050565b6000806000806080858703121561287c57600080fd5b8435612887816125b6565b93506020850135612897816125b6565b925060408501359150606085013567ffffffffffffffff8111156128ba57600080fd5b8501601f810187136128cb57600080fd5b6128da87823560208401612739565b91505092959194509250565b600080604083850312156128f957600080fd5b8235612904816125b6565b9150602083013561285b816125b6565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156129af57888303603f19018552815180516001600160a01b03168452878101516080898601819052906129748287018261255e565b915050878201518582038987015261298c828261255e565b60609384015115159690930195909552509487019492509086019060010161293b565b509098975050505050505050565b600181811c908216806129d157607f821691505b6020821081036129f157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e1b9bdd081e595d081cdd185c9d1959608a1b604082015260600190565b602080825260149082015273696e76616c6964206d696e74696e67206d6f646560601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a7757612a77612a4e565b500190565b6020808252601190820152706f76657220746f74616c20737570706c7960781b604082015260600190565b600060018201612ab957612ab9612a4e565b5060010190565b60008351612ad2818460208801612532565b835190830190612ae6818360208801612532565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b1757600080fd5b815167ffffffffffffffff811115612b2e57600080fd5b8201601f81018413612b3f57600080fd5b8051612b4d61274782612711565b818152856020838501011115612b6257600080fd5b612b73826020830160208601612532565b95945050505050565b600060208284031215612b8e57600080fd5b8151610e348161281f565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b600060208284031215612bf857600080fd5b8151610e34816125b6565b600082821015612c1557612c15612a4e565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a919083018461255e565b600060208284031215612cf657600080fd5b8151610e34816124ff56fea26469706673582212208b1ac96d1190ab3f07194a19cbf6f0fe08fa1dc552d2befcc1d56966acf5214164736f6c634300080d0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000063adb98000000000000000000000000000000000000000000000000000000000000000054c75636b7900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c75636b79000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Lucky
Arg [1] : symbol_ (string): Lucky
Arg [2] : startTime_ (uint256): 1672329600

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000063adb980
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 4c75636b79000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 4c75636b79000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

108907:5870:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108562:233;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;108562:233:0;;;;;;;;58101:100;;;:::i;:::-;;;;;;;:::i;109265:37::-;;;;;;;;;1489:25:1;;;1477:2;1462:18;109265:37:0;1343:177:1;59613:171:0;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1874:32:1;;;1856:51;;1844:2;1829:18;59613:171:0;1710:203:1;113963:174:0;;;;;;:::i;:::-;;:::i;:::-;;109480:26;;;;;-1:-1:-1;;;;;109480:26:0;;;109090:27;;;;;;114145:180;;;;;;:::i;:::-;;:::i;109049:34::-;;;;;;109339:25;;;;;;109901:110;;;;;;:::i;:::-;;:::i;111115:810::-;;;;;;:::i;:::-;;:::i;110443:109::-;;;;;;:::i;:::-;;:::i;110241:99::-;;;;;;:::i;:::-;;:::i;19164:143::-;;19264:42;19164:143;;114333:188;;;;;;:::i;:::-;;:::i;110019:100::-;;;;;;:::i;:::-;;:::i;110692:151::-;;;;;;:::i;:::-;;:::i;109445:26::-;;;;;;;;-1:-1:-1;;;;;109445:26:0;;;57811:223;;;;;;:::i;:::-;;:::i;108330:105::-;108414:13;;108330:105;;109311:21;;;:::i;57542:207::-;;;;;;:::i;:::-;;:::i;2883:103::-;;;:::i;110348:87::-;;;;;;:::i;:::-;;:::i;109401:37::-;;;;;;;;;;;;;;;;:::i;109373:21::-;;;;;;111933:617;;;;;;:::i;:::-;;:::i;108443:111::-;108530:16;;108443:111;;110127:106;;;;;;:::i;:::-;;:::i;2235:87::-;2281:7;2308:6;-1:-1:-1;;;;;2308:6:0;2235:87;;58270:104;;;:::i;109167:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;113762:193;;;;;;:::i;:::-;;:::i;111009:98::-;;;;;;:::i;:::-;;:::i;114529:245::-;;;;;;:::i;:::-;;:::i;108217:105::-;108301:13;;108217:105;;58445:281;;;;;;:::i;:::-;;:::i;109223:33::-;;;;;;109126:34;;;;;;110851:150;;;;;;:::i;:::-;;:::i;60082:164::-;;;;;;:::i;:::-;;:::i;110560:124::-;;;;;;:::i;:::-;;:::i;107480:561::-;;;:::i;:::-;;;;;;;:::i;108049:160::-;;;;;;:::i;:::-;-1:-1:-1;;;;;108168:20:0;;;;108144:4;108168:20;;;:14;:20;;;;;;;;:33;;;;;;;;;108049:160;109734:159;;;;;;:::i;:::-;;:::i;3141:201::-;;;;;;:::i;:::-;;:::i;112558:510::-;;;;;;:::i;:::-;;:::i;108562:233::-;108664:4;-1:-1:-1;;;;;;108697:41:0;;-1:-1:-1;;;108697:41:0;;:90;;;108751:36;108775:11;108751:23;:36::i;:::-;108681:106;108562:233;-1:-1:-1;;108562:233:0:o;58101:100::-;58155:13;58188:5;58181:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58101:100;:::o;59613:171::-;59689:7;59709:23;59724:7;59709:14;:23::i;:::-;-1:-1:-1;59752:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;59752:24:0;;59613:171::o;113963:174::-;114076:8;20685:30;20706:8;20685:20;:30::i;:::-;114097:32:::1;114111:8;114121:7;114097:13;:32::i;:::-;113963:174:::0;;;:::o;114145:180::-;114263:4;-1:-1:-1;;;;;20505:18:0;;20513:10;20505:18;20501:83;;20540:32;20561:10;20540:20;:32::i;:::-;114280:37:::1;114299:4;114305:2;114309:7;114280:18;:37::i;:::-;114145:180:::0;;;;:::o;109901:110::-;2121:13;:11;:13::i;:::-;109977:11:::1;:26:::0;;-1:-1:-1;;;;;;109977:26:0::1;-1:-1:-1::0;;;;;109977:26:0;;;::::1;::::0;;;::::1;::::0;;109901:110::o;111115:810::-;15622:21;:19;:21::i;:::-;111224:9:::1;;111205:15;:28;;111197:56;;;;-1:-1:-1::0;;;111197:56:0::1;;;;;;;:::i;:::-;;;;;;;;;111284:14;111272:8;::::0;::::1;;:26;::::0;::::1;;;;;;:::i;:::-;;111264:59;;;;-1:-1:-1::0;;;111264:59:0::1;;;;;;;:::i;:::-;111378:18;;111356;;111342:11;;:32;;;;:::i;:::-;:54;;111334:93;;;::::0;-1:-1:-1;;;111334:93:0;;11097:2:1;111334:93:0::1;::::0;::::1;11079:21:1::0;11136:2;11116:18;;;11109:30;11175:28;11155:18;;;11148:56;11221:18;;111334:93:0::1;10895:350:1::0;111334:93:0::1;111482:14;;111460:18;;111446:11;;:32;;;;:::i;:::-;:50;;111438:80;;;;-1:-1:-1::0;;;111438:80:0::1;;;;;;;:::i;:::-;111554:10;111538:27;::::0;;;:15:::1;:27;::::0;;;;;::::1;;111537:28;111529:55;;;::::0;-1:-1:-1;;;111529:55:0;;11798:2:1;111529:55:0::1;::::0;::::1;11780:21:1::0;11837:2;11817:18;;;11810:30;-1:-1:-1;;;11856:18:1;;;11849:44;11910:18;;111529:55:0::1;11596:338:1::0;111529:55:0::1;111603:71;111622:5;;111603:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;111629:10:0::1;::::0;;-1:-1:-1;111662:10:0::1;::::0;-1:-1:-1;111603:18:0::1;:71::i;:::-;111595:107;;;::::0;-1:-1:-1;;;111595:107:0;;12141:2:1;111595:107:0::1;::::0;::::1;12123:21:1::0;12180:2;12160:18;;;12153:30;12219:25;12199:18;;;12192:53;12262:18;;111595:107:0::1;11939:347:1::0;111595:107:0::1;111720:6;111715:112;111736:18;;111732:1;:22;111715:112;;;111776:39;111789:10;111813:1;111801:11;;:13;;;;:::i;:::-;111776:12;:39::i;:::-;111756:3:::0;::::1;::::0;::::1;:::i;:::-;;;;111715:112;;;;111854:18;;111839:11;;:33;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;111899:10:0::1;111883:27;::::0;;;:15:::1;:27;::::0;;;;:34;;-1:-1:-1;;111883:34:0::1;111913:4;111883:34;::::0;;15666:20;15060:1;16186:7;:22;16003:213;15666:20;111115:810;;:::o;110443:109::-;2121:13;:11;:13::i;:::-;110517:18:::1;:27:::0;110443:109::o;110241:99::-;2121:13;:11;:13::i;:::-;110310:9:::1;:22:::0;110241:99::o;114333:188::-;114455:4;-1:-1:-1;;;;;20505:18:0;;20513:10;20505:18;20501:83;;20540:32;20561:10;20540:20;:32::i;:::-;114472:41:::1;114495:4;114501:2;114505:7;114472:22;:41::i;110019:100::-:0;2121:13;:11;:13::i;:::-;110093:18;;::::1;::::0;:7:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;110692:151::-:0;2121:13;:11;:13::i;:::-;110765:17:::1;:26:::0;;;110802:33:::1;110785:6:::0;106240:13;:22;106180:90;110802:33:::1;110692:151:::0;:::o;57811:223::-;57883:7;62698:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62698:16:0;;57947:56;;;;-1:-1:-1;;;57947:56:0;;12633:2:1;57947:56:0;;;12615:21:1;12672:2;12652:18;;;12645:30;-1:-1:-1;;;12691:18:1;;;12684:54;12755:18;;57947:56:0;12431:348:1;109311:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;57542:207::-;57614:7;-1:-1:-1;;;;;57642:19:0;;57634:73;;;;-1:-1:-1;;;57634:73:0;;12986:2:1;57634:73:0;;;12968:21:1;13025:2;13005:18;;;12998:30;13064:34;13044:18;;;13037:62;-1:-1:-1;;;13115:18:1;;;13108:39;13164:19;;57634:73:0;12784:405:1;57634:73:0;-1:-1:-1;;;;;;57725:16:0;;;;;:9;:16;;;;;;;57542:207::o;2883:103::-;2121:13;:11;:13::i;:::-;2948:30:::1;2975:1;2948:18;:30::i;:::-;2883:103::o:0;110348:87::-;2121:13;:11;:13::i;:::-;110411:8:::1;:16:::0;;110422:5;;110411:8;-1:-1:-1;;110411:16:0::1;::::0;110422:5;110411:16:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;110348:87:::0;:::o;111933:617::-;15622:21;:19;:21::i;:::-;112061:9:::1;;112042:15;:28;;112034:56;;;;-1:-1:-1::0;;;112034:56:0::1;;;;;;;:::i;:::-;112121:13;112109:8;::::0;::::1;;:25;::::0;::::1;;;;;;:::i;:::-;;112101:58;;;;-1:-1:-1::0;;;112101:58:0::1;;;;;;;:::i;:::-;112213:18;;112192:17;;112178:11;;:31;;;;:::i;:::-;:53;;112170:92;;;::::0;-1:-1:-1;;;112170:92:0;;11097:2:1;112170:92:0::1;::::0;::::1;11079:21:1::0;11136:2;11116:18;;;11109:30;11175:28;11155:18;;;11148:56;11221:18;;112170:92:0::1;10895:350:1::0;112170:92:0::1;112316:14;;112295:17;;112281:11;;:31;;;;:::i;:::-;:49;;112273:79;;;;-1:-1:-1::0;;;112273:79:0::1;;;;;;;:::i;:::-;112370:6;112365:133;112386:17;;112382:1;:21;112365:133;;;112425:61;112451:1;112439:11;;:13;;;;:::i;:::-;112454:14;112470:15;112425:13;:61::i;:::-;-1:-1:-1::0;112405:3:0;::::1;::::0;::::1;:::i;:::-;;;;112365:133;;;;112525:17;;112510:11;;:32;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;15060:1:0;16186:7;:22;111115:810;;:::o;110127:106::-;2121:13;:11;:13::i;:::-;110201:10:::1;:24:::0;110127:106::o;58270:104::-;58326:13;58359:7;58352:14;;;;;:::i;113762:193::-;113883:8;20685:30;20706:8;20685:20;:30::i;:::-;113904:43:::1;113928:8;113938;113904:23;:43::i;111009:98::-:0;2121:13;:11;:13::i;:::-;111079:11:::1;:20:::0;;-1:-1:-1;;;;;111079:20:0;;::::1;;;-1:-1:-1::0;;;;;;111079:20:0;;::::1;::::0;;;::::1;::::0;;111009:98::o;114529:245::-;114697:4;-1:-1:-1;;;;;20505:18:0;;20513:10;20505:18;20501:83;;20540:32;20561:10;20540:20;:32::i;:::-;114719:47:::1;114742:4;114748:2;114752:7;114761:4;114719:22;:47::i;:::-;114529:245:::0;;;;;:::o;58445:281::-;58518:13;58544:23;58559:7;58544:14;:23::i;:::-;58580:21;58604:10;:8;:10::i;:::-;58580:34;;58656:1;58638:7;58632:21;:25;:86;;;;;;;;;;;;;;;;;58684:7;58693:18;:7;:16;:18::i;:::-;58667:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;58632:86;58625:93;58445:281;-1:-1:-1;;;58445:281:0:o;110851:150::-;2121:13;:11;:13::i;:::-;110942:51:::1;110971:21;106352:16:::0;:36;106278:118;60082:164;-1:-1:-1;;;;;60203:25:0;;;60179:4;60203:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;60082:164::o;110560:124::-;2121:13;:11;:13::i;:::-;110640:36:::1;110661:6;110669;110640:20;:36::i;107480:561::-:0;107535:13;107561:6;107578:14;107603:17;107634:16;:7;:14;:16::i;:::-;107623:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107623:28:0;;;;;;;;;;;;;;;;;107603:48;;107667:6;107662:349;107683:16;:7;:14;:16::i;:::-;107679:1;:20;107662:349;;;107735:13;:7;107746:1;107735:10;:13::i;:::-;107721:27;;;;;;;;107779:6;107763:3;107767:1;107763:6;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;107763:22:0;;;;;107800:6;;107817;;;;107800:3;;107804:1;;107800:6;;;;;;:::i;:::-;;;;;;;;;;;:24;;;:13;;;;:24;107839:55;;107870:8;107839:55;107931:6;-1:-1:-1;;;;;107924:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;107924:21:0;;;;;;;;;;;;:::i;:::-;107910:3;107914:1;107910:6;;;;;;;;:::i;:::-;;;;;;;:11;;:35;;;;107983:6;-1:-1:-1;;;;;107976:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;107976:23:0;;;;;;;;;;;;:::i;:::-;107960:3;107964:1;107960:6;;;;;;;;:::i;:::-;;;;;;;:13;;:39;;;;107662:349;107701:3;;;;:::i;:::-;;;;107662:349;;;-1:-1:-1;108030:3:0;107480:561;-1:-1:-1;;;107480:561:0:o;109734:159::-;2121:13;:11;:13::i;:::-;109805:18:::1;:24:::0;;;109840:45:::1;109826:3:::0;106240:13;:22;106180:90;3141:201;2121:13;:11;:13::i;:::-;-1:-1:-1;;;;;3230:22:0;::::1;3222:73;;;::::0;-1:-1:-1;;;3222:73:0;;14644:2:1;3222:73:0::1;::::0;::::1;14626:21:1::0;14683:2;14663:18;;;14656:30;14722:34;14702:18;;;14695:62;-1:-1:-1;;;14773:18:1;;;14766:36;14819:19;;3222:73:0::1;14442:402:1::0;3222:73:0::1;3306:28;3325:8;3306:18;:28::i;112558:510::-:0;15622:21;:19;:21::i;:::-;112673:9:::1;;112654:15;:28;;112646:56;;;;-1:-1:-1::0;;;112646:56:0::1;;;;;;;:::i;:::-;112733:10;112721:8;::::0;::::1;;:22;::::0;::::1;;;;;;:::i;:::-;;112713:55;;;;-1:-1:-1::0;;;112713:55:0::1;;;;;;;:::i;:::-;112801:11;::::0;::::1;::::0;::::1;-1:-1:-1::0;;;;;112801:11:0::1;112787:10;:25;112779:58;;;::::0;-1:-1:-1;;;112779:58:0;;15051:2:1;112779:58:0::1;::::0;::::1;15033:21:1::0;15090:2;15070:18;;;15063:30;-1:-1:-1;;;15109:18:1;;;15102:50;15169:18;;112779:58:0::1;14849:344:1::0;112779:58:0::1;112882:14;;112870:8;112856:11;;:22;;;;:::i;:::-;:40;;112848:70;;;;-1:-1:-1::0;;;112848:70:0::1;;;;;;;:::i;:::-;112936:6;112931:94;112952:8;112948:1;:12;112931:94;;;112982:31;112995:2;113011:1;112999:11;;:13;;;;:::i;112982:31::-;112962:3:::0;::::1;::::0;::::1;:::i;:::-;;;;112931:94;;;;113052:8;113037:11;;:23;;;;;;;:::i;106278:118::-:0;106352:16;:36;106278:118::o;57173:305::-;57275:4;-1:-1:-1;;;;;;57312:40:0;;-1:-1:-1;;;57312:40:0;;:105;;-1:-1:-1;;;;;;;57369:48:0;;-1:-1:-1;;;57369:48:0;57312:105;:158;;;-1:-1:-1;;;;;;;;;;55705:40:0;;;57434:36;55596:157;69432:135;63100:4;62698:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62698:16:0;69506:53;;;;-1:-1:-1;;;69506:53:0;;12633:2:1;69506:53:0;;;12615:21:1;12672:2;12652:18;;;12645:30;-1:-1:-1;;;12691:18:1;;;12684:54;12755:18;;69506:53:0;12431:348:1;20743:419:0;19264:42;20934:45;:49;20930:225;;21005:67;;-1:-1:-1;;;21005:67:0;;21056:4;21005:67;;;15410:34:1;-1:-1:-1;;;;;15480:15:1;;15460:18;;;15453:43;19264:42:0;;21005;;15345:18:1;;21005:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21000:144;;21100:28;;-1:-1:-1;;;21100:28:0;;-1:-1:-1;;;;;1874:32:1;;21100:28:0;;;1856:51:1;1829:18;;21100:28:0;1710:203:1;59131:416:0;59212:13;59228:23;59243:7;59228:14;:23::i;:::-;59212:39;;59276:5;-1:-1:-1;;;;;59270:11:0;:2;-1:-1:-1;;;;;59270:11:0;;59262:57;;;;-1:-1:-1;;;59262:57:0;;15959:2:1;59262:57:0;;;15941:21:1;15998:2;15978:18;;;15971:30;16037:34;16017:18;;;16010:62;-1:-1:-1;;;16088:18:1;;;16081:31;16129:19;;59262:57:0;15757:397:1;59262:57:0;860:10;-1:-1:-1;;;;;59354:21:0;;;;:62;;-1:-1:-1;59379:37:0;59396:5;860:10;60082:164;:::i;59379:37::-;59332:173;;;;-1:-1:-1;;;59332:173:0;;16361:2:1;59332:173:0;;;16343:21:1;16400:2;16380:18;;;16373:30;16439:34;16419:18;;;16412:62;16510:31;16490:18;;;16483:59;16559:19;;59332:173:0;16159:425:1;59332:173:0;59518:21;59527:2;59531:7;59518:8;:21::i;60313:335::-;60508:41;860:10;60541:7;60508:18;:41::i;:::-;60500:99;;;;-1:-1:-1;;;60500:99:0;;;;;;;:::i;:::-;60612:28;60622:4;60628:2;60632:7;60612:9;:28::i;2400:132::-;2281:7;2308:6;-1:-1:-1;;;;;2308:6:0;860:10;2464:23;2456:68;;;;-1:-1:-1;;;2456:68:0;;17205:2:1;2456:68:0;;;17187:21:1;;;17224:18;;;17217:30;17283:34;17263:18;;;17256:62;17335:18;;2456:68:0;17003:356:1;15702:293:0;15104:1;15836:7;;:19;15828:63;;;;-1:-1:-1;;;15828:63:0;;17566:2:1;15828:63:0;;;17548:21:1;17605:2;17585:18;;;17578:30;17644:33;17624:18;;;17617:61;17695:18;;15828:63:0;17364:355:1;15828:63:0;15104:1;15969:7;:18;15702:293::o;4930:190::-;5055:4;5108;5079:25;5092:5;5099:4;5079:12;:25::i;:::-;:33;;4930:190;-1:-1:-1;;;;4930:190:0:o;64928:942::-;-1:-1:-1;;;;;65008:16:0;;65000:61;;;;-1:-1:-1;;;65000:61:0;;17926:2:1;65000:61:0;;;17908:21:1;;;17945:18;;;17938:30;18004:34;17984:18;;;17977:62;18056:18;;65000:61:0;17724:356:1;65000:61:0;63100:4;62698:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62698:16:0;63124:31;65072:58;;;;-1:-1:-1;;;65072:58:0;;18287:2:1;65072:58:0;;;18269:21:1;18326:2;18306:18;;;18299:30;18365;18345:18;;;18338:58;18413:18;;65072:58:0;18085:352:1;65072:58:0;65143:48;65172:1;65176:2;65180:7;65189:1;65143:20;:48::i;:::-;63100:4;62698:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62698:16:0;63124:31;65281:58;;;;-1:-1:-1;;;65281:58:0;;18287:2:1;65281:58:0;;;18269:21:1;18326:2;18306:18;;;18299:30;18365;18345:18;;;18338:58;18413:18;;65281:58:0;18085:352:1;65281:58:0;-1:-1:-1;;;;;65688:13:0;;;;;;:9;:13;;;;;;;;:18;;65705:1;65688:18;;;65730:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;65730:21:0;;;;;65769:33;65738:7;;65688:13;;65769:33;;65688:13;;65769:33;111115:810;;:::o;60719:185::-;60857:39;60874:4;60880:2;60884:7;60857:39;;;;;;;;;;;;:16;:39::i;3502:191::-;3576:16;3595:6;;-1:-1:-1;;;;;3612:17:0;;;-1:-1:-1;;;;;;3612:17:0;;;;;;3645:40;;3595:6;;;;;;;3645:40;;3576:16;3645:40;3565:128;3502:191;:::o;106404:719::-;106494:7;;;106535:20;:7;106550:4;106535:14;:20::i;:::-;106514:41;;;;106574:3;106566:44;;;;-1:-1:-1;;;106566:44:0;;18644:2:1;106566:44:0;;;18626:21:1;18683:2;18663:18;;;18656:30;18722;18702:18;;;18695:58;18770:18;;106566:44:0;18442:352:1;106566:44:0;106629:1;106634;106629:6;106621:47;;;;-1:-1:-1;;;106621:47:0;;18644:2:1;106621:47:0;;;18626:21:1;18683:2;18663:18;;;18656:30;18722;18702:18;;;18695:58;18770:18;;106621:47:0;18442:352:1;106621:47:0;106706:16;;106687:13;;:15;;106701:1;106687:15;:::i;:::-;:35;;106679:82;;;;-1:-1:-1;;;106679:82:0;;19001:2:1;106679:82:0;;;18983:21:1;19040:2;19020:18;;;19013:30;19079:34;19059:18;;;19052:62;-1:-1:-1;;;19130:18:1;;;19123:32;19172:19;;106679:82:0;18799:398:1;106679:82:0;106816:13;;-1:-1:-1;;;;;106780:20:0;;;;;;:14;:20;;;;;;;;:33;;;;;;;;;:49;106772:84;;;;-1:-1:-1;;;106772:84:0;;19404:2:1;106772:84:0;;;19386:21:1;19443:2;19423:18;;;19416:30;-1:-1:-1;;;19462:18:1;;;19455:52;19524:18;;106772:84:0;19202:346:1;106772:84:0;-1:-1:-1;;;;;106867:20:0;;;;;;:14;:20;;;;;;;;:33;;;;;;;;:35;;;;;;:::i;:::-;;;;-1:-1:-1;;106913:13:0;:15;;;:13;:15;;;:::i;:::-;;;;-1:-1:-1;;106955:33:0;;-1:-1:-1;;;106955:33:0;;;;;1489:25:1;;;106939:13:0;;-1:-1:-1;;;;;106955:20:0;;;;;1462:18:1;;106955:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106939:49;-1:-1:-1;;;;;;107007:19:0;;106999:54;;;;-1:-1:-1;;;106999:54:0;;20011:2:1;106999:54:0;;;19993:21:1;20050:2;20030:18;;;20023:30;-1:-1:-1;;;20069:18:1;;;20062:52;20131:18;;106999:54:0;19809:346:1;106999:54:0;107064:28;107077:5;107084:7;107064:12;:28::i;:::-;107110:5;106404:719;-1:-1:-1;;;;;;106404:719:0:o;59856:155::-;59951:52;860:10;59984:8;59994;59951:18;:52::i;60975:322::-;61149:41;860:10;61182:7;61149:18;:41::i;:::-;61141:99;;;;-1:-1:-1;;;61141:99:0;;;;;;;:::i;:::-;61251:38;61265:4;61271:2;61275:7;61284:4;61251:13;:38::i;113431:100::-;113483:13;113516:7;113509:14;;;;;:::i;52831:716::-;52887:13;52938:14;52955:17;52966:5;52955:10;:17::i;:::-;52975:1;52955:21;52938:38;;52991:20;53025:6;53014:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53014:18:0;-1:-1:-1;52991:41:0;-1:-1:-1;53156:28:0;;;53172:2;53156:28;53213:288;-1:-1:-1;;53245:5:0;-1:-1:-1;;;53382:2:0;53371:14;;53366:30;53245:5;53353:44;53443:2;53434:11;;;-1:-1:-1;53464:21:0;53213:288;53464:21;-1:-1:-1;53522:6:0;52831:716;-1:-1:-1;;;52831:716:0:o;105994:178::-;106065:6;106074;:14;;106087:1;106074:14;;;106083:1;106074:14;106065:23;;;-1:-1:-1;106099:22:0;:7;106111:6;106065:23;106099:11;:22::i;:::-;-1:-1:-1;106137:27:0;;;-1:-1:-1;;;;;20478:32:1;;20460:51;;20554:14;;20547:22;20542:2;20527:18;;20520:50;106137:27:0;;20433:18:1;106137:27:0;;;;;;;106054:118;105994:178;;:::o;99402:122::-;99471:7;99498:18;99505:3;99498:6;:18::i;99872:235::-;99952:7;;;;100012:21;100015:3;100027:5;100012:2;:21::i;:::-;99981:52;;-1:-1:-1;99981:52:0;-1:-1:-1;;;99872:235:0;;;;;;:::o;68711:174::-;68786:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;68786:29:0;-1:-1:-1;;;;;68786:29:0;;;;;;;;:24;;68840:23;68786:24;68840:14;:23::i;:::-;-1:-1:-1;;;;;68831:46:0;;;;;;;;;;;68711:174;;:::o;63330:264::-;63423:4;63440:13;63456:23;63471:7;63456:14;:23::i;:::-;63440:39;;63509:5;-1:-1:-1;;;;;63498:16:0;:7;-1:-1:-1;;;;;63498:16:0;;:52;;;;63518:32;63535:5;63542:7;63518:16;:32::i;:::-;63498:87;;;;63578:7;-1:-1:-1;;;;;63554:31:0;:20;63566:7;63554:11;:20::i;:::-;-1:-1:-1;;;;;63554:31:0;;63498:87;63490:96;63330:264;-1:-1:-1;;;;63330:264:0:o;113146:277::-;113240:11;;-1:-1:-1;;;;;113240:11:0;:25;113237:131;;113304:11;;113291:40;;-1:-1:-1;;;113291:40:0;;;;;1489:25:1;;;-1:-1:-1;;;;;113304:11:0;;;;113291:31;;1462:18:1;;113291:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;113290:41;113282:74;;;;-1:-1:-1;;;113282:74:0;;20783:2:1;113282:74:0;;;20765:21:1;20822:2;20802:18;;;20795:30;-1:-1:-1;;;20841:18:1;;;20834:50;20901:18;;113282:74:0;20581:344:1;113282:74:0;113380:35;113397:4;113403:2;113407:7;113380:16;:35::i;5797:296::-;5880:7;5923:4;5880:7;5938:118;5962:5;:12;5958:1;:16;5938:118;;;6011:33;6021:12;6035:5;6041:1;6035:8;;;;;;;;:::i;:::-;;;;;;;6011:9;:33::i;:::-;5996:48;-1:-1:-1;5976:3:0;;;;:::i;:::-;;;;5938:118;;71716:410;71906:1;71894:9;:13;71890:229;;;-1:-1:-1;;;;;71928:18:0;;;71924:87;;-1:-1:-1;;;;;71967:15:0;;;;;;:9;:15;;;;;:28;;71986:9;;71967:15;:28;;71986:9;;71967:28;:::i;:::-;;;;-1:-1:-1;;71924:87:0;-1:-1:-1;;;;;72029:16:0;;;72025:83;;-1:-1:-1;;;;;72066:13:0;;;;;;:9;:13;;;;;:26;;72083:9;;72066:13;:26;;72083:9;;72066:26;:::i;:::-;;;;-1:-1:-1;;71716:410:0;;;;:::o;100254:241::-;100336:4;;;;100394:50;100401:3;-1:-1:-1;;;;;100421:21:0;;100394:6;:50::i;69028:315::-;69183:8;-1:-1:-1;;;;;69174:17:0;:5;-1:-1:-1;;;;;69174:17:0;;69166:55;;;;-1:-1:-1;;;69166:55:0;;21262:2:1;69166:55:0;;;21244:21:1;21301:2;21281:18;;;21274:30;21340:27;21320:18;;;21313:55;21385:18;;69166:55:0;21060:349:1;69166:55:0;-1:-1:-1;;;;;69232:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;69232:46:0;;;;;;;;;;69294:41;;540::1;;;69294::0;;513:18:1;69294:41:0;;;;;;;69028:315;;;:::o;62178:313::-;62334:28;62344:4;62350:2;62354:7;62334:9;:28::i;:::-;62381:47;62404:4;62410:2;62414:7;62423:4;62381:22;:47::i;:::-;62373:110;;;;-1:-1:-1;;;62373:110:0;;;;;;;:::i;49691:922::-;49744:7;;-1:-1:-1;;;49822:15:0;;49818:102;;-1:-1:-1;;;49858:15:0;;;-1:-1:-1;49902:2:0;49892:12;49818:102;49947:6;49938:5;:15;49934:102;;49983:6;49974:15;;;-1:-1:-1;50018:2:0;50008:12;49934:102;50063:6;50054:5;:15;50050:102;;50099:6;50090:15;;;-1:-1:-1;50134:2:0;50124:12;50050:102;50179:5;50170;:14;50166:99;;50214:5;50205:14;;;-1:-1:-1;50248:1:0;50238:11;50166:99;50292:5;50283;:14;50279:99;;50327:5;50318:14;;;-1:-1:-1;50361:1:0;50351:11;50279:99;50405:5;50396;:14;50392:99;;50440:5;50431:14;;;-1:-1:-1;50474:1:0;50464:11;50392:99;50518:5;50509;:14;50505:66;;50554:1;50544:11;50599:6;49691:922;-1:-1:-1;;49691:922:0:o;98519:218::-;98642:4;98666:63;98670:3;-1:-1:-1;;;;;98690:21:0;;98722:5;98666:3;:63::i;89883:125::-;89955:7;89982:18;:3;:16;:18::i;90373:194::-;90456:7;;;90499:19;:3;90512:5;90499:12;:19::i;:::-;90542:16;;;;:11;;;;;:16;;;;;;;;;90373:194;-1:-1:-1;;;;90373:194:0:o;67329:1263::-;67488:4;-1:-1:-1;;;;;67461:31:0;:23;67476:7;67461:14;:23::i;:::-;-1:-1:-1;;;;;67461:31:0;;67453:81;;;;-1:-1:-1;;;67453:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;67553:16:0;;67545:65;;;;-1:-1:-1;;;67545:65:0;;22441:2:1;67545:65:0;;;22423:21:1;22480:2;22460:18;;;22453:30;22519:34;22499:18;;;22492:62;-1:-1:-1;;;22570:18:1;;;22563:34;22614:19;;67545:65:0;22239:400:1;67545:65:0;67623:42;67644:4;67650:2;67654:7;67663:1;67623:20;:42::i;:::-;67795:4;-1:-1:-1;;;;;67768:31:0;:23;67783:7;67768:14;:23::i;:::-;-1:-1:-1;;;;;67768:31:0;;67760:81;;;;-1:-1:-1;;;67760:81:0;;;;;;;:::i;:::-;67913:24;;;;:15;:24;;;;;;;;67906:31;;-1:-1:-1;;;;;;67906:31:0;;;;;;-1:-1:-1;;;;;68389:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;68389:20:0;;;68424:13;;;;;;;;;:18;;67906:31;68424:18;;;68464:16;;;:7;:16;;;;;;:21;;;;;;;;;;68503:27;;67929:7;;68503:27;;;113963:174;;;:::o;12837:149::-;12900:7;12931:1;12927;:5;:51;;13062:13;13156:15;;;13192:4;13185:15;;;13239:4;13223:21;;12927:51;;;-1:-1:-1;13062:13:0;13156:15;;;13192:4;13185:15;13239:4;13223:21;;;12837:149::o;90714:305::-;90799:4;90841:16;;;:11;;;:16;;;;;;90799:4;;90841:16;90868:144;;90916:18;90925:3;90930;90916:8;:18::i;:::-;90908:39;-1:-1:-1;90944:1:0;;-1:-1:-1;90908:39:0;;-1:-1:-1;90908:39:0;90868:144;90988:4;;-1:-1:-1;90994:5:0;-1:-1:-1;90980:20:0;;70131:853;70285:4;-1:-1:-1;;;;;70306:13:0;;31612:19;:23;70302:675;;70342:71;;-1:-1:-1;;;70342:71:0;;-1:-1:-1;;;;;70342:36:0;;;;;:71;;860:10;;70393:4;;70399:7;;70408:4;;70342:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70342:71:0;;;;;;;;-1:-1:-1;;70342:71:0;;;;;;;;;;;;:::i;:::-;;;70338:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70583:6;:13;70600:1;70583:18;70579:328;;70626:60;;-1:-1:-1;;;70626:60:0;;;;;;;:::i;70579:328::-;70857:6;70851:13;70842:6;70838:2;70834:15;70827:38;70338:584;-1:-1:-1;;;;;;70464:51:0;-1:-1:-1;;;70464:51:0;;-1:-1:-1;70457:58:0;;70302:675;-1:-1:-1;70961:4:0;70131:853;;;;;;:::o;89009:211::-;89135:4;89152:16;;;:11;;;:16;;;;;:24;;;89194:18;89152:3;89164;89194:13;:18::i;79881:117::-;79944:7;79971:19;79979:3;77722:18;;77639:109;80352:131;80426:7;80453:22;80457:3;80469:5;80453:3;:22::i;89646:142::-;89733:4;89757:23;:3;89776;89757:18;:23::i;79137:125::-;79207:4;79231:23;79236:3;79248:5;79231:4;:23::i;78102:120::-;78169:7;78196:3;:11;;78208:5;78196:18;;;;;;;;:::i;:::-;;;;;;;;;78189:25;;78102:120;;;;:::o;79655:140::-;79735:4;77521:19;;;:12;;;:19;;;;;;:24;;79759:28;77424:129;75328:414;75391:4;77521:19;;;:12;;;:19;;;;;;75408:327;;-1:-1:-1;75451:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;75634:18;;75612:19;;;:12;;;:19;;;;;;:40;;;;75667:11;;75408:327;-1:-1:-1;75718:5:0;75711:12;;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1525:180::-;1584:6;1637:2;1625:9;1616:7;1612:23;1608:32;1605:52;;;1653:1;1650;1643:12;1605:52;-1:-1:-1;1676:23:1;;1525:180;-1:-1:-1;1525:180:1:o;1918:131::-;-1:-1:-1;;;;;1993:31:1;;1983:42;;1973:70;;2039:1;2036;2029:12;2054:315;2122:6;2130;2183:2;2171:9;2162:7;2158:23;2154:32;2151:52;;;2199:1;2196;2189:12;2151:52;2238:9;2225:23;2257:31;2282:5;2257:31;:::i;:::-;2307:5;2359:2;2344:18;;;;2331:32;;-1:-1:-1;;;2054:315:1:o;2374:456::-;2451:6;2459;2467;2520:2;2508:9;2499:7;2495:23;2491:32;2488:52;;;2536:1;2533;2526:12;2488:52;2575:9;2562:23;2594:31;2619:5;2594:31;:::i;:::-;2644:5;-1:-1:-1;2701:2:1;2686:18;;2673:32;2714:33;2673:32;2714:33;:::i;:::-;2374:456;;2766:7;;-1:-1:-1;;;2820:2:1;2805:18;;;;2792:32;;2374:456::o;3017:247::-;3076:6;3129:2;3117:9;3108:7;3104:23;3100:32;3097:52;;;3145:1;3142;3135:12;3097:52;3184:9;3171:23;3203:31;3228:5;3203:31;:::i;3269:615::-;3355:6;3363;3416:2;3404:9;3395:7;3391:23;3387:32;3384:52;;;3432:1;3429;3422:12;3384:52;3472:9;3459:23;3501:18;3542:2;3534:6;3531:14;3528:34;;;3558:1;3555;3548:12;3528:34;3596:6;3585:9;3581:22;3571:32;;3641:7;3634:4;3630:2;3626:13;3622:27;3612:55;;3663:1;3660;3653:12;3612:55;3703:2;3690:16;3729:2;3721:6;3718:14;3715:34;;;3745:1;3742;3735:12;3715:34;3798:7;3793:2;3783:6;3780:1;3776:14;3772:2;3768:23;3764:32;3761:45;3758:65;;;3819:1;3816;3809:12;3758:65;3850:2;3842:11;;;;;3872:6;;-1:-1:-1;3269:615:1;;-1:-1:-1;;;;3269:615:1:o;4128:127::-;4189:10;4184:3;4180:20;4177:1;4170:31;4220:4;4217:1;4210:15;4244:4;4241:1;4234:15;4260:275;4331:2;4325:9;4396:2;4377:13;;-1:-1:-1;;4373:27:1;4361:40;;4431:18;4416:34;;4452:22;;;4413:62;4410:88;;;4478:18;;:::i;:::-;4514:2;4507:22;4260:275;;-1:-1:-1;4260:275:1:o;4540:187::-;4589:4;4622:18;4614:6;4611:30;4608:56;;;4644:18;;:::i;:::-;-1:-1:-1;4710:2:1;4689:15;-1:-1:-1;;4685:29:1;4716:4;4681:40;;4540:187::o;4732:338::-;4797:5;4826:53;4842:36;4871:6;4842:36;:::i;:::-;4826:53;:::i;:::-;4817:62;;4902:6;4895:5;4888:21;4942:3;4933:6;4928:3;4924:16;4921:25;4918:45;;;4959:1;4956;4949:12;4918:45;5008:6;5003:3;4996:4;4989:5;4985:16;4972:43;5062:1;5055:4;5046:6;5039:5;5035:18;5031:29;5024:40;4732:338;;;;;:::o;5075:451::-;5144:6;5197:2;5185:9;5176:7;5172:23;5168:32;5165:52;;;5213:1;5210;5203:12;5165:52;5253:9;5240:23;5286:18;5278:6;5275:30;5272:50;;;5318:1;5315;5308:12;5272:50;5341:22;;5394:4;5386:13;;5382:27;-1:-1:-1;5372:55:1;;5423:1;5420;5413:12;5372:55;5446:74;5512:7;5507:2;5494:16;5489:2;5485;5481:11;5446:74;:::i;5531:265::-;5599:6;5652:2;5640:9;5631:7;5627:23;5623:32;5620:52;;;5668:1;5665;5658:12;5620:52;5707:9;5694:23;5746:1;5739:5;5736:12;5726:40;;5762:1;5759;5752:12;5801:127;5862:10;5857:3;5853:20;5850:1;5843:31;5893:4;5890:1;5883:15;5917:4;5914:1;5907:15;5933:337;6074:2;6059:18;;6107:1;6096:13;;6086:144;;6152:10;6147:3;6143:20;6140:1;6133:31;6187:4;6184:1;6177:15;6215:4;6212:1;6205:15;6086:144;6239:25;;;5933:337;:::o;6460:118::-;6546:5;6539:13;6532:21;6525:5;6522:32;6512:60;;6568:1;6565;6558:12;6583:382;6648:6;6656;6709:2;6697:9;6688:7;6684:23;6680:32;6677:52;;;6725:1;6722;6715:12;6677:52;6764:9;6751:23;6783:31;6808:5;6783:31;:::i;:::-;6833:5;-1:-1:-1;6890:2:1;6875:18;;6862:32;6903:30;6862:32;6903:30;:::i;:::-;6952:7;6942:17;;;6583:382;;;;;:::o;6970:795::-;7065:6;7073;7081;7089;7142:3;7130:9;7121:7;7117:23;7113:33;7110:53;;;7159:1;7156;7149:12;7110:53;7198:9;7185:23;7217:31;7242:5;7217:31;:::i;:::-;7267:5;-1:-1:-1;7324:2:1;7309:18;;7296:32;7337:33;7296:32;7337:33;:::i;:::-;7389:7;-1:-1:-1;7443:2:1;7428:18;;7415:32;;-1:-1:-1;7498:2:1;7483:18;;7470:32;7525:18;7514:30;;7511:50;;;7557:1;7554;7547:12;7511:50;7580:22;;7633:4;7625:13;;7621:27;-1:-1:-1;7611:55:1;;7662:1;7659;7652:12;7611:55;7685:74;7751:7;7746:2;7733:16;7728:2;7724;7720:11;7685:74;:::i;:::-;7675:84;;;6970:795;;;;;;;:::o;7770:388::-;7838:6;7846;7899:2;7887:9;7878:7;7874:23;7870:32;7867:52;;;7915:1;7912;7905:12;7867:52;7954:9;7941:23;7973:31;7998:5;7973:31;:::i;:::-;8023:5;-1:-1:-1;8080:2:1;8065:18;;8052:32;8093:33;8052:32;8093:33;:::i;8163:1384::-;8349:4;8378:2;8418;8407:9;8403:18;8448:2;8437:9;8430:21;8471:6;8506;8500:13;8537:6;8529;8522:22;8563:2;8553:12;;8596:2;8585:9;8581:18;8574:25;;8658:2;8648:6;8645:1;8641:14;8630:9;8626:30;8622:39;8696:2;8688:6;8684:15;8717:1;8727:791;8741:6;8738:1;8735:13;8727:791;;;8806:22;;;-1:-1:-1;;8802:36:1;8790:49;;8862:13;;8934:9;;-1:-1:-1;;;;;8930:35:1;8915:51;;9005:11;;;8999:18;8898:4;9037:15;;;9030:27;;;8898:4;9084:48;9116:15;;;8999:18;9084:48;:::i;:::-;9070:62;;;9181:2;9177;9173:11;9167:18;9234:6;9226;9222:19;9217:2;9209:6;9205:15;9198:44;9269:41;9303:6;9287:14;9269:41;:::i;:::-;9333:4;9394:11;;;9388:18;9381:26;9374:34;9357:15;;;;9350:59;;;;-1:-1:-1;9496:12:1;;;;9255:55;-1:-1:-1;9461:15:1;;;;8763:1;8756:9;8727:791;;;-1:-1:-1;9535:6:1;;8163:1384;-1:-1:-1;;;;;;;;8163:1384:1:o;9552:380::-;9631:1;9627:12;;;;9674;;;9695:61;;9749:4;9741:6;9737:17;9727:27;;9695:61;9802:2;9794:6;9791:14;9771:18;9768:38;9765:161;;9848:10;9843:3;9839:20;9836:1;9829:31;9883:4;9880:1;9873:15;9911:4;9908:1;9901:15;9765:161;;9552:380;;;:::o;9937:339::-;10139:2;10121:21;;;10178:2;10158:18;;;10151:30;-1:-1:-1;;;10212:2:1;10197:18;;10190:45;10267:2;10252:18;;9937:339::o;10281:344::-;10483:2;10465:21;;;10522:2;10502:18;;;10495:30;-1:-1:-1;;;10556:2:1;10541:18;;10534:50;10616:2;10601:18;;10281:344::o;10630:127::-;10691:10;10686:3;10682:20;10679:1;10672:31;10722:4;10719:1;10712:15;10746:4;10743:1;10736:15;10762:128;10802:3;10833:1;10829:6;10826:1;10823:13;10820:39;;;10839:18;;:::i;:::-;-1:-1:-1;10875:9:1;;10762:128::o;11250:341::-;11452:2;11434:21;;;11491:2;11471:18;;;11464:30;-1:-1:-1;;;11525:2:1;11510:18;;11503:47;11582:2;11567:18;;11250:341::o;12291:135::-;12330:3;12351:17;;;12348:43;;12371:18;;:::i;:::-;-1:-1:-1;12418:1:1;12407:13;;12291:135::o;13194:470::-;13373:3;13411:6;13405:13;13427:53;13473:6;13468:3;13461:4;13453:6;13449:17;13427:53;:::i;:::-;13543:13;;13502:16;;;;13565:57;13543:13;13502:16;13599:4;13587:17;;13565:57;:::i;:::-;13638:20;;13194:470;-1:-1:-1;;;;13194:470:1:o;13669:127::-;13730:10;13725:3;13721:20;13718:1;13711:31;13761:4;13758:1;13751:15;13785:4;13782:1;13775:15;13801:636;13881:6;13934:2;13922:9;13913:7;13909:23;13905:32;13902:52;;;13950:1;13947;13940:12;13902:52;13983:9;13977:16;14016:18;14008:6;14005:30;14002:50;;;14048:1;14045;14038:12;14002:50;14071:22;;14124:4;14116:13;;14112:27;-1:-1:-1;14102:55:1;;14153:1;14150;14143:12;14102:55;14182:2;14176:9;14207:49;14223:32;14252:2;14223:32;:::i;14207:49::-;14279:2;14272:5;14265:17;14319:7;14314:2;14309;14305;14301:11;14297:20;14294:33;14291:53;;;14340:1;14337;14330:12;14291:53;14353:54;14404:2;14399;14392:5;14388:14;14383:2;14379;14375:11;14353:54;:::i;:::-;14426:5;13801:636;-1:-1:-1;;;;;13801:636:1:o;15507:245::-;15574:6;15627:2;15615:9;15606:7;15602:23;15598:32;15595:52;;;15643:1;15640;15633:12;15595:52;15675:9;15669:16;15694:28;15716:5;15694:28;:::i;16589:409::-;16791:2;16773:21;;;16830:2;16810:18;;;16803:30;16869:34;16864:2;16849:18;;16842:62;-1:-1:-1;;;16935:2:1;16920:18;;16913:43;16988:3;16973:19;;16589:409::o;19553:251::-;19623:6;19676:2;19664:9;19655:7;19651:23;19647:32;19644:52;;;19692:1;19689;19682:12;19644:52;19724:9;19718:16;19743:31;19768:5;19743:31;:::i;20930:125::-;20970:4;20998:1;20995;20992:8;20989:34;;;21003:18;;:::i;:::-;-1:-1:-1;21040:9:1;;20930:125::o;21414:414::-;21616:2;21598:21;;;21655:2;21635:18;;;21628:30;21694:34;21689:2;21674:18;;21667:62;-1:-1:-1;;;21760:2:1;21745:18;;21738:48;21818:3;21803:19;;21414:414::o;21833:401::-;22035:2;22017:21;;;22074:2;22054:18;;;22047:30;22113:34;22108:2;22093:18;;22086:62;-1:-1:-1;;;22179:2:1;22164:18;;22157:35;22224:3;22209:19;;21833:401::o;22644:489::-;-1:-1:-1;;;;;22913:15:1;;;22895:34;;22965:15;;22960:2;22945:18;;22938:43;23012:2;22997:18;;22990:34;;;23060:3;23055:2;23040:18;;23033:31;;;22838:4;;23081:46;;23107:19;;23099:6;23081:46;:::i;23138:249::-;23207:6;23260:2;23248:9;23239:7;23235:23;23231:32;23228:52;;;23276:1;23273;23266:12;23228:52;23308:9;23302:16;23327:30;23351:5;23327:30;:::i

Swarm Source

ipfs://8b1ac96d1190ab3f07194a19cbf6f0fe08fa1dc552d2befcc1d56966acf52141
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.