ETH Price: $3,100.46 (+1.32%)
Gas: 7 Gwei

Token

Different Rooms (SITSTILL)
 

Overview

Max Total Supply

521 SITSTILL

Holders

115

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
home.peacenode.eth
Balance
1 SITSTILL
0xd70fe0380768ff873b6c10c242d5987811129b2f
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:
DifferentRooms

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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 2 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 3 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

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

File 4 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 5 of 18 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

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

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

File 6 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 7 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

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

File 8 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.2) (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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 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) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 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) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            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 9 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// 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 11 of 18 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Optimized and flexible operator filterer to abide to OpenSea's
/// mandatory on-chain royalty enforcement in order for new collections to
/// receive royalties.
/// For more information, see:
/// See: https://github.com/ProjectOpenSea/operator-filter-registry
abstract contract OperatorFilterer {
    /// @dev The default OpenSea operator blocklist subscription.
    address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

    /// @dev The OpenSea operator filter registry.
    address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E;

    /// @dev Registers the current contract to OpenSea's operator filter,
    /// and subscribe to the default OpenSea operator blocklist.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering() internal virtual {
        _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true);
    }

    /// @dev Registers the current contract to OpenSea's operator filter.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe)
        internal
        virtual
    {
        /// @solidity memory-safe-assembly
        assembly {
            let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`.

            // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty.
            subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy))

            for {} iszero(subscribe) {} {
                if iszero(subscriptionOrRegistrantToCopy) {
                    functionSelector := 0x4420e486 // `register(address)`.
                    break
                }
                functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`.
                break
            }
            // Store the function selector.
            mstore(0x00, shl(224, functionSelector))
            // Store the `address(this)`.
            mstore(0x04, address())
            // Store the `subscriptionOrRegistrantToCopy`.
            mstore(0x24, subscriptionOrRegistrantToCopy)
            // Register into the registry.
            if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) {
                // If the function selector has not been overwritten,
                // it is an out-of-gas error.
                if eq(shr(224, mload(0x00)), functionSelector) {
                    // To prevent gas under-estimation.
                    revert(0, 0)
                }
            }
            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, because of Solidity's memory size limits.
            mstore(0x24, 0)
        }
    }

    /// @dev Modifier to guard a function and revert if the caller is a blocked operator.
    modifier onlyAllowedOperator(address from) virtual {
        if (from != msg.sender) {
            if (!_isPriorityOperator(msg.sender)) {
                if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender);
            }
        }
        _;
    }

    /// @dev Modifier to guard a function from approving a blocked operator..
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        if (!_isPriorityOperator(operator)) {
            if (_operatorFilteringEnabled()) _revertIfBlocked(operator);
        }
        _;
    }

    /// @dev Helper function that reverts if the `operator` is blocked by the registry.
    function _revertIfBlocked(address operator) private view {
        /// @solidity memory-safe-assembly
        assembly {
            // Store the function selector of `isOperatorAllowed(address,address)`,
            // shifted left by 6 bytes, which is enough for 8tb of memory.
            // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL).
            mstore(0x00, 0xc6171134001122334455)
            // Store the `address(this)`.
            mstore(0x1a, address())
            // Store the `operator`.
            mstore(0x3a, operator)

            // `isOperatorAllowed` always returns true if it does not revert.
            if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) {
                // Bubble up the revert if the staticcall reverts.
                returndatacopy(0x00, 0x00, returndatasize())
                revert(0x00, returndatasize())
            }

            // We'll skip checking if `from` is inside the blacklist.
            // Even though that can block transferring out of wrapper contracts,
            // we don't want tokens to be stuck.

            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, if less than 8tb of memory is used.
            mstore(0x3a, 0)
        }
    }

    /// @dev For deriving contracts to override, so that operator filtering
    /// can be turned on / off.
    /// Returns true by default.
    function _operatorFilteringEnabled() internal view virtual returns (bool) {
        return true;
    }

    /// @dev For deriving contracts to override, so that preferred marketplaces can
    /// skip operator filtering, helping users save gas.
    /// Returns false for all inputs by default.
    function _isPriorityOperator(address) internal view virtual returns (bool) {
        return false;
    }
}

File 12 of 18 : differentrooms.sol
//
/*
                                                                                                  
                                             **#                   ### #                          
                                            ####################*##**##%                          
                                            #######################*#%%%                          
                                            ######################**#%%%                          
                                            #####################***%%%%                          
                                            ######################*#%%%%                          
                                            ######################*#%%%%                          
                                           ##%%%##################*%%%%                           
                                           %##%%%        %########*%%%%                           
                                            ##%%%                %%%%%@                           
                                            %%%%%                %%%%@@                           
                                            %%%%%                %%%%@@                           
                                            %%%%@                %%%%@@                           
                                            %%%%@                %%%@@@                           
                                            %%%@@                %%%@@@                           
                                           %%%%@@%%             #%%%@@                            
                                     ##*################        %%%%@@                            
                               ************#######**############%%%#@@                            
                         ++++++****************##**************##%%%@@                            
                   =+++++++++++++++++******************************%@@                            
                  %%%+++++++++++++++++++***********************#@@@@@@                            
                    %%%%#+++++++++++++*****************+*+*#@@@@@@@@@@                            
                    %%%%%%%%%*++++++++++++++++++**+++++#@@@@@@@@@@@@@@                            
                    %%@%%%%%@%%%#++++++++++++++++++*%@@@@@@@@@@@@@@@@@                            
                    %%@%%%%%%%@@@@%%*++++++++++*%@@@@@@@@@@@@@  @@@@@                             
                     %%@@@%%%%%%%%%@@@%%%#++%@@@@@@@@@@@@@@@    @@@@@                             
                     %%@@@@ %%%%%%%%%%%@@%%@@@@@@@@@@@@@        @@@@@                             
                     %%@@@@    @%%%%%%%%%%%@@@@@@@@@@@          @@@@@                             
                     %%@@@@        @%%%%%%%@@@@@@@             @@@@@@                             
                      %%@@@@           @%%%@@@@@               @@@@@@                             
                      @@@@@@            %%%@@@@                @@@@@@                             
                      @@@@@@            %%%@@@@                @@@@@@                             
                      @@@@@@            %%%@@@@                @@@@@@@                            
                       @@@@@            %@%@@@@                @@@@@@@                            
                       @@@@@@           @@%@@@@                @@@@@                              
                       @@@@@@           @@@@@@@                                                   
                        @@@@@           @@@@@@@                                                   
                         @@              @@@@@@                                                   
                                         @@@@@@@                                                  
                                         @@@@@@                                                   
                                         @@@@@@                                                   
                                         @@@@@@@                                                  
                                         @@@@@@@                                                  
                                         @@@@@@@                                                  
                                          @@@@                                                    
                                                                                                  

            ██████╗ ██╗███████╗███████╗███████╗██████╗ ███████╗███╗   ██╗████████╗
            ██╔══██╗██║██╔════╝██╔════╝██╔════╝██╔══██╗██╔════╝████╗  ██║╚══██╔══╝
            ██║  ██║██║█████╗  █████╗  █████╗  ██████╔╝█████╗  ██╔██╗ ██║   ██║   
            ██║  ██║██║██╔══╝  ██╔══╝  ██╔══╝  ██╔══██╗██╔══╝  ██║╚██╗██║   ██║   
            ██████╔╝██║██║     ██║     ███████╗██║  ██║███████╗██║ ╚████║   ██║   
            ╚═════╝ ╚═╝╚═╝     ╚═╝     ╚══════╝╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝   ╚═╝   
                                                                                  
            ██████╗  ██████╗  ██████╗ ███╗   ███╗███████╗                         
            ██╔══██╗██╔═══██╗██╔═══██╗████╗ ████║██╔════╝                         
            ██████╔╝██║   ██║██║   ██║██╔████╔██║███████╗                         
            ██╔══██╗██║   ██║██║   ██║██║╚██╔╝██║╚════██║                         
            ██║  ██║╚██████╔╝╚██████╔╝██║ ╚═╝ ██║███████║   
            ╚═╝  ╚═╝ ╚═════╝  ╚═════╝ ╚═╝     ╚═╝╚══════╝   

*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;


import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "closedsea/src/OperatorFilterer.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";


contract DifferentRooms is ERC721AQueryable, ERC721ABurnable, OperatorFilterer, ReentrancyGuard, Ownable, ERC2981 {

    // Variables
    // ---------------------------------------------------------------

    uint256 public collectionSize;
    uint256 public maxPerWallet;

    bool public operatorFilteringEnabled;

    uint256 public numFreeMints = 2;
    uint256 public numAllowlistMints = 10;

    bytes32 public freeMintMerkleRoot;
    bytes32 public allowlistMerkleRoot;

    bool public isFreeMintActive = false;
    bool public isAllowlistMintActive = false;
    bool public isMintActive = false;

    uint256 private allowlistMintPrice = 0.0042 ether;
    uint256 private mintPrice = 0.0069 ether;
    address private devAddress = 0xf0D6dB708C4A42f01811F17f69915D6b62AF9dF2;
    string private _baseTokenURI;

    // Helper functions
    // ---------------------------------------------------------------

    /**
     * @dev This function packs two uint32 values into a single uint64 value.
     * @param a: first uint32
     * @param b: second uint32
     */
    function pack(uint32 a, uint32 b) internal pure returns (uint64) {
        return uint64(a) << 32 | uint64(b);
    }

    /**
     * @dev This function unpacks a uint64 value into two uint32 values.
     * @param a: uint64 value
     */
    function unpack(uint64 a) internal pure returns (uint32, uint32) {
        return (uint32(a >> 32), uint32(a));
    }

    // Modifiers
    // ---------------------------------------------------------------

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

    modifier freeMintActive() {
        require(isFreeMintActive, "Free mint is not open.");
        _;
    }

    modifier allowlistMintActive() {
        require(isAllowlistMintActive, "Allowlist mint is not open.");
        _;
    }

    modifier mintActive() {
        require(isMintActive, "Mint is not open.");
        _;
    }

    modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) {
        require(
            MerkleProof.verify(
                merkleProof,
                root,
                keccak256(abi.encodePacked(msg.sender))
            ),
            "Address does not exist in allowlist."
        );
        _;
    }

    modifier supplyLeft(uint256 quantity) {
        require(
            totalSupply() + quantity <= collectionSize,
            "There are no tokens left."
        );
        _;
    }

    modifier mintNotZero(uint256 quantity){
        require(
            quantity != 0, "You cannont mint 0 tokens."
        );
        _;
    }

    modifier hasNotClaimedFreeMint(uint256 quantity) {
        (uint32 senderFreeMints, uint32 senderAllowlistMints)  = unpack(_getAux(msg.sender));
        require(
            senderFreeMints + quantity <= numFreeMints,
            "This wallet cannot claim more than 2 free mints."
        );
        _;
    }

    modifier hasNotClaimedAllowlistMint(uint256 quantity) {
        (uint32 senderFreeMints, uint32 senderAllowlistMints)  = unpack(_getAux(msg.sender));
        require(
            senderAllowlistMints + quantity <= numAllowlistMints,
            "Cannot claim more than 10 allowlist mint."
        );
        _;
    }

    modifier lessThanMaxPerWallet(uint256 quantity) {
        require(
            _numberMinted(msg.sender) + quantity <=
                maxPerWallet,
            "The maximum number of minted tokens per wallet is 20."
        );
        _;
    }

    modifier isCorrectPayment(uint256 price, uint256 quantity) {
        require(price * quantity == msg.value, "Incorrect amount of ETH sent.");
        _;
    }

    // Constructor
    // ---------------------------------------------------------------

    constructor(
        uint256 collectionSize_,
        uint256 maxPerWallet_
    ) ERC721A("Different Rooms", "SITSTILL") {

        collectionSize = collectionSize_;
        maxPerWallet = maxPerWallet_;

        _registerForOperatorFiltering();
        operatorFilteringEnabled = true;
        _setDefaultRoyalty(devAddress, 700);

    }

    // Public minting functions
    // ---------------------------------------------------------------

    // Free mint from allowlist
    function freeMint(bytes32[] calldata merkleProof, uint256 quantity)
        external
        nonReentrant
        callerIsUser
        freeMintActive
        isValidMerkleProof(merkleProof, freeMintMerkleRoot)
        hasNotClaimedFreeMint(quantity)
        supplyLeft(quantity)
    {
        (uint256 senderFreeMints, uint256 senderAllowlistMints)  = unpack(_getAux(msg.sender));
        senderFreeMints+=quantity;
        _setAux(msg.sender, pack(uint32(senderFreeMints), uint32(senderAllowlistMints)));
        _safeMint(msg.sender, quantity);
    }

    // Allowlist mint
    function allowlistMint(bytes32[] calldata merkleProof, uint256 quantity)
        external
        payable
        nonReentrant
        callerIsUser
        allowlistMintActive
        supplyLeft(quantity)
        hasNotClaimedAllowlistMint(quantity)
        isCorrectPayment(allowlistMintPrice, quantity)
        isValidMerkleProof(merkleProof, allowlistMerkleRoot)
    {
        (uint256 senderFreeMints, uint256 senderAllowlistMints)  = unpack(_getAux(msg.sender));
        senderAllowlistMints+=quantity;
        _setAux(msg.sender, pack(uint32(senderFreeMints), uint32(senderAllowlistMints)));
        _safeMint(msg.sender, quantity);
    }

    // Public mint
    function mint(uint256 quantity)
        external
        payable
        nonReentrant
        callerIsUser
        mintActive
        lessThanMaxPerWallet(quantity)
        isCorrectPayment(mintPrice, quantity)
        supplyLeft(quantity)
        mintNotZero(quantity)
    {
        _safeMint(msg.sender, quantity);
    }

    function gift(address[] calldata addresses)
      external
      nonReentrant
      onlyOwner
      supplyLeft(addresses.length)
    {

      uint256 numToGift = addresses.length;
      for (uint256 i = 0; i < numToGift; i++){
          _safeMint(addresses[i], 1);
      }

    }


    // Public read-only functions
    // ---------------------------------------------------------------

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

    function getAllowlistMintPrice() public view returns (uint256) {
        return allowlistMintPrice;
    }

    function getMintPrice() public view returns (uint256) {
        return mintPrice;
    }

    function getFreeMintCount(address owner) public view returns (uint32) {
        (uint32 senderFreeMints, uint32 senderAllowlistMints)  = unpack(_getAux(owner));
        return senderFreeMints;
    }

    function getAllowlistMintCount(address owner) public view returns (uint32) {
        (uint32 senderFreeMints, uint32 senderAllowlistMints)  = unpack(_getAux(owner));
        return senderAllowlistMints;
    }

    function getFreeMintUserVerifed(bytes32[] calldata merkleProof, address user) public view returns(bool) {
         bool verified = MerkleProof.verify(
                merkleProof,
                freeMintMerkleRoot,
                keccak256(abi.encodePacked(user))
            );
        return verified;
    }

    function getAllowlistUserVerifed(bytes32[] calldata merkleProof, address user) public view returns(bool) {
         bool verified = MerkleProof.verify(
                merkleProof,
                allowlistMerkleRoot,
                keccak256(abi.encodePacked(user))
            );
        return verified;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override (IERC721A, ERC721A)
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    // Internal read-only functions
    // ---------------------------------------------------------------

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


    // Owner only administration functions
    // ---------------------------------------------------------------
    function setCollectionSize(uint256 _collectionSize) external onlyOwner {
    require(
      _collectionSize <= collectionSize,
      "Cannot increase collection size."
    );
      collectionSize = _collectionSize;
    }

    function setMaxPerWallet(uint256 _maxPerWallet) external onlyOwner {
        maxPerWallet = _maxPerWallet;
    }

    function setFreeMintActive(bool _isFreeMintActive) external onlyOwner {
        isFreeMintActive = _isFreeMintActive;
    }

    function setAllowlistMintActive(bool _isAllowlistMintActive) external onlyOwner {
        isAllowlistMintActive = _isAllowlistMintActive;
    }

    function setMintActive(bool _isMintActive) external onlyOwner {
        isMintActive = _isMintActive;
    }


    function setMintPrice(uint256 _mintPrice) external onlyOwner {
        mintPrice = _mintPrice;
    }

    function setAllowlistMintPrice(uint256 _allowlistMintPrice) external onlyOwner {
        allowlistMintPrice = _allowlistMintPrice;
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function setFreeMintMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        freeMintMerkleRoot = merkleRoot;
    }

    function setAllowlistMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        allowlistMerkleRoot = merkleRoot;
    }

    function setDefaultRoyalty(address _devAddress, uint96 feeNumerator) external onlyOwner {
        _setDefaultRoyalty(_devAddress, feeNumerator);
    }

    function setOperatorFilteringEnabled(bool value) public onlyOwner {
        operatorFilteringEnabled = value;
    }

    function withdraw() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function withdrawTokens(IERC20 token) external onlyOwner nonReentrant {
        token.transfer(msg.sender, (token.balanceOf(address(this))));
    }

    function ownerMint(uint256 quantity) external onlyOwner
        supplyLeft(quantity){
        _safeMint(msg.sender, quantity);
    }

    // ClosedSea functions
    // ---------------------------------------------------------------

    function setApprovalForAll(address operator, bool approved)
        public
        override (IERC721A, ERC721A)
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

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

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

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

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

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override (IERC721A, ERC721A, ERC2981)
        returns (bool)
    {
        // Supports the following `interfaceId`s:
        // - IERC165: 0x01ffc9a7
        // - IERC721: 0x80ac58cd
        // - IERC721Metadata: 0x5b5e139f
        // - IERC2981: 0x2a55205a
        return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
    }


    function _operatorFilteringEnabled() internal view override returns (bool) {
        return operatorFilteringEnabled;
    }

    function _isPriorityOperator(address operator) internal pure override returns (bool) {
        // OpenSea Seaport Conduit:
        // https://etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71
        // https://goerli.etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71
        return operator == address(0x1E0049783F008A0085193E00003D00cd54003c71);
    }

}

