ETH Price: $2,429.55 (-1.28%)
 

Overview

TokenID

3220

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
BedtimeCreation

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-06-04
*/

// File: operator-filter-registry/src/lib/Constants.sol


pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

// File: operator-filter-registry/src/IOperatorFilterRegistry.sol


pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

// File: operator-filter-registry/src/OperatorFilterer.sol


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.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    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));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    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);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    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) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

// File: operator-filter-registry/src/DefaultOperatorFilterer.sol


pragma solidity ^0.8.13;


/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol


// OpenZeppelin Contracts (last updated v4.9.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 rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 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 from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 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 from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                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/utils/introspection/IERC165.sol


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


// OpenZeppelin Contracts (last updated v4.9.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-upgradeable/utils/math/SignedMathUpgradeable.sol


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

pragma solidity ^0.8.0;

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

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

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

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

// File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

// File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol


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

pragma solidity ^0.8.0;



/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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 = MathUpgradeable.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMathUpgradeable.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, MathUpgradeable.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);
    }

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

// File: @openzeppelin/contracts/utils/Context.sol


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


// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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`,
     * 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 be 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom}
     * whenever possible.
     *
     * 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 payable;

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

// File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;


/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector);
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // Invariant:
                // There will always be an initialized ownership slot
                // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                // before an unintialized ownership slot
                // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                // Hence, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector);

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool result) {
        if (_startTokenId() <= tokenId) {
            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // Emit the `Transfer` event.
            log4(
                0, // Start of data (0, since no data).
                0, // End of data (0, since no data).
                _TRANSFER_EVENT_SIGNATURE, // Signature.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                _revert(TransferToNonERC721ReceiverImplementer.selector);
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                _revert(TransferToNonERC721ReceiverImplementer.selector);
            }
            assembly {
                revert(add(32, reason), mload(reason))
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) _revert(MintZeroQuantity.selector);

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            do {
                assembly {
                    // Emit the `Transfer` event.
                    log4(
                        0, // Start of data (0, since no data).
                        0, // End of data (0, since no data).
                        _TRANSFER_EVENT_SIGNATURE, // Signature.
                        0, // `address(0)`.
                        toMasked, // `to`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) _revert(MintToZeroAddress.selector);
        if (quantity == 0) _revert(MintZeroQuantity.selector);
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        _revert(TransferToNonERC721ReceiverImplementer.selector);
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) _revert(bytes4(0));
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                       APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_approve(to, tokenId, false)`.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _approve(to, tokenId, false);
    }

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector);
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

// File: contracts/Bedtime/BedtimeCreation.sol



pragma solidity ^0.8.19;









contract BedtimeCreation is ERC721A, DefaultOperatorFilterer, Ownable {

    event ClaimEvent(address indexed _from, uint _amount, uint _ts);
    using StringsUpgradeable for uint256;
    //Goerli 0xD4a33860578De61DBAbDc8BFdb98FD742fA7028e
    //ETH 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
    
    address public crossmintAddress;
    string public baseApiURI;

    //Prices
    uint256 public cost =  0.02 ether;
    //Referal Payout in $
    uint256 public referalPayout = 0 ether;

    uint256 public maxSupply = 10000;
    uint256 public mintableSupply = 1000;
    uint256 public maxMintAmountPerTransaction = 20;
    

    bool public claim = false;
    bool public publicSale = true;
    bool public payReferal = false;
    bool public contractPause = false;
    bool public offer = true;

    //Merkle Tree Roots
    bytes32 private claimRoot;
    

    mapping(address => uint256) public claims;
    mapping(uint256 => bool) public jobs;
    mapping(address => bool) public externalContract;

    constructor(string memory _baseUrl)
        ERC721A("Bedtime Creation", "BCV2")
    {
        baseApiURI = _baseUrl;
        crossmintAddress = 0xdAb1a1854214684acE522439684a145E62505233;
       _safeMint(msg.sender, 1);
    }

    modifier publicMintCheck(uint256 _mintAmount) {
        require(!contractPause, "Contract is Paused");
        require(publicSale, "Sale Has Not Started.");
        require(_mintAmount > 0, "Mint amount should be greater than 0");
        require(
            _mintAmount <= maxMintAmountPerTransaction,
            "Sorry you cant mint this amount at once"
        );

        require(totalSupply() + _mintAmount <= maxSupply, "Exceeds Max Supply");
        require(totalSupply() + _mintAmount <= mintableSupply, "Exceeds Max Supply");
        _;
        
    }

    modifier claimcheck(
        bytes32[] calldata proof,
        uint256 _mintAmount,
        uint256 _totalClaimable
    ) {
        require(!contractPause, "Contract is Paused");
        require(claim, "Claims are Paused");
        require(_mintAmount > 0, "Mint amount should be greater than 0");
        require(
            _mintAmount <= maxMintAmountPerTransaction,
            "Sorry you cant mint this amount at once"
        );

        require(totalSupply() + _mintAmount <= maxSupply, "Exceeds Max Supply");
       
            require(
                _verify(_leaf(msg.sender, _totalClaimable), proof),
                "Invalid claim proof"
            );
            require(
                (_mintAmount + claims[msg.sender]) <= _totalClaimable, "You cannot claim more"
            );
        
        _;
    }

   

    modifier supplyCheck(uint256 _mintAmount) {
        require(_mintAmount > 0, "Mint amount should be greater than 0");
        require(totalSupply() + _mintAmount <= maxSupply, "Exceeds Max Supply");
        _;
    }

    // Verify that a given leaf is in the tree.
    function _verify(
        bytes32 _leafNode,
        bytes32[] memory proof
    ) internal view returns (bool) {
        return MerkleProof.verify(proof, claimRoot, _leafNode);
    }

   

    function _leaf(address account, uint256 _totalClaimable)
        internal
        pure
        returns (bytes32)
    {
        return keccak256(abi.encodePacked(account, _totalClaimable));
    }

    

    //This function will be used to extend the project with more capabilities
    function setExternalContract(address _bAddress, bool _val) public onlyOwner {
        externalContract[_bAddress] = _val;
    }

    //this function can be called only from the extending contract
    function mintExternal(address _address, uint256 _mintAmount)
        external
        supplyCheck(_mintAmount)
    {
        require(
            externalContract[msg.sender],
            "Sorry you dont have permission to mint"
        );

        _safeMint(_address, _mintAmount);
    }


    function gift(address _to, uint256 _mintAmount)
        public
        supplyCheck(_mintAmount)
        onlyOwner
    {
        _safeMint(_to, _mintAmount);
    }

    function airdrop(address[] memory _airdropAddresses, uint256 _amount)
        public
        onlyOwner
    {
        require(
            totalSupply() + (_airdropAddresses.length * _amount) <= maxSupply,
            "Exceeds Max Supply"
        );
        for (uint256 i = 0; i < _airdropAddresses.length; i++) {
            address to = _airdropAddresses[i];
            _safeMint(to, _amount);
        }
    }

    function _mintCheckingOffer(address _to, uint256 _amount) internal {
        if (offer) {
            if (_amount >= 20) {
                _safeMint(msg.sender, _amount + 4);
            } else if (_amount >= 15) {
                _safeMint(msg.sender, _amount + 3);
            } else if (_amount >= 10) {
                _safeMint(msg.sender, _amount + 2);
            } else if (_amount >= 5) {
                _safeMint(msg.sender, _amount + 1);
            } else {
                _safeMint(msg.sender, _amount);
            }
        } else {
            _safeMint(_to, _amount);
        }
    }

    function numberMinted(address owner) public view returns (uint256) {
        return _numberMinted(owner);
    }

    function mint(uint256 _mintAmount, address payable _ref)
        external
        payable
        publicMintCheck(_mintAmount)
    {
        require(tx.origin == msg.sender, "Not EOA");
        if (_ref != 0x0000000000000000000000000000000000000000 && payReferal) {
            uint256 refPayoutAmount = referalPayout;
            (bool sent, ) = _ref.call{value: _mintAmount * refPayoutAmount}("");
            require(sent, "Failed to send to Referer");
        }
        //check price 
          require(msg.value >= cost * _mintAmount, "Insuffient funds");
         _mintCheckingOffer(msg.sender, _mintAmount);
    }

    //whitelist mint
    function claimBedtime(
        bytes32[] calldata proof,
        uint256 _mintAmount,
        uint256 _totalClaimable
    ) public  claimcheck(proof, _mintAmount, _totalClaimable) {
        claims[msg.sender] += _mintAmount;
        _safeMint(msg.sender, _mintAmount);
        emit ClaimEvent(msg.sender, _mintAmount, totalSupply());
    }

    function crossmint(
        address _to,
        uint256 _mintAmount,
        address payable _ref
    ) public payable publicMintCheck(_mintAmount) {
        // ethereum (all)  = 0xdab1a1854214684ace522439684a145e62505233
        require(
            msg.sender == crossmintAddress,
            "This function is for Crossmint only."
        );
      
        require(msg.value >= cost * _mintAmount, "Insuffient funds");
        if (_ref != 0x0000000000000000000000000000000000000000 && payReferal) {
            uint256 refPayoutAmount =  referalPayout;
            (bool sent, ) = _ref.call{value: _mintAmount * refPayoutAmount}("");
            require(sent, "Failed to send to Referer");
        }
          _mintCheckingOffer(_to, _mintAmount);
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        string memory currentBaseURI = _baseURI();
        return
            bytes(currentBaseURI).length > 0
                ? string(abi.encodePacked(currentBaseURI, tokenId.toString()))
                : "";
    }

    function setClaimRoot(bytes32 _root) public onlyOwner {
        claimRoot = _root;
    }

    function setmaxMintAmountPerTransaction(uint256 _amount) public onlyOwner {
        maxMintAmountPerTransaction = _amount;
    }

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseApiURI = _newBaseURI;
    }

    function setSaleStatus(
        bool _sale,
        bool _claim,
        bool _payref,
        bool _pause,
        bool _offer
    ) public onlyOwner {
        publicSale = _sale;
        claim = _claim;
        payReferal = _payref;
        contractPause = _pause;
        offer = _offer;
    }

    function setCrossmintAddress(address _crossmintAddress) public onlyOwner {
        crossmintAddress = _crossmintAddress;
    }

    

    function setCost(uint256 _cost) external onlyOwner {
        cost = _cost;
    }

    function setMintableSupply(uint256 _val) external onlyOwner{
        mintableSupply = _val;
    }


    //opensea Operator filter overides
    function setApprovalForAll(address operator, bool approved)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

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

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

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

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

    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        uint256 community = (balance * 40) / 100;
        uint256 b = (balance * 30) / 100;
        uint256 d = (balance * 15) / 100;

        (bool com, ) = payable(0x9F95737a2aE5B9f5d8969757B1eb3Ef6b7F179FC)
            .call{value: community}("");
        require(com);

       
        (bool os, ) = payable(0x76827cfb4Dc7E574211d20e7B976d697BF572F7A).call{
            value: b
        }("");
        require(os);

        (bool d1, ) = payable(0x4A2e2e750cB9fC6c6cd085269Ceb52Fc79e978c7).call{
            value: d
        }("");
        require(d1);

         (bool d2, ) = payable(0x366587d3648687Bf6743A7002038aE4559ecd0CF).call{
            value: d
        }("");
        require(d2);
    }

  
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseUrl","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"ClaimEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseApiURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_totalClaimable","type":"uint256"}],"name":"claimBedtime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address payable","name":"_ref","type":"address"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"crossmintAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"externalContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"jobs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address payable","name":"_ref","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"payReferal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referalPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","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":"payable","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setClaimRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_crossmintAddress","type":"address"}],"name":"setCrossmintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bAddress","type":"address"},{"internalType":"bool","name":"_val","type":"bool"}],"name":"setExternalContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_val","type":"uint256"}],"name":"setMintableSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_sale","type":"bool"},{"internalType":"bool","name":"_claim","type":"bool"},{"internalType":"bool","name":"_payref","type":"bool"},{"internalType":"bool","name":"_pause","type":"bool"},{"internalType":"bool","name":"_offer","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setmaxMintAmountPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405266470de4df820000600b556000600c55612710600d556103e8600e556014600f556010805464ffffffffff19166401000001001790553480156200004757600080fd5b50604051620034a7380380620034a78339810160408190526200006a9162000572565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601081526020016f2132b23a34b6b29021b932b0ba34b7b760811b815250604051806040016040528060048152602001632121ab1960e11b8152508160029081620000d89190620006b8565b506003620000e78282620006b8565b506000805550506daaeb6d7670e522a718067333cd4e3b15620002335780156200018157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200016257600080fd5b505af115801562000177573d6000803e3d6000fd5b5050505062000233565b6001600160a01b03821615620001d25760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000147565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200021957600080fd5b505af11580156200022e573d6000803e3d6000fd5b505050505b50620002419050336200028a565b600a6200024f8282620006b8565b50600980546001600160a01b03191673dab1a1854214684ace522439684a145e6250523317905562000283336001620002dc565b506200080d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002fe8282604051806020016040528060008152506200030260201b60201c565b5050565b6200030e838362000379565b6001600160a01b0383163b1562000374576000548281035b60018101906200033c906000908790866200043f565b6200035357620003536368d2bf6b60e11b6200052c565b8181106200032657816000541462000371576200037160006200052c565b50505b505050565b600080549082900362000398576200039863b562e8dd60e01b6200052c565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260059092528220805468010000000000000001860201905590819003620003f957620003f9622e076360e81b6200052c565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103620003fe575060005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200047690339089908890889060040162000784565b6020604051808303816000875af1925050508015620004b4575060408051601f3d908101601f19168201909252620004b191810190620007da565b60015b6200050f573d808015620004e5576040519150601f19603f3d011682016040523d82523d6000602084013e620004ea565b606091505b5080516000036200050757620005076368d2bf6b60e11b6200052c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b8060005260046000fd5b634e487b7160e01b600052604160045260246000fd5b60005b83811015620005695781810151838201526020016200054f565b50506000910152565b6000602082840312156200058557600080fd5b81516001600160401b03808211156200059d57600080fd5b818401915084601f830112620005b257600080fd5b815181811115620005c757620005c762000536565b604051601f8201601f19908116603f01168101908382118183101715620005f257620005f262000536565b816040528281528760208487010111156200060c57600080fd5b6200061f8360208301602088016200054c565b979650505050505050565b600181811c908216806200063f57607f821691505b6020821081036200066057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037457600081815260208120601f850160051c810160208610156200068f5750805b601f850160051c820191505b81811015620006b0578281556001016200069b565b505050505050565b81516001600160401b03811115620006d457620006d462000536565b620006ec81620006e584546200062a565b8462000666565b602080601f8311600181146200072457600084156200070b5750858301515b600019600386901b1c1916600185901b178555620006b0565b600085815260208120601f198616915b82811015620007555788860151825594840194600190910190840162000734565b5085821015620007745787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620007c38160a08501602087016200054c565b601f01601f19169190910160a00195945050505050565b600060208284031215620007ed57600080fd5b81516001600160e01b0319811681146200080657600080fd5b9392505050565b612c8a806200081d6000396000f3fe6080604052600436106102ae5760003560e01c80636352211e11610175578063c028df06116100dc578063ccade92011610095578063e845b3791161006f578063e845b37914610808578063e985e9c514610828578063f2fde38b14610848578063f4da18461461086857600080fd5b8063ccade920146107bf578063d5abeb01146107d2578063dc33e681146107e857600080fd5b8063c028df06146106fa578063c204642c1461071c578063c6788bdd1461073c578063c87b56dd14610769578063cbce4c9714610789578063cc5c095c146107a957600080fd5b806394bf804d1161012e57806394bf804d1461066957806395d89b411461067c5780639975562414610691578063a22cb465146106b1578063b88d4fde146106d1578063bbb89744146106e457600080fd5b80636352211e146105a65780636bb838e2146105c657806370a08231146105f6578063715018a61461061657806384ba30b91461062b5780638da5cb5b1461064b57600080fd5b80632a63d5761161021957806344a0d68a116101d257806344a0d68a146104eb57806349281f731461050b5780634e71d92d1461052b578063509e3e321461054557806355f804b3146105665780635b2a55e41461058657600080fd5b80632a63d5761461044d57806333bc1c5c1461046d5780633ccfd60b1461048c57806341827f13146104a157806341f43434146104b657806342842e0e146104d857600080fd5b806318160ddd1161026b57806318160ddd146103ab57806319b8cdb1146103c45780631d54f67a146103e457806321b97f201461040457806323b872dd146104245780632a223ea11461043757600080fd5b806301ffc9a7146102b357806306fdde03146102e8578063081812fc1461030a578063095ea7b31461034257806313faede614610357578063180aedf31461037b575b600080fd5b3480156102bf57600080fd5b506102d36102ce3660046123b4565b610888565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b506102fd6108da565b6040516102df9190612421565b34801561031657600080fd5b5061032a610325366004612434565b61096c565b6040516001600160a01b0390911681526020016102df565b610355610350366004612462565b6109a7565b005b34801561036357600080fd5b5061036d600b5481565b6040519081526020016102df565b34801561038757600080fd5b506102d3610396366004612434565b60136020526000908152604090205460ff1681565b3480156103b757600080fd5b506001546000540361036d565b3480156103d057600080fd5b506103556103df366004612434565b6109c0565b3480156103f057600080fd5b506103556103ff36600461249c565b6109cd565b34801561041057600080fd5b5061035561041f366004612434565b610a3b565b61035561043236600461250d565b610a48565b34801561044357600080fd5b5061036d600c5481565b34801561045957600080fd5b5061035561046836600461254e565b610a73565b34801561047957600080fd5b506010546102d390610100900460ff1681565b34801561049857600080fd5b50610355610aa6565b3480156104ad57600080fd5b506102fd610caf565b3480156104c257600080fd5b5061032a6daaeb6d7670e522a718067333cd4e81565b6103556104e636600461250d565b610d3d565b3480156104f757600080fd5b50610355610506366004612434565b610d62565b34801561051757600080fd5b50610355610526366004612434565b610d6f565b34801561053757600080fd5b506010546102d39060ff1681565b34801561055157600080fd5b506010546102d3906301000000900460ff1681565b34801561057257600080fd5b50610355610581366004612626565b610d7c565b34801561059257600080fd5b5060095461032a906001600160a01b031681565b3480156105b257600080fd5b5061032a6105c1366004612434565b610d94565b3480156105d257600080fd5b506102d36105e136600461266f565b60146020526000908152604090205460ff1681565b34801561060257600080fd5b5061036d61061136600461266f565b610d9f565b34801561062257600080fd5b50610355610de5565b34801561063757600080fd5b5061035561064636600461268c565b610df9565b34801561065757600080fd5b506008546001600160a01b031661032a565b61035561067736600461270e565b611095565b34801561068857600080fd5b506102fd611326565b34801561069d57600080fd5b506103556106ac36600461266f565b611335565b3480156106bd57600080fd5b506103556106cc36600461254e565b61135f565b6103556106df366004612733565b611373565b3480156106f057600080fd5b5061036d600f5481565b34801561070657600080fd5b506010546102d390640100000000900460ff1681565b34801561072857600080fd5b506103556107373660046127b3565b6113a0565b34801561074857600080fd5b5061036d61075736600461266f565b60126020526000908152604090205481565b34801561077557600080fd5b506102fd610784366004612434565b61142e565b34801561079557600080fd5b506103556107a4366004612462565b6114f9565b3480156107b557600080fd5b5061036d600e5481565b6103556107cd36600461286b565b611565565b3480156107de57600080fd5b5061036d600d5481565b3480156107f457600080fd5b5061036d61080336600461266f565b611823565b34801561081457600080fd5b506010546102d39062010000900460ff1681565b34801561083457600080fd5b506102d36108433660046128ad565b61184e565b34801561085457600080fd5b5061035561086336600461266f565b61187c565b34801561087457600080fd5b50610355610883366004612462565b6118f5565b60006301ffc9a760e01b6001600160e01b0319831614806108b957506380ac58cd60e01b6001600160e01b03198316145b806108d45750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546108e9906128db565b80601f0160208091040260200160405190810160405280929190818152602001828054610915906128db565b80156109625780601f1061093757610100808354040283529160200191610962565b820191906000526020600020905b81548152906001019060200180831161094557829003601f168201915b5050505050905090565b6000610977826119bd565b61098b5761098b6333d1c03960e21b611a02565b506000908152600660205260409020546001600160a01b031690565b816109b181611a0c565b6109bb8383611ac5565b505050565b6109c8611ad1565b600f55565b6109d5611ad1565b6010805461ffff19166101009615159690960260ff1916959095179315159390931763ffff00001916620100009215159290920263ff0000001916919091176301000000911515919091021764ff00000000191664010000000091151591909102179055565b610a43611ad1565b601155565b826001600160a01b0381163314610a6257610a6233611a0c565b610a6d848484611b2b565b50505050565b610a7b611ad1565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b610aae611ad1565b4760006064610abe83602861292b565b610ac89190612942565b905060006064610ad984601e61292b565b610ae39190612942565b905060006064610af485600f61292b565b610afe9190612942565b604051909150600090739f95737a2ae5b9f5d8969757b1eb3ef6b7f179fc9085908381818185875af1925050503d8060008114610b57576040519150601f19603f3d011682016040523d82523d6000602084013e610b5c565b606091505b5050905080610b6a57600080fd5b6040516000907376827cfb4dc7e574211d20e7b976d697bf572f7a9085908381818185875af1925050503d8060008114610bc0576040519150601f19603f3d011682016040523d82523d6000602084013e610bc5565b606091505b5050905080610bd357600080fd5b604051600090734a2e2e750cb9fc6c6cd085269ceb52fc79e978c79085908381818185875af1925050503d8060008114610c29576040519150601f19603f3d011682016040523d82523d6000602084013e610c2e565b606091505b5050905080610c3c57600080fd5b60405160009073366587d3648687bf6743a7002038ae4559ecd0cf9086908381818185875af1925050503d8060008114610c92576040519150601f19603f3d011682016040523d82523d6000602084013e610c97565b606091505b5050905080610ca557600080fd5b5050505050505050565b600a8054610cbc906128db565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce8906128db565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b505050505081565b826001600160a01b0381163314610d5757610d5733611a0c565b610a6d848484611c90565b610d6a611ad1565b600b55565b610d77611ad1565b600e55565b610d84611ad1565b600a610d9082826129b2565b5050565b60006108d482611cab565b60006001600160a01b038216610dbf57610dbf6323d3ad8160e21b611a02565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ded611ad1565b610df76000611d41565b565b83838383601060039054906101000a900460ff1615610e335760405162461bcd60e51b8152600401610e2a90612a72565b60405180910390fd5b60105460ff16610e795760405162461bcd60e51b815260206004820152601160248201527010db185a5b5cc8185c994814185d5cd959607a1b6044820152606401610e2a565b60008211610e995760405162461bcd60e51b8152600401610e2a90612a9e565b600f54821115610ebb5760405162461bcd60e51b8152600401610e2a90612ae2565b600d5482610ecc6001546000540390565b610ed69190612b29565b1115610ef45760405162461bcd60e51b8152600401610e2a90612b3c565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018590528351808403909101815260549092019092528051910120610f7090858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611d9392505050565b610fb25760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21031b630b4b690383937b7b360691b6044820152606401610e2a565b336000908152601260205260409020548190610fce9084612b29565b11156110145760405162461bcd60e51b8152602060048201526015602482015274596f752063616e6e6f7420636c61696d206d6f726560581b6044820152606401610e2a565b3360009081526012602052604081208054889290611033908490612b29565b9091555061104390503387611da2565b337fcabfe493e5b089b11ccbb58bf0484889b2b67244263dc852467f974947c73629876110736001546000540390565b6040805192835260208301919091520160405180910390a25050505050505050565b60105482906301000000900460ff16156110c15760405162461bcd60e51b8152600401610e2a90612a72565b601054610100900460ff166111105760405162461bcd60e51b815260206004820152601560248201527429b0b632902430b9902737ba1029ba30b93a32b21760591b6044820152606401610e2a565b600081116111305760405162461bcd60e51b8152600401610e2a90612a9e565b600f548111156111525760405162461bcd60e51b8152600401610e2a90612ae2565b600d54816111636001546000540390565b61116d9190612b29565b111561118b5760405162461bcd60e51b8152600401610e2a90612b3c565b600e548161119c6001546000540390565b6111a69190612b29565b11156111c45760405162461bcd60e51b8152600401610e2a90612b3c565b3233146111fd5760405162461bcd60e51b81526020600482015260076024820152664e6f7420454f4160c81b6044820152606401610e2a565b6001600160a01b0382161580159061121d575060105462010000900460ff165b156112cc57600c5460006001600160a01b03841661123b838761292b565b604051600081818185875af1925050503d8060008114611277576040519150601f19603f3d011682016040523d82523d6000602084013e61127c565b606091505b50509050806112c95760405162461bcd60e51b81526020600482015260196024820152782330b4b632b2103a379039b2b732103a37902932b332b932b960391b6044820152606401610e2a565b50505b82600b546112da919061292b565b34101561131c5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610e2a565b6109bb3384611dbc565b6060600380546108e9906128db565b61133d611ad1565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b8161136981611a0c565b6109bb8383611e44565b836001600160a01b038116331461138d5761138d33611a0c565b61139985858585611eb0565b5050505050565b6113a8611ad1565b600d548183516113b8919061292b565b600154600054036113c99190612b29565b11156113e75760405162461bcd60e51b8152600401610e2a90612b3c565b60005b82518110156109bb57600083828151811061140757611407612b68565b6020026020010151905061141b8184611da2565b508061142681612b7e565b9150506113ea565b6060611439826119bd565b61149d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610e2a565b60006114a7611eeb565b905060008151116114c757604051806020016040528060008152506114f2565b806114d184611efa565b6040516020016114e2929190612b97565b6040516020818303038152906040525b9392505050565b806000811161151a5760405162461bcd60e51b8152600401610e2a90612a9e565b600d548161152b6001546000540390565b6115359190612b29565b11156115535760405162461bcd60e51b8152600401610e2a90612b3c565b61155b611ad1565b6109bb8383611da2565b60105482906301000000900460ff16156115915760405162461bcd60e51b8152600401610e2a90612a72565b601054610100900460ff166115e05760405162461bcd60e51b815260206004820152601560248201527429b0b632902430b9902737ba1029ba30b93a32b21760591b6044820152606401610e2a565b600081116116005760405162461bcd60e51b8152600401610e2a90612a9e565b600f548111156116225760405162461bcd60e51b8152600401610e2a90612ae2565b600d54816116336001546000540390565b61163d9190612b29565b111561165b5760405162461bcd60e51b8152600401610e2a90612b3c565b600e548161166c6001546000540390565b6116769190612b29565b11156116945760405162461bcd60e51b8152600401610e2a90612b3c565b6009546001600160a01b031633146116fa5760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610e2a565b82600b54611708919061292b565b34101561174a5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610e2a565b6001600160a01b0382161580159061176a575060105462010000900460ff165b1561181957600c5460006001600160a01b038416611788838761292b565b604051600081818185875af1925050503d80600081146117c4576040519150601f19603f3d011682016040523d82523d6000602084013e6117c9565b606091505b50509050806118165760405162461bcd60e51b81526020600482015260196024820152782330b4b632b2103a379039b2b732103a37902932b332b932b960391b6044820152606401610e2a565b50505b610a6d8484611dbc565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166108d4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611884611ad1565b6001600160a01b0381166118e95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e2a565b6118f281611d41565b50565b80600081116119165760405162461bcd60e51b8152600401610e2a90612a9e565b600d54816119276001546000540390565b6119319190612b29565b111561194f5760405162461bcd60e51b8152600401610e2a90612b3c565b3360009081526014602052604090205460ff1661155b5760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f7520646f6e742068617665207065726d697373696f6e20746044820152651bc81b5a5b9d60d21b6064820152608401610e2a565b600080548210156119fd5760005b50600082815260046020526040812054908190036119f3576119ec83612bc6565b92506119cb565b600160e01b161590505b919050565b8060005260046000fd5b6daaeb6d7670e522a718067333cd4e3b156118f257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9d9190612bdd565b6118f257604051633b79c77360e21b81526001600160a01b0382166004820152602401610e2a565b610d9082826001611f8d565b6008546001600160a01b03163314610df75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e2a565b6000611b3682611cab565b6001600160a01b039485169490915081168414611b5c57611b5c62a1148160e81b611a02565b60008281526006602052604090208054338082146001600160a01b03881690911417611ba057611b8c863361184e565b611ba057611ba0632ce44b5f60e11b611a02565b8015611bab57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611c3d57600184016000818152600460205260408120549003611c3b576000548114611c3b5760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a480600003611c8757611c87633a954ecd60e21b611a02565b50505050505050565b6109bb83838360405180602001604052806000815250611373565b60008181526004602052604081205490819003611d1e576000548210611cdb57611cdb636f96cda160e11b611a02565b5b50600019016000818152600460205260409020548015611cdc57600160e01b8116600003611d0957919050565b611d19636f96cda160e11b611a02565b611cdc565b600160e01b8116600003611d3157919050565b6119fd636f96cda160e11b611a02565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006114f28260115485612030565b610d90828260405180602001604052806000815250612046565b601054640100000000900460ff1615611e3a5760148110611deb57610d9033611de6836004612b29565b611da2565b600f8110611e0257610d9033611de6836003612b29565b600a8110611e1957610d9033611de6836002612b29565b60058110611e3057610d9033611de6836001612b29565b610d903382611da2565b610d908282611da2565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611ebb848484610a48565b6001600160a01b0383163b15610a6d57611ed7848484846120a8565b610a6d57610a6d6368d2bf6b60e11b611a02565b6060600a80546108e9906128db565b60606000611f078361218b565b600101905060008167ffffffffffffffff811115611f2757611f27612587565b6040519080825280601f01601f191660200182016040528015611f51576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611f5b57509392505050565b6000611f9883610d94565b9050818015611fb05750336001600160a01b03821614155b15611fd357611fbf813361184e565b611fd357611fd36367d9dca160e11b611a02565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008261203d8584612263565b14949350505050565b61205083836122b0565b6001600160a01b0383163b156109bb576000548281035b61207a60008683806001019450866120a8565b61208e5761208e6368d2bf6b60e11b611a02565b818110612067578160005414611399576113996000611a02565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120dd903390899088908890600401612bfa565b6020604051808303816000875af1925050508015612118575060408051601f3d908101601f1916820190925261211591810190612c37565b60015b61216d573d808015612146576040519150601f19603f3d011682016040523d82523d6000602084013e61214b565b606091505b508051600003612165576121656368d2bf6b60e11b611a02565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121ca5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106121f6576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061221457662386f26fc10000830492506010015b6305f5e100831061222c576305f5e100830492506008015b612710831061224057612710830492506004015b60648310612252576064830492506002015b600a83106108d45760010192915050565b600081815b84518110156122a8576122948286838151811061228757612287612b68565b602002602001015161236f565b9150806122a081612b7e565b915050612268565b509392505050565b60008054908290036122cc576122cc63b562e8dd60e01b611a02565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361232a5761232a622e076360e81b611a02565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361232f575060005550505050565b600081831061238b5760008281526020849052604090206114f2565b60008381526020839052604090206114f2565b6001600160e01b0319811681146118f257600080fd5b6000602082840312156123c657600080fd5b81356114f28161239e565b60005b838110156123ec5781810151838201526020016123d4565b50506000910152565b6000815180845261240d8160208601602086016123d1565b601f01601f19169290920160200192915050565b6020815260006114f260208301846123f5565b60006020828403121561244657600080fd5b5035919050565b6001600160a01b03811681146118f257600080fd5b6000806040838503121561247557600080fd5b82356124808161244d565b946020939093013593505050565b80151581146118f257600080fd5b600080600080600060a086880312156124b457600080fd5b85356124bf8161248e565b945060208601356124cf8161248e565b935060408601356124df8161248e565b925060608601356124ef8161248e565b915060808601356124ff8161248e565b809150509295509295909350565b60008060006060848603121561252257600080fd5b833561252d8161244d565b9250602084013561253d8161244d565b929592945050506040919091013590565b6000806040838503121561256157600080fd5b823561256c8161244d565b9150602083013561257c8161248e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156125c6576125c6612587565b604052919050565b600067ffffffffffffffff8311156125e8576125e8612587565b6125fb601f8401601f191660200161259d565b905082815283838301111561260f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561263857600080fd5b813567ffffffffffffffff81111561264f57600080fd5b8201601f8101841361266057600080fd5b612183848235602084016125ce565b60006020828403121561268157600080fd5b81356114f28161244d565b600080600080606085870312156126a257600080fd5b843567ffffffffffffffff808211156126ba57600080fd5b818701915087601f8301126126ce57600080fd5b8135818111156126dd57600080fd5b8860208260051b85010111156126f257600080fd5b6020928301999098509187013596604001359550909350505050565b6000806040838503121561272157600080fd5b82359150602083013561257c8161244d565b6000806000806080858703121561274957600080fd5b84356127548161244d565b935060208501356127648161244d565b925060408501359150606085013567ffffffffffffffff81111561278757600080fd5b8501601f8101871361279857600080fd5b6127a7878235602084016125ce565b91505092959194509250565b600080604083850312156127c657600080fd5b823567ffffffffffffffff808211156127de57600080fd5b818501915085601f8301126127f257600080fd5b813560208282111561280657612806612587565b8160051b925061281781840161259d565b828152928401810192818101908985111561283157600080fd5b948201945b8486101561285b578535935061284b8461244d565b8382529482019490820190612836565b9997909101359750505050505050565b60008060006060848603121561288057600080fd5b833561288b8161244d565b92506020840135915060408401356128a28161244d565b809150509250925092565b600080604083850312156128c057600080fd5b82356128cb8161244d565b9150602083013561257c8161244d565b600181811c908216806128ef57607f821691505b60208210810361290f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108d4576108d4612915565b60008261295f57634e487b7160e01b600052601260045260246000fd5b500490565b601f8211156109bb57600081815260208120601f850160051c8101602086101561298b5750805b601f850160051c820191505b818110156129aa57828155600101612997565b505050505050565b815167ffffffffffffffff8111156129cc576129cc612587565b6129e0816129da84546128db565b84612964565b602080601f831160018114612a1557600084156129fd5750858301515b600019600386901b1c1916600185901b1785556129aa565b600085815260208120601f198616915b82811015612a4457888601518255948401946001909101908401612a25565b5085821015612a625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526012908201527110dbdb9d1c9858dd081a5cc814185d5cd95960721b604082015260600190565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526027908201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206040820152666174206f6e636560c81b606082015260800190565b808201808211156108d4576108d4612915565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612b9057612b90612915565b5060010190565b60008351612ba98184602088016123d1565b835190830190612bbd8183602088016123d1565b01949350505050565b600081612bd557612bd5612915565b506000190190565b600060208284031215612bef57600080fd5b81516114f28161248e565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c2d908301846123f5565b9695505050505050565b600060208284031215612c4957600080fd5b81516114f28161239e56fea264697066735822122090eb82d37b66f30b2ee9479757bc14e8bf913f4d29ae3bd5691e0f47ca04b0e664736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102ae5760003560e01c80636352211e11610175578063c028df06116100dc578063ccade92011610095578063e845b3791161006f578063e845b37914610808578063e985e9c514610828578063f2fde38b14610848578063f4da18461461086857600080fd5b8063ccade920146107bf578063d5abeb01146107d2578063dc33e681146107e857600080fd5b8063c028df06146106fa578063c204642c1461071c578063c6788bdd1461073c578063c87b56dd14610769578063cbce4c9714610789578063cc5c095c146107a957600080fd5b806394bf804d1161012e57806394bf804d1461066957806395d89b411461067c5780639975562414610691578063a22cb465146106b1578063b88d4fde146106d1578063bbb89744146106e457600080fd5b80636352211e146105a65780636bb838e2146105c657806370a08231146105f6578063715018a61461061657806384ba30b91461062b5780638da5cb5b1461064b57600080fd5b80632a63d5761161021957806344a0d68a116101d257806344a0d68a146104eb57806349281f731461050b5780634e71d92d1461052b578063509e3e321461054557806355f804b3146105665780635b2a55e41461058657600080fd5b80632a63d5761461044d57806333bc1c5c1461046d5780633ccfd60b1461048c57806341827f13146104a157806341f43434146104b657806342842e0e146104d857600080fd5b806318160ddd1161026b57806318160ddd146103ab57806319b8cdb1146103c45780631d54f67a146103e457806321b97f201461040457806323b872dd146104245780632a223ea11461043757600080fd5b806301ffc9a7146102b357806306fdde03146102e8578063081812fc1461030a578063095ea7b31461034257806313faede614610357578063180aedf31461037b575b600080fd5b3480156102bf57600080fd5b506102d36102ce3660046123b4565b610888565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b506102fd6108da565b6040516102df9190612421565b34801561031657600080fd5b5061032a610325366004612434565b61096c565b6040516001600160a01b0390911681526020016102df565b610355610350366004612462565b6109a7565b005b34801561036357600080fd5b5061036d600b5481565b6040519081526020016102df565b34801561038757600080fd5b506102d3610396366004612434565b60136020526000908152604090205460ff1681565b3480156103b757600080fd5b506001546000540361036d565b3480156103d057600080fd5b506103556103df366004612434565b6109c0565b3480156103f057600080fd5b506103556103ff36600461249c565b6109cd565b34801561041057600080fd5b5061035561041f366004612434565b610a3b565b61035561043236600461250d565b610a48565b34801561044357600080fd5b5061036d600c5481565b34801561045957600080fd5b5061035561046836600461254e565b610a73565b34801561047957600080fd5b506010546102d390610100900460ff1681565b34801561049857600080fd5b50610355610aa6565b3480156104ad57600080fd5b506102fd610caf565b3480156104c257600080fd5b5061032a6daaeb6d7670e522a718067333cd4e81565b6103556104e636600461250d565b610d3d565b3480156104f757600080fd5b50610355610506366004612434565b610d62565b34801561051757600080fd5b50610355610526366004612434565b610d6f565b34801561053757600080fd5b506010546102d39060ff1681565b34801561055157600080fd5b506010546102d3906301000000900460ff1681565b34801561057257600080fd5b50610355610581366004612626565b610d7c565b34801561059257600080fd5b5060095461032a906001600160a01b031681565b3480156105b257600080fd5b5061032a6105c1366004612434565b610d94565b3480156105d257600080fd5b506102d36105e136600461266f565b60146020526000908152604090205460ff1681565b34801561060257600080fd5b5061036d61061136600461266f565b610d9f565b34801561062257600080fd5b50610355610de5565b34801561063757600080fd5b5061035561064636600461268c565b610df9565b34801561065757600080fd5b506008546001600160a01b031661032a565b61035561067736600461270e565b611095565b34801561068857600080fd5b506102fd611326565b34801561069d57600080fd5b506103556106ac36600461266f565b611335565b3480156106bd57600080fd5b506103556106cc36600461254e565b61135f565b6103556106df366004612733565b611373565b3480156106f057600080fd5b5061036d600f5481565b34801561070657600080fd5b506010546102d390640100000000900460ff1681565b34801561072857600080fd5b506103556107373660046127b3565b6113a0565b34801561074857600080fd5b5061036d61075736600461266f565b60126020526000908152604090205481565b34801561077557600080fd5b506102fd610784366004612434565b61142e565b34801561079557600080fd5b506103556107a4366004612462565b6114f9565b3480156107b557600080fd5b5061036d600e5481565b6103556107cd36600461286b565b611565565b3480156107de57600080fd5b5061036d600d5481565b3480156107f457600080fd5b5061036d61080336600461266f565b611823565b34801561081457600080fd5b506010546102d39062010000900460ff1681565b34801561083457600080fd5b506102d36108433660046128ad565b61184e565b34801561085457600080fd5b5061035561086336600461266f565b61187c565b34801561087457600080fd5b50610355610883366004612462565b6118f5565b60006301ffc9a760e01b6001600160e01b0319831614806108b957506380ac58cd60e01b6001600160e01b03198316145b806108d45750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546108e9906128db565b80601f0160208091040260200160405190810160405280929190818152602001828054610915906128db565b80156109625780601f1061093757610100808354040283529160200191610962565b820191906000526020600020905b81548152906001019060200180831161094557829003601f168201915b5050505050905090565b6000610977826119bd565b61098b5761098b6333d1c03960e21b611a02565b506000908152600660205260409020546001600160a01b031690565b816109b181611a0c565b6109bb8383611ac5565b505050565b6109c8611ad1565b600f55565b6109d5611ad1565b6010805461ffff19166101009615159690960260ff1916959095179315159390931763ffff00001916620100009215159290920263ff0000001916919091176301000000911515919091021764ff00000000191664010000000091151591909102179055565b610a43611ad1565b601155565b826001600160a01b0381163314610a6257610a6233611a0c565b610a6d848484611b2b565b50505050565b610a7b611ad1565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b610aae611ad1565b4760006064610abe83602861292b565b610ac89190612942565b905060006064610ad984601e61292b565b610ae39190612942565b905060006064610af485600f61292b565b610afe9190612942565b604051909150600090739f95737a2ae5b9f5d8969757b1eb3ef6b7f179fc9085908381818185875af1925050503d8060008114610b57576040519150601f19603f3d011682016040523d82523d6000602084013e610b5c565b606091505b5050905080610b6a57600080fd5b6040516000907376827cfb4dc7e574211d20e7b976d697bf572f7a9085908381818185875af1925050503d8060008114610bc0576040519150601f19603f3d011682016040523d82523d6000602084013e610bc5565b606091505b5050905080610bd357600080fd5b604051600090734a2e2e750cb9fc6c6cd085269ceb52fc79e978c79085908381818185875af1925050503d8060008114610c29576040519150601f19603f3d011682016040523d82523d6000602084013e610c2e565b606091505b5050905080610c3c57600080fd5b60405160009073366587d3648687bf6743a7002038ae4559ecd0cf9086908381818185875af1925050503d8060008114610c92576040519150601f19603f3d011682016040523d82523d6000602084013e610c97565b606091505b5050905080610ca557600080fd5b5050505050505050565b600a8054610cbc906128db565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce8906128db565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b505050505081565b826001600160a01b0381163314610d5757610d5733611a0c565b610a6d848484611c90565b610d6a611ad1565b600b55565b610d77611ad1565b600e55565b610d84611ad1565b600a610d9082826129b2565b5050565b60006108d482611cab565b60006001600160a01b038216610dbf57610dbf6323d3ad8160e21b611a02565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ded611ad1565b610df76000611d41565b565b83838383601060039054906101000a900460ff1615610e335760405162461bcd60e51b8152600401610e2a90612a72565b60405180910390fd5b60105460ff16610e795760405162461bcd60e51b815260206004820152601160248201527010db185a5b5cc8185c994814185d5cd959607a1b6044820152606401610e2a565b60008211610e995760405162461bcd60e51b8152600401610e2a90612a9e565b600f54821115610ebb5760405162461bcd60e51b8152600401610e2a90612ae2565b600d5482610ecc6001546000540390565b610ed69190612b29565b1115610ef45760405162461bcd60e51b8152600401610e2a90612b3c565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018590528351808403909101815260549092019092528051910120610f7090858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611d9392505050565b610fb25760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21031b630b4b690383937b7b360691b6044820152606401610e2a565b336000908152601260205260409020548190610fce9084612b29565b11156110145760405162461bcd60e51b8152602060048201526015602482015274596f752063616e6e6f7420636c61696d206d6f726560581b6044820152606401610e2a565b3360009081526012602052604081208054889290611033908490612b29565b9091555061104390503387611da2565b337fcabfe493e5b089b11ccbb58bf0484889b2b67244263dc852467f974947c73629876110736001546000540390565b6040805192835260208301919091520160405180910390a25050505050505050565b60105482906301000000900460ff16156110c15760405162461bcd60e51b8152600401610e2a90612a72565b601054610100900460ff166111105760405162461bcd60e51b815260206004820152601560248201527429b0b632902430b9902737ba1029ba30b93a32b21760591b6044820152606401610e2a565b600081116111305760405162461bcd60e51b8152600401610e2a90612a9e565b600f548111156111525760405162461bcd60e51b8152600401610e2a90612ae2565b600d54816111636001546000540390565b61116d9190612b29565b111561118b5760405162461bcd60e51b8152600401610e2a90612b3c565b600e548161119c6001546000540390565b6111a69190612b29565b11156111c45760405162461bcd60e51b8152600401610e2a90612b3c565b3233146111fd5760405162461bcd60e51b81526020600482015260076024820152664e6f7420454f4160c81b6044820152606401610e2a565b6001600160a01b0382161580159061121d575060105462010000900460ff165b156112cc57600c5460006001600160a01b03841661123b838761292b565b604051600081818185875af1925050503d8060008114611277576040519150601f19603f3d011682016040523d82523d6000602084013e61127c565b606091505b50509050806112c95760405162461bcd60e51b81526020600482015260196024820152782330b4b632b2103a379039b2b732103a37902932b332b932b960391b6044820152606401610e2a565b50505b82600b546112da919061292b565b34101561131c5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610e2a565b6109bb3384611dbc565b6060600380546108e9906128db565b61133d611ad1565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b8161136981611a0c565b6109bb8383611e44565b836001600160a01b038116331461138d5761138d33611a0c565b61139985858585611eb0565b5050505050565b6113a8611ad1565b600d548183516113b8919061292b565b600154600054036113c99190612b29565b11156113e75760405162461bcd60e51b8152600401610e2a90612b3c565b60005b82518110156109bb57600083828151811061140757611407612b68565b6020026020010151905061141b8184611da2565b508061142681612b7e565b9150506113ea565b6060611439826119bd565b61149d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610e2a565b60006114a7611eeb565b905060008151116114c757604051806020016040528060008152506114f2565b806114d184611efa565b6040516020016114e2929190612b97565b6040516020818303038152906040525b9392505050565b806000811161151a5760405162461bcd60e51b8152600401610e2a90612a9e565b600d548161152b6001546000540390565b6115359190612b29565b11156115535760405162461bcd60e51b8152600401610e2a90612b3c565b61155b611ad1565b6109bb8383611da2565b60105482906301000000900460ff16156115915760405162461bcd60e51b8152600401610e2a90612a72565b601054610100900460ff166115e05760405162461bcd60e51b815260206004820152601560248201527429b0b632902430b9902737ba1029ba30b93a32b21760591b6044820152606401610e2a565b600081116116005760405162461bcd60e51b8152600401610e2a90612a9e565b600f548111156116225760405162461bcd60e51b8152600401610e2a90612ae2565b600d54816116336001546000540390565b61163d9190612b29565b111561165b5760405162461bcd60e51b8152600401610e2a90612b3c565b600e548161166c6001546000540390565b6116769190612b29565b11156116945760405162461bcd60e51b8152600401610e2a90612b3c565b6009546001600160a01b031633146116fa5760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610e2a565b82600b54611708919061292b565b34101561174a5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610e2a565b6001600160a01b0382161580159061176a575060105462010000900460ff165b1561181957600c5460006001600160a01b038416611788838761292b565b604051600081818185875af1925050503d80600081146117c4576040519150601f19603f3d011682016040523d82523d6000602084013e6117c9565b606091505b50509050806118165760405162461bcd60e51b81526020600482015260196024820152782330b4b632b2103a379039b2b732103a37902932b332b932b960391b6044820152606401610e2a565b50505b610a6d8484611dbc565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166108d4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611884611ad1565b6001600160a01b0381166118e95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e2a565b6118f281611d41565b50565b80600081116119165760405162461bcd60e51b8152600401610e2a90612a9e565b600d54816119276001546000540390565b6119319190612b29565b111561194f5760405162461bcd60e51b8152600401610e2a90612b3c565b3360009081526014602052604090205460ff1661155b5760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f7520646f6e742068617665207065726d697373696f6e20746044820152651bc81b5a5b9d60d21b6064820152608401610e2a565b600080548210156119fd5760005b50600082815260046020526040812054908190036119f3576119ec83612bc6565b92506119cb565b600160e01b161590505b919050565b8060005260046000fd5b6daaeb6d7670e522a718067333cd4e3b156118f257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9d9190612bdd565b6118f257604051633b79c77360e21b81526001600160a01b0382166004820152602401610e2a565b610d9082826001611f8d565b6008546001600160a01b03163314610df75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e2a565b6000611b3682611cab565b6001600160a01b039485169490915081168414611b5c57611b5c62a1148160e81b611a02565b60008281526006602052604090208054338082146001600160a01b03881690911417611ba057611b8c863361184e565b611ba057611ba0632ce44b5f60e11b611a02565b8015611bab57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611c3d57600184016000818152600460205260408120549003611c3b576000548114611c3b5760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a480600003611c8757611c87633a954ecd60e21b611a02565b50505050505050565b6109bb83838360405180602001604052806000815250611373565b60008181526004602052604081205490819003611d1e576000548210611cdb57611cdb636f96cda160e11b611a02565b5b50600019016000818152600460205260409020548015611cdc57600160e01b8116600003611d0957919050565b611d19636f96cda160e11b611a02565b611cdc565b600160e01b8116600003611d3157919050565b6119fd636f96cda160e11b611a02565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006114f28260115485612030565b610d90828260405180602001604052806000815250612046565b601054640100000000900460ff1615611e3a5760148110611deb57610d9033611de6836004612b29565b611da2565b600f8110611e0257610d9033611de6836003612b29565b600a8110611e1957610d9033611de6836002612b29565b60058110611e3057610d9033611de6836001612b29565b610d903382611da2565b610d908282611da2565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611ebb848484610a48565b6001600160a01b0383163b15610a6d57611ed7848484846120a8565b610a6d57610a6d6368d2bf6b60e11b611a02565b6060600a80546108e9906128db565b60606000611f078361218b565b600101905060008167ffffffffffffffff811115611f2757611f27612587565b6040519080825280601f01601f191660200182016040528015611f51576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611f5b57509392505050565b6000611f9883610d94565b9050818015611fb05750336001600160a01b03821614155b15611fd357611fbf813361184e565b611fd357611fd36367d9dca160e11b611a02565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008261203d8584612263565b14949350505050565b61205083836122b0565b6001600160a01b0383163b156109bb576000548281035b61207a60008683806001019450866120a8565b61208e5761208e6368d2bf6b60e11b611a02565b818110612067578160005414611399576113996000611a02565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906120dd903390899088908890600401612bfa565b6020604051808303816000875af1925050508015612118575060408051601f3d908101601f1916820190925261211591810190612c37565b60015b61216d573d808015612146576040519150601f19603f3d011682016040523d82523d6000602084013e61214b565b606091505b508051600003612165576121656368d2bf6b60e11b611a02565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106121ca5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106121f6576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061221457662386f26fc10000830492506010015b6305f5e100831061222c576305f5e100830492506008015b612710831061224057612710830492506004015b60648310612252576064830492506002015b600a83106108d45760010192915050565b600081815b84518110156122a8576122948286838151811061228757612287612b68565b602002602001015161236f565b9150806122a081612b7e565b915050612268565b509392505050565b60008054908290036122cc576122cc63b562e8dd60e01b611a02565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361232a5761232a622e076360e81b611a02565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361232f575060005550505050565b600081831061238b5760008281526020849052604090206114f2565b60008381526020839052604090206114f2565b6001600160e01b0319811681146118f257600080fd5b6000602082840312156123c657600080fd5b81356114f28161239e565b60005b838110156123ec5781810151838201526020016123d4565b50506000910152565b6000815180845261240d8160208601602086016123d1565b601f01601f19169290920160200192915050565b6020815260006114f260208301846123f5565b60006020828403121561244657600080fd5b5035919050565b6001600160a01b03811681146118f257600080fd5b6000806040838503121561247557600080fd5b82356124808161244d565b946020939093013593505050565b80151581146118f257600080fd5b600080600080600060a086880312156124b457600080fd5b85356124bf8161248e565b945060208601356124cf8161248e565b935060408601356124df8161248e565b925060608601356124ef8161248e565b915060808601356124ff8161248e565b809150509295509295909350565b60008060006060848603121561252257600080fd5b833561252d8161244d565b9250602084013561253d8161244d565b929592945050506040919091013590565b6000806040838503121561256157600080fd5b823561256c8161244d565b9150602083013561257c8161248e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156125c6576125c6612587565b604052919050565b600067ffffffffffffffff8311156125e8576125e8612587565b6125fb601f8401601f191660200161259d565b905082815283838301111561260f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561263857600080fd5b813567ffffffffffffffff81111561264f57600080fd5b8201601f8101841361266057600080fd5b612183848235602084016125ce565b60006020828403121561268157600080fd5b81356114f28161244d565b600080600080606085870312156126a257600080fd5b843567ffffffffffffffff808211156126ba57600080fd5b818701915087601f8301126126ce57600080fd5b8135818111156126dd57600080fd5b8860208260051b85010111156126f257600080fd5b6020928301999098509187013596604001359550909350505050565b6000806040838503121561272157600080fd5b82359150602083013561257c8161244d565b6000806000806080858703121561274957600080fd5b84356127548161244d565b935060208501356127648161244d565b925060408501359150606085013567ffffffffffffffff81111561278757600080fd5b8501601f8101871361279857600080fd5b6127a7878235602084016125ce565b91505092959194509250565b600080604083850312156127c657600080fd5b823567ffffffffffffffff808211156127de57600080fd5b818501915085601f8301126127f257600080fd5b813560208282111561280657612806612587565b8160051b925061281781840161259d565b828152928401810192818101908985111561283157600080fd5b948201945b8486101561285b578535935061284b8461244d565b8382529482019490820190612836565b9997909101359750505050505050565b60008060006060848603121561288057600080fd5b833561288b8161244d565b92506020840135915060408401356128a28161244d565b809150509250925092565b600080604083850312156128c057600080fd5b82356128cb8161244d565b9150602083013561257c8161244d565b600181811c908216806128ef57607f821691505b60208210810361290f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108d4576108d4612915565b60008261295f57634e487b7160e01b600052601260045260246000fd5b500490565b601f8211156109bb57600081815260208120601f850160051c8101602086101561298b5750805b601f850160051c820191505b818110156129aa57828155600101612997565b505050505050565b815167ffffffffffffffff8111156129cc576129cc612587565b6129e0816129da84546128db565b84612964565b602080601f831160018114612a1557600084156129fd5750858301515b600019600386901b1c1916600185901b1785556129aa565b600085815260208120601f198616915b82811015612a4457888601518255948401946001909101908401612a25565b5085821015612a625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526012908201527110dbdb9d1c9858dd081a5cc814185d5cd95960721b604082015260600190565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526027908201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206040820152666174206f6e636560c81b606082015260800190565b808201808211156108d4576108d4612915565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612b9057612b90612915565b5060010190565b60008351612ba98184602088016123d1565b835190830190612bbd8183602088016123d1565b01949350505050565b600081612bd557612bd5612915565b506000190190565b600060208284031215612bef57600080fd5b81516114f28161248e565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c2d908301846123f5565b9695505050505050565b600060208284031215612c4957600080fd5b81516114f28161239e56fea264697066735822122090eb82d37b66f30b2ee9479757bc14e8bf913f4d29ae3bd5691e0f47ca04b0e664736f6c63430008130033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseUrl (string):

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

101554:10778:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66190:639;;;;;;;;;;-1:-1:-1;66190:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;66190:639:0;;;;;;;;67092:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;74126:227::-;;;;;;;;;;-1:-1:-1;74126:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;74126:227:0;1533:203:1;110606:206:0;;;;;;:::i;:::-;;:::i;:::-;;101948:33;;;;;;;;;;;;;;;;;;;2343:25:1;;;2331:2;2316:18;101948:33:0;2197:177:1;102497:36:0;;;;;;;;;;-1:-1:-1;102497:36:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;62834:323;;;;;;;;;;-1:-1:-1;63108:12:0;;62895:7;63092:13;:28;62834:323;;109438:130;;;;;;;;;;-1:-1:-1;109438:130:0;;;;;:::i;:::-;;:::i;109691:308::-;;;;;;;;;;-1:-1:-1;109691:308:0;;;;;:::i;:::-;;:::i;109340:90::-;;;;;;;;;;-1:-1:-1;109340:90:0;;;;;:::i;:::-;;:::i;110820:205::-;;;;;;:::i;:::-;;:::i;102015:38::-;;;;;;;;;;;;;;;;105056:129;;;;;;;;;;-1:-1:-1;105056:129:0;;;;;:::i;:::-;;:::i;102238:29::-;;;;;;;;;;-1:-1:-1;102238:29:0;;;;;;;;;;;111509:814;;;;;;;;;;;;;:::i;101901:24::-;;;;;;;;;;;;;:::i;7735:143::-;;;;;;;;;;;;151:42;7735:143;;111033:213;;;;;;:::i;:::-;;:::i;110151:82::-;;;;;;;;;;-1:-1:-1;110151:82:0;;;;;:::i;:::-;;:::i;110241:99::-;;;;;;;;;;-1:-1:-1;110241:99:0;;;;;:::i;:::-;;:::i;102206:25::-;;;;;;;;;;-1:-1:-1;102206:25:0;;;;;;;;102311:33;;;;;;;;;;-1:-1:-1;102311:33:0;;;;;;;;;;;109576:107;;;;;;;;;;-1:-1:-1;109576:107:0;;;;;:::i;:::-;;:::i;101863:31::-;;;;;;;;;;-1:-1:-1;101863:31:0;;;;-1:-1:-1;;;;;101863:31:0;;;68494:152;;;;;;;;;;-1:-1:-1;68494:152:0;;;;;:::i;:::-;;:::i;102540:48::-;;;;;;;;;;-1:-1:-1;102540:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;64018:242;;;;;;;;;;-1:-1:-1;64018:242:0;;;;;:::i;:::-;;:::i;46880:103::-;;;;;;;;;;;;;:::i;107588:347::-;;;;;;;;;;-1:-1:-1;107588:347:0;;;;;:::i;:::-;;:::i;46239:87::-;;;;;;;;;;-1:-1:-1;46312:6:0;;-1:-1:-1;;;;;46312:6:0;46239:87;;106924:634;;;;;;:::i;:::-;;:::i;67268:104::-;;;;;;;;;;;;;:::i;110007:128::-;;;;;;;;;;-1:-1:-1;110007:128:0;;;;;:::i;:::-;;:::i;110390:208::-;;;;;;;;;;-1:-1:-1;110390:208:0;;;;;:::i;:::-;;:::i;111254:247::-;;;;;;:::i;:::-;;:::i;102144:47::-;;;;;;;;;;;;;;;;102351:24;;;;;;;;;;-1:-1:-1;102351:24:0;;;;;;;;;;;105745:424;;;;;;;;;;-1:-1:-1;105745:424:0;;;;;:::i;:::-;;:::i;102449:41::-;;;;;;;;;;-1:-1:-1;102449:41:0;;;;;:::i;:::-;;;;;;;;;;;;;;108845:487;;;;;;;;;;-1:-1:-1;108845:487:0;;;;;:::i;:::-;;:::i;105569:168::-;;;;;;;;;;-1:-1:-1;105569:168:0;;;;;:::i;:::-;;:::i;102101:36::-;;;;;;;;;;;;;;;;107943:775;;;;;;:::i;:::-;;:::i;102062:32::-;;;;;;;;;;;;;;;;106803:113;;;;;;;;;;-1:-1:-1;106803:113:0;;;;;:::i;:::-;;:::i;102274:30::-;;;;;;;;;;-1:-1:-1;102274:30:0;;;;;;;;;;;75084:164;;;;;;;;;;-1:-1:-1;75084:164:0;;;;;:::i;:::-;;:::i;47138:201::-;;;;;;;;;;-1:-1:-1;47138:201:0;;;;;:::i;:::-;;:::i;105261:298::-;;;;;;;;;;-1:-1:-1;105261:298:0;;;;;:::i;:::-;;:::i;66190:639::-;66275:4;-1:-1:-1;;;;;;;;;66599:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;66676:25:0;;;66599:102;:179;;;-1:-1:-1;;;;;;;;;;66753:25:0;;;66599:179;66579:199;66190:639;-1:-1:-1;;66190:639:0:o;67092:100::-;67146:13;67179:5;67172:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67092:100;:::o;74126:227::-;74202:7;74227:16;74235:7;74227;:16::i;:::-;74222:73;;74245:50;-1:-1:-1;;;74245:7:0;:50::i;:::-;-1:-1:-1;74315:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;74315:30:0;;74126:227::o;110606:206::-;110746:8;9517:30;9538:8;9517:20;:30::i;:::-;110772:32:::1;110786:8;110796:7;110772:13;:32::i;:::-;110606:206:::0;;;:::o;109438:130::-;46125:13;:11;:13::i;:::-;109523:27:::1;:37:::0;109438:130::o;109691:308::-;46125:13;:11;:13::i;:::-;109859:10:::1;:18:::0;;-1:-1:-1;;109888:14:0;109859:18:::1;::::0;::::1;;::::0;;;::::1;-1:-1:-1::0;;109888:14:0;;;;;;::::1;;::::0;;;::::1;-1:-1:-1::0;;109944:22:0;109913:20;;::::1;;::::0;;;::::1;-1:-1:-1::0;;109944:22:0;;;;;;;::::1;;::::0;;;::::1;;-1:-1:-1::0;;109977:14:0::1;::::0;;::::1;;::::0;;;::::1;;::::0;;109691:308::o;109340:90::-;46125:13;:11;:13::i;:::-;109405:9:::1;:17:::0;109340:90::o;110820:205::-;110963:4;-1:-1:-1;;;;;9243:18:0;;9251:10;9243:18;9239:83;;9278:32;9299:10;9278:20;:32::i;:::-;110980:37:::1;110999:4;111005:2;111009:7;110980:18;:37::i;:::-;110820:205:::0;;;;:::o;105056:129::-;46125:13;:11;:13::i;:::-;-1:-1:-1;;;;;105143:27:0;;;::::1;;::::0;;;:16:::1;:27;::::0;;;;:34;;-1:-1:-1;;105143:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;105056:129::o;111509:814::-;46125:13;:11;:13::i;:::-;111575:21:::1;111557:15;111644:3;111628:12;111575:21:::0;111638:2:::1;111628:12;:::i;:::-;111627:20;;;;:::i;:::-;111607:40:::0;-1:-1:-1;111658:9:0::1;111687:3;111671:12;:7:::0;111681:2:::1;111671:12;:::i;:::-;111670:20;;;;:::i;:::-;111658:32:::0;-1:-1:-1;111701:9:0::1;111730:3;111714:12;:7:::0;111724:2:::1;111714:12;:::i;:::-;111713:20;;;;:::i;:::-;111761:92;::::0;111701:32;;-1:-1:-1;111747:8:0::1;::::0;111769:42:::1;::::0;111839:9;;111747:8;111761:92;111747:8;111761:92;111839:9;111769:42;111761:92:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111746:107;;;111872:3;111864:12;;;::::0;::::1;;111912:94;::::0;111899:7:::1;::::0;111920:42:::1;::::0;111990:1;;111899:7;111912:94;111899:7;111912:94;111990:1;111920:42;111912:94:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111898:108;;;112025:2;112017:11;;;::::0;::::1;;112055:94;::::0;112042:7:::1;::::0;112063:42:::1;::::0;112133:1;;112042:7;112055:94;112042:7;112055:94;112133:1;112063:42;112055:94:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112041:108;;;112168:2;112160:11;;;::::0;::::1;;112199:94;::::0;112186:7:::1;::::0;112207:42:::1;::::0;112277:1;;112186:7;112199:94;112186:7;112199:94;112277:1;112207:42;112199:94:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112185:108;;;112312:2;112304:11;;;::::0;::::1;;111546:777;;;;;;;;111509:814::o:0;101901:24::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;111033:213::-;111180:4;-1:-1:-1;;;;;9243:18:0;;9251:10;9243:18;9239:83;;9278:32;9299:10;9278:20;:32::i;:::-;111197:41:::1;111220:4;111226:2;111230:7;111197:22;:41::i;110151:82::-:0;46125:13;:11;:13::i;:::-;110213:4:::1;:12:::0;110151:82::o;110241:99::-;46125:13;:11;:13::i;:::-;110311:14:::1;:21:::0;110241:99::o;109576:107::-;46125:13;:11;:13::i;:::-;109651:10:::1;:24;109664:11:::0;109651:10;:24:::1;:::i;:::-;;109576:107:::0;:::o;68494:152::-;68566:7;68609:27;68628:7;68609:18;:27::i;64018:242::-;64090:7;-1:-1:-1;;;;;64114:19:0;;64110:69;;64135:44;-1:-1:-1;;;64135:7:0;:44::i;:::-;-1:-1:-1;;;;;;64197:25:0;;;;;:18;:25;;;;;;58177:13;64197:55;;64018:242::o;46880:103::-;46125:13;:11;:13::i;:::-;46945:30:::1;46972:1;46945:18;:30::i;:::-;46880:103::o:0;107588:347::-;107735:5;;107742:11;107755:15;103566:13;;;;;;;;;;;103565:14;103557:45;;;;-1:-1:-1;;;103557:45:0;;;;;;;:::i;:::-;;;;;;;;;103621:5;;;;103613:35;;;;-1:-1:-1;;;103613:35:0;;13949:2:1;103613:35:0;;;13931:21:1;13988:2;13968:18;;;13961:30;-1:-1:-1;;;14007:18:1;;;14000:47;14064:18;;103613:35:0;13747:341:1;103613:35:0;103681:1;103667:11;:15;103659:64;;;;-1:-1:-1;;;103659:64:0;;;;;;;:::i;:::-;103771:27;;103756:11;:42;;103734:131;;;;-1:-1:-1;;;103734:131:0;;;;;;;:::i;:::-;103917:9;;103902:11;103886:13;63108:12;;62895:7;63092:13;:28;;62834:323;103886:13;:27;;;;:::i;:::-;:40;;103878:71;;;;-1:-1:-1;;;103878:71:0;;;;;;;:::i;:::-;104910:42;;;104013:10;21364:2:1;21360:15;-1:-1:-1;;21356:53:1;104910:42:0;;;;21344:66:1;;;;21426:12;;;;21419:28;;;104910:42:0;;;;;;;;;;21463:12:1;;;;104910:42:0;;;104900:53;;;;;103999:50;;104043:5;;103999:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;103999:7:0;;-1:-1:-1;;;103999:50:0:i;:::-;103973:131;;;;-1:-1:-1;;;103973:131:0;;15585:2:1;103973:131:0;;;15567:21:1;15624:2;15604:18;;;15597:30;-1:-1:-1;;;15643:18:1;;;15636:49;15702:18;;103973:131:0;15383:343:1;103973:131:0;104167:10;104160:18;;;;:6;:18;;;;;;104183:15;;104146:32;;:11;:32;:::i;:::-;104145:53;;104119:119;;;;-1:-1:-1;;;104119:119:0;;15933:2:1;104119:119:0;;;15915:21:1;15972:2;15952:18;;;15945:30;-1:-1:-1;;;15991:18:1;;;15984:51;16052:18;;104119:119:0;15731:345:1;104119:119:0;107790:10:::1;107783:18;::::0;;;:6:::1;:18;::::0;;;;:33;;107805:11;;107783:18;:33:::1;::::0;107805:11;;107783:33:::1;:::i;:::-;::::0;;;-1:-1:-1;107827:34:0::1;::::0;-1:-1:-1;107837:10:0::1;107849:11:::0;107827:9:::1;:34::i;:::-;107888:10;107877:50;107900:11:::0;107913:13:::1;63108:12:::0;;62895:7;63092:13;:28;;62834:323;107913:13:::1;107877:50;::::0;;16255:25:1;;;16311:2;16296:18;;16289:34;;;;16228:18;107877:50:0::1;;;;;;;107588:347:::0;;;;;;;;:::o;106924:634::-;102903:13;;107041:11;;102903:13;;;;;102902:14;102894:45;;;;-1:-1:-1;;;102894:45:0;;;;;;;:::i;:::-;102958:10;;;;;;;102950:44;;;;-1:-1:-1;;;102950:44:0;;16536:2:1;102950:44:0;;;16518:21:1;16575:2;16555:18;;;16548:30;-1:-1:-1;;;16594:18:1;;;16587:51;16655:18;;102950:44:0;16334:345:1;102950:44:0;103027:1;103013:11;:15;103005:64;;;;-1:-1:-1;;;103005:64:0;;;;;;;:::i;:::-;103117:27;;103102:11;:42;;103080:131;;;;-1:-1:-1;;;103080:131:0;;;;;;;:::i;:::-;103263:9;;103248:11;103232:13;63108:12;;62895:7;63092:13;:28;;62834:323;103232:13;:27;;;;:::i;:::-;:40;;103224:71;;;;-1:-1:-1;;;103224:71:0;;;;;;;:::i;:::-;103345:14;;103330:11;103314:13;63108:12;;62895:7;63092:13;:28;;62834:323;103314:13;:27;;;;:::i;:::-;:45;;103306:76;;;;-1:-1:-1;;;103306:76:0;;;;;;;:::i;:::-;107078:9:::1;107091:10;107078:23;107070:43;;;::::0;-1:-1:-1;;;107070:43:0;;16886:2:1;107070:43:0::1;::::0;::::1;16868:21:1::0;16925:1;16905:18;;;16898:29;-1:-1:-1;;;16943:18:1;;;16936:37;16990:18;;107070:43:0::1;16684:330:1::0;107070:43:0::1;-1:-1:-1::0;;;;;107128:50:0;::::1;::::0;;::::1;::::0;:64:::1;;-1:-1:-1::0;107182:10:0::1;::::0;;;::::1;;;107128:64;107124:275;;;107235:13;::::0;107209:23:::1;-1:-1:-1::0;;;;;107279:9:0;::::1;107296:29;107235:13:::0;107296:11;:29:::1;:::i;:::-;107279:51;::::0;::::1;::::0;;;;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107263:67;;;107353:4;107345:42;;;::::0;-1:-1:-1;;;107345:42:0;;17221:2:1;107345:42:0::1;::::0;::::1;17203:21:1::0;17260:2;17240:18;;;17233:30;-1:-1:-1;;;17279:18:1;;;17272:55;17344:18;;107345:42:0::1;17019:349:1::0;107345:42:0::1;107194:205;;107124:275;107463:11;107456:4;;:18;;;;:::i;:::-;107443:9;:31;;107435:60;;;::::0;-1:-1:-1;;;107435:60:0;;17575:2:1;107435:60:0::1;::::0;::::1;17557:21:1::0;17614:2;17594:18;;;17587:30;-1:-1:-1;;;17633:18:1;;;17626:46;17689:18;;107435:60:0::1;17373:340:1::0;107435:60:0::1;107507:43;107526:10;107538:11;107507:18;:43::i;67268:104::-:0;67324:13;67357:7;67350:14;;;;;:::i;110007:128::-;46125:13;:11;:13::i;:::-;110091:16:::1;:36:::0;;-1:-1:-1;;;;;;110091:36:0::1;-1:-1:-1::0;;;;;110091:36:0;;;::::1;::::0;;;::::1;::::0;;110007:128::o;110390:208::-;110521:8;9517:30;9538:8;9517:20;:30::i;:::-;110547:43:::1;110571:8;110581;110547:23;:43::i;111254:247::-:0;111429:4;-1:-1:-1;;;;;9243:18:0;;9251:10;9243:18;9239:83;;9278:32;9299:10;9278:20;:32::i;:::-;111446:47:::1;111469:4;111475:2;111479:7;111488:4;111446:22;:47::i;:::-;111254:247:::0;;;;;:::o;105745:424::-;46125:13;:11;:13::i;:::-;105944:9:::1;;105932:7;105905:17;:24;:34;;;;:::i;:::-;63108:12:::0;;62895:7;63092:13;:28;105888:52:::1;;;;:::i;:::-;:65;;105866:133;;;;-1:-1:-1::0;;;105866:133:0::1;;;;;;;:::i;:::-;106015:9;106010:152;106034:17;:24;106030:1;:28;106010:152;;;106080:10;106093:17;106111:1;106093:20;;;;;;;;:::i;:::-;;;;;;;106080:33;;106128:22;106138:2;106142:7;106128:9;:22::i;:::-;-1:-1:-1::0;106060:3:0;::::1;::::0;::::1;:::i;:::-;;;;106010:152;;108845:487:::0;108963:13;109016:16;109024:7;109016;:16::i;:::-;108994:113;;;;-1:-1:-1;;;108994:113:0;;18192:2:1;108994:113:0;;;18174:21:1;18231:2;18211:18;;;18204:30;18270:34;18250:18;;;18243:62;-1:-1:-1;;;18321:18:1;;;18314:45;18376:19;;108994:113:0;17990:411:1;108994:113:0;109118:28;109149:10;:8;:10::i;:::-;109118:41;;109221:1;109196:14;109190:28;:32;:134;;;;;;;;;;;;;;;;;109266:14;109282:18;:7;:16;:18::i;:::-;109249:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;109190:134;109170:154;108845:487;-1:-1:-1;;;108845:487:0:o;105569:168::-;105654:11;104358:1;104344:11;:15;104336:64;;;;-1:-1:-1;;;104336:64:0;;;;;;;:::i;:::-;104450:9;;104435:11;104419:13;63108:12;;62895:7;63092:13;:28;;62834:323;104419:13;:27;;;;:::i;:::-;:40;;104411:71;;;;-1:-1:-1;;;104411:71:0;;;;;;;:::i;:::-;46125:13:::1;:11;:13::i;:::-;105702:27:::2;105712:3;105717:11;105702:9;:27::i;107943:775::-:0;102903:13;;108083:11;;102903:13;;;;;102902:14;102894:45;;;;-1:-1:-1;;;102894:45:0;;;;;;;:::i;:::-;102958:10;;;;;;;102950:44;;;;-1:-1:-1;;;102950:44:0;;16536:2:1;102950:44:0;;;16518:21:1;16575:2;16555:18;;;16548:30;-1:-1:-1;;;16594:18:1;;;16587:51;16655:18;;102950:44:0;16334:345:1;102950:44:0;103027:1;103013:11;:15;103005:64;;;;-1:-1:-1;;;103005:64:0;;;;;;;:::i;:::-;103117:27;;103102:11;:42;;103080:131;;;;-1:-1:-1;;;103080:131:0;;;;;;;:::i;:::-;103263:9;;103248:11;103232:13;63108:12;;62895:7;63092:13;:28;;62834:323;103232:13;:27;;;;:::i;:::-;:40;;103224:71;;;;-1:-1:-1;;;103224:71:0;;;;;;;:::i;:::-;103345:14;;103330:11;103314:13;63108:12;;62895:7;63092:13;:28;;62834:323;103314:13;:27;;;;:::i;:::-;:45;;103306:76;;;;-1:-1:-1;;;103306:76:0;;;;;;;:::i;:::-;108216:16:::1;::::0;-1:-1:-1;;;;;108216:16:0::1;108202:10;:30;108180:116;;;::::0;-1:-1:-1;;;108180:116:0;;19109:2:1;108180:116:0::1;::::0;::::1;19091:21:1::0;19148:2;19128:18;;;19121:30;19187:34;19167:18;;;19160:62;-1:-1:-1;;;19238:18:1;;;19231:34;19282:19;;108180:116:0::1;18907:400:1::0;108180:116:0::1;108343:11;108336:4;;:18;;;;:::i;:::-;108323:9;:31;;108315:60;;;::::0;-1:-1:-1;;;108315:60:0;;17575:2:1;108315:60:0::1;::::0;::::1;17557:21:1::0;17614:2;17594:18;;;17587:30;-1:-1:-1;;;17633:18:1;;;17626:46;17689:18;;108315:60:0::1;17373:340:1::0;108315:60:0::1;-1:-1:-1::0;;;;;108390:50:0;::::1;::::0;;::::1;::::0;:64:::1;;-1:-1:-1::0;108444:10:0::1;::::0;;;::::1;;;108390:64;108386:276;;;108498:13;::::0;108471:23:::1;-1:-1:-1::0;;;;;108542:9:0;::::1;108559:29;108498:13:::0;108559:11;:29:::1;:::i;:::-;108542:51;::::0;::::1;::::0;;;;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108526:67;;;108616:4;108608:42;;;::::0;-1:-1:-1;;;108608:42:0;;17221:2:1;108608:42:0::1;::::0;::::1;17203:21:1::0;17260:2;17240:18;;;17233:30;-1:-1:-1;;;17279:18:1;;;17272:55;17344:18;;108608:42:0::1;17019:349:1::0;108608:42:0::1;108456:206;;108386:276;108674:36;108693:3;108698:11;108674:18;:36::i;106803:113::-:0;-1:-1:-1;;;;;64431:25:0;;106861:7;64431:25;;;:18;:25;;58315:2;64431:25;;;;58177:13;64431:50;;64430:82;106888:20;64342:178;75084:164;-1:-1:-1;;;;;75205:25:0;;;75181:4;75205:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;75084:164::o;47138:201::-;46125:13;:11;:13::i;:::-;-1:-1:-1;;;;;47227:22:0;::::1;47219:73;;;::::0;-1:-1:-1;;;47219:73:0;;19514:2:1;47219:73:0::1;::::0;::::1;19496:21:1::0;19553:2;19533:18;;;19526:30;19592:34;19572:18;;;19565:62;-1:-1:-1;;;19643:18:1;;;19636:36;19689:19;;47219:73:0::1;19312:402:1::0;47219:73:0::1;47303:28;47322:8;47303:18;:28::i;:::-;47138:201:::0;:::o;105261:298::-;105361:11;104358:1;104344:11;:15;104336:64;;;;-1:-1:-1;;;104336:64:0;;;;;;;:::i;:::-;104450:9;;104435:11;104419:13;63108:12;;62895:7;63092:13;:28;;62834:323;104419:13;:27;;;;:::i;:::-;:40;;104411:71;;;;-1:-1:-1;;;104411:71:0;;;;;;;:::i;:::-;105429:10:::1;105412:28;::::0;;;:16:::1;:28;::::0;;;;;::::1;;105390:116;;;::::0;-1:-1:-1;;;105390:116:0;;19921:2:1;105390:116:0::1;::::0;::::1;19903:21:1::0;19960:2;19940:18;;;19933:30;19999:34;19979:18;;;19972:62;-1:-1:-1;;;20050:18:1;;;20043:36;20096:19;;105390:116:0::1;19719:402:1::0;75506:368:0;75571:11;75656:13;;75646:7;:23;75642:214;;;75690:14;75723:60;-1:-1:-1;75740:26:0;;;;:17;:26;;;;;;;75730:42;;;75723:60;;75774:9;;;:::i;:::-;;;75723:60;;;-1:-1:-1;;;75811:24:0;:29;;-1:-1:-1;75642:214:0;75506:368;;;:::o;101284:165::-;101385:13;101379:4;101372:27;101426:4;101420;101413:18;9660:647;151:42;9851:45;:49;9847:453;;10150:67;;-1:-1:-1;;;10150:67:0;;10201:4;10150:67;;;20479:34:1;-1:-1:-1;;;;;20549:15:1;;20529:18;;;20522:43;151:42:0;;10150;;20414:18:1;;10150:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10145:144;;10245:28;;-1:-1:-1;;;10245:28:0;;-1:-1:-1;;;;;1697:32:1;;10245:28:0;;;1679:51:1;1652:18;;10245:28:0;1533:203:1;73843:124:0;73932:27;73941:2;73945:7;73954:4;73932:8;:27::i;46404:132::-;46312:6;;-1:-1:-1;;;;;46312:6:0;44870:10;46468:23;46460:68;;;;-1:-1:-1;;;46460:68:0;;21028:2:1;46460:68:0;;;21010:21:1;;;21047:18;;;21040:30;21106:34;21086:18;;;21079:62;21158:18;;46460:68:0;20826:356:1;77860:3523:0;78002:27;78032;78051:7;78032:18;:27::i;:::-;-1:-1:-1;;;;;78187:22:0;;;;78002:57;;-1:-1:-1;78247:45:0;;;;78243:95;;78294:44;-1:-1:-1;;;78294:7:0;:44::i;:::-;78352:27;76968:24;;;:15;:24;;;;;77196:26;;44870:10;76593:30;;;-1:-1:-1;;;;;76286:28:0;;76571:20;;;76568:56;78538:189;;78631:43;78648:4;44870:10;75084:164;:::i;78631:43::-;78626:101;;78676:51;-1:-1:-1;;;78676:7:0;:51::i;:::-;78876:15;78873:160;;;79016:1;78995:19;78988:30;78873:160;-1:-1:-1;;;;;79413:24:0;;;;;;;:18;:24;;;;;;79411:26;;-1:-1:-1;;79411:26:0;;;79482:22;;;;;;;;;79480:24;;-1:-1:-1;79480:24:0;;;72945:11;72920:23;72916:41;72903:63;-1:-1:-1;;;72903:63:0;79775:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;80070:47:0;;:52;;80066:627;;80175:1;80165:11;;80143:19;80298:30;;;:17;:30;;;;;;:35;;80294:384;;80436:13;;80421:11;:28;80417:242;;80583:30;;;;:17;:30;;;;;:52;;;80417:242;80124:569;80066:627;-1:-1:-1;;;;;80825:20:0;;81205:7;80825:20;81135:4;81077:25;80806:16;;80942:299;81266:8;81278:1;81266:13;81262:58;;81281:39;-1:-1:-1;;;81281:7:0;:39::i;:::-;77991:3392;;;;77860:3523;;;:::o;81479:193::-;81625:39;81642:4;81648:2;81652:7;81625:39;;;;;;;;;;;;:16;:39::i;69974:2012::-;70124:26;;;;:17;:26;;;;;;;70250:11;;;70246:1292;;70297:13;;70286:7;:24;70282:77;;70312:47;-1:-1:-1;;;70312:7:0;:47::i;:::-;70916:607;-1:-1:-1;;;71012:9:0;70994:28;;;;:17;:28;;;;;;71068:25;;70916:607;71068:25;-1:-1:-1;;;71120:6:0;:24;71148:1;71120:29;71116:48;;69974:2012;;;:::o;71116:48::-;71456:47;-1:-1:-1;;;71456:7:0;:47::i;:::-;70916:607;;70246:1292;-1:-1:-1;;;71865:6:0;:24;71893:1;71865:29;71861:48;;69974:2012;;;:::o;71861:48::-;71931:47;-1:-1:-1;;;71931:7:0;:47::i;47499:191::-;47592:6;;;-1:-1:-1;;;;;47609:17:0;;;-1:-1:-1;;;;;;47609:17:0;;;;;;;47642:40;;47592:6;;;47609:17;47592:6;;47642:40;;47573:16;;47642:40;47562:128;47499:191;:::o;104559:187::-;104667:4;104691:47;104710:5;104717:9;;104728;104691:18;:47::i;91799:112::-;91876:27;91886:2;91890:8;91876:27;;;;;;;;;;;;:9;:27::i;106177:618::-;106259:5;;;;;;;106255:533;;;106296:2;106285:7;:13;106281:440;;106319:34;106329:10;106341:11;:7;106351:1;106341:11;:::i;:::-;106319:9;:34::i;106281:440::-;106390:2;106379:7;:13;106375:346;;106413:34;106423:10;106435:11;:7;106445:1;106435:11;:::i;106375:346::-;106484:2;106473:7;:13;106469:252;;106507:34;106517:10;106529:11;:7;106539:1;106529:11;:::i;106469:252::-;106578:1;106567:7;:12;106563:158;;106600:34;106610:10;106622:11;:7;106632:1;106622:11;:::i;106563:158::-;106675:30;106685:10;106697:7;106675:9;:30::i;106255:533::-;106753:23;106763:3;106768:7;106753:9;:23::i;74693:234::-;44870:10;74788:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;74788:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;74788:60:0;;;;;;;;;;74864:55;;540:41:1;;;74788:49:0;;44870:10;74864:55;;513:18:1;74864:55:0;;;;;;;74693:234;;:::o;82270:416::-;82445:31;82458:4;82464:2;82468:7;82445:12;:31::i;:::-;-1:-1:-1;;;;;82491:14:0;;;:19;82487:192;;82530:56;82561:4;82567:2;82571:7;82580:5;82530:30;:56::i;:::-;82525:154;;82607:56;-1:-1:-1;;;82607:7:0;:56::i;108726:111::-;108786:13;108819:10;108812:17;;;;;:::i;41676:727::-;41732:13;41783:14;41800:28;41822:5;41800:21;:28::i;:::-;41831:1;41800:32;41783:49;;41847:20;41881:6;41870:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41870:18:0;-1:-1:-1;41847:41:0;-1:-1:-1;42012:28:0;;;42028:2;42012:28;42069:288;-1:-1:-1;;42101:5:0;-1:-1:-1;;;42238:2:0;42227:14;;42222:30;42101:5;42209:44;42299:2;42290:11;;;-1:-1:-1;42320:21:0;42069:288;42320:21;-1:-1:-1;42378:6:0;41676:727;-1:-1:-1;;;41676:727:0:o;92717:474::-;92846:13;92862:16;92870:7;92862;:16::i;:::-;92846:32;;92895:13;:45;;;;-1:-1:-1;44870:10:0;-1:-1:-1;;;;;92912:28:0;;;;92895:45;92891:201;;;92960:44;92977:5;44870:10;75084:164;:::i;92960:44::-;92955:137;;93025:51;-1:-1:-1;;;93025:7:0;:51::i;:::-;93104:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;93104:35:0;-1:-1:-1;;;;;93104:35:0;;;;;;;;;93155:28;;93104:24;;93155:28;;;;;;;92835:356;92717:474;;;:::o;12310:156::-;12401:4;12454;12425:25;12438:5;12445:4;12425:12;:25::i;:::-;:33;;12310:156;-1:-1:-1;;;;12310:156:0:o;91007:708::-;91138:19;91144:2;91148:8;91138:5;:19::i;:::-;-1:-1:-1;;;;;91199:14:0;;;:19;91195:502;;91239:11;91253:13;91301:14;;;91334:242;91365:62;91404:1;91408:2;91412:7;;;;;;91421:5;91365:30;:62::i;:::-;91360:176;;91456:56;-1:-1:-1;;;91456:7:0;:56::i;:::-;91571:3;91563:5;:11;91334:242;;91658:3;91641:13;;:20;91637:44;;91663:18;91678:1;91663:7;:18::i;84770:691::-;84954:88;;-1:-1:-1;;;84954:88:0;;84933:4;;-1:-1:-1;;;;;84954:45:0;;;;;:88;;44870:10;;85021:4;;85027:7;;85036:5;;84954:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;84954:88:0;;;;;;;;-1:-1:-1;;84954:88:0;;;;;;;;;;;;:::i;:::-;;;84950:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85237:6;:13;85254:1;85237:18;85233:115;;85276:56;-1:-1:-1;;;85276:7:0;:56::i;:::-;85420:6;85414:13;85405:6;85401:2;85397:15;85390:38;84950:504;-1:-1:-1;;;;;;85113:64:0;-1:-1:-1;;;85113:64:0;;-1:-1:-1;84950:504:0;84770:691;;;;;;:::o;38476:948::-;38529:7;;-1:-1:-1;;;38607:17:0;;38603:106;;-1:-1:-1;;;38645:17:0;;;-1:-1:-1;38691:2:0;38681:12;38603:106;38736:8;38727:5;:17;38723:106;;38774:8;38765:17;;;-1:-1:-1;38811:2:0;38801:12;38723:106;38856:8;38847:5;:17;38843:106;;38894:8;38885:17;;;-1:-1:-1;38931:2:0;38921:12;38843:106;38976:7;38967:5;:16;38963:103;;39013:7;39004:16;;;-1:-1:-1;39049:1:0;39039:11;38963:103;39093:7;39084:5;:16;39080:103;;39130:7;39121:16;;;-1:-1:-1;39166:1:0;39156:11;39080:103;39210:7;39201:5;:16;39197:103;;39247:7;39238:16;;;-1:-1:-1;39283:1:0;39273:11;39197:103;39327:7;39318:5;:16;39314:68;;39365:1;39355:11;39410:6;38476:948;-1:-1:-1;;38476:948:0:o;13109:296::-;13192:7;13235:4;13192:7;13250:118;13274:5;:12;13270:1;:16;13250:118;;;13323:33;13333:12;13347:5;13353:1;13347:8;;;;;;;;:::i;:::-;;;;;;;13323:9;:33::i;:::-;13308:48;-1:-1:-1;13288:3:0;;;;:::i;:::-;;;;13250:118;;;-1:-1:-1;13385:12:0;13109:296;-1:-1:-1;;;13109:296:0:o;85923:2305::-;85996:20;86019:13;;;86047;;;86043:53;;86062:34;-1:-1:-1;;;86062:7:0;:34::i;:::-;86609:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;72771:28:0;;72945:11;72920:23;72916:41;73389:1;73376:15;;73350:24;73346:46;72913:52;72903:63;;86609:173;;;87000:22;;;:18;:22;;;;;:71;;87038:32;87026:45;;87000:71;;;72771:28;87261:13;;;87257:54;;87276:35;-1:-1:-1;;;87276:7:0;:35::i;:::-;87342:23;;;:12;87427:676;87846:7;87802:8;87757:1;87691:25;87628:1;87563;87532:358;88098:3;88085:9;;;;;;:16;87427:676;;-1:-1:-1;88119:13:0;:19;-1:-1:-1;110606:206:0;;;:::o;20313:149::-;20376:7;20407:1;20403;:5;:51;;20538:13;20632:15;;;20668:4;20661:15;;;20715:4;20699:21;;20403:51;;;20538:13;20632:15;;;20668:4;20661:15;;;20715:4;20699:21;;20411:20;20470:268;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:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:131::-;-1:-1:-1;;;;;1816:31:1;;1806:42;;1796:70;;1862:1;1859;1852:12;1877:315;1945:6;1953;2006:2;1994:9;1985:7;1981:23;1977:32;1974:52;;;2022:1;2019;2012:12;1974:52;2061:9;2048:23;2080:31;2105:5;2080:31;:::i;:::-;2130:5;2182:2;2167:18;;;;2154:32;;-1:-1:-1;;;1877:315:1:o;2379:118::-;2465:5;2458:13;2451:21;2444:5;2441:32;2431:60;;2487:1;2484;2477:12;2502:783;2582:6;2590;2598;2606;2614;2667:3;2655:9;2646:7;2642:23;2638:33;2635:53;;;2684:1;2681;2674:12;2635:53;2723:9;2710:23;2742:28;2764:5;2742:28;:::i;:::-;2789:5;-1:-1:-1;2846:2:1;2831:18;;2818:32;2859:30;2818:32;2859:30;:::i;:::-;2908:7;-1:-1:-1;2967:2:1;2952:18;;2939:32;2980:30;2939:32;2980:30;:::i;:::-;3029:7;-1:-1:-1;3088:2:1;3073:18;;3060:32;3101:30;3060:32;3101:30;:::i;:::-;3150:7;-1:-1:-1;3209:3:1;3194:19;;3181:33;3223:30;3181:33;3223:30;:::i;:::-;3272:7;3262:17;;;2502:783;;;;;;;;:::o;3475:456::-;3552:6;3560;3568;3621:2;3609:9;3600:7;3596:23;3592:32;3589:52;;;3637:1;3634;3627:12;3589:52;3676:9;3663:23;3695:31;3720:5;3695:31;:::i;:::-;3745:5;-1:-1:-1;3802:2:1;3787:18;;3774:32;3815:33;3774:32;3815:33;:::i;:::-;3475:456;;3867:7;;-1:-1:-1;;;3921:2:1;3906:18;;;;3893:32;;3475:456::o;3936:382::-;4001:6;4009;4062:2;4050:9;4041:7;4037:23;4033:32;4030:52;;;4078:1;4075;4068:12;4030:52;4117:9;4104:23;4136:31;4161:5;4136:31;:::i;:::-;4186:5;-1:-1:-1;4243:2:1;4228:18;;4215:32;4256:30;4215:32;4256:30;:::i;:::-;4305:7;4295:17;;;3936:382;;;;;:::o;4562:127::-;4623:10;4618:3;4614:20;4611:1;4604:31;4654:4;4651:1;4644:15;4678:4;4675:1;4668:15;4694:275;4765:2;4759:9;4830:2;4811:13;;-1:-1:-1;;4807:27:1;4795:40;;4865:18;4850:34;;4886:22;;;4847:62;4844:88;;;4912:18;;:::i;:::-;4948:2;4941:22;4694:275;;-1:-1:-1;4694:275:1:o;4974:407::-;5039:5;5073:18;5065:6;5062:30;5059:56;;;5095:18;;:::i;:::-;5133:57;5178:2;5157:15;;-1:-1:-1;;5153:29:1;5184:4;5149:40;5133:57;:::i;:::-;5124:66;;5213:6;5206:5;5199:21;5253:3;5244:6;5239:3;5235:16;5232:25;5229:45;;;5270:1;5267;5260:12;5229:45;5319:6;5314:3;5307:4;5300:5;5296:16;5283:43;5373:1;5366:4;5357:6;5350:5;5346:18;5342:29;5335:40;4974:407;;;;;:::o;5386:451::-;5455:6;5508:2;5496:9;5487:7;5483:23;5479:32;5476:52;;;5524:1;5521;5514:12;5476:52;5564:9;5551:23;5597:18;5589:6;5586:30;5583:50;;;5629:1;5626;5619:12;5583:50;5652:22;;5705:4;5697:13;;5693:27;-1:-1:-1;5683:55:1;;5734:1;5731;5724:12;5683:55;5757:74;5823:7;5818:2;5805:16;5800:2;5796;5792:11;5757:74;:::i;5842:247::-;5901:6;5954:2;5942:9;5933:7;5929:23;5925:32;5922:52;;;5970:1;5967;5960:12;5922:52;6009:9;5996:23;6028:31;6053:5;6028:31;:::i;6094:757::-;6198:6;6206;6214;6222;6275:2;6263:9;6254:7;6250:23;6246:32;6243:52;;;6291:1;6288;6281:12;6243:52;6331:9;6318:23;6360:18;6401:2;6393:6;6390:14;6387:34;;;6417:1;6414;6407:12;6387:34;6455:6;6444:9;6440:22;6430:32;;6500:7;6493:4;6489:2;6485:13;6481:27;6471:55;;6522:1;6519;6512:12;6471:55;6562:2;6549:16;6588:2;6580:6;6577:14;6574:34;;;6604:1;6601;6594:12;6574:34;6659:7;6652:4;6642:6;6639:1;6635:14;6631:2;6627:23;6623:34;6620:47;6617:67;;;6680:1;6677;6670:12;6617:67;6711:4;6703:13;;;;6735:6;;-1:-1:-1;6773:20:1;;;6760:34;;6841:2;6826:18;6813:32;;-1:-1:-1;6094:757:1;;-1:-1:-1;;;;6094:757:1:o;6856:323::-;6932:6;6940;6993:2;6981:9;6972:7;6968:23;6964:32;6961:52;;;7009:1;7006;6999:12;6961:52;7045:9;7032:23;7022:33;;7105:2;7094:9;7090:18;7077:32;7118:31;7143:5;7118:31;:::i;7184:795::-;7279:6;7287;7295;7303;7356:3;7344:9;7335:7;7331:23;7327:33;7324:53;;;7373:1;7370;7363:12;7324:53;7412:9;7399:23;7431:31;7456:5;7431:31;:::i;:::-;7481:5;-1:-1:-1;7538:2:1;7523:18;;7510:32;7551:33;7510:32;7551:33;:::i;:::-;7603:7;-1:-1:-1;7657:2:1;7642:18;;7629:32;;-1:-1:-1;7712:2:1;7697:18;;7684:32;7739:18;7728:30;;7725:50;;;7771:1;7768;7761:12;7725:50;7794:22;;7847:4;7839:13;;7835:27;-1:-1:-1;7825:55:1;;7876:1;7873;7866:12;7825:55;7899:74;7965:7;7960:2;7947:16;7942:2;7938;7934:11;7899:74;:::i;:::-;7889:84;;;7184:795;;;;;;;:::o;7984:1091::-;8077:6;8085;8138:2;8126:9;8117:7;8113:23;8109:32;8106:52;;;8154:1;8151;8144:12;8106:52;8194:9;8181:23;8223:18;8264:2;8256:6;8253:14;8250:34;;;8280:1;8277;8270:12;8250:34;8318:6;8307:9;8303:22;8293:32;;8363:7;8356:4;8352:2;8348:13;8344:27;8334:55;;8385:1;8382;8375:12;8334:55;8421:2;8408:16;8443:4;8466:2;8462;8459:10;8456:36;;;8472:18;;:::i;:::-;8518:2;8515:1;8511:10;8501:20;;8541:28;8565:2;8561;8557:11;8541:28;:::i;:::-;8603:15;;;8673:11;;;8669:20;;;8634:12;;;;8701:19;;;8698:39;;;8733:1;8730;8723:12;8698:39;8757:11;;;;8777:217;8793:6;8788:3;8785:15;8777:217;;;8873:3;8860:17;8847:30;;8890:31;8915:5;8890:31;:::i;:::-;8934:18;;;8810:12;;;;8972;;;;8777:217;;;9013:5;9050:18;;;;9037:32;;-1:-1:-1;;;;;;;7984:1091:1:o;9080:464::-;9165:6;9173;9181;9234:2;9222:9;9213:7;9209:23;9205:32;9202:52;;;9250:1;9247;9240:12;9202:52;9289:9;9276:23;9308:31;9333:5;9308:31;:::i;:::-;9358:5;-1:-1:-1;9410:2:1;9395:18;;9382:32;;-1:-1:-1;9466:2:1;9451:18;;9438:32;9479:33;9438:32;9479:33;:::i;:::-;9531:7;9521:17;;;9080:464;;;;;:::o;9549:388::-;9617:6;9625;9678:2;9666:9;9657:7;9653:23;9649:32;9646:52;;;9694:1;9691;9684:12;9646:52;9733:9;9720:23;9752:31;9777:5;9752:31;:::i;:::-;9802:5;-1:-1:-1;9859:2:1;9844:18;;9831:32;9872:33;9831:32;9872:33;:::i;9942:380::-;10021:1;10017:12;;;;10064;;;10085:61;;10139:4;10131:6;10127:17;10117:27;;10085:61;10192:2;10184:6;10181:14;10161:18;10158:38;10155:161;;10238:10;10233:3;10229:20;10226:1;10219:31;10273:4;10270:1;10263:15;10301:4;10298:1;10291:15;10155:161;;9942:380;;;:::o;10327:127::-;10388:10;10383:3;10379:20;10376:1;10369:31;10419:4;10416:1;10409:15;10443:4;10440:1;10433:15;10459:168;10532:9;;;10563;;10580:15;;;10574:22;;10560:37;10550:71;;10601:18;;:::i;10764:217::-;10804:1;10830;10820:132;;10874:10;10869:3;10865:20;10862:1;10855:31;10909:4;10906:1;10899:15;10937:4;10934:1;10927:15;10820:132;-1:-1:-1;10966:9:1;;10764:217::o;11322:545::-;11424:2;11419:3;11416:11;11413:448;;;11460:1;11485:5;11481:2;11474:17;11530:4;11526:2;11516:19;11600:2;11588:10;11584:19;11581:1;11577:27;11571:4;11567:38;11636:4;11624:10;11621:20;11618:47;;;-1:-1:-1;11659:4:1;11618:47;11714:2;11709:3;11705:12;11702:1;11698:20;11692:4;11688:31;11678:41;;11769:82;11787:2;11780:5;11777:13;11769:82;;;11832:17;;;11813:1;11802:13;11769:82;;;11773:3;;;11322:545;;;:::o;12043:1352::-;12169:3;12163:10;12196:18;12188:6;12185:30;12182:56;;;12218:18;;:::i;:::-;12247:97;12337:6;12297:38;12329:4;12323:11;12297:38;:::i;:::-;12291:4;12247:97;:::i;:::-;12399:4;;12463:2;12452:14;;12480:1;12475:663;;;;13182:1;13199:6;13196:89;;;-1:-1:-1;13251:19:1;;;13245:26;13196:89;-1:-1:-1;;12000:1:1;11996:11;;;11992:24;11988:29;11978:40;12024:1;12020:11;;;11975:57;13298:81;;12445:944;;12475:663;11269:1;11262:14;;;11306:4;11293:18;;-1:-1:-1;;12511:20:1;;;12629:236;12643:7;12640:1;12637:14;12629:236;;;12732:19;;;12726:26;12711:42;;12824:27;;;;12792:1;12780:14;;;;12659:19;;12629:236;;;12633:3;12893:6;12884:7;12881:19;12878:201;;;12954:19;;;12948:26;-1:-1:-1;;13037:1:1;13033:14;;;13049:3;13029:24;13025:37;13021:42;13006:58;12991:74;;12878:201;-1:-1:-1;;;;;13125:1:1;13109:14;;;13105:22;13092:36;;-1:-1:-1;12043:1352:1:o;13400:342::-;13602:2;13584:21;;;13641:2;13621:18;;;13614:30;-1:-1:-1;;;13675:2:1;13660:18;;13653:48;13733:2;13718:18;;13400:342::o;14093:400::-;14295:2;14277:21;;;14334:2;14314:18;;;14307:30;14373:34;14368:2;14353:18;;14346:62;-1:-1:-1;;;14439:2:1;14424:18;;14417:34;14483:3;14468:19;;14093:400::o;14498:403::-;14700:2;14682:21;;;14739:2;14719:18;;;14712:30;14778:34;14773:2;14758:18;;14751:62;-1:-1:-1;;;14844:2:1;14829:18;;14822:37;14891:3;14876:19;;14498:403::o;14906:125::-;14971:9;;;14992:10;;;14989:36;;;15005:18;;:::i;15036:342::-;15238:2;15220:21;;;15277:2;15257:18;;;15250:30;-1:-1:-1;;;15311:2:1;15296:18;;15289:48;15369:2;15354:18;;15036:342::o;17718:127::-;17779:10;17774:3;17770:20;17767:1;17760:31;17810:4;17807:1;17800:15;17834:4;17831:1;17824:15;17850:135;17889:3;17910:17;;;17907:43;;17930:18;;:::i;:::-;-1:-1:-1;17977:1:1;17966:13;;17850:135::o;18406:496::-;18585:3;18623:6;18617:13;18639:66;18698:6;18693:3;18686:4;18678:6;18674:17;18639:66;:::i;:::-;18768:13;;18727:16;;;;18790:70;18768:13;18727:16;18837:4;18825:17;;18790:70;:::i;:::-;18876:20;;18406:496;-1:-1:-1;;;;18406:496:1:o;20126:136::-;20165:3;20193:5;20183:39;;20202:18;;:::i;:::-;-1:-1:-1;;;20238:18:1;;20126:136::o;20576:245::-;20643:6;20696:2;20684:9;20675:7;20671:23;20667:32;20664:52;;;20712:1;20709;20702:12;20664:52;20744:9;20738:16;20763:28;20785:5;20763:28;:::i;21486:489::-;-1:-1:-1;;;;;21755:15:1;;;21737:34;;21807:15;;21802:2;21787:18;;21780:43;21854:2;21839:18;;21832:34;;;21902:3;21897:2;21882:18;;21875:31;;;21680:4;;21923:46;;21949:19;;21941:6;21923:46;:::i;:::-;21915:54;21486:489;-1:-1:-1;;;;;;21486:489:1:o;21980:249::-;22049:6;22102:2;22090:9;22081:7;22077:23;22073:32;22070:52;;;22118:1;22115;22108:12;22070:52;22150:9;22144:16;22169:30;22193:5;22169:30;:::i

Swarm Source

ipfs://90eb82d37b66f30b2ee9479757bc14e8bf913f4d29ae3bd5691e0f47ca04b0e6
Loading...
Loading
Loading...
Loading
[ 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.