File 13 of 18 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @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()`.
 *
 * The `_sequentialUpTo()` function can be overriden to enable spot mints
 * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`.
 *
 * 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;

    // The amount of tokens minted above `_sequentialUpTo()`.
    // We call these spot mints (i.e. non-sequential mints).
    uint256 private _spotMinted;

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

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

        if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector);
    }

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

    /**
     * @dev Returns the starting token ID for sequential mints.
     *
     * Override this function to change the starting token ID for sequential mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the maximum token ID (inclusive) for sequential mints.
     *
     * Override this function to return a value less than 2**256 - 1,
     * but greater than `_startTokenId()`, to enable spot (non-sequential) mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _sequentialUpTo() internal view virtual returns (uint256) {
        return type(uint256).max;
    }

    /**
     * @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 result) {
        // Counter underflow is impossible as `_burnCounter` cannot be incremented
        // more than `_currentIndex + _spotMinted - _startTokenId()` times.
        unchecked {
            // With spot minting, the intermediate `result` can be temporarily negative,
            // and the computation must be unchecked.
            result = _currentIndex - _burnCounter - _startTokenId();
            if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;
        }
    }

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

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

    /**
     * @dev Returns the total number of tokens that are spot-minted.
     */
    function _totalSpotMinted() internal view virtual returns (uint256) {
        return _spotMinted;
    }

    // =============================================================
    //                    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);
        }
    }

    /**
     * @dev Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];

            if (tokenId > _sequentialUpTo()) {
                if (_packedOwnershipExists(packed)) return packed;
                _revert(OwnerQueryForNonexistentToken.selector);
            }

            // 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 > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]);

            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

    /**
     * @dev Returns whether `packed` represents a token that exists.
     */
    function _packedOwnershipExists(uint256 packed) private pure returns (bool result) {
        assembly {
            // The following is equivalent to `owner != address(0) && burned == false`.
            // Symbolically tested.
            result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED))
        }
    }

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

            if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            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)
            );

            if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            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);
                // This prevents reentrancy to `_safeMint`.
                // It does not prevent reentrancy to `_safeMintSpot`.
                if (_currentIndex != end) revert();
            }
        }
    }

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

    /**
     * @dev Mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mintSpot(address to, uint256 tokenId) internal virtual {
        if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector);
        uint256 prevOwnershipPacked = _packedOwnerships[tokenId];
        if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector);

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

        // Overflows are incredibly unrealistic.
        // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1.
        // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `true` (as `quantity == 1`).
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked)
            );

            // Updates:
            // - `balance += 1`.
            // - `numberMinted += 1`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += (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);

            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`.
                )
            }

            ++_spotMinted;
        }

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

    /**
     * @dev Safely mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * See {_mintSpot}.
     *
     * Emits a {Transfer} event.
     */
    function _safeMintSpot(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mintSpot(to, tokenId);

        unchecked {
            if (to.code.length != 0) {
                uint256 currentSpotMinted = _spotMinted;
                if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) {
                    _revert(TransferToNonERC721ReceiverImplementer.selector);
                }
                // This prevents reentrancy to `_safeMintSpot`.
                // It does not prevent reentrancy to `_safeMint`.
                if (_spotMinted != currentSpotMinted) revert();
            }
        }
    }

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

    // =============================================================
    //                       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 + _spotMinted` 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 14 of 18 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721ABurnable.
 *
 * @dev ERC721A token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 15 of 18 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (TokenOwnership memory ownership)
    {
        unchecked {
            if (tokenId >= _startTokenId()) {
                if (tokenId > _sequentialUpTo()) return _ownershipAt(tokenId);

                if (tokenId < _nextTokenId()) {
                    // If the `tokenId` is within bounds,
                    // scan backwards for the initialized ownership slot.
                    while (!_ownershipIsInitialized(tokenId)) --tokenId;
                    return _ownershipAt(tokenId);
                }
            }
        }
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        TokenOwnership[] memory ownerships;
        uint256 i = tokenIds.length;
        assembly {
            // Grab the free memory pointer.
            ownerships := mload(0x40)
            // Store the length.
            mstore(ownerships, i)
            // Allocate one word for the length,
            // `tokenIds.length` words for the pointers.
            i := shl(5, i) // Multiply `i` by 32.
            mstore(0x40, add(add(ownerships, 0x20), i))
        }
        while (i != 0) {
            uint256 tokenId;
            assembly {
                i := sub(i, 0x20)
                tokenId := calldataload(add(tokenIds.offset, i))
            }
            TokenOwnership memory ownership = explicitOwnershipOf(tokenId);
            assembly {
                // Store the pointer of `ownership` in the `ownerships` array.
                mstore(add(add(ownerships, 0x20), i), ownership)
            }
        }
        return ownerships;
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        return _tokensOfOwnerIn(owner, start, stop);
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        // If spot mints are enabled, full-range scan is disabled.
        if (_sequentialUpTo() != type(uint256).max) _revert(NotCompatibleWithSpotMints.selector);
        uint256 start = _startTokenId();
        uint256 stop = _nextTokenId();
        uint256[] memory tokenIds;
        if (start != stop) tokenIds = _tokensOfOwnerIn(owner, start, stop);
        return tokenIds;
    }

    /**
     * @dev Helper function for returning an array of token IDs owned by `owner`.
     *
     * Note that this function is optimized for smaller bytecode size over runtime gas,
     * since it is meant to be called off-chain.
     */
    function _tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) private view returns (uint256[] memory tokenIds) {
        unchecked {
            if (start >= stop) _revert(InvalidQueryRange.selector);
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) start = _startTokenId();
            uint256 nextTokenId = _nextTokenId();
            // If spot mints are enabled, scan all the way until the specified `stop`.
            uint256 stopLimit = _sequentialUpTo() != type(uint256).max ? stop : nextTokenId;
            // Set `stop = min(stop, stopLimit)`.
            if (stop >= stopLimit) stop = stopLimit;
            // Number of tokens to scan.
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength` to zero if the range contains no tokens.
            if (start >= stop) tokenIdsMaxLength = 0;
            // If there are one or more tokens to scan.
            if (tokenIdsMaxLength != 0) {
                // Set `tokenIdsMaxLength = min(balanceOf(owner), tokenIdsMaxLength)`.
                if (stop - start <= tokenIdsMaxLength) tokenIdsMaxLength = stop - start;
                uint256 m; // Start of available memory.
                assembly {
                    // Grab the free memory pointer.
                    tokenIds := mload(0x40)
                    // Allocate one word for the length, and `tokenIdsMaxLength` words
                    // for the data. `shl(5, x)` is equivalent to `mul(32, x)`.
                    m := add(tokenIds, shl(5, add(tokenIdsMaxLength, 1)))
                    mstore(0x40, m)
                }
                // We need to call `explicitOwnershipOf(start)`,
                // because the slot at `start` may not be initialized.
                TokenOwnership memory ownership = explicitOwnershipOf(start);
                address currOwnershipAddr;
                // If the starting slot exists (i.e. not burned),
                // initialize `currOwnershipAddr`.
                // `ownership.address` will not be zero,
                // as `start` is clamped to the valid token ID range.
                if (!ownership.burned) currOwnershipAddr = ownership.addr;
                uint256 tokenIdsIdx;
                // Use a do-while, which is slightly more efficient for this case,
                // as the array will at least contain one element.
                do {
                    if (_sequentialUpTo() != type(uint256).max) {
                        // Skip the remaining unused sequential slots.
                        if (start == nextTokenId) start = _sequentialUpTo() + 1;
                        // Reset `currOwnershipAddr`, as each spot-minted token is a batch of one.
                        if (start > _sequentialUpTo()) currOwnershipAddr = address(0);
                    }
                    ownership = _ownershipAt(start); // This implicitly allocates memory.
                    assembly {
                        switch mload(add(ownership, 0x40))
                        // if `ownership.burned == false`.
                        case 0 {
                            // if `ownership.addr != address(0)`.
                            // The `addr` already has it's upper 96 bits clearned,
                            // since it is written to memory with regular Solidity.
                            if mload(ownership) {
                                currOwnershipAddr := mload(ownership)
                            }
                            // if `currOwnershipAddr == owner`.
                            // The `shl(96, x)` is to make the comparison agnostic to any
                            // dirty upper 96 bits in `owner`.
                            if iszero(shl(96, xor(currOwnershipAddr, owner))) {
                                tokenIdsIdx := add(tokenIdsIdx, 1)
                                mstore(add(tokenIds, shl(5, tokenIdsIdx)), start)
                            }
                        }
                        // Otherwise, reset `currOwnershipAddr`.
                        // This handles the case of batch burned tokens
                        // (burned bit of first slot set, remaining slots left uninitialized).
                        default {
                            currOwnershipAddr := 0
                        }
                        start := add(start, 1)
                        // Free temporary memory implicitly allocated for ownership
                        // to avoid quadratic memory expansion costs.
                        mstore(0x40, m)
                    }
                } while (!(start == stop || tokenIdsIdx == tokenIdsMaxLength));
                // Store the length of the array.
                assembly {
                    mstore(tokenIds, tokenIdsIdx)
                }
            }
        }
    }
}

File 16 of 18 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721ABurnable.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

File 17 of 18 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 18 of 18 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// 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();

    /**
     * `_sequentialUpTo()` must be greater than `_startTokenId()`.
     */
    error SequentialUpToTooSmall();

    /**
     * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.
     */
    error SequentialMintExceedsLimit();

    /**
     * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.
     */
    error SpotMintTokenIdTooSmall();

    /**
     * Cannot mint over a token that already exists.
     */
    error TokenAlreadyExists();

    /**
     * The feature is not compatible with spot mints.
     */
    error NotCompatibleWithSpotMints();

    // =============================================================
    //                            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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","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":"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":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"ownership","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getAllowlistMintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowlistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"user","type":"address"}],"name":"getAllowlistUserVerifed","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":"owner","type":"address"}],"name":"getFreeMintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"user","type":"address"}],"name":"getFreeMintUserVerifed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAllowlistMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreeMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numAllowlistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numFreeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"operatorFilteringEnabled","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":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllowlistMintActive","type":"bool"}],"name":"setAllowlistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowlistMintPrice","type":"uint256"}],"name":"setAllowlistMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionSize","type":"uint256"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isFreeMintActive","type":"bool"}],"name":"setFreeMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setFreeMintMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isMintActive","type":"bool"}],"name":"setMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","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"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526002601055600a6011556000601460006101000a81548160ff0219169083151502179055506000601460016101000a81548160ff0219169083151502179055506000601460026101000a81548160ff021916908315150217905550660eebe0b40e80006015556618838370f3400060165573f0d6db708c4a42f01811f17f69915d6b62af9df2601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000d757600080fd5b50604051620068a1380380620068a18339818101604052810190620000fd919062000619565b6040518060400160405280600f81526020017f446966666572656e7420526f6f6d7300000000000000000000000000000000008152506040518060400160405280600881526020017f5349545354494c4c00000000000000000000000000000000000000000000000081525081600290816200017a9190620008d0565b5080600390816200018c9190620008d0565b506200019d6200028460201b60201c565b600081905550620001b36200028460201b60201c565b620001c36200028960201b60201c565b1015620001e357620001e263fed8210f60e01b620002b160201b60201c565b5b505060016009819055506200020d62000201620002bb60201b60201c565b620002c360201b60201c565b81600d8190555080600e819055506200022b6200038960201b60201c565b6001600f60006101000a81548160ff0219169083151502179055506200027c601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166102bc620003b260201b60201c565b505062000ad2565b600090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b8060005260046000fd5b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003b0733cc6cdda760b79bafa08df41ecfa224f810dceb660016200055560201b60201c565b565b620003c2620005cf60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000423576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200041a9062000a3e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000495576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200048c9062000ab0565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b637d3e3dbe8260601b60601c9250816200058457826200057c57634420e486905062000584565b63a0af290390505b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1620005c5578060005160e01c03620005c457600080fd5b5b6000602452505050565b6000612710905090565b600080fd5b6000819050919050565b620005f381620005de565b8114620005ff57600080fd5b50565b6000815190506200061381620005e8565b92915050565b60008060408385031215620006335762000632620005d9565b5b6000620006438582860162000602565b9250506020620006568582860162000602565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006e257607f821691505b602082108103620006f857620006f76200069a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007627fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000723565b6200076e868362000723565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620007b1620007ab620007a584620005de565b62000786565b620005de565b9050919050565b6000819050919050565b620007cd8362000790565b620007e5620007dc82620007b8565b84845462000730565b825550505050565b600090565b620007fc620007ed565b62000809818484620007c2565b505050565b5b81811015620008315762000825600082620007f2565b6001810190506200080f565b5050565b601f82111562000880576200084a81620006fe565b620008558462000713565b8101602085101562000865578190505b6200087d620008748562000713565b8301826200080e565b50505b505050565b600082821c905092915050565b6000620008a56000198460080262000885565b1980831691505092915050565b6000620008c0838362000892565b9150826002028217905092915050565b620008db8262000660565b67ffffffffffffffff811115620008f757620008f66200066b565b5b620009038254620006c9565b6200091082828562000835565b600060209050601f83116001811462000948576000841562000933578287015190505b6200093f8582620008b2565b865550620009af565b601f1984166200095886620006fe565b60005b8281101562000982578489015182556001820191506020850194506020810190506200095b565b86831015620009a257848901516200099e601f89168262000892565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000a26602a83620009b7565b915062000a3382620009c8565b604082019050919050565b6000602082019050818103600083015262000a598162000a17565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000a98601983620009b7565b915062000aa58262000a60565b602082019050919050565b6000602082019050818103600083015262000acb8162000a89565b9050919050565b615dbf8062000ae26000396000f3fe60806040526004361061038c5760003560e01c8063715018a6116101dc578063c23dc68f11610102578063e985e9c5116100a0578063f4a0a5281161006f578063f4a0a52814610d4b578063f95df41414610d74578063fa26425e14610d9d578063fb796e6c14610dc85761038c565b8063e985e9c514610c93578063ee1cc94414610cd0578063f19e75d414610cf9578063f2fde38b14610d225761038c565b8063dc33e681116100dc578063dc33e68114610bd9578063dde44b8914610c16578063e066fb7d14610c3f578063e268e4d314610c6a5761038c565b8063c23dc68f14610b36578063c87b56dd14610b73578063d684340914610bb05761038c565b8063a0712d681161017a578063aca8ffe711610149578063aca8ffe714610a8b578063b360fb9614610ab4578063b7c0b8e814610af1578063b88d4fde14610b1a5761038c565b8063a0712d68146109de578063a16c8103146109fa578063a22cb46514610a37578063a7f93ebd14610a605761038c565b80638462151c116101b65780638462151c1461090e5780638da5cb5b1461094b57806395d89b411461097657806399a2557a146109a15761038c565b8063715018a61461088f578063731b9de3146108a65780637a5b85c1146108e35761038c565b806338da2f69116102c157806349df728c1161025f5780635bbb21771161022e5780635bbb2177146107ad5780636352211e146107ea57806368963df01461082757806370a08231146108525761038c565b806349df728c146107075780634f9b563c1461073057806355f804b3146107595780635b92ac0d146107825761038c565b806342842e0e1161029b57806342842e0e1461066c57806342966c6814610688578063453c2310146106b157806345c0f533146106dc5761038c565b806338da2f69146105ef5780633ccfd60b146106185780633e484efb1461062f5761038c565b8063172eb1b01161032e57806323b872dd1161030857806323b872dd14610541578063293108e01461055d5780632a55205a146105885780633615ab45146105c65761038c565b8063172eb1b0146104c057806318160ddd146104eb578063229fa55d146105165761038c565b8063081812fc1161036a578063081812fc14610422578063095ea7b31461045f5780631338a83f1461047b578063163e1e61146104975761038c565b806301ffc9a71461039157806304634d8d146103ce57806306fdde03146103f7575b600080fd5b34801561039d57600080fd5b506103b860048036038101906103b39190613fef565b610df3565b6040516103c59190614037565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f091906140f4565b610e15565b005b34801561040357600080fd5b5061040c610e2b565b60405161041991906141c4565b60405180910390f35b34801561042e57600080fd5b506104496004803603810190610444919061421c565b610ebd565b6040516104569190614258565b60405180910390f35b61047960048036038101906104749190614273565b610f1b565b005b61049560048036038101906104909190614318565b610f50565b005b3480156104a357600080fd5b506104be60048036038101906104b991906143ce565b61124a565b005b3480156104cc57600080fd5b506104d561131c565b6040516104e2919061442a565b60405180910390f35b3480156104f757600080fd5b50610500611322565b60405161050d919061442a565b60405180910390f35b34801561052257600080fd5b5061052b61136f565b6040516105389190614037565b60405180910390f35b61055b60048036038101906105569190614445565b611382565b005b34801561056957600080fd5b506105726113ed565b60405161057f91906144b1565b60405180910390f35b34801561059457600080fd5b506105af60048036038101906105aa91906144cc565b6113f3565b6040516105bd92919061450c565b60405180910390f35b3480156105d257600080fd5b506105ed60048036038101906105e89190614318565b6115dd565b005b3480156105fb57600080fd5b5061061660048036038101906106119190614561565b611884565b005b34801561062457600080fd5b5061062d6118a9565b005b34801561063b57600080fd5b506106566004803603810190610651919061458e565b611960565b6040516106639190614037565b60405180910390f35b61068660048036038101906106819190614445565b6119e4565b005b34801561069457600080fd5b506106af60048036038101906106aa919061421c565b611a4f565b005b3480156106bd57600080fd5b506106c6611a5d565b6040516106d3919061442a565b60405180910390f35b3480156106e857600080fd5b506106f1611a63565b6040516106fe919061442a565b60405180910390f35b34801561071357600080fd5b5061072e6004803603810190610729919061462c565b611a69565b005b34801561073c57600080fd5b5061075760048036038101906107529190614561565b611b7c565b005b34801561076557600080fd5b50610780600480360381019061077b91906146af565b611ba1565b005b34801561078e57600080fd5b50610797611bbf565b6040516107a49190614037565b60405180910390f35b3480156107b957600080fd5b506107d460048036038101906107cf9190614752565b611bd2565b6040516107e19190614902565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c919061421c565b611c32565b60405161081e9190614258565b60405180910390f35b34801561083357600080fd5b5061083c611c44565b60405161084991906144b1565b60405180910390f35b34801561085e57600080fd5b5061087960048036038101906108749190614924565b611c4a565b604051610886919061442a565b60405180910390f35b34801561089b57600080fd5b506108a4611ce1565b005b3480156108b257600080fd5b506108cd60048036038101906108c89190614924565b611cf5565b6040516108da9190614970565b60405180910390f35b3480156108ef57600080fd5b506108f8611d19565b6040516109059190614037565b60405180910390f35b34801561091a57600080fd5b5061093560048036038101906109309190614924565b611d2c565b6040516109429190614a49565b60405180910390f35b34801561095757600080fd5b50610960611da7565b60405161096d9190614258565b60405180910390f35b34801561098257600080fd5b5061098b611dd1565b60405161099891906141c4565b60405180910390f35b3480156109ad57600080fd5b506109c860048036038101906109c39190614a6b565b611e63565b6040516109d59190614a49565b60405180910390f35b6109f860048036038101906109f3919061421c565b611e79565b005b348015610a0657600080fd5b50610a216004803603810190610a1c9190614924565b61209e565b604051610a2e9190614970565b60405180910390f35b348015610a4357600080fd5b50610a5e6004803603810190610a599190614abe565b6120c2565b005b348015610a6c57600080fd5b50610a756120f7565b604051610a82919061442a565b60405180910390f35b348015610a9757600080fd5b50610ab26004803603810190610aad919061421c565b612101565b005b348015610ac057600080fd5b50610adb6004803603810190610ad6919061458e565b612158565b604051610ae89190614037565b60405180910390f35b348015610afd57600080fd5b50610b186004803603810190610b139190614561565b6121dc565b005b610b346004803603810190610b2f9190614c2e565b612201565b005b348015610b4257600080fd5b50610b5d6004803603810190610b58919061421c565b61226e565b604051610b6a9190614d06565b60405180910390f35b348015610b7f57600080fd5b50610b9a6004803603810190610b95919061421c565b6122e3565b604051610ba791906141c4565b60405180910390f35b348015610bbc57600080fd5b50610bd76004803603810190610bd2919061421c565b612381565b005b348015610be557600080fd5b50610c006004803603810190610bfb9190614924565b612393565b604051610c0d919061442a565b60405180910390f35b348015610c2257600080fd5b50610c3d6004803603810190610c389190614d4d565b6123a5565b005b348015610c4b57600080fd5b50610c546123b7565b604051610c61919061442a565b60405180910390f35b348015610c7657600080fd5b50610c916004803603810190610c8c919061421c565b6123c1565b005b348015610c9f57600080fd5b50610cba6004803603810190610cb59190614d7a565b6123d3565b604051610cc79190614037565b60405180910390f35b348015610cdc57600080fd5b50610cf76004803603810190610cf29190614561565b612467565b005b348015610d0557600080fd5b50610d206004803603810190610d1b919061421c565b61248c565b005b348015610d2e57600080fd5b50610d496004803603810190610d449190614924565b6124fa565b005b348015610d5757600080fd5b50610d726004803603810190610d6d919061421c565b61257d565b005b348015610d8057600080fd5b50610d9b6004803603810190610d969190614d4d565b61258f565b005b348015610da957600080fd5b50610db26125a1565b604051610dbf919061442a565b60405180910390f35b348015610dd457600080fd5b50610ddd6125a7565b604051610dea9190614037565b60405180910390f35b6000610dfe826125ba565b80610e0e5750610e0d8261264c565b5b9050919050565b610e1d6126c6565b610e278282612744565b5050565b606060028054610e3a90614de9565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6690614de9565b8015610eb35780601f10610e8857610100808354040283529160200191610eb3565b820191906000526020600020905b815481529060010190602001808311610e9657829003601f168201915b5050505050905090565b6000610ec8826128d9565b610edd57610edc63cf4700e460e01b612985565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610f258161298f565b610f4157610f316129db565b15610f4057610f3f816129f2565b5b5b610f4b8383612a36565b505050565b610f58612a46565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd90614e66565b60405180910390fd5b601460019054906101000a900460ff16611015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100c90614ed2565b60405180910390fd5b80600d5481611022611322565b61102c9190614f21565b111561106d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106490614fa1565b60405180910390fd5b8160008061108261107d33612a95565b612ae2565b91509150601154838263ffffffff1661109b9190614f21565b11156110dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d390615033565b60405180910390fd5b601554853481836110ed9190615053565b1461112d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611124906150e1565b60405180910390fd5b88886013546111a4838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016111899190615149565b60405160208183030381529060405280519060200120612afe565b6111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da906151d6565b60405180910390fd5b6000806111f76111f233612a95565b612ae2565b63ffffffff16915063ffffffff1691508b816112139190614f21565b9050611228336112238484612b15565b612b3c565b611232338d612bf2565b5050505050505050505050611245612c10565b505050565b611252612a46565b61125a6126c6565b81819050600d548161126a611322565b6112749190614f21565b11156112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ac90614fa1565b60405180910390fd5b600083839050905060005b8181101561130d576112fa8585838181106112de576112dd6151f6565b5b90506020020160208101906112f39190614924565b6001612bf2565b808061130590615225565b9150506112c0565b505050611318612c10565b5050565b60105481565b600061132c612c1a565b600154600054030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61135f612c1f565b1461136c57600854810190505b90565b601460019054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113dc576113bf3361298f565b6113db576113cb6129db565b156113da576113d9336129f2565b5b5b5b6113e7848484612c47565b50505050565b60135481565b6000806000600c60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361158857600b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000611592612f08565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866115be9190615053565b6115c8919061529c565b90508160000151819350935050509250929050565b6115e5612a46565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a90614e66565b60405180910390fd5b601460009054906101000a900460ff166116a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169990615319565b60405180910390fd5b8282601254611719838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016116fe9190615149565b60405160208183030381529060405280519060200120612afe565b611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f906151d6565b60405180910390fd5b8360008061176d61176833612a95565b612ae2565b91509150601054838363ffffffff166117869190614f21565b11156117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be906153ab565b60405180910390fd5b86600d54816117d4611322565b6117de9190614f21565b111561181f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181690614fa1565b60405180910390fd5b60008061183361182e33612a95565b612ae2565b63ffffffff16915063ffffffff169150898261184f9190614f21565b91506118643361185f8484612b15565b612b3c565b61186e338b612bf2565b50505050505050505061187f612c10565b505050565b61188c6126c6565b80601460016101000a81548160ff02191690831515021790555050565b6118b16126c6565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516118d7906153fc565b60006040518083038185875af1925050503d8060008114611914576040519150601f19603f3d011682016040523d82523d6000602084013e611919565b606091505b505090508061195d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119549061545d565b60405180910390fd5b50565b6000806119d7858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601354856040516020016119bc9190615149565b60405160208183030381529060405280519060200120612afe565b9050809150509392505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a3e57611a213361298f565b611a3d57611a2d6129db565b15611a3c57611a3b336129f2565b5b5b5b611a49848484612f12565b50505050565b611a5a816001612f32565b50565b600e5481565b600d5481565b611a716126c6565b611a79612a46565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611acf9190614258565b602060405180830381865afa158015611aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b109190615492565b6040518363ffffffff1660e01b8152600401611b2d92919061450c565b6020604051808303816000875af1158015611b4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7091906154d4565b50611b79612c10565b50565b611b846126c6565b80601460006101000a81548160ff02191690831515021790555050565b611ba96126c6565b818160189182611bba9291906156b8565b505050565b601460029054906101000a900460ff1681565b606080600084849050905060405191508082528060051b90508060208301016040525b60008114611c275760006020820391508186013590506000611c168261226e565b905080836020860101525050611bf5565b819250505092915050565b6000611c3d82613163565b9050919050565b60125481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c9057611c8f638f4eb60460e01b612985565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611ce96126c6565b611cf3600061327c565b565b6000806000611d0b611d0685612a95565b612ae2565b915091508092505050919050565b601460009054906101000a900460ff1681565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611d57612c1f565b14611d6d57611d6c63bdba09d760e01b612985565b5b6000611d77612c1a565b90506000611d83613342565b90506060818314611d9c57611d9985848461334b565b90505b809350505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611de090614de9565b80601f0160208091040260200160405190810160405280929190818152602001828054611e0c90614de9565b8015611e595780601f10611e2e57610100808354040283529160200191611e59565b820191906000526020600020905b815481529060010190602001808311611e3c57829003601f168201915b5050505050905090565b6060611e7084848461334b565b90509392505050565b611e81612a46565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611eef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee690614e66565b60405180910390fd5b601460029054906101000a900460ff16611f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f35906157d4565b60405180910390fd5b80600e5481611f4c33613507565b611f569190614f21565b1115611f97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8e90615866565b60405180910390fd5b60165482348183611fa89190615053565b14611fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdf906150e1565b60405180910390fd5b83600d5481611ff5611322565b611fff9190614f21565b1115612040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203790614fa1565b60405180910390fd5b8460008103612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b906158d2565b60405180910390fd5b61208e3387612bf2565b505050505061209b612c10565b50565b60008060006120b46120af85612a95565b612ae2565b915091508192505050919050565b816120cc8161298f565b6120e8576120d86129db565b156120e7576120e6816129f2565b5b5b6120f2838361355e565b505050565b6000601654905090565b6121096126c6565b600d5481111561214e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121459061593e565b60405180910390fd5b80600d8190555050565b6000806121cf858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601254856040516020016121b49190615149565b60405160208183030381529060405280519060200120612afe565b9050809150509392505050565b6121e46126c6565b80600f60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461225b5761223e3361298f565b61225a5761224a6129db565b1561225957612258336129f2565b5b5b5b61226785858585613669565b5050505050565b612276613f34565b61227e612c1a565b82106122dd5761228c612c1f565b8211156122a35761229c826136bb565b90506122de565b6122ab613342565b8210156122dc575b6122bc826136e6565b6122cc57816001900391506122b3565b6122d5826136bb565b90506122de565b5b5b919050565b60606122ee826128d9565b612324576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061232e613706565b9050600081510361234e5760405180602001604052806000815250612379565b8061235884613798565b6040516020016123699291906159e6565b6040516020818303038152906040525b915050919050565b6123896126c6565b8060158190555050565b600061239e82613507565b9050919050565b6123ad6126c6565b8060128190555050565b6000601554905090565b6123c96126c6565b80600e8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61246f6126c6565b80601460026101000a81548160ff02191690831515021790555050565b6124946126c6565b80600d54816124a1611322565b6124ab9190614f21565b11156124ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e390614fa1565b60405180910390fd5b6124f63383612bf2565b5050565b6125026126c6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256890615a87565b60405180910390fd5b61257a8161327c565b50565b6125856126c6565b8060168190555050565b6125976126c6565b8060138190555050565b60115481565b600f60009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061261557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126455750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126bf57506126be826137e8565b5b9050919050565b6126ce613852565b73ffffffffffffffffffffffffffffffffffffffff166126ec611da7565b73ffffffffffffffffffffffffffffffffffffffff1614612742576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273990615af3565b60405180910390fd5b565b61274c612f08565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156127aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a190615b85565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612819576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281090615bf1565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816128e4612c1a565b1161297f576128f1612c1f565b82111561291b57612914600460008481526020019081526020016000205461385a565b9050612980565b60005482101561297e5760005b6000600460008581526020019081526020016000205491508103612957578261295090615c11565b9250612928565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b8060005260046000fd5b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600f60009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa612a2e573d6000803e3d6000fd5b6000603a5250565b612a428282600161389b565b5050565b600260095403612a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8290615c86565b60405180910390fd5b6002600981905550565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b60008060208367ffffffffffffffff16901c8391509150915091565b600082612b0b85846139ca565b1490509392505050565b60008163ffffffff1660208463ffffffff1667ffffffffffffffff16901b17905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b612c0c828260405180602001604052806000815250613a20565b5050565b6001600981905550565b600090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b6000612c5282613163565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612cc757612cc663a114810060e01b612985565b5b600080612cd384613a9c565b91509150612ce98187612ce4613ac3565b613acb565b612d1457612cfe86612cf9613ac3565b6123d3565b612d1357612d126359c896be60e01b612985565b5b5b612d218686866001613b0f565b8015612d2c57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612dfa85612dd6888887613b15565b7c020000000000000000000000000000000000000000000000000000000017613b3d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612e805760006001850190506000600460008381526020019081526020016000205403612e7e576000548114612e7d578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460008103612ef257612ef163ea553b3460e01b612985565b5b612eff8787876001613b68565b50505050505050565b6000612710905090565b612f2d83838360405180602001604052806000815250612201565b505050565b6000612f3d83613163565b90506000819050600080612f5086613a9c565b915091508415612f9857612f6c8184612f67613ac3565b613acb565b612f9757612f8183612f7c613ac3565b6123d3565b612f9657612f956359c896be60e01b612985565b5b5b5b612fa6836000886001613b0f565b8015612fb157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130598361301685600088613b15565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613b3d565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036130df57600060018701905060006004600083815260200190815260200160002054036130dd5760005481146130dc578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613149836000886001613b68565b600160008154809291906001019190505550505050505050565b60008161316e612c1a565b116132665760046000838152602001908152602001600020549050613191612c1f565b8211156131b6576131a18161385a565b613277576131b563df2d9b4260e01b612985565b5b6000810361323d5760005482106131d8576131d763df2d9b4260e01b612985565b5b5b600460008360019003935083815260200190815260200160002054905060008103156132385760007c0100000000000000000000000000000000000000000000000000000000821603156132775761323763df2d9b4260e01b612985565b5b6131d9565b60007c010000000000000000000000000000000000000000000000000000000082160315613277575b61327663df2d9b4260e01b612985565b5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b6060818310613365576133646332c1995a60e01b612985565b5b61336d612c1a565b83101561337f5761337c612c1a565b92505b6000613389613342565b905060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6133b6612c1f565b036133c157816133c3565b835b90508084106133d0578093505b60006133db87611c4a565b90508486106133e957600090505b600081146134fd5780868603116134005785850390505b600060405194506001820160051b850190508060405260006134218861226e565b90506000816040015161343657816000015190505b60005b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff613462612c1f565b1461349157868a0361347c576001613478612c1f565b0199505b613484612c1f565b8a111561349057600091505b5b61349a8a6136bb565b92506040830151600081146134b257600092506134d8565b8351156134be57835192505b8b831860601b6134d7576001820191508a8260051b8a01525b5b5060018a01995083604052888a14806134f057508481145b1561343957808852505050505b5050509392505050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b806007600061356b613ac3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16613618613ac3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161365d9190614037565b60405180910390a35050565b613674848484611382565b60008373ffffffffffffffffffffffffffffffffffffffff163b146136b55761369f84848484613b6e565b6136b4576136b363d1a57ed660e01b612985565b5b5b50505050565b6136c3613f34565b6136df6004600084815260200190815260200160002054613c9d565b9050919050565b600080600460008481526020019081526020016000205414159050919050565b60606018805461371590614de9565b80601f016020809104026020016040519081016040528092919081815260200182805461374190614de9565b801561378e5780601f106137635761010080835404028352916020019161378e565b820191906000526020600020905b81548152906001019060200180831161377157829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156137d357600184039350600a81066030018453600a81049050806137b1575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60007c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b60006138a683611c32565b90508180156138e857508073ffffffffffffffffffffffffffffffffffffffff166138cf613ac3565b73ffffffffffffffffffffffffffffffffffffffff1614155b15613914576138fe816138f9613ac3565b6123d3565b6139135761391263cfb3b94260e01b612985565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b60008082905060005b8451811015613a1557613a00828683815181106139f3576139f26151f6565b5b6020026020010151613d53565b91508080613a0d90615225565b9150506139d3565b508091505092915050565b613a2a8383613d7e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613a9757600080549050600083820390505b613a6a6000868380600101945086613b6e565b613a7f57613a7e63d1a57ed660e01b612985565b5b818110613a57578160005414613a9457600080fd5b50505b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613b2c868684613f04565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613b94613ac3565b8786866040518563ffffffff1660e01b8152600401613bb69493929190615cfb565b6020604051808303816000875af1925050508015613bf257506040513d601f19601f82011682018060405250810190613bef9190615d5c565b60015b613c4a573d8060008114613c22576040519150601f19603f3d011682016040523d82523d6000602084013e613c27565b606091505b506000815103613c4257613c4163d1a57ed660e01b612985565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b613ca5613f34565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6000818310613d6b57613d668284613f0d565b613d76565b613d758383613f0d565b5b905092915050565b60008054905060008203613d9d57613d9c63b562e8dd60e01b612985565b5b613daa6000848385613b0f565b613dca83613dbb6000866000613b15565b613dc485613f24565b17613b3d565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103613e8257613e81632e07630060e01b612985565b5b600083830190506000839050613e96612c1f565b600183031115613eb157613eb06381647e3a60e01b612985565b5b5b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103613eb25781600081905550505050613eff6000848385613b68565b505050565b60009392505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613fcc81613f97565b8114613fd757600080fd5b50565b600081359050613fe981613fc3565b92915050565b60006020828403121561400557614004613f8d565b5b600061401384828501613fda565b91505092915050565b60008115159050919050565b6140318161401c565b82525050565b600060208201905061404c6000830184614028565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061407d82614052565b9050919050565b61408d81614072565b811461409857600080fd5b50565b6000813590506140aa81614084565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6140d1816140b0565b81146140dc57600080fd5b50565b6000813590506140ee816140c8565b92915050565b6000806040838503121561410b5761410a613f8d565b5b60006141198582860161409b565b925050602061412a858286016140df565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561416e578082015181840152602081019050614153565b60008484015250505050565b6000601f19601f8301169050919050565b600061419682614134565b6141a0818561413f565b93506141b0818560208601614150565b6141b98161417a565b840191505092915050565b600060208201905081810360008301526141de818461418b565b905092915050565b6000819050919050565b6141f9816141e6565b811461420457600080fd5b50565b600081359050614216816141f0565b92915050565b60006020828403121561423257614231613f8d565b5b600061424084828501614207565b91505092915050565b61425281614072565b82525050565b600060208201905061426d6000830184614249565b92915050565b6000806040838503121561428a57614289613f8d565b5b60006142988582860161409b565b92505060206142a985828601614207565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126142d8576142d76142b3565b5b8235905067ffffffffffffffff8111156142f5576142f46142b8565b5b602083019150836020820283011115614311576143106142bd565b5b9250929050565b60008060006040848603121561433157614330613f8d565b5b600084013567ffffffffffffffff81111561434f5761434e613f92565b5b61435b868287016142c2565b9350935050602061436e86828701614207565b9150509250925092565b60008083601f84011261438e5761438d6142b3565b5b8235905067ffffffffffffffff8111156143ab576143aa6142b8565b5b6020830191508360208202830111156143c7576143c66142bd565b5b9250929050565b600080602083850312156143e5576143e4613f8d565b5b600083013567ffffffffffffffff81111561440357614402613f92565b5b61440f85828601614378565b92509250509250929050565b614424816141e6565b82525050565b600060208201905061443f600083018461441b565b92915050565b60008060006060848603121561445e5761445d613f8d565b5b600061446c8682870161409b565b935050602061447d8682870161409b565b925050604061448e86828701614207565b9150509250925092565b6000819050919050565b6144ab81614498565b82525050565b60006020820190506144c660008301846144a2565b92915050565b600080604083850312156144e3576144e2613f8d565b5b60006144f185828601614207565b925050602061450285828601614207565b9150509250929050565b60006040820190506145216000830185614249565b61452e602083018461441b565b9392505050565b61453e8161401c565b811461454957600080fd5b50565b60008135905061455b81614535565b92915050565b60006020828403121561457757614576613f8d565b5b60006145858482850161454c565b91505092915050565b6000806000604084860312156145a7576145a6613f8d565b5b600084013567ffffffffffffffff8111156145c5576145c4613f92565b5b6145d1868287016142c2565b935093505060206145e48682870161409b565b9150509250925092565b60006145f982614072565b9050919050565b614609816145ee565b811461461457600080fd5b50565b60008135905061462681614600565b92915050565b60006020828403121561464257614641613f8d565b5b600061465084828501614617565b91505092915050565b60008083601f84011261466f5761466e6142b3565b5b8235905067ffffffffffffffff81111561468c5761468b6142b8565b5b6020830191508360018202830111156146a8576146a76142bd565b5b9250929050565b600080602083850312156146c6576146c5613f8d565b5b600083013567ffffffffffffffff8111156146e4576146e3613f92565b5b6146f085828601614659565b92509250509250929050565b60008083601f840112614712576147116142b3565b5b8235905067ffffffffffffffff81111561472f5761472e6142b8565b5b60208301915083602082028301111561474b5761474a6142bd565b5b9250929050565b6000806020838503121561476957614768613f8d565b5b600083013567ffffffffffffffff81111561478757614786613f92565b5b614793858286016146fc565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6147d481614072565b82525050565b600067ffffffffffffffff82169050919050565b6147f7816147da565b82525050565b6148068161401c565b82525050565b600062ffffff82169050919050565b6148248161480c565b82525050565b60808201600082015161484060008501826147cb565b50602082015161485360208501826147ee565b50604082015161486660408501826147fd565b506060820151614879606085018261481b565b50505050565b600061488b838361482a565b60808301905092915050565b6000602082019050919050565b60006148af8261479f565b6148b981856147aa565b93506148c4836147bb565b8060005b838110156148f55781516148dc888261487f565b97506148e783614897565b9250506001810190506148c8565b5085935050505092915050565b6000602082019050818103600083015261491c81846148a4565b905092915050565b60006020828403121561493a57614939613f8d565b5b60006149488482850161409b565b91505092915050565b600063ffffffff82169050919050565b61496a81614951565b82525050565b60006020820190506149856000830184614961565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149c0816141e6565b82525050565b60006149d283836149b7565b60208301905092915050565b6000602082019050919050565b60006149f68261498b565b614a008185614996565b9350614a0b836149a7565b8060005b83811015614a3c578151614a2388826149c6565b9750614a2e836149de565b925050600181019050614a0f565b5085935050505092915050565b60006020820190508181036000830152614a6381846149eb565b905092915050565b600080600060608486031215614a8457614a83613f8d565b5b6000614a928682870161409b565b9350506020614aa386828701614207565b9250506040614ab486828701614207565b9150509250925092565b60008060408385031215614ad557614ad4613f8d565b5b6000614ae38582860161409b565b9250506020614af48582860161454c565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614b3b8261417a565b810181811067ffffffffffffffff82111715614b5a57614b59614b03565b5b80604052505050565b6000614b6d613f83565b9050614b798282614b32565b919050565b600067ffffffffffffffff821115614b9957614b98614b03565b5b614ba28261417a565b9050602081019050919050565b82818337600083830152505050565b6000614bd1614bcc84614b7e565b614b63565b905082815260208101848484011115614bed57614bec614afe565b5b614bf8848285614baf565b509392505050565b600082601f830112614c1557614c146142b3565b5b8135614c25848260208601614bbe565b91505092915050565b60008060008060808587031215614c4857614c47613f8d565b5b6000614c568782880161409b565b9450506020614c678782880161409b565b9350506040614c7887828801614207565b925050606085013567ffffffffffffffff811115614c9957614c98613f92565b5b614ca587828801614c00565b91505092959194509250565b608082016000820151614cc760008501826147cb565b506020820151614cda60208501826147ee565b506040820151614ced60408501826147fd565b506060820151614d00606085018261481b565b50505050565b6000608082019050614d1b6000830184614cb1565b92915050565b614d2a81614498565b8114614d3557600080fd5b50565b600081359050614d4781614d21565b92915050565b600060208284031215614d6357614d62613f8d565b5b6000614d7184828501614d38565b91505092915050565b60008060408385031215614d9157614d90613f8d565b5b6000614d9f8582860161409b565b9250506020614db08582860161409b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e0157607f821691505b602082108103614e1457614e13614dba565b5b50919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b6000614e50601f8361413f565b9150614e5b82614e1a565b602082019050919050565b60006020820190508181036000830152614e7f81614e43565b9050919050565b7f416c6c6f776c697374206d696e74206973206e6f74206f70656e2e0000000000600082015250565b6000614ebc601b8361413f565b9150614ec782614e86565b602082019050919050565b60006020820190508181036000830152614eeb81614eaf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f2c826141e6565b9150614f37836141e6565b9250828201905080821115614f4f57614f4e614ef2565b5b92915050565b7f546865726520617265206e6f20746f6b656e73206c6566742e00000000000000600082015250565b6000614f8b60198361413f565b9150614f9682614f55565b602082019050919050565b60006020820190508181036000830152614fba81614f7e565b9050919050565b7f43616e6e6f7420636c61696d206d6f7265207468616e20313020616c6c6f776c60008201527f697374206d696e742e0000000000000000000000000000000000000000000000602082015250565b600061501d60298361413f565b915061502882614fc1565b604082019050919050565b6000602082019050818103600083015261504c81615010565b9050919050565b600061505e826141e6565b9150615069836141e6565b9250828202615077816141e6565b9150828204841483151761508e5761508d614ef2565b5b5092915050565b7f496e636f727265637420616d6f756e74206f66204554482073656e742e000000600082015250565b60006150cb601d8361413f565b91506150d682615095565b602082019050919050565b600060208201905081810360008301526150fa816150be565b9050919050565b60008160601b9050919050565b600061511982615101565b9050919050565b600061512b8261510e565b9050919050565b61514361513e82614072565b615120565b82525050565b60006151558284615132565b60148201915081905092915050565b7f4164647265737320646f6573206e6f7420657869737420696e20616c6c6f776c60008201527f6973742e00000000000000000000000000000000000000000000000000000000602082015250565b60006151c060248361413f565b91506151cb82615164565b604082019050919050565b600060208201905081810360008301526151ef816151b3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000615230826141e6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361526257615261614ef2565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006152a7826141e6565b91506152b2836141e6565b9250826152c2576152c161526d565b5b828204905092915050565b7f46726565206d696e74206973206e6f74206f70656e2e00000000000000000000600082015250565b600061530360168361413f565b915061530e826152cd565b602082019050919050565b60006020820190508181036000830152615332816152f6565b9050919050565b7f546869732077616c6c65742063616e6e6f7420636c61696d206d6f726520746860008201527f616e20322066726565206d696e74732e00000000000000000000000000000000602082015250565b600061539560308361413f565b91506153a082615339565b604082019050919050565b600060208201905081810360008301526153c481615388565b9050919050565b600081905092915050565b50565b60006153e66000836153cb565b91506153f1826153d6565b600082019050919050565b6000615407826153d9565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b600061544760108361413f565b915061545282615411565b602082019050919050565b600060208201905081810360008301526154768161543a565b9050919050565b60008151905061548c816141f0565b92915050565b6000602082840312156154a8576154a7613f8d565b5b60006154b68482850161547d565b91505092915050565b6000815190506154ce81614535565b92915050565b6000602082840312156154ea576154e9613f8d565b5b60006154f8848285016154bf565b91505092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261556e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615531565b6155788683615531565b95508019841693508086168417925050509392505050565b6000819050919050565b60006155b56155b06155ab846141e6565b615590565b6141e6565b9050919050565b6000819050919050565b6155cf8361559a565b6155e36155db826155bc565b84845461553e565b825550505050565b600090565b6155f86155eb565b6156038184846155c6565b505050565b5b818110156156275761561c6000826155f0565b600181019050615609565b5050565b601f82111561566c5761563d8161550c565b61564684615521565b81016020851015615655578190505b61566961566185615521565b830182615608565b50505b505050565b600082821c905092915050565b600061568f60001984600802615671565b1980831691505092915050565b60006156a8838361567e565b9150826002028217905092915050565b6156c28383615501565b67ffffffffffffffff8111156156db576156da614b03565b5b6156e58254614de9565b6156f082828561562b565b6000601f83116001811461571f576000841561570d578287013590505b615717858261569c565b86555061577f565b601f19841661572d8661550c565b60005b8281101561575557848901358255600182019150602085019450602081019050615730565b86831015615772578489013561576e601f89168261567e565b8355505b6001600288020188555050505b50505050505050565b7f4d696e74206973206e6f74206f70656e2e000000000000000000000000000000600082015250565b60006157be60118361413f565b91506157c982615788565b602082019050919050565b600060208201905081810360008301526157ed816157b1565b9050919050565b7f546865206d6178696d756d206e756d626572206f66206d696e74656420746f6b60008201527f656e73207065722077616c6c65742069732032302e0000000000000000000000602082015250565b600061585060358361413f565b915061585b826157f4565b604082019050919050565b6000602082019050818103600083015261587f81615843565b9050919050565b7f596f752063616e6e6f6e74206d696e74203020746f6b656e732e000000000000600082015250565b60006158bc601a8361413f565b91506158c782615886565b602082019050919050565b600060208201905081810360008301526158eb816158af565b9050919050565b7f43616e6e6f7420696e63726561736520636f6c6c656374696f6e2073697a652e600082015250565b600061592860208361413f565b9150615933826158f2565b602082019050919050565b600060208201905081810360008301526159578161591b565b9050919050565b600081905092915050565b600061597482614134565b61597e818561595e565b935061598e818560208601614150565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006159d060058361595e565b91506159db8261599a565b600582019050919050565b60006159f28285615969565b91506159fe8284615969565b9150615a09826159c3565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615a7160268361413f565b9150615a7c82615a15565b604082019050919050565b60006020820190508181036000830152615aa081615a64565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615add60208361413f565b9150615ae882615aa7565b602082019050919050565b60006020820190508181036000830152615b0c81615ad0565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615b6f602a8361413f565b9150615b7a82615b13565b604082019050919050565b60006020820190508181036000830152615b9e81615b62565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615bdb60198361413f565b9150615be682615ba5565b602082019050919050565b60006020820190508181036000830152615c0a81615bce565b9050919050565b6000615c1c826141e6565b915060008203615c2f57615c2e614ef2565b5b600182039050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615c70601f8361413f565b9150615c7b82615c3a565b602082019050919050565b60006020820190508181036000830152615c9f81615c63565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615ccd82615ca6565b615cd78185615cb1565b9350615ce7818560208601614150565b615cf08161417a565b840191505092915050565b6000608082019050615d106000830187614249565b615d1d6020830186614249565b615d2a604083018561441b565b8181036060830152615d3c8184615cc2565b905095945050505050565b600081519050615d5681613fc3565b92915050565b600060208284031215615d7257615d71613f8d565b5b6000615d8084828501615d47565b9150509291505056fea26469706673582212208ad695399b1c041e1516a80fa5613ac5a7bebb88de7fad1e21dbf2edf4e74d6064736f6c6343000814003300000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000014

Deployed Bytecode

0x60806040526004361061038c5760003560e01c8063715018a6116101dc578063c23dc68f11610102578063e985e9c5116100a0578063f4a0a5281161006f578063f4a0a52814610d4b578063f95df41414610d74578063fa26425e14610d9d578063fb796e6c14610dc85761038c565b8063e985e9c514610c93578063ee1cc94414610cd0578063f19e75d414610cf9578063f2fde38b14610d225761038c565b8063dc33e681116100dc578063dc33e68114610bd9578063dde44b8914610c16578063e066fb7d14610c3f578063e268e4d314610c6a5761038c565b8063c23dc68f14610b36578063c87b56dd14610b73578063d684340914610bb05761038c565b8063a0712d681161017a578063aca8ffe711610149578063aca8ffe714610a8b578063b360fb9614610ab4578063b7c0b8e814610af1578063b88d4fde14610b1a5761038c565b8063a0712d68146109de578063a16c8103146109fa578063a22cb46514610a37578063a7f93ebd14610a605761038c565b80638462151c116101b65780638462151c1461090e5780638da5cb5b1461094b57806395d89b411461097657806399a2557a146109a15761038c565b8063715018a61461088f578063731b9de3146108a65780637a5b85c1146108e35761038c565b806338da2f69116102c157806349df728c1161025f5780635bbb21771161022e5780635bbb2177146107ad5780636352211e146107ea57806368963df01461082757806370a08231146108525761038c565b806349df728c146107075780634f9b563c1461073057806355f804b3146107595780635b92ac0d146107825761038c565b806342842e0e1161029b57806342842e0e1461066c57806342966c6814610688578063453c2310146106b157806345c0f533146106dc5761038c565b806338da2f69146105ef5780633ccfd60b146106185780633e484efb1461062f5761038c565b8063172eb1b01161032e57806323b872dd1161030857806323b872dd14610541578063293108e01461055d5780632a55205a146105885780633615ab45146105c65761038c565b8063172eb1b0146104c057806318160ddd146104eb578063229fa55d146105165761038c565b8063081812fc1161036a578063081812fc14610422578063095ea7b31461045f5780631338a83f1461047b578063163e1e61146104975761038c565b806301ffc9a71461039157806304634d8d146103ce57806306fdde03146103f7575b600080fd5b34801561039d57600080fd5b506103b860048036038101906103b39190613fef565b610df3565b6040516103c59190614037565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f091906140f4565b610e15565b005b34801561040357600080fd5b5061040c610e2b565b60405161041991906141c4565b60405180910390f35b34801561042e57600080fd5b506104496004803603810190610444919061421c565b610ebd565b6040516104569190614258565b60405180910390f35b61047960048036038101906104749190614273565b610f1b565b005b61049560048036038101906104909190614318565b610f50565b005b3480156104a357600080fd5b506104be60048036038101906104b991906143ce565b61124a565b005b3480156104cc57600080fd5b506104d561131c565b6040516104e2919061442a565b60405180910390f35b3480156104f757600080fd5b50610500611322565b60405161050d919061442a565b60405180910390f35b34801561052257600080fd5b5061052b61136f565b6040516105389190614037565b60405180910390f35b61055b60048036038101906105569190614445565b611382565b005b34801561056957600080fd5b506105726113ed565b60405161057f91906144b1565b60405180910390f35b34801561059457600080fd5b506105af60048036038101906105aa91906144cc565b6113f3565b6040516105bd92919061450c565b60405180910390f35b3480156105d257600080fd5b506105ed60048036038101906105e89190614318565b6115dd565b005b3480156105fb57600080fd5b5061061660048036038101906106119190614561565b611884565b005b34801561062457600080fd5b5061062d6118a9565b005b34801561063b57600080fd5b506106566004803603810190610651919061458e565b611960565b6040516106639190614037565b60405180910390f35b61068660048036038101906106819190614445565b6119e4565b005b34801561069457600080fd5b506106af60048036038101906106aa919061421c565b611a4f565b005b3480156106bd57600080fd5b506106c6611a5d565b6040516106d3919061442a565b60405180910390f35b3480156106e857600080fd5b506106f1611a63565b6040516106fe919061442a565b60405180910390f35b34801561071357600080fd5b5061072e6004803603810190610729919061462c565b611a69565b005b34801561073c57600080fd5b5061075760048036038101906107529190614561565b611b7c565b005b34801561076557600080fd5b50610780600480360381019061077b91906146af565b611ba1565b005b34801561078e57600080fd5b50610797611bbf565b6040516107a49190614037565b60405180910390f35b3480156107b957600080fd5b506107d460048036038101906107cf9190614752565b611bd2565b6040516107e19190614902565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c919061421c565b611c32565b60405161081e9190614258565b60405180910390f35b34801561083357600080fd5b5061083c611c44565b60405161084991906144b1565b60405180910390f35b34801561085e57600080fd5b5061087960048036038101906108749190614924565b611c4a565b604051610886919061442a565b60405180910390f35b34801561089b57600080fd5b506108a4611ce1565b005b3480156108b257600080fd5b506108cd60048036038101906108c89190614924565b611cf5565b6040516108da9190614970565b60405180910390f35b3480156108ef57600080fd5b506108f8611d19565b6040516109059190614037565b60405180910390f35b34801561091a57600080fd5b5061093560048036038101906109309190614924565b611d2c565b6040516109429190614a49565b60405180910390f35b34801561095757600080fd5b50610960611da7565b60405161096d9190614258565b60405180910390f35b34801561098257600080fd5b5061098b611dd1565b60405161099891906141c4565b60405180910390f35b3480156109ad57600080fd5b506109c860048036038101906109c39190614a6b565b611e63565b6040516109d59190614a49565b60405180910390f35b6109f860048036038101906109f3919061421c565b611e79565b005b348015610a0657600080fd5b50610a216004803603810190610a1c9190614924565b61209e565b604051610a2e9190614970565b60405180910390f35b348015610a4357600080fd5b50610a5e6004803603810190610a599190614abe565b6120c2565b005b348015610a6c57600080fd5b50610a756120f7565b604051610a82919061442a565b60405180910390f35b348015610a9757600080fd5b50610ab26004803603810190610aad919061421c565b612101565b005b348015610ac057600080fd5b50610adb6004803603810190610ad6919061458e565b612158565b604051610ae89190614037565b60405180910390f35b348015610afd57600080fd5b50610b186004803603810190610b139190614561565b6121dc565b005b610b346004803603810190610b2f9190614c2e565b612201565b005b348015610b4257600080fd5b50610b5d6004803603810190610b58919061421c565b61226e565b604051610b6a9190614d06565b60405180910390f35b348015610b7f57600080fd5b50610b9a6004803603810190610b95919061421c565b6122e3565b604051610ba791906141c4565b60405180910390f35b348015610bbc57600080fd5b50610bd76004803603810190610bd2919061421c565b612381565b005b348015610be557600080fd5b50610c006004803603810190610bfb9190614924565b612393565b604051610c0d919061442a565b60405180910390f35b348015610c2257600080fd5b50610c3d6004803603810190610c389190614d4d565b6123a5565b005b348015610c4b57600080fd5b50610c546123b7565b604051610c61919061442a565b60405180910390f35b348015610c7657600080fd5b50610c916004803603810190610c8c919061421c565b6123c1565b005b348015610c9f57600080fd5b50610cba6004803603810190610cb59190614d7a565b6123d3565b604051610cc79190614037565b60405180910390f35b348015610cdc57600080fd5b50610cf76004803603810190610cf29190614561565b612467565b005b348015610d0557600080fd5b50610d206004803603810190610d1b919061421c565b61248c565b005b348015610d2e57600080fd5b50610d496004803603810190610d449190614924565b6124fa565b005b348015610d5757600080fd5b50610d726004803603810190610d6d919061421c565b61257d565b005b348015610d8057600080fd5b50610d9b6004803603810190610d969190614d4d565b61258f565b005b348015610da957600080fd5b50610db26125a1565b604051610dbf919061442a565b60405180910390f35b348015610dd457600080fd5b50610ddd6125a7565b604051610dea9190614037565b60405180910390f35b6000610dfe826125ba565b80610e0e5750610e0d8261264c565b5b9050919050565b610e1d6126c6565b610e278282612744565b5050565b606060028054610e3a90614de9565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6690614de9565b8015610eb35780601f10610e8857610100808354040283529160200191610eb3565b820191906000526020600020905b815481529060010190602001808311610e9657829003601f168201915b5050505050905090565b6000610ec8826128d9565b610edd57610edc63cf4700e460e01b612985565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610f258161298f565b610f4157610f316129db565b15610f4057610f3f816129f2565b5b5b610f4b8383612a36565b505050565b610f58612a46565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd90614e66565b60405180910390fd5b601460019054906101000a900460ff16611015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100c90614ed2565b60405180910390fd5b80600d5481611022611322565b61102c9190614f21565b111561106d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106490614fa1565b60405180910390fd5b8160008061108261107d33612a95565b612ae2565b91509150601154838263ffffffff1661109b9190614f21565b11156110dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d390615033565b60405180910390fd5b601554853481836110ed9190615053565b1461112d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611124906150e1565b60405180910390fd5b88886013546111a4838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016111899190615149565b60405160208183030381529060405280519060200120612afe565b6111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da906151d6565b60405180910390fd5b6000806111f76111f233612a95565b612ae2565b63ffffffff16915063ffffffff1691508b816112139190614f21565b9050611228336112238484612b15565b612b3c565b611232338d612bf2565b5050505050505050505050611245612c10565b505050565b611252612a46565b61125a6126c6565b81819050600d548161126a611322565b6112749190614f21565b11156112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ac90614fa1565b60405180910390fd5b600083839050905060005b8181101561130d576112fa8585838181106112de576112dd6151f6565b5b90506020020160208101906112f39190614924565b6001612bf2565b808061130590615225565b9150506112c0565b505050611318612c10565b5050565b60105481565b600061132c612c1a565b600154600054030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61135f612c1f565b1461136c57600854810190505b90565b601460019054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113dc576113bf3361298f565b6113db576113cb6129db565b156113da576113d9336129f2565b5b5b5b6113e7848484612c47565b50505050565b60135481565b6000806000600c60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361158857600b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000611592612f08565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866115be9190615053565b6115c8919061529c565b90508160000151819350935050509250929050565b6115e5612a46565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a90614e66565b60405180910390fd5b601460009054906101000a900460ff166116a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169990615319565b60405180910390fd5b8282601254611719838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016116fe9190615149565b60405160208183030381529060405280519060200120612afe565b611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f906151d6565b60405180910390fd5b8360008061176d61176833612a95565b612ae2565b91509150601054838363ffffffff166117869190614f21565b11156117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be906153ab565b60405180910390fd5b86600d54816117d4611322565b6117de9190614f21565b111561181f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181690614fa1565b60405180910390fd5b60008061183361182e33612a95565b612ae2565b63ffffffff16915063ffffffff169150898261184f9190614f21565b91506118643361185f8484612b15565b612b3c565b61186e338b612bf2565b50505050505050505061187f612c10565b505050565b61188c6126c6565b80601460016101000a81548160ff02191690831515021790555050565b6118b16126c6565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516118d7906153fc565b60006040518083038185875af1925050503d8060008114611914576040519150601f19603f3d011682016040523d82523d6000602084013e611919565b606091505b505090508061195d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119549061545d565b60405180910390fd5b50565b6000806119d7858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601354856040516020016119bc9190615149565b60405160208183030381529060405280519060200120612afe565b9050809150509392505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a3e57611a213361298f565b611a3d57611a2d6129db565b15611a3c57611a3b336129f2565b5b5b5b611a49848484612f12565b50505050565b611a5a816001612f32565b50565b600e5481565b600d5481565b611a716126c6565b611a79612a46565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611acf9190614258565b602060405180830381865afa158015611aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b109190615492565b6040518363ffffffff1660e01b8152600401611b2d92919061450c565b6020604051808303816000875af1158015611b4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7091906154d4565b50611b79612c10565b50565b611b846126c6565b80601460006101000a81548160ff02191690831515021790555050565b611ba96126c6565b818160189182611bba9291906156b8565b505050565b601460029054906101000a900460ff1681565b606080600084849050905060405191508082528060051b90508060208301016040525b60008114611c275760006020820391508186013590506000611c168261226e565b905080836020860101525050611bf5565b819250505092915050565b6000611c3d82613163565b9050919050565b60125481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c9057611c8f638f4eb60460e01b612985565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611ce96126c6565b611cf3600061327c565b565b6000806000611d0b611d0685612a95565b612ae2565b915091508092505050919050565b601460009054906101000a900460ff1681565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611d57612c1f565b14611d6d57611d6c63bdba09d760e01b612985565b5b6000611d77612c1a565b90506000611d83613342565b90506060818314611d9c57611d9985848461334b565b90505b809350505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611de090614de9565b80601f0160208091040260200160405190810160405280929190818152602001828054611e0c90614de9565b8015611e595780601f10611e2e57610100808354040283529160200191611e59565b820191906000526020600020905b815481529060010190602001808311611e3c57829003601f168201915b5050505050905090565b6060611e7084848461334b565b90509392505050565b611e81612a46565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611eef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee690614e66565b60405180910390fd5b601460029054906101000a900460ff16611f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f35906157d4565b60405180910390fd5b80600e5481611f4c33613507565b611f569190614f21565b1115611f97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8e90615866565b60405180910390fd5b60165482348183611fa89190615053565b14611fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdf906150e1565b60405180910390fd5b83600d5481611ff5611322565b611fff9190614f21565b1115612040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203790614fa1565b60405180910390fd5b8460008103612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b906158d2565b60405180910390fd5b61208e3387612bf2565b505050505061209b612c10565b50565b60008060006120b46120af85612a95565b612ae2565b915091508192505050919050565b816120cc8161298f565b6120e8576120d86129db565b156120e7576120e6816129f2565b5b5b6120f2838361355e565b505050565b6000601654905090565b6121096126c6565b600d5481111561214e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121459061593e565b60405180910390fd5b80600d8190555050565b6000806121cf858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601254856040516020016121b49190615149565b60405160208183030381529060405280519060200120612afe565b9050809150509392505050565b6121e46126c6565b80600f60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461225b5761223e3361298f565b61225a5761224a6129db565b1561225957612258336129f2565b5b5b5b61226785858585613669565b5050505050565b612276613f34565b61227e612c1a565b82106122dd5761228c612c1f565b8211156122a35761229c826136bb565b90506122de565b6122ab613342565b8210156122dc575b6122bc826136e6565b6122cc57816001900391506122b3565b6122d5826136bb565b90506122de565b5b5b919050565b60606122ee826128d9565b612324576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061232e613706565b9050600081510361234e5760405180602001604052806000815250612379565b8061235884613798565b6040516020016123699291906159e6565b6040516020818303038152906040525b915050919050565b6123896126c6565b8060158190555050565b600061239e82613507565b9050919050565b6123ad6126c6565b8060128190555050565b6000601554905090565b6123c96126c6565b80600e8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61246f6126c6565b80601460026101000a81548160ff02191690831515021790555050565b6124946126c6565b80600d54816124a1611322565b6124ab9190614f21565b11156124ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e390614fa1565b60405180910390fd5b6124f63383612bf2565b5050565b6125026126c6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256890615a87565b60405180910390fd5b61257a8161327c565b50565b6125856126c6565b8060168190555050565b6125976126c6565b8060138190555050565b60115481565b600f60009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061261557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126455750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126bf57506126be826137e8565b5b9050919050565b6126ce613852565b73ffffffffffffffffffffffffffffffffffffffff166126ec611da7565b73ffffffffffffffffffffffffffffffffffffffff1614612742576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273990615af3565b60405180910390fd5b565b61274c612f08565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156127aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a190615b85565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612819576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281090615bf1565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816128e4612c1a565b1161297f576128f1612c1f565b82111561291b57612914600460008481526020019081526020016000205461385a565b9050612980565b60005482101561297e5760005b6000600460008581526020019081526020016000205491508103612957578261295090615c11565b9250612928565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b8060005260046000fd5b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600f60009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa612a2e573d6000803e3d6000fd5b6000603a5250565b612a428282600161389b565b5050565b600260095403612a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8290615c86565b60405180910390fd5b6002600981905550565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b60008060208367ffffffffffffffff16901c8391509150915091565b600082612b0b85846139ca565b1490509392505050565b60008163ffffffff1660208463ffffffff1667ffffffffffffffff16901b17905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b612c0c828260405180602001604052806000815250613a20565b5050565b6001600981905550565b600090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b6000612c5282613163565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612cc757612cc663a114810060e01b612985565b5b600080612cd384613a9c565b91509150612ce98187612ce4613ac3565b613acb565b612d1457612cfe86612cf9613ac3565b6123d3565b612d1357612d126359c896be60e01b612985565b5b5b612d218686866001613b0f565b8015612d2c57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612dfa85612dd6888887613b15565b7c020000000000000000000000000000000000000000000000000000000017613b3d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612e805760006001850190506000600460008381526020019081526020016000205403612e7e576000548114612e7d578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460008103612ef257612ef163ea553b3460e01b612985565b5b612eff8787876001613b68565b50505050505050565b6000612710905090565b612f2d83838360405180602001604052806000815250612201565b505050565b6000612f3d83613163565b90506000819050600080612f5086613a9c565b915091508415612f9857612f6c8184612f67613ac3565b613acb565b612f9757612f8183612f7c613ac3565b6123d3565b612f9657612f956359c896be60e01b612985565b5b5b5b612fa6836000886001613b0f565b8015612fb157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130598361301685600088613b15565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613b3d565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036130df57600060018701905060006004600083815260200190815260200160002054036130dd5760005481146130dc578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613149836000886001613b68565b600160008154809291906001019190505550505050505050565b60008161316e612c1a565b116132665760046000838152602001908152602001600020549050613191612c1f565b8211156131b6576131a18161385a565b613277576131b563df2d9b4260e01b612985565b5b6000810361323d5760005482106131d8576131d763df2d9b4260e01b612985565b5b5b600460008360019003935083815260200190815260200160002054905060008103156132385760007c0100000000000000000000000000000000000000000000000000000000821603156132775761323763df2d9b4260e01b612985565b5b6131d9565b60007c010000000000000000000000000000000000000000000000000000000082160315613277575b61327663df2d9b4260e01b612985565b5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b6060818310613365576133646332c1995a60e01b612985565b5b61336d612c1a565b83101561337f5761337c612c1a565b92505b6000613389613342565b905060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6133b6612c1f565b036133c157816133c3565b835b90508084106133d0578093505b60006133db87611c4a565b90508486106133e957600090505b600081146134fd5780868603116134005785850390505b600060405194506001820160051b850190508060405260006134218861226e565b90506000816040015161343657816000015190505b60005b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff613462612c1f565b1461349157868a0361347c576001613478612c1f565b0199505b613484612c1f565b8a111561349057600091505b5b61349a8a6136bb565b92506040830151600081146134b257600092506134d8565b8351156134be57835192505b8b831860601b6134d7576001820191508a8260051b8a01525b5b5060018a01995083604052888a14806134f057508481145b1561343957808852505050505b5050509392505050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b806007600061356b613ac3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16613618613ac3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161365d9190614037565b60405180910390a35050565b613674848484611382565b60008373ffffffffffffffffffffffffffffffffffffffff163b146136b55761369f84848484613b6e565b6136b4576136b363d1a57ed660e01b612985565b5b5b50505050565b6136c3613f34565b6136df6004600084815260200190815260200160002054613c9d565b9050919050565b600080600460008481526020019081526020016000205414159050919050565b60606018805461371590614de9565b80601f016020809104026020016040519081016040528092919081815260200182805461374190614de9565b801561378e5780601f106137635761010080835404028352916020019161378e565b820191906000526020600020905b81548152906001019060200180831161377157829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156137d357600184039350600a81066030018453600a81049050806137b1575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60007c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b60006138a683611c32565b90508180156138e857508073ffffffffffffffffffffffffffffffffffffffff166138cf613ac3565b73ffffffffffffffffffffffffffffffffffffffff1614155b15613914576138fe816138f9613ac3565b6123d3565b6139135761391263cfb3b94260e01b612985565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b60008082905060005b8451811015613a1557613a00828683815181106139f3576139f26151f6565b5b6020026020010151613d53565b91508080613a0d90615225565b9150506139d3565b508091505092915050565b613a2a8383613d7e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613a9757600080549050600083820390505b613a6a6000868380600101945086613b6e565b613a7f57613a7e63d1a57ed660e01b612985565b5b818110613a57578160005414613a9457600080fd5b50505b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613b2c868684613f04565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613b94613ac3565b8786866040518563ffffffff1660e01b8152600401613bb69493929190615cfb565b6020604051808303816000875af1925050508015613bf257506040513d601f19601f82011682018060405250810190613bef9190615d5c565b60015b613c4a573d8060008114613c22576040519150601f19603f3d011682016040523d82523d6000602084013e613c27565b606091505b506000815103613c4257613c4163d1a57ed660e01b612985565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b613ca5613f34565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6000818310613d6b57613d668284613f0d565b613d76565b613d758383613f0d565b5b905092915050565b60008054905060008203613d9d57613d9c63b562e8dd60e01b612985565b5b613daa6000848385613b0f565b613dca83613dbb6000866000613b15565b613dc485613f24565b17613b3d565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103613e8257613e81632e07630060e01b612985565b5b600083830190506000839050613e96612c1f565b600183031115613eb157613eb06381647e3a60e01b612985565b5b5b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103613eb25781600081905550505050613eff6000848385613b68565b505050565b60009392505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613fcc81613f97565b8114613fd757600080fd5b50565b600081359050613fe981613fc3565b92915050565b60006020828403121561400557614004613f8d565b5b600061401384828501613fda565b91505092915050565b60008115159050919050565b6140318161401c565b82525050565b600060208201905061404c6000830184614028565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061407d82614052565b9050919050565b61408d81614072565b811461409857600080fd5b50565b6000813590506140aa81614084565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6140d1816140b0565b81146140dc57600080fd5b50565b6000813590506140ee816140c8565b92915050565b6000806040838503121561410b5761410a613f8d565b5b60006141198582860161409b565b925050602061412a858286016140df565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561416e578082015181840152602081019050614153565b60008484015250505050565b6000601f19601f8301169050919050565b600061419682614134565b6141a0818561413f565b93506141b0818560208601614150565b6141b98161417a565b840191505092915050565b600060208201905081810360008301526141de818461418b565b905092915050565b6000819050919050565b6141f9816141e6565b811461420457600080fd5b50565b600081359050614216816141f0565b92915050565b60006020828403121561423257614231613f8d565b5b600061424084828501614207565b91505092915050565b61425281614072565b82525050565b600060208201905061426d6000830184614249565b92915050565b6000806040838503121561428a57614289613f8d565b5b60006142988582860161409b565b92505060206142a985828601614207565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126142d8576142d76142b3565b5b8235905067ffffffffffffffff8111156142f5576142f46142b8565b5b602083019150836020820283011115614311576143106142bd565b5b9250929050565b60008060006040848603121561433157614330613f8d565b5b600084013567ffffffffffffffff81111561434f5761434e613f92565b5b61435b868287016142c2565b9350935050602061436e86828701614207565b9150509250925092565b60008083601f84011261438e5761438d6142b3565b5b8235905067ffffffffffffffff8111156143ab576143aa6142b8565b5b6020830191508360208202830111156143c7576143c66142bd565b5b9250929050565b600080602083850312156143e5576143e4613f8d565b5b600083013567ffffffffffffffff81111561440357614402613f92565b5b61440f85828601614378565b92509250509250929050565b614424816141e6565b82525050565b600060208201905061443f600083018461441b565b92915050565b60008060006060848603121561445e5761445d613f8d565b5b600061446c8682870161409b565b935050602061447d8682870161409b565b925050604061448e86828701614207565b9150509250925092565b6000819050919050565b6144ab81614498565b82525050565b60006020820190506144c660008301846144a2565b92915050565b600080604083850312156144e3576144e2613f8d565b5b60006144f185828601614207565b925050602061450285828601614207565b9150509250929050565b60006040820190506145216000830185614249565b61452e602083018461441b565b9392505050565b61453e8161401c565b811461454957600080fd5b50565b60008135905061455b81614535565b92915050565b60006020828403121561457757614576613f8d565b5b60006145858482850161454c565b91505092915050565b6000806000604084860312156145a7576145a6613f8d565b5b600084013567ffffffffffffffff8111156145c5576145c4613f92565b5b6145d1868287016142c2565b935093505060206145e48682870161409b565b9150509250925092565b60006145f982614072565b9050919050565b614609816145ee565b811461461457600080fd5b50565b60008135905061462681614600565b92915050565b60006020828403121561464257614641613f8d565b5b600061465084828501614617565b91505092915050565b60008083601f84011261466f5761466e6142b3565b5b8235905067ffffffffffffffff81111561468c5761468b6142b8565b5b6020830191508360018202830111156146a8576146a76142bd565b5b9250929050565b600080602083850312156146c6576146c5613f8d565b5b600083013567ffffffffffffffff8111156146e4576146e3613f92565b5b6146f085828601614659565b92509250509250929050565b60008083601f840112614712576147116142b3565b5b8235905067ffffffffffffffff81111561472f5761472e6142b8565b5b60208301915083602082028301111561474b5761474a6142bd565b5b9250929050565b6000806020838503121561476957614768613f8d565b5b600083013567ffffffffffffffff81111561478757614786613f92565b5b614793858286016146fc565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6147d481614072565b82525050565b600067ffffffffffffffff82169050919050565b6147f7816147da565b82525050565b6148068161401c565b82525050565b600062ffffff82169050919050565b6148248161480c565b82525050565b60808201600082015161484060008501826147cb565b50602082015161485360208501826147ee565b50604082015161486660408501826147fd565b506060820151614879606085018261481b565b50505050565b600061488b838361482a565b60808301905092915050565b6000602082019050919050565b60006148af8261479f565b6148b981856147aa565b93506148c4836147bb565b8060005b838110156148f55781516148dc888261487f565b97506148e783614897565b9250506001810190506148c8565b5085935050505092915050565b6000602082019050818103600083015261491c81846148a4565b905092915050565b60006020828403121561493a57614939613f8d565b5b60006149488482850161409b565b91505092915050565b600063ffffffff82169050919050565b61496a81614951565b82525050565b60006020820190506149856000830184614961565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149c0816141e6565b82525050565b60006149d283836149b7565b60208301905092915050565b6000602082019050919050565b60006149f68261498b565b614a008185614996565b9350614a0b836149a7565b8060005b83811015614a3c578151614a2388826149c6565b9750614a2e836149de565b925050600181019050614a0f565b5085935050505092915050565b60006020820190508181036000830152614a6381846149eb565b905092915050565b600080600060608486031215614a8457614a83613f8d565b5b6000614a928682870161409b565b9350506020614aa386828701614207565b9250506040614ab486828701614207565b9150509250925092565b60008060408385031215614ad557614ad4613f8d565b5b6000614ae38582860161409b565b9250506020614af48582860161454c565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614b3b8261417a565b810181811067ffffffffffffffff82111715614b5a57614b59614b03565b5b80604052505050565b6000614b6d613f83565b9050614b798282614b32565b919050565b600067ffffffffffffffff821115614b9957614b98614b03565b5b614ba28261417a565b9050602081019050919050565b82818337600083830152505050565b6000614bd1614bcc84614b7e565b614b63565b905082815260208101848484011115614bed57614bec614afe565b5b614bf8848285614baf565b509392505050565b600082601f830112614c1557614c146142b3565b5b8135614c25848260208601614bbe565b91505092915050565b60008060008060808587031215614c4857614c47613f8d565b5b6000614c568782880161409b565b9450506020614c678782880161409b565b9350506040614c7887828801614207565b925050606085013567ffffffffffffffff811115614c9957614c98613f92565b5b614ca587828801614c00565b91505092959194509250565b608082016000820151614cc760008501826147cb565b506020820151614cda60208501826147ee565b506040820151614ced60408501826147fd565b506060820151614d00606085018261481b565b50505050565b6000608082019050614d1b6000830184614cb1565b92915050565b614d2a81614498565b8114614d3557600080fd5b50565b600081359050614d4781614d21565b92915050565b600060208284031215614d6357614d62613f8d565b5b6000614d7184828501614d38565b91505092915050565b60008060408385031215614d9157614d90613f8d565b5b6000614d9f8582860161409b565b9250506020614db08582860161409b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e0157607f821691505b602082108103614e1457614e13614dba565b5b50919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b6000614e50601f8361413f565b9150614e5b82614e1a565b602082019050919050565b60006020820190508181036000830152614e7f81614e43565b9050919050565b7f416c6c6f776c697374206d696e74206973206e6f74206f70656e2e0000000000600082015250565b6000614ebc601b8361413f565b9150614ec782614e86565b602082019050919050565b60006020820190508181036000830152614eeb81614eaf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f2c826141e6565b9150614f37836141e6565b9250828201905080821115614f4f57614f4e614ef2565b5b92915050565b7f546865726520617265206e6f20746f6b656e73206c6566742e00000000000000600082015250565b6000614f8b60198361413f565b9150614f9682614f55565b602082019050919050565b60006020820190508181036000830152614fba81614f7e565b9050919050565b7f43616e6e6f7420636c61696d206d6f7265207468616e20313020616c6c6f776c60008201527f697374206d696e742e0000000000000000000000000000000000000000000000602082015250565b600061501d60298361413f565b915061502882614fc1565b604082019050919050565b6000602082019050818103600083015261504c81615010565b9050919050565b600061505e826141e6565b9150615069836141e6565b9250828202615077816141e6565b9150828204841483151761508e5761508d614ef2565b5b5092915050565b7f496e636f727265637420616d6f756e74206f66204554482073656e742e000000600082015250565b60006150cb601d8361413f565b91506150d682615095565b602082019050919050565b600060208201905081810360008301526150fa816150be565b9050919050565b60008160601b9050919050565b600061511982615101565b9050919050565b600061512b8261510e565b9050919050565b61514361513e82614072565b615120565b82525050565b60006151558284615132565b60148201915081905092915050565b7f4164647265737320646f6573206e6f7420657869737420696e20616c6c6f776c60008201527f6973742e00000000000000000000000000000000000000000000000000000000602082015250565b60006151c060248361413f565b91506151cb82615164565b604082019050919050565b600060208201905081810360008301526151ef816151b3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000615230826141e6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361526257615261614ef2565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006152a7826141e6565b91506152b2836141e6565b9250826152c2576152c161526d565b5b828204905092915050565b7f46726565206d696e74206973206e6f74206f70656e2e00000000000000000000600082015250565b600061530360168361413f565b915061530e826152cd565b602082019050919050565b60006020820190508181036000830152615332816152f6565b9050919050565b7f546869732077616c6c65742063616e6e6f7420636c61696d206d6f726520746860008201527f616e20322066726565206d696e74732e00000000000000000000000000000000602082015250565b600061539560308361413f565b91506153a082615339565b604082019050919050565b600060208201905081810360008301526153c481615388565b9050919050565b600081905092915050565b50565b60006153e66000836153cb565b91506153f1826153d6565b600082019050919050565b6000615407826153d9565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b600061544760108361413f565b915061545282615411565b602082019050919050565b600060208201905081810360008301526154768161543a565b9050919050565b60008151905061548c816141f0565b92915050565b6000602082840312156154a8576154a7613f8d565b5b60006154b68482850161547d565b91505092915050565b6000815190506154ce81614535565b92915050565b6000602082840312156154ea576154e9613f8d565b5b60006154f8848285016154bf565b91505092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261556e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615531565b6155788683615531565b95508019841693508086168417925050509392505050565b6000819050919050565b60006155b56155b06155ab846141e6565b615590565b6141e6565b9050919050565b6000819050919050565b6155cf8361559a565b6155e36155db826155bc565b84845461553e565b825550505050565b600090565b6155f86155eb565b6156038184846155c6565b505050565b5b818110156156275761561c6000826155f0565b600181019050615609565b5050565b601f82111561566c5761563d8161550c565b61564684615521565b81016020851015615655578190505b61566961566185615521565b830182615608565b50505b505050565b600082821c905092915050565b600061568f60001984600802615671565b1980831691505092915050565b60006156a8838361567e565b9150826002028217905092915050565b6156c28383615501565b67ffffffffffffffff8111156156db576156da614b03565b5b6156e58254614de9565b6156f082828561562b565b6000601f83116001811461571f576000841561570d578287013590505b615717858261569c565b86555061577f565b601f19841661572d8661550c565b60005b8281101561575557848901358255600182019150602085019450602081019050615730565b86831015615772578489013561576e601f89168261567e565b8355505b6001600288020188555050505b50505050505050565b7f4d696e74206973206e6f74206f70656e2e000000000000000000000000000000600082015250565b60006157be60118361413f565b91506157c982615788565b602082019050919050565b600060208201905081810360008301526157ed816157b1565b9050919050565b7f546865206d6178696d756d206e756d626572206f66206d696e74656420746f6b60008201527f656e73207065722077616c6c65742069732032302e0000000000000000000000602082015250565b600061585060358361413f565b915061585b826157f4565b604082019050919050565b6000602082019050818103600083015261587f81615843565b9050919050565b7f596f752063616e6e6f6e74206d696e74203020746f6b656e732e000000000000600082015250565b60006158bc601a8361413f565b91506158c782615886565b602082019050919050565b600060208201905081810360008301526158eb816158af565b9050919050565b7f43616e6e6f7420696e63726561736520636f6c6c656374696f6e2073697a652e600082015250565b600061592860208361413f565b9150615933826158f2565b602082019050919050565b600060208201905081810360008301526159578161591b565b9050919050565b600081905092915050565b600061597482614134565b61597e818561595e565b935061598e818560208601614150565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006159d060058361595e565b91506159db8261599a565b600582019050919050565b60006159f28285615969565b91506159fe8284615969565b9150615a09826159c3565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615a7160268361413f565b9150615a7c82615a15565b604082019050919050565b60006020820190508181036000830152615aa081615a64565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615add60208361413f565b9150615ae882615aa7565b602082019050919050565b60006020820190508181036000830152615b0c81615ad0565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615b6f602a8361413f565b9150615b7a82615b13565b604082019050919050565b60006020820190508181036000830152615b9e81615b62565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615bdb60198361413f565b9150615be682615ba5565b602082019050919050565b60006020820190508181036000830152615c0a81615bce565b9050919050565b6000615c1c826141e6565b915060008203615c2f57615c2e614ef2565b5b600182039050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615c70601f8361413f565b9150615c7b82615c3a565b602082019050919050565b60006020820190508181036000830152615c9f81615c63565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615ccd82615ca6565b615cd78185615cb1565b9350615ce7818560208601614150565b615cf08161417a565b840191505092915050565b6000608082019050615d106000830187614249565b615d1d6020830186614249565b615d2a604083018561441b565b8181036060830152615d3c8184615cc2565b905095945050505050565b600081519050615d5681613fc3565b92915050565b600060208284031215615d7257615d71613f8d565b5b6000615d8084828501615d47565b9150509291505056fea26469706673582212208ad695399b1c041e1516a80fa5613ac5a7bebb88de7fad1e21dbf2edf4e74d6064736f6c63430008140033

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

00000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000014

-----Decoded View---------------
Arg [0] : collectionSize_ (uint256): 4096
Arg [1] : maxPerWallet_ (uint256): 20

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000014


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

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