ETH Price: $3,527.54 (+6.98%)

Token

FelineSoulmate (FS)
 

Overview

Max Total Supply

124 FS

Holders

128

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 FS
0x34769304b4b65369c98e0676527f215b3d8e72de
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:
FelineSoulmate

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 2 : FelineSoulmate.sol
// SPDX-License-Identifier: MIT



import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// FILE 2: 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File 3: Strings.sol

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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


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


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File 4: Ownable.sol


pragma solidity ^0.8.0;


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}





// File 5: 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 6: IERC721.sol

pragma solidity ^0.8.0;


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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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) external;

    /**
     * @dev Transfers `tokenId` token 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;

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

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

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

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



// File 7: IERC721Metadata.sol


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

pragma solidity ^0.8.0;


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

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

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




// File 8: ERC165.sol

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

pragma solidity ^0.8.0;


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


// File 9: ERC721.sol

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

pragma solidity ^0.8.0;


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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );
        if (to.isContract()) {
            revert ("Token transfer to contract address is not allowed.");
        } else {
            _approve(to, tokenId);
        }
        // _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}





// File 10: IERC721Enumerable.sol

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}






// File 11: ERC721Enumerable.sol

pragma solidity ^0.8.0;


/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}



// File 12: IERC721Receiver.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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



// File 13: ERC721A.sol

pragma solidity ^0.8.0;


error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable, Ownable {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex = 1;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    //Allow all tokens to transfer to contract
    bool public allowedToContract = false;

    function setAllowToContract() external onlyOwner {
        allowedToContract = !allowedToContract;
    }

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    // Mapping token to allow to transfer to contract
    mapping(uint256 => bool) public _transferToContract;


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

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




    function setAllowTokenToContract(uint256 _tokenId, bool _allow) external onlyOwner {
        _transferToContract[_tokenId] = _allow;
    }

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

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

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

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant: 
                    // There will always be an ownership that has an address and is not burned 
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }
        if(!allowedToContract && !_transferToContract[tokenId]){
            if (to.isContract()) {
                revert ("Token transfer to contract address is not allowed.");
            } else {
                _approve(to, tokenId, owner);
            }
        } else {
            _approve(to, tokenId, owner);
        }
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();
        
        if(!allowedToContract){
            if (operator.isContract()) {
                revert ("Token transfer to contract address is not allowed.");
            } else {
                _operatorApprovals[_msgSender()][operator] = approved;
                emit ApprovalForAll(_msgSender(), operator, approved);
            }
        } else {
            _operatorApprovals[_msgSender()][operator] = approved;
            emit ApprovalForAll(_msgSender(), operator, approved);
        }
    }

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        require(tokenId > 0, "Invalid TokenId");
        return tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @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.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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 {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if(!allowedToContract && !_transferToContract[tokenId]){
            if (to.isContract()) {
                revert ("Token transfer to contract address is not allowed.");
            } else {
                return true;
            }
        } else {
            return true;
        }
    }

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

// FILE 14: T12.sol

pragma solidity ^0.8.0;

contract FelineSoulmate is ERC721A {
  using Strings for uint256;
  using Counters for Counters.Counter;

    Counters.Counter private supply;

    string private uriPrefix = "";
    string public uriSuffix = ".json";
    string private hiddenMetadataUri;

    constructor() ERC721A("FelineSoulmate", "FS") {
        withdrawWallet = payable(msg.sender);
        
        setHiddenMetadataUri("ipfs://__CID__/hidden.json");
    }

    uint256 public maxSupply = 5555;
    uint256 private mintCount = 0;
    uint256 public maxMintPerTx = 5;
    uint256 public maxMintPerWallet = 5;   
    uint256 public price = 0.1 ether;

    mapping (address => uint256) public addressMintedBalance;

    address payable public withdrawWallet;
    bool public isRevealed = true;
    bool public isPrivateMintEnabled = true;
    bool public isPublicMintEnabled = false;
    bytes32 public privateMintMerkleRoot;
    mapping(address => bool) public privateMintParticipants;

    event Minted(uint256 totalMinted);

    function totalSupply() public view override returns (uint256) {
        return mintCount;
    }

    function getTokenUrl() public view returns (string memory) {
        if (isRevealed == false) {
            return hiddenMetadataUri;
        } else {
            return _baseURI();
        }
    }

    function changeMaxSupply(uint256 _newMaxSupply) external onlyOwner {
        maxSupply = _newMaxSupply;
    }

    function changeMaxMintPerTx(uint256 _newMaxMintPerTx) external onlyOwner {
        maxMintPerTx = _newMaxMintPerTx;
    }

    function changeMaxMintPerWallet(uint256 _newMaxMintPerWallet) external onlyOwner {
        maxMintPerWallet = _newMaxMintPerWallet;
    }

    function changePrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

    function setWithdrawWallet(address withdrawWalletAddress_) external onlyOwner {
        withdrawWallet = payable(withdrawWalletAddress_);
    }

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

    function teamMint(address[] memory tos) external onlyOwner {
        for (uint256 i = 0; i < tos.length; i++) {
            _safeMint(tos[i], 1);
        }
    }
    
    function privateMint(bytes32[] calldata _merkleProof, uint256 _count) external payable {
        require(!isPublicMintEnabled, "Public mint not enabled!");
        require(tx.origin == msg.sender, 'Contract Denied.'); // https://ethereum.stackexchange.com/questions/113962/what-does-msg-sender-tx-origin-actually-do-why
        require(totalSupply() + _count <= maxSupply, "Exceeds maximum supply");
        require(_count > 0, "Minimum 1 NFT has to be minted per transaction");
        require(!privateMintParticipants[msg.sender], 'Mint already claimed!');

        if (msg.sender != owner()) {
            require(
                _count <= maxMintPerTx,
                "Maximum NFTs can be minted per transaction"
            );
            require(
                msg.value >= price * _count,
                "Ether sent with this transaction is not correct"
            );

            uint256 ownerMintedCount = addressMintedBalance[msg.sender];
            require (ownerMintedCount + _count <= maxMintPerWallet, "max per address exceeded!");
        }

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, privateMintMerkleRoot, leaf), 'Proof Invalid');

        mintCount += _count;
        addressMintedBalance[msg.sender]+= _count;      
        _safeMint(msg.sender, _count);
        privateMintParticipants[msg.sender] = true;
        emit Minted(_count);
    }

    function mint(uint256 _count) external payable {
        require(isPublicMintEnabled, "Public mint not enabled!");
        require(tx.origin == msg.sender, 'Contract Denied.'); // https://ethereum.stackexchange.com/questions/113962/what-does-msg-sender-tx-origin-actually-do-why
        require(totalSupply() + _count <= maxSupply, "Exceeds maximum supply");
        require(_count > 0, "Minimum 1 NFT has to be minted per transaction");

        if (msg.sender != owner()) {
            require(
                _count <= maxMintPerTx,
                "Maximum NFTs can be minted per transaction"
            );
            require(
                msg.value >= price * _count,
                "Ether sent with this transaction is not correct"
            );

            uint256 ownerMintedCount = addressMintedBalance[msg.sender];
            require (ownerMintedCount + _count <= maxMintPerWallet, "max per address exceeded!");
        }

        mintCount += _count;
        addressMintedBalance[msg.sender]+= _count;      
        _safeMint(msg.sender, _count);
        emit Minted(_count);       
    }

    function walletOfOwner(address _owner)
        public
        view
        returns (uint256[] memory)
    {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 currentTokenId = 1;
        uint256 ownedTokenIndex = 0;

        while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) {
        address currentTokenOwner = ownerOf(currentTokenId);

        if (currentTokenOwner == _owner) {
            ownedTokenIds[ownedTokenIndex] = currentTokenId;

            ownedTokenIndex++;
        }

        currentTokenId++;
        }

        return ownedTokenIds;
    }
    
    function tokenURI(uint256 _tokenId)
        public
        /*view*/
        virtual
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");

        if (isRevealed == false) {
            return hiddenMetadataUri;
        }

        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0
            ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix))
            : "";
    }

    function setIsRevealed(bool _state) public onlyOwner {
        isRevealed = _state;
    }

    function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner {
        hiddenMetadataUri = _hiddenMetadataUri;
    }  

    function setUriPrefix(string memory _uriPrefix) public onlyOwner {
        uriPrefix = _uriPrefix;
    }  

    function setUriSuffix(string memory _uriSuffix) public onlyOwner {
        uriSuffix = _uriSuffix;
    }

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

    function setPrivateMintMerkleRoot(bytes32 _privateMintMerkleRoot) external onlyOwner {
        privateMintMerkleRoot = _privateMintMerkleRoot;
    }

    function setIsPrivateMintEnabled(bool isPrivateMintEnabled_) external onlyOwner {
        isPrivateMintEnabled = isPrivateMintEnabled_;
    }

    function setIsPublicMintEnabled(bool isPublicMintEnabled_) external onlyOwner {
        isPublicMintEnabled = isPublicMintEnabled_;
    }
}

File 2 of 2 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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.
 */
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 proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _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}
     *
     * _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 the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":false,"internalType":"uint256","name":"totalMinted","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_transferToContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowedToContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintPerTx","type":"uint256"}],"name":"changeMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintPerWallet","type":"uint256"}],"name":"changeMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"changeMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"isPrivateMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateMintMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateMintParticipants","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setAllowToContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowTokenToContract","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":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPrivateMintEnabled_","type":"bool"}],"name":"setIsPrivateMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPublicMintEnabled_","type":"bool"}],"name":"setIsPublicMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_privateMintMerkleRoot","type":"bytes32"}],"name":"setPrivateMintMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawWalletAddress_","type":"address"}],"name":"setWithdrawWallet","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":"address[]","name":"tos","type":"address[]"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052600180556000600560006101000a81548160ff02191690831515021790555060405180602001604052806000815250600e90805190602001906200004a929190620003d2565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600f908051906020019062000098929190620003d2565b506115b360115560006012556005601355600560145567016345785d8a00006015556001601760146101000a81548160ff0219169083151502179055506001601760156101000a81548160ff0219169083151502179055506000601760166101000a81548160ff0219169083151502179055503480156200011857600080fd5b506040518060400160405280600e81526020017f46656c696e65536f756c6d6174650000000000000000000000000000000000008152506040518060400160405280600281526020017f4653000000000000000000000000000000000000000000000000000000000000815250600062000197620002f660201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600390805190602001906200024d929190620003d2565b50806004908051906020019062000266929190620003d2565b50505033601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002f06040518060400160405280601a81526020017f697066733a2f2f5f5f4349445f5f2f68696464656e2e6a736f6e000000000000815250620002fe60201b60201c565b6200056a565b600033905090565b6200030e620002f660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000334620003a960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200038d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038490620004a9565b60405180910390fd5b8060109080519060200190620003a5929190620003d2565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003e090620004dc565b90600052602060002090601f01602090048101928262000404576000855562000450565b82601f106200041f57805160ff191683800117855562000450565b8280016001018555821562000450579182015b828111156200044f57825182559160200191906001019062000432565b5b5090506200045f919062000463565b5090565b5b808211156200047e57600081600090555060010162000464565b5090565b600062000491602083620004cb565b91506200049e8262000541565b602082019050919050565b60006020820190508181036000830152620004c48162000482565b9050919050565b600082825260208201905092915050565b60006002820490506001821680620004f557607f821691505b602082108114156200050c576200050b62000512565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b615acb806200057a6000396000f3fe60806040526004361061031a5760003560e01c806355a55465116101ab578063a0712d68116100f7578063c87b56dd11610095578063e80d1a1c1161006f578063e80d1a1c14610ba2578063e985e9c514610bcd578063f002858514610c0a578063f2fde38b14610c335761031a565b8063c87b56dd14610b0f578063d5abeb0114610b4c578063de7fcb1d14610b775761031a565b8063ac2e3397116100d1578063ac2e339714610a53578063b228d92514610a7e578063b88d4fde14610aa9578063c080519714610ad25761031a565b8063a0712d68146109e5578063a22cb46514610a01578063a2b40d1914610a2a5761031a565b806385d178f41161016457806395d89b411161013e57806395d89b411461093b5780639ad01e6f146109665780639e8b30eb1461098f578063a035b1fe146109ba5761031a565b806385d178f4146108bc5780638da5cb5b146108e75780639373f432146109125761031a565b806355a55465146107c25780636352211e146107eb57806370a0823114610828578063715018a6146108655780637ec4a6591461087c578063801fe59b146108a55761031a565b806328818b961161026a57806349a5980a116102235780634fdd43cb116101fd5780634fdd43cb1461071a57806354214f69146107435780635503a0e81461076e578063559e75b3146107995761031a565b806349a5980a146106895780634aaf78f1146106b25780634f6ccce7146106dd5761031a565b806328818b961461058a5780632f745c59146105a65780633ccfd60b146105e3578063404c7cdd146105fa57806342842e0e14610623578063438b63001461064c5761031a565b80631465f531116102d757806318cae269116102b157806318cae269146104be5780631d778165146104fb5780632373ac221461053857806323b872dd146105615761031a565b80631465f5311461044157806316ba10e01461046a57806318160ddd146104935761031a565b80630116bc2d1461031f57806301ffc9a71461034a57806306fdde0314610387578063081812fc146103b257806308ea9265146103ef578063095ea7b314610418575b600080fd5b34801561032b57600080fd5b50610334610c5c565b6040516103419190614f8c565b60405180910390f35b34801561035657600080fd5b50610371600480360381019061036c9190614a04565b610c6f565b60405161037e9190614f8c565b60405180910390f35b34801561039357600080fd5b5061039c610db9565b6040516103a99190614fc2565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190614a6e565b610e4b565b6040516103e69190614f34565b60405180910390f35b3480156103fb57600080fd5b5061041660048036038101906104119190614a6e565b610ec7565b005b34801561042457600080fd5b5061043f600480360381019061043a91906148dd565b610f4d565b005b34801561044d57600080fd5b50610468600480360381019061046391906149db565b611108565b005b34801561047657600080fd5b50610491600480360381019061048c9190614a2d565b61118e565b005b34801561049f57600080fd5b506104a8611224565b6040516104b591906151c4565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e09190614772565b61122e565b6040516104f291906151c4565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d9190614772565b611246565b60405161052f9190614f8c565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a91906149b2565b611266565b005b34801561056d57600080fd5b50610588600480360381019061058391906147d7565b6112ff565b005b6105a4600480360381019061059f919061495a565b61130f565b005b3480156105b257600080fd5b506105cd60048036038101906105c891906148dd565b61181f565b6040516105da91906151c4565b60405180910390f35b3480156105ef57600080fd5b506105f86119f9565b005b34801561060657600080fd5b50610621600480360381019061061c9190614a6e565b611b46565b005b34801561062f57600080fd5b5061064a600480360381019061064591906147d7565b611bcc565b005b34801561065857600080fd5b50610673600480360381019061066e9190614772565b611bec565b6040516106809190614f6a565b60405180910390f35b34801561069557600080fd5b506106b060048036038101906106ab91906149b2565b611d43565b005b3480156106be57600080fd5b506106c7611ddc565b6040516106d49190614f8c565b60405180910390f35b3480156106e957600080fd5b5061070460048036038101906106ff9190614a6e565b611def565b60405161071191906151c4565b60405180910390f35b34801561072657600080fd5b50610741600480360381019061073c9190614a2d565b611f34565b005b34801561074f57600080fd5b50610758611fca565b6040516107659190614f8c565b60405180910390f35b34801561077a57600080fd5b50610783611fdd565b6040516107909190614fc2565b60405180910390f35b3480156107a557600080fd5b506107c060048036038101906107bb91906149b2565b61206b565b005b3480156107ce57600080fd5b506107e960048036038101906107e49190614a97565b612104565b005b3480156107f757600080fd5b50610812600480360381019061080d9190614a6e565b6121af565b60405161081f9190614f34565b60405180910390f35b34801561083457600080fd5b5061084f600480360381019061084a9190614772565b6121c5565b60405161085c91906151c4565b60405180910390f35b34801561087157600080fd5b5061087a612295565b005b34801561088857600080fd5b506108a3600480360381019061089e9190614a2d565b6123cf565b005b3480156108b157600080fd5b506108ba612465565b005b3480156108c857600080fd5b506108d161250d565b6040516108de9190614f4f565b60405180910390f35b3480156108f357600080fd5b506108fc612533565b6040516109099190614f34565b60405180910390f35b34801561091e57600080fd5b5061093960048036038101906109349190614772565b61255c565b005b34801561094757600080fd5b5061095061261c565b60405161095d9190614fc2565b60405180910390f35b34801561097257600080fd5b5061098d60048036038101906109889190614a6e565b6126ae565b005b34801561099b57600080fd5b506109a4612734565b6040516109b19190614fa7565b60405180910390f35b3480156109c657600080fd5b506109cf61273a565b6040516109dc91906151c4565b60405180910390f35b6109ff60048036038101906109fa9190614a6e565b612740565b005b348015610a0d57600080fd5b50610a286004803603810190610a2391906148a1565b612aaf565b005b348015610a3657600080fd5b50610a516004803603810190610a4c9190614a6e565b612da7565b005b348015610a5f57600080fd5b50610a68612e2d565b604051610a759190614fc2565b60405180910390f35b348015610a8a57600080fd5b50610a93612eeb565b604051610aa091906151c4565b60405180910390f35b348015610ab557600080fd5b50610ad06004803603810190610acb9190614826565b612ef1565b005b348015610ade57600080fd5b50610af96004803603810190610af49190614a6e565b612f44565b604051610b069190614f8c565b60405180910390f35b348015610b1b57600080fd5b50610b366004803603810190610b319190614a6e565b612f64565b604051610b439190614fc2565b60405180910390f35b348015610b5857600080fd5b50610b616130bd565b604051610b6e91906151c4565b60405180910390f35b348015610b8357600080fd5b50610b8c6130c3565b604051610b9991906151c4565b60405180910390f35b348015610bae57600080fd5b50610bb76130c9565b604051610bc49190614f8c565b60405180910390f35b348015610bd957600080fd5b50610bf46004803603810190610bef919061479b565b6130dc565b604051610c019190614f8c565b60405180910390f35b348015610c1657600080fd5b50610c316004803603810190610c2c9190614919565b613170565b005b348015610c3f57600080fd5b50610c5a6004803603810190610c559190614772565b61325a565b005b601760169054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d3a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610da257507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610db25750610db182613403565b5b9050919050565b606060038054610dc8906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054610df4906154f9565b8015610e415780601f10610e1657610100808354040283529160200191610e41565b820191906000526020600020905b815481529060010190602001808311610e2457829003601f168201915b5050505050905090565b6000610e568261346d565b610e8c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610ecf6134ea565b73ffffffffffffffffffffffffffffffffffffffff16610eed612533565b73ffffffffffffffffffffffffffffffffffffffff1614610f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3a90615124565b60405180910390fd5b8060148190555050565b6000610f58826121af565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610fc0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fdf6134ea565b73ffffffffffffffffffffffffffffffffffffffff1614158015611011575061100f8161100a6134ea565b6130dc565b155b15611048576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560009054906101000a900460ff161580156110835750600a600083815260200190815260200160002060009054906101000a900460ff16155b156110f7576110a78373ffffffffffffffffffffffffffffffffffffffff166134f2565b156110e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110de90615064565b60405180910390fd5b6110f2838383613515565b611103565b611102838383613515565b5b505050565b6111106134ea565b73ffffffffffffffffffffffffffffffffffffffff1661112e612533565b73ffffffffffffffffffffffffffffffffffffffff1614611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90615124565b60405180910390fd5b8060188190555050565b6111966134ea565b73ffffffffffffffffffffffffffffffffffffffff166111b4612533565b73ffffffffffffffffffffffffffffffffffffffff161461120a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120190615124565b60405180910390fd5b80600f9080519060200190611220929190614473565b5050565b6000601254905090565b60166020528060005260406000206000915090505481565b60196020528060005260406000206000915054906101000a900460ff1681565b61126e6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661128c612533565b73ffffffffffffffffffffffffffffffffffffffff16146112e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d990615124565b60405180910390fd5b80601760166101000a81548160ff02191690831515021790555050565b61130a8383836135c7565b505050565b601760169054906101000a900460ff161561135f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135690615044565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c490615024565b60405180910390fd5b601154816113d9611224565b6113e39190615312565b1115611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b90615164565b60405180910390fd5b60008111611467576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145e90614fe4565b60405180910390fd5b601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156114f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114eb906150c4565b60405180910390fd5b6114fc612533565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461165957601354811115611573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156a90615184565b60405180910390fd5b806015546115819190615399565b3410156115c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ba90615104565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060145482826116169190615312565b1115611657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164e906150a4565b60405180910390fd5b505b60003360405160200161166c9190614ed3565b6040516020818303038152906040528051906020012090506116d2848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060185483613ab8565b611711576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611708906150e4565b60405180910390fd5b81601260008282546117239190615312565b9250508190555081601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117799190615312565b9250508190555061178a3383613acf565b6001601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f176b02bb2d12439ff7a20b59f402cca16c76f50508b13ef3166a600eb719354a8260405161181191906151c4565b60405180910390a150505050565b600061182a836121c5565b8210611862576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600154905060008060005b838110156119ed576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001511561194c57506119e0565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461198c57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156119de57868414156119d55781955050505050506119f3565b83806001019450505b505b808060010191505061186f565b50600080fd5b92915050565b611a016134ea565b73ffffffffffffffffffffffffffffffffffffffff16611a1f612533565b73ffffffffffffffffffffffffffffffffffffffff1614611a75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c90615124565b60405180910390fd5b6000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051611abd90614f1f565b60006040518083038185875af1925050503d8060008114611afa576040519150601f19603f3d011682016040523d82523d6000602084013e611aff565b606091505b5050905080611b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3a906151a4565b60405180910390fd5b50565b611b4e6134ea565b73ffffffffffffffffffffffffffffffffffffffff16611b6c612533565b73ffffffffffffffffffffffffffffffffffffffff1614611bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb990615124565b60405180910390fd5b8060118190555050565b611be783838360405180602001604052806000815250612ef1565b505050565b60606000611bf9836121c5565b905060008167ffffffffffffffff811115611c3d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611c6b5781602001602082028036833780820191505090505b50905060006001905060005b8381108015611c8857506011548211155b15611d37576000611c98836121af565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d235782848381518110611d08577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180611d1f9061555c565b9250505b8280611d2e9061555c565b93505050611c77565b82945050505050919050565b611d4b6134ea565b73ffffffffffffffffffffffffffffffffffffffff16611d69612533565b73ffffffffffffffffffffffffffffffffffffffff1614611dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db690615124565b60405180910390fd5b80601760146101000a81548160ff02191690831515021790555050565b600560009054906101000a900460ff1681565b60008060015490506000805b82811015611efc576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151611eee5785831415611ee55781945050505050611f2f565b82806001019350505b508080600101915050611dfb565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b611f3c6134ea565b73ffffffffffffffffffffffffffffffffffffffff16611f5a612533565b73ffffffffffffffffffffffffffffffffffffffff1614611fb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa790615124565b60405180910390fd5b8060109080519060200190611fc6929190614473565b5050565b601760149054906101000a900460ff1681565b600f8054611fea906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054612016906154f9565b80156120635780601f1061203857610100808354040283529160200191612063565b820191906000526020600020905b81548152906001019060200180831161204657829003601f168201915b505050505081565b6120736134ea565b73ffffffffffffffffffffffffffffffffffffffff16612091612533565b73ffffffffffffffffffffffffffffffffffffffff16146120e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120de90615124565b60405180910390fd5b80601760156101000a81548160ff02191690831515021790555050565b61210c6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661212a612533565b73ffffffffffffffffffffffffffffffffffffffff1614612180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217790615124565b60405180910390fd5b80600a600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60006121ba82613aed565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561222d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61229d6134ea565b73ffffffffffffffffffffffffffffffffffffffff166122bb612533565b73ffffffffffffffffffffffffffffffffffffffff1614612311576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230890615124565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6123d76134ea565b73ffffffffffffffffffffffffffffffffffffffff166123f5612533565b73ffffffffffffffffffffffffffffffffffffffff161461244b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244290615124565b60405180910390fd5b80600e9080519060200190612461929190614473565b5050565b61246d6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661248b612533565b73ffffffffffffffffffffffffffffffffffffffff16146124e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d890615124565b60405180910390fd5b600560009054906101000a900460ff1615600560006101000a81548160ff021916908315150217905550565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6125646134ea565b73ffffffffffffffffffffffffffffffffffffffff16612582612533565b73ffffffffffffffffffffffffffffffffffffffff16146125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf90615124565b60405180910390fd5b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606004805461262b906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054612657906154f9565b80156126a45780601f10612679576101008083540402835291602001916126a4565b820191906000526020600020905b81548152906001019060200180831161268757829003601f168201915b5050505050905090565b6126b66134ea565b73ffffffffffffffffffffffffffffffffffffffff166126d4612533565b73ffffffffffffffffffffffffffffffffffffffff161461272a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272190615124565b60405180910390fd5b8060138190555050565b60185481565b60155481565b601760169054906101000a900460ff1661278f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278690615044565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146127fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f490615024565b60405180910390fd5b60115481612809611224565b6128139190615312565b1115612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284b90615164565b60405180910390fd5b60008111612897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288e90614fe4565b60405180910390fd5b61289f612533565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146129fc57601354811115612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90615184565b60405180910390fd5b806015546129249190615399565b341015612966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295d90615104565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060145482826129b99190615312565b11156129fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f1906150a4565b60405180910390fd5b505b8060126000828254612a0e9190615312565b9250508190555080601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a649190615312565b92505081905550612a753382613acf565b7f176b02bb2d12439ff7a20b59f402cca16c76f50508b13ef3166a600eb719354a81604051612aa491906151c4565b60405180910390a150565b612ab76134ea565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b1c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560009054906101000a900460ff16612c9b57612b4f8273ffffffffffffffffffffffffffffffffffffffff166134f2565b15612b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8690615064565b60405180910390fd5b8060096000612b9c6134ea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612c496134ea565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c8e9190614f8c565b60405180910390a3612da3565b8060096000612ca86134ea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612d556134ea565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d9a9190614f8c565b60405180910390a35b5050565b612daf6134ea565b73ffffffffffffffffffffffffffffffffffffffff16612dcd612533565b73ffffffffffffffffffffffffffffffffffffffff1614612e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1a90615124565b60405180910390fd5b8060158190555050565b606060001515601760149054906101000a900460ff1615151415612edd5760108054612e58906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054612e84906154f9565b8015612ed15780601f10612ea657610100808354040283529160200191612ed1565b820191906000526020600020905b815481529060010190602001808311612eb457829003601f168201915b50505050509050612ee8565b612ee5613d69565b90505b90565b60145481565b612efc8484846135c7565b612f0884848484613dfb565b612f3e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6060612f6f8261346d565b612fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa590615144565b60405180910390fd5b60001515601760149054906101000a900460ff161515141561305c5760108054612fd7906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054613003906154f9565b80156130505780601f1061302557610100808354040283529160200191613050565b820191906000526020600020905b81548152906001019060200180831161303357829003601f168201915b505050505090506130b8565b6000613066613d69565b9050600081511161308657604051806020016040528060008152506130b4565b8061309084613eb2565b600f6040516020016130a493929190614eee565b6040516020818303038152906040525b9150505b919050565b60115481565b60135481565b601760159054906101000a900460ff1681565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6131786134ea565b73ffffffffffffffffffffffffffffffffffffffff16613196612533565b73ffffffffffffffffffffffffffffffffffffffff16146131ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131e390615124565b60405180910390fd5b60005b815181101561325657613243828281518110613234577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516001613acf565b808061324e9061555c565b9150506131ef565b5050565b6132626134ea565b73ffffffffffffffffffffffffffffffffffffffff16613280612533565b73ffffffffffffffffffffffffffffffffffffffff16146132d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cd90615124565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333d90615004565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008082116134b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a890615084565b60405180910390fd5b600154821080156134e3575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006135d282613aed565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166135f96134ea565b73ffffffffffffffffffffffffffffffffffffffff16148061362c575061362b82600001516136266134ea565b6130dc565b5b80613671575061363a6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661365984610e4b565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806136aa576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614613713576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561377a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613787858585600161405f565b6137976000848460000151613515565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415613a4857600154811015613a475782600001516006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ab18585856001614065565b5050505050565b600082613ac5858461406b565b1490509392505050565b613ae98282604051806020016040528060008152506140e7565b5050565b613af56144f9565b6000829050600154811015613d32576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151613d3057600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613c14578092505050613d64565b5b600115613d2f57818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613d2a578092505050613d64565b613c15565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6060600e8054613d78906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054613da4906154f9565b8015613df15780601f10613dc657610100808354040283529160200191613df1565b820191906000526020600020905b815481529060010190602001808311613dd457829003601f168201915b5050505050905090565b6000600560009054906101000a900460ff16158015613e385750600a600084815260200190815260200160002060009054906101000a900460ff16155b15613ea557613e5c8473ffffffffffffffffffffffffffffffffffffffff166134f2565b15613e9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e9390615064565b60405180910390fd5b60019050613eaa565b600190505b949350505050565b60606000821415613efa576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061405a565b600082905060005b60008214613f2c578080613f159061555c565b915050600a82613f259190615368565b9150613f02565b60008167ffffffffffffffff811115613f6e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613fa05781602001600182028036833780820191505090505b5090505b6000851461405357600182613fb991906153f3565b9150600a85613fc891906155c9565b6030613fd49190615312565b60f81b818381518110614010577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561404c9190615368565b9450613fa4565b8093505050505b919050565b50505050565b50505050565b60008082905060005b84518110156140dc576140c7828683815181106140ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516140f9565b915080806140d49061555c565b915050614074565b508091505092915050565b6140f48383836001614124565b505050565b60008183106141115761410c828461445c565b61411c565b61411b838361445c565b5b905092915050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415614192576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156141cd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6141da600086838761405f565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561443f57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156143f357506143f16000888488613dfb565b155b1561442a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050614378565b5080600181905550506144556000868387614065565b5050505050565b600082600052816020526040600020905092915050565b82805461447f906154f9565b90600052602060002090601f0160209004810192826144a157600085556144e8565b82601f106144ba57805160ff19168380011785556144e8565b828001600101855582156144e8579182015b828111156144e75782518255916020019190600101906144cc565b5b5090506144f5919061453c565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561455557600081600090555060010161453d565b5090565b600061456c61456784615204565b6151df565b9050808382526020820190508285602086028201111561458b57600080fd5b60005b858110156145bb57816145a18882614641565b84526020840193506020830192505060018101905061458e565b5050509392505050565b60006145d86145d384615230565b6151df565b9050828152602081018484840111156145f057600080fd5b6145fb8482856154b7565b509392505050565b600061461661461184615261565b6151df565b90508281526020810184848401111561462e57600080fd5b6146398482856154b7565b509392505050565b60008135905061465081615a22565b92915050565b600082601f83011261466757600080fd5b8135614677848260208601614559565b91505092915050565b60008083601f84011261469257600080fd5b8235905067ffffffffffffffff8111156146ab57600080fd5b6020830191508360208202830111156146c357600080fd5b9250929050565b6000813590506146d981615a39565b92915050565b6000813590506146ee81615a50565b92915050565b60008135905061470381615a67565b92915050565b600082601f83011261471a57600080fd5b813561472a8482602086016145c5565b91505092915050565b600082601f83011261474457600080fd5b8135614754848260208601614603565b91505092915050565b60008135905061476c81615a7e565b92915050565b60006020828403121561478457600080fd5b600061479284828501614641565b91505092915050565b600080604083850312156147ae57600080fd5b60006147bc85828601614641565b92505060206147cd85828601614641565b9150509250929050565b6000806000606084860312156147ec57600080fd5b60006147fa86828701614641565b935050602061480b86828701614641565b925050604061481c8682870161475d565b9150509250925092565b6000806000806080858703121561483c57600080fd5b600061484a87828801614641565b945050602061485b87828801614641565b935050604061486c8782880161475d565b925050606085013567ffffffffffffffff81111561488957600080fd5b61489587828801614709565b91505092959194509250565b600080604083850312156148b457600080fd5b60006148c285828601614641565b92505060206148d3858286016146ca565b9150509250929050565b600080604083850312156148f057600080fd5b60006148fe85828601614641565b925050602061490f8582860161475d565b9150509250929050565b60006020828403121561492b57600080fd5b600082013567ffffffffffffffff81111561494557600080fd5b61495184828501614656565b91505092915050565b60008060006040848603121561496f57600080fd5b600084013567ffffffffffffffff81111561498957600080fd5b61499586828701614680565b935093505060206149a88682870161475d565b9150509250925092565b6000602082840312156149c457600080fd5b60006149d2848285016146ca565b91505092915050565b6000602082840312156149ed57600080fd5b60006149fb848285016146df565b91505092915050565b600060208284031215614a1657600080fd5b6000614a24848285016146f4565b91505092915050565b600060208284031215614a3f57600080fd5b600082013567ffffffffffffffff811115614a5957600080fd5b614a6584828501614733565b91505092915050565b600060208284031215614a8057600080fd5b6000614a8e8482850161475d565b91505092915050565b60008060408385031215614aaa57600080fd5b6000614ab88582860161475d565b9250506020614ac9858286016146ca565b9150509250929050565b6000614adf8383614eb5565b60208301905092915050565b614af481615439565b82525050565b614b0381615427565b82525050565b614b1a614b1582615427565b6155a5565b82525050565b6000614b2b826152b7565b614b3581856152da565b9350614b4083615292565b8060005b83811015614b71578151614b588882614ad3565b9750614b63836152cd565b925050600181019050614b44565b5085935050505092915050565b614b878161544b565b82525050565b614b9681615457565b82525050565b6000614ba7826152c2565b614bb181856152f6565b9350614bc18185602086016154c6565b614bca816156b6565b840191505092915050565b6000614be0826152c2565b614bea8185615307565b9350614bfa8185602086016154c6565b80840191505092915050565b60008154614c13816154f9565b614c1d8186615307565b94506001821660008114614c385760018114614c4957614c7c565b60ff19831686528186019350614c7c565b614c52856152a2565b60005b83811015614c7457815481890152600182019150602081019050614c55565b838801955050505b50505092915050565b6000614c92602e836152f6565b9150614c9d826156d4565b604082019050919050565b6000614cb56026836152f6565b9150614cc082615723565b604082019050919050565b6000614cd86010836152f6565b9150614ce382615772565b602082019050919050565b6000614cfb6018836152f6565b9150614d068261579b565b602082019050919050565b6000614d1e6032836152f6565b9150614d29826157c4565b604082019050919050565b6000614d41600f836152f6565b9150614d4c82615813565b602082019050919050565b6000614d646019836152f6565b9150614d6f8261583c565b602082019050919050565b6000614d876015836152f6565b9150614d9282615865565b602082019050919050565b6000614daa600d836152f6565b9150614db58261588e565b602082019050919050565b6000614dcd602f836152f6565b9150614dd8826158b7565b604082019050919050565b6000614df06020836152f6565b9150614dfb82615906565b602082019050919050565b6000614e13602f836152f6565b9150614e1e8261592f565b604082019050919050565b6000614e366016836152f6565b9150614e418261597e565b602082019050919050565b6000614e59602a836152f6565b9150614e64826159a7565b604082019050919050565b6000614e7c6000836152eb565b9150614e87826159f6565b600082019050919050565b6000614e9f6010836152f6565b9150614eaa826159f9565b602082019050919050565b614ebe816154ad565b82525050565b614ecd816154ad565b82525050565b6000614edf8284614b09565b60148201915081905092915050565b6000614efa8286614bd5565b9150614f068285614bd5565b9150614f128284614c06565b9150819050949350505050565b6000614f2a82614e6f565b9150819050919050565b6000602082019050614f496000830184614afa565b92915050565b6000602082019050614f646000830184614aeb565b92915050565b60006020820190508181036000830152614f848184614b20565b905092915050565b6000602082019050614fa16000830184614b7e565b92915050565b6000602082019050614fbc6000830184614b8d565b92915050565b60006020820190508181036000830152614fdc8184614b9c565b905092915050565b60006020820190508181036000830152614ffd81614c85565b9050919050565b6000602082019050818103600083015261501d81614ca8565b9050919050565b6000602082019050818103600083015261503d81614ccb565b9050919050565b6000602082019050818103600083015261505d81614cee565b9050919050565b6000602082019050818103600083015261507d81614d11565b9050919050565b6000602082019050818103600083015261509d81614d34565b9050919050565b600060208201905081810360008301526150bd81614d57565b9050919050565b600060208201905081810360008301526150dd81614d7a565b9050919050565b600060208201905081810360008301526150fd81614d9d565b9050919050565b6000602082019050818103600083015261511d81614dc0565b9050919050565b6000602082019050818103600083015261513d81614de3565b9050919050565b6000602082019050818103600083015261515d81614e06565b9050919050565b6000602082019050818103600083015261517d81614e29565b9050919050565b6000602082019050818103600083015261519d81614e4c565b9050919050565b600060208201905081810360008301526151bd81614e92565b9050919050565b60006020820190506151d96000830184614ec4565b92915050565b60006151e96151fa565b90506151f5828261552b565b919050565b6000604051905090565b600067ffffffffffffffff82111561521f5761521e615687565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561524b5761524a615687565b5b615254826156b6565b9050602081019050919050565b600067ffffffffffffffff82111561527c5761527b615687565b5b615285826156b6565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061531d826154ad565b9150615328836154ad565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561535d5761535c6155fa565b5b828201905092915050565b6000615373826154ad565b915061537e836154ad565b92508261538e5761538d615629565b5b828204905092915050565b60006153a4826154ad565b91506153af836154ad565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156153e8576153e76155fa565b5b828202905092915050565b60006153fe826154ad565b9150615409836154ad565b92508282101561541c5761541b6155fa565b5b828203905092915050565b60006154328261548d565b9050919050565b60006154448261548d565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156154e45780820151818401526020810190506154c9565b838111156154f3576000848401525b50505050565b6000600282049050600182168061551157607f821691505b6020821081141561552557615524615658565b5b50919050565b615534826156b6565b810181811067ffffffffffffffff8211171561555357615552615687565b5b80604052505050565b6000615567826154ad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561559a576155996155fa565b5b600182019050919050565b60006155b0826155b7565b9050919050565b60006155c2826156c7565b9050919050565b60006155d4826154ad565b91506155df836154ad565b9250826155ef576155ee615629565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f436f6e74726163742044656e6965642e00000000000000000000000000000000600082015250565b7f5075626c6963206d696e74206e6f7420656e61626c6564210000000000000000600082015250565b7f546f6b656e207472616e7366657220746f20636f6e747261637420616464726560008201527f7373206973206e6f7420616c6c6f7765642e0000000000000000000000000000602082015250565b7f496e76616c696420546f6b656e49640000000000000000000000000000000000600082015250565b7f6d61782070657220616464726573732065786365656465642100000000000000600082015250565b7f4d696e7420616c726561647920636c61696d6564210000000000000000000000600082015250565b7f50726f6f6620496e76616c696400000000000000000000000000000000000000600082015250565b7f45746865722073656e7420776974682074686973207472616e73616374696f6e60008201527f206973206e6f7420636f72726563740000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b7f4d6178696d756d204e4654732063616e206265206d696e74656420706572207460008201527f72616e73616374696f6e00000000000000000000000000000000000000000000602082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b615a2b81615427565b8114615a3657600080fd5b50565b615a428161544b565b8114615a4d57600080fd5b50565b615a5981615457565b8114615a6457600080fd5b50565b615a7081615461565b8114615a7b57600080fd5b50565b615a87816154ad565b8114615a9257600080fd5b5056fea26469706673582212203f54015fc9b3e0c179b964d5555df2acd24036d1ff21501747ddd5d589b1f53364736f6c63430008040033

Deployed Bytecode

0x60806040526004361061031a5760003560e01c806355a55465116101ab578063a0712d68116100f7578063c87b56dd11610095578063e80d1a1c1161006f578063e80d1a1c14610ba2578063e985e9c514610bcd578063f002858514610c0a578063f2fde38b14610c335761031a565b8063c87b56dd14610b0f578063d5abeb0114610b4c578063de7fcb1d14610b775761031a565b8063ac2e3397116100d1578063ac2e339714610a53578063b228d92514610a7e578063b88d4fde14610aa9578063c080519714610ad25761031a565b8063a0712d68146109e5578063a22cb46514610a01578063a2b40d1914610a2a5761031a565b806385d178f41161016457806395d89b411161013e57806395d89b411461093b5780639ad01e6f146109665780639e8b30eb1461098f578063a035b1fe146109ba5761031a565b806385d178f4146108bc5780638da5cb5b146108e75780639373f432146109125761031a565b806355a55465146107c25780636352211e146107eb57806370a0823114610828578063715018a6146108655780637ec4a6591461087c578063801fe59b146108a55761031a565b806328818b961161026a57806349a5980a116102235780634fdd43cb116101fd5780634fdd43cb1461071a57806354214f69146107435780635503a0e81461076e578063559e75b3146107995761031a565b806349a5980a146106895780634aaf78f1146106b25780634f6ccce7146106dd5761031a565b806328818b961461058a5780632f745c59146105a65780633ccfd60b146105e3578063404c7cdd146105fa57806342842e0e14610623578063438b63001461064c5761031a565b80631465f531116102d757806318cae269116102b157806318cae269146104be5780631d778165146104fb5780632373ac221461053857806323b872dd146105615761031a565b80631465f5311461044157806316ba10e01461046a57806318160ddd146104935761031a565b80630116bc2d1461031f57806301ffc9a71461034a57806306fdde0314610387578063081812fc146103b257806308ea9265146103ef578063095ea7b314610418575b600080fd5b34801561032b57600080fd5b50610334610c5c565b6040516103419190614f8c565b60405180910390f35b34801561035657600080fd5b50610371600480360381019061036c9190614a04565b610c6f565b60405161037e9190614f8c565b60405180910390f35b34801561039357600080fd5b5061039c610db9565b6040516103a99190614fc2565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190614a6e565b610e4b565b6040516103e69190614f34565b60405180910390f35b3480156103fb57600080fd5b5061041660048036038101906104119190614a6e565b610ec7565b005b34801561042457600080fd5b5061043f600480360381019061043a91906148dd565b610f4d565b005b34801561044d57600080fd5b50610468600480360381019061046391906149db565b611108565b005b34801561047657600080fd5b50610491600480360381019061048c9190614a2d565b61118e565b005b34801561049f57600080fd5b506104a8611224565b6040516104b591906151c4565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e09190614772565b61122e565b6040516104f291906151c4565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d9190614772565b611246565b60405161052f9190614f8c565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a91906149b2565b611266565b005b34801561056d57600080fd5b50610588600480360381019061058391906147d7565b6112ff565b005b6105a4600480360381019061059f919061495a565b61130f565b005b3480156105b257600080fd5b506105cd60048036038101906105c891906148dd565b61181f565b6040516105da91906151c4565b60405180910390f35b3480156105ef57600080fd5b506105f86119f9565b005b34801561060657600080fd5b50610621600480360381019061061c9190614a6e565b611b46565b005b34801561062f57600080fd5b5061064a600480360381019061064591906147d7565b611bcc565b005b34801561065857600080fd5b50610673600480360381019061066e9190614772565b611bec565b6040516106809190614f6a565b60405180910390f35b34801561069557600080fd5b506106b060048036038101906106ab91906149b2565b611d43565b005b3480156106be57600080fd5b506106c7611ddc565b6040516106d49190614f8c565b60405180910390f35b3480156106e957600080fd5b5061070460048036038101906106ff9190614a6e565b611def565b60405161071191906151c4565b60405180910390f35b34801561072657600080fd5b50610741600480360381019061073c9190614a2d565b611f34565b005b34801561074f57600080fd5b50610758611fca565b6040516107659190614f8c565b60405180910390f35b34801561077a57600080fd5b50610783611fdd565b6040516107909190614fc2565b60405180910390f35b3480156107a557600080fd5b506107c060048036038101906107bb91906149b2565b61206b565b005b3480156107ce57600080fd5b506107e960048036038101906107e49190614a97565b612104565b005b3480156107f757600080fd5b50610812600480360381019061080d9190614a6e565b6121af565b60405161081f9190614f34565b60405180910390f35b34801561083457600080fd5b5061084f600480360381019061084a9190614772565b6121c5565b60405161085c91906151c4565b60405180910390f35b34801561087157600080fd5b5061087a612295565b005b34801561088857600080fd5b506108a3600480360381019061089e9190614a2d565b6123cf565b005b3480156108b157600080fd5b506108ba612465565b005b3480156108c857600080fd5b506108d161250d565b6040516108de9190614f4f565b60405180910390f35b3480156108f357600080fd5b506108fc612533565b6040516109099190614f34565b60405180910390f35b34801561091e57600080fd5b5061093960048036038101906109349190614772565b61255c565b005b34801561094757600080fd5b5061095061261c565b60405161095d9190614fc2565b60405180910390f35b34801561097257600080fd5b5061098d60048036038101906109889190614a6e565b6126ae565b005b34801561099b57600080fd5b506109a4612734565b6040516109b19190614fa7565b60405180910390f35b3480156109c657600080fd5b506109cf61273a565b6040516109dc91906151c4565b60405180910390f35b6109ff60048036038101906109fa9190614a6e565b612740565b005b348015610a0d57600080fd5b50610a286004803603810190610a2391906148a1565b612aaf565b005b348015610a3657600080fd5b50610a516004803603810190610a4c9190614a6e565b612da7565b005b348015610a5f57600080fd5b50610a68612e2d565b604051610a759190614fc2565b60405180910390f35b348015610a8a57600080fd5b50610a93612eeb565b604051610aa091906151c4565b60405180910390f35b348015610ab557600080fd5b50610ad06004803603810190610acb9190614826565b612ef1565b005b348015610ade57600080fd5b50610af96004803603810190610af49190614a6e565b612f44565b604051610b069190614f8c565b60405180910390f35b348015610b1b57600080fd5b50610b366004803603810190610b319190614a6e565b612f64565b604051610b439190614fc2565b60405180910390f35b348015610b5857600080fd5b50610b616130bd565b604051610b6e91906151c4565b60405180910390f35b348015610b8357600080fd5b50610b8c6130c3565b604051610b9991906151c4565b60405180910390f35b348015610bae57600080fd5b50610bb76130c9565b604051610bc49190614f8c565b60405180910390f35b348015610bd957600080fd5b50610bf46004803603810190610bef919061479b565b6130dc565b604051610c019190614f8c565b60405180910390f35b348015610c1657600080fd5b50610c316004803603810190610c2c9190614919565b613170565b005b348015610c3f57600080fd5b50610c5a6004803603810190610c559190614772565b61325a565b005b601760169054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d3a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610da257507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610db25750610db182613403565b5b9050919050565b606060038054610dc8906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054610df4906154f9565b8015610e415780601f10610e1657610100808354040283529160200191610e41565b820191906000526020600020905b815481529060010190602001808311610e2457829003601f168201915b5050505050905090565b6000610e568261346d565b610e8c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610ecf6134ea565b73ffffffffffffffffffffffffffffffffffffffff16610eed612533565b73ffffffffffffffffffffffffffffffffffffffff1614610f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3a90615124565b60405180910390fd5b8060148190555050565b6000610f58826121af565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610fc0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fdf6134ea565b73ffffffffffffffffffffffffffffffffffffffff1614158015611011575061100f8161100a6134ea565b6130dc565b155b15611048576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560009054906101000a900460ff161580156110835750600a600083815260200190815260200160002060009054906101000a900460ff16155b156110f7576110a78373ffffffffffffffffffffffffffffffffffffffff166134f2565b156110e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110de90615064565b60405180910390fd5b6110f2838383613515565b611103565b611102838383613515565b5b505050565b6111106134ea565b73ffffffffffffffffffffffffffffffffffffffff1661112e612533565b73ffffffffffffffffffffffffffffffffffffffff1614611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90615124565b60405180910390fd5b8060188190555050565b6111966134ea565b73ffffffffffffffffffffffffffffffffffffffff166111b4612533565b73ffffffffffffffffffffffffffffffffffffffff161461120a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120190615124565b60405180910390fd5b80600f9080519060200190611220929190614473565b5050565b6000601254905090565b60166020528060005260406000206000915090505481565b60196020528060005260406000206000915054906101000a900460ff1681565b61126e6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661128c612533565b73ffffffffffffffffffffffffffffffffffffffff16146112e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d990615124565b60405180910390fd5b80601760166101000a81548160ff02191690831515021790555050565b61130a8383836135c7565b505050565b601760169054906101000a900460ff161561135f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135690615044565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c490615024565b60405180910390fd5b601154816113d9611224565b6113e39190615312565b1115611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b90615164565b60405180910390fd5b60008111611467576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145e90614fe4565b60405180910390fd5b601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156114f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114eb906150c4565b60405180910390fd5b6114fc612533565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461165957601354811115611573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156a90615184565b60405180910390fd5b806015546115819190615399565b3410156115c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ba90615104565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060145482826116169190615312565b1115611657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164e906150a4565b60405180910390fd5b505b60003360405160200161166c9190614ed3565b6040516020818303038152906040528051906020012090506116d2848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060185483613ab8565b611711576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611708906150e4565b60405180910390fd5b81601260008282546117239190615312565b9250508190555081601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117799190615312565b9250508190555061178a3383613acf565b6001601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f176b02bb2d12439ff7a20b59f402cca16c76f50508b13ef3166a600eb719354a8260405161181191906151c4565b60405180910390a150505050565b600061182a836121c5565b8210611862576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600154905060008060005b838110156119ed576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001511561194c57506119e0565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461198c57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156119de57868414156119d55781955050505050506119f3565b83806001019450505b505b808060010191505061186f565b50600080fd5b92915050565b611a016134ea565b73ffffffffffffffffffffffffffffffffffffffff16611a1f612533565b73ffffffffffffffffffffffffffffffffffffffff1614611a75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c90615124565b60405180910390fd5b6000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051611abd90614f1f565b60006040518083038185875af1925050503d8060008114611afa576040519150601f19603f3d011682016040523d82523d6000602084013e611aff565b606091505b5050905080611b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3a906151a4565b60405180910390fd5b50565b611b4e6134ea565b73ffffffffffffffffffffffffffffffffffffffff16611b6c612533565b73ffffffffffffffffffffffffffffffffffffffff1614611bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb990615124565b60405180910390fd5b8060118190555050565b611be783838360405180602001604052806000815250612ef1565b505050565b60606000611bf9836121c5565b905060008167ffffffffffffffff811115611c3d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611c6b5781602001602082028036833780820191505090505b50905060006001905060005b8381108015611c8857506011548211155b15611d37576000611c98836121af565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d235782848381518110611d08577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180611d1f9061555c565b9250505b8280611d2e9061555c565b93505050611c77565b82945050505050919050565b611d4b6134ea565b73ffffffffffffffffffffffffffffffffffffffff16611d69612533565b73ffffffffffffffffffffffffffffffffffffffff1614611dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db690615124565b60405180910390fd5b80601760146101000a81548160ff02191690831515021790555050565b600560009054906101000a900460ff1681565b60008060015490506000805b82811015611efc576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151611eee5785831415611ee55781945050505050611f2f565b82806001019350505b508080600101915050611dfb565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b611f3c6134ea565b73ffffffffffffffffffffffffffffffffffffffff16611f5a612533565b73ffffffffffffffffffffffffffffffffffffffff1614611fb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa790615124565b60405180910390fd5b8060109080519060200190611fc6929190614473565b5050565b601760149054906101000a900460ff1681565b600f8054611fea906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054612016906154f9565b80156120635780601f1061203857610100808354040283529160200191612063565b820191906000526020600020905b81548152906001019060200180831161204657829003601f168201915b505050505081565b6120736134ea565b73ffffffffffffffffffffffffffffffffffffffff16612091612533565b73ffffffffffffffffffffffffffffffffffffffff16146120e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120de90615124565b60405180910390fd5b80601760156101000a81548160ff02191690831515021790555050565b61210c6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661212a612533565b73ffffffffffffffffffffffffffffffffffffffff1614612180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217790615124565b60405180910390fd5b80600a600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60006121ba82613aed565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561222d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61229d6134ea565b73ffffffffffffffffffffffffffffffffffffffff166122bb612533565b73ffffffffffffffffffffffffffffffffffffffff1614612311576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230890615124565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6123d76134ea565b73ffffffffffffffffffffffffffffffffffffffff166123f5612533565b73ffffffffffffffffffffffffffffffffffffffff161461244b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244290615124565b60405180910390fd5b80600e9080519060200190612461929190614473565b5050565b61246d6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661248b612533565b73ffffffffffffffffffffffffffffffffffffffff16146124e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d890615124565b60405180910390fd5b600560009054906101000a900460ff1615600560006101000a81548160ff021916908315150217905550565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6125646134ea565b73ffffffffffffffffffffffffffffffffffffffff16612582612533565b73ffffffffffffffffffffffffffffffffffffffff16146125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf90615124565b60405180910390fd5b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606004805461262b906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054612657906154f9565b80156126a45780601f10612679576101008083540402835291602001916126a4565b820191906000526020600020905b81548152906001019060200180831161268757829003601f168201915b5050505050905090565b6126b66134ea565b73ffffffffffffffffffffffffffffffffffffffff166126d4612533565b73ffffffffffffffffffffffffffffffffffffffff161461272a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272190615124565b60405180910390fd5b8060138190555050565b60185481565b60155481565b601760169054906101000a900460ff1661278f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278690615044565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146127fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f490615024565b60405180910390fd5b60115481612809611224565b6128139190615312565b1115612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284b90615164565b60405180910390fd5b60008111612897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288e90614fe4565b60405180910390fd5b61289f612533565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146129fc57601354811115612916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290d90615184565b60405180910390fd5b806015546129249190615399565b341015612966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295d90615104565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060145482826129b99190615312565b11156129fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f1906150a4565b60405180910390fd5b505b8060126000828254612a0e9190615312565b9250508190555080601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a649190615312565b92505081905550612a753382613acf565b7f176b02bb2d12439ff7a20b59f402cca16c76f50508b13ef3166a600eb719354a81604051612aa491906151c4565b60405180910390a150565b612ab76134ea565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b1c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560009054906101000a900460ff16612c9b57612b4f8273ffffffffffffffffffffffffffffffffffffffff166134f2565b15612b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8690615064565b60405180910390fd5b8060096000612b9c6134ea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612c496134ea565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c8e9190614f8c565b60405180910390a3612da3565b8060096000612ca86134ea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612d556134ea565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d9a9190614f8c565b60405180910390a35b5050565b612daf6134ea565b73ffffffffffffffffffffffffffffffffffffffff16612dcd612533565b73ffffffffffffffffffffffffffffffffffffffff1614612e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1a90615124565b60405180910390fd5b8060158190555050565b606060001515601760149054906101000a900460ff1615151415612edd5760108054612e58906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054612e84906154f9565b8015612ed15780601f10612ea657610100808354040283529160200191612ed1565b820191906000526020600020905b815481529060010190602001808311612eb457829003601f168201915b50505050509050612ee8565b612ee5613d69565b90505b90565b60145481565b612efc8484846135c7565b612f0884848484613dfb565b612f3e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6060612f6f8261346d565b612fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa590615144565b60405180910390fd5b60001515601760149054906101000a900460ff161515141561305c5760108054612fd7906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054613003906154f9565b80156130505780601f1061302557610100808354040283529160200191613050565b820191906000526020600020905b81548152906001019060200180831161303357829003601f168201915b505050505090506130b8565b6000613066613d69565b9050600081511161308657604051806020016040528060008152506130b4565b8061309084613eb2565b600f6040516020016130a493929190614eee565b6040516020818303038152906040525b9150505b919050565b60115481565b60135481565b601760159054906101000a900460ff1681565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6131786134ea565b73ffffffffffffffffffffffffffffffffffffffff16613196612533565b73ffffffffffffffffffffffffffffffffffffffff16146131ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131e390615124565b60405180910390fd5b60005b815181101561325657613243828281518110613234577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516001613acf565b808061324e9061555c565b9150506131ef565b5050565b6132626134ea565b73ffffffffffffffffffffffffffffffffffffffff16613280612533565b73ffffffffffffffffffffffffffffffffffffffff16146132d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cd90615124565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333d90615004565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008082116134b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a890615084565b60405180910390fd5b600154821080156134e3575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006135d282613aed565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166135f96134ea565b73ffffffffffffffffffffffffffffffffffffffff16148061362c575061362b82600001516136266134ea565b6130dc565b5b80613671575061363a6134ea565b73ffffffffffffffffffffffffffffffffffffffff1661365984610e4b565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806136aa576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614613713576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561377a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613787858585600161405f565b6137976000848460000151613515565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415613a4857600154811015613a475782600001516006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ab18585856001614065565b5050505050565b600082613ac5858461406b565b1490509392505050565b613ae98282604051806020016040528060008152506140e7565b5050565b613af56144f9565b6000829050600154811015613d32576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151613d3057600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613c14578092505050613d64565b5b600115613d2f57818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613d2a578092505050613d64565b613c15565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6060600e8054613d78906154f9565b80601f0160208091040260200160405190810160405280929190818152602001828054613da4906154f9565b8015613df15780601f10613dc657610100808354040283529160200191613df1565b820191906000526020600020905b815481529060010190602001808311613dd457829003601f168201915b5050505050905090565b6000600560009054906101000a900460ff16158015613e385750600a600084815260200190815260200160002060009054906101000a900460ff16155b15613ea557613e5c8473ffffffffffffffffffffffffffffffffffffffff166134f2565b15613e9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e9390615064565b60405180910390fd5b60019050613eaa565b600190505b949350505050565b60606000821415613efa576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061405a565b600082905060005b60008214613f2c578080613f159061555c565b915050600a82613f259190615368565b9150613f02565b60008167ffffffffffffffff811115613f6e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613fa05781602001600182028036833780820191505090505b5090505b6000851461405357600182613fb991906153f3565b9150600a85613fc891906155c9565b6030613fd49190615312565b60f81b818381518110614010577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561404c9190615368565b9450613fa4565b8093505050505b919050565b50505050565b50505050565b60008082905060005b84518110156140dc576140c7828683815181106140ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516140f9565b915080806140d49061555c565b915050614074565b508091505092915050565b6140f48383836001614124565b505050565b60008183106141115761410c828461445c565b61411c565b61411b838361445c565b5b905092915050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415614192576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156141cd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6141da600086838761405f565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561443f57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156143f357506143f16000888488613dfb565b155b1561442a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050614378565b5080600181905550506144556000868387614065565b5050505050565b600082600052816020526040600020905092915050565b82805461447f906154f9565b90600052602060002090601f0160209004810192826144a157600085556144e8565b82601f106144ba57805160ff19168380011785556144e8565b828001600101855582156144e8579182015b828111156144e75782518255916020019190600101906144cc565b5b5090506144f5919061453c565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561455557600081600090555060010161453d565b5090565b600061456c61456784615204565b6151df565b9050808382526020820190508285602086028201111561458b57600080fd5b60005b858110156145bb57816145a18882614641565b84526020840193506020830192505060018101905061458e565b5050509392505050565b60006145d86145d384615230565b6151df565b9050828152602081018484840111156145f057600080fd5b6145fb8482856154b7565b509392505050565b600061461661461184615261565b6151df565b90508281526020810184848401111561462e57600080fd5b6146398482856154b7565b509392505050565b60008135905061465081615a22565b92915050565b600082601f83011261466757600080fd5b8135614677848260208601614559565b91505092915050565b60008083601f84011261469257600080fd5b8235905067ffffffffffffffff8111156146ab57600080fd5b6020830191508360208202830111156146c357600080fd5b9250929050565b6000813590506146d981615a39565b92915050565b6000813590506146ee81615a50565b92915050565b60008135905061470381615a67565b92915050565b600082601f83011261471a57600080fd5b813561472a8482602086016145c5565b91505092915050565b600082601f83011261474457600080fd5b8135614754848260208601614603565b91505092915050565b60008135905061476c81615a7e565b92915050565b60006020828403121561478457600080fd5b600061479284828501614641565b91505092915050565b600080604083850312156147ae57600080fd5b60006147bc85828601614641565b92505060206147cd85828601614641565b9150509250929050565b6000806000606084860312156147ec57600080fd5b60006147fa86828701614641565b935050602061480b86828701614641565b925050604061481c8682870161475d565b9150509250925092565b6000806000806080858703121561483c57600080fd5b600061484a87828801614641565b945050602061485b87828801614641565b935050604061486c8782880161475d565b925050606085013567ffffffffffffffff81111561488957600080fd5b61489587828801614709565b91505092959194509250565b600080604083850312156148b457600080fd5b60006148c285828601614641565b92505060206148d3858286016146ca565b9150509250929050565b600080604083850312156148f057600080fd5b60006148fe85828601614641565b925050602061490f8582860161475d565b9150509250929050565b60006020828403121561492b57600080fd5b600082013567ffffffffffffffff81111561494557600080fd5b61495184828501614656565b91505092915050565b60008060006040848603121561496f57600080fd5b600084013567ffffffffffffffff81111561498957600080fd5b61499586828701614680565b935093505060206149a88682870161475d565b9150509250925092565b6000602082840312156149c457600080fd5b60006149d2848285016146ca565b91505092915050565b6000602082840312156149ed57600080fd5b60006149fb848285016146df565b91505092915050565b600060208284031215614a1657600080fd5b6000614a24848285016146f4565b91505092915050565b600060208284031215614a3f57600080fd5b600082013567ffffffffffffffff811115614a5957600080fd5b614a6584828501614733565b91505092915050565b600060208284031215614a8057600080fd5b6000614a8e8482850161475d565b91505092915050565b60008060408385031215614aaa57600080fd5b6000614ab88582860161475d565b9250506020614ac9858286016146ca565b9150509250929050565b6000614adf8383614eb5565b60208301905092915050565b614af481615439565b82525050565b614b0381615427565b82525050565b614b1a614b1582615427565b6155a5565b82525050565b6000614b2b826152b7565b614b3581856152da565b9350614b4083615292565b8060005b83811015614b71578151614b588882614ad3565b9750614b63836152cd565b925050600181019050614b44565b5085935050505092915050565b614b878161544b565b82525050565b614b9681615457565b82525050565b6000614ba7826152c2565b614bb181856152f6565b9350614bc18185602086016154c6565b614bca816156b6565b840191505092915050565b6000614be0826152c2565b614bea8185615307565b9350614bfa8185602086016154c6565b80840191505092915050565b60008154614c13816154f9565b614c1d8186615307565b94506001821660008114614c385760018114614c4957614c7c565b60ff19831686528186019350614c7c565b614c52856152a2565b60005b83811015614c7457815481890152600182019150602081019050614c55565b838801955050505b50505092915050565b6000614c92602e836152f6565b9150614c9d826156d4565b604082019050919050565b6000614cb56026836152f6565b9150614cc082615723565b604082019050919050565b6000614cd86010836152f6565b9150614ce382615772565b602082019050919050565b6000614cfb6018836152f6565b9150614d068261579b565b602082019050919050565b6000614d1e6032836152f6565b9150614d29826157c4565b604082019050919050565b6000614d41600f836152f6565b9150614d4c82615813565b602082019050919050565b6000614d646019836152f6565b9150614d6f8261583c565b602082019050919050565b6000614d876015836152f6565b9150614d9282615865565b602082019050919050565b6000614daa600d836152f6565b9150614db58261588e565b602082019050919050565b6000614dcd602f836152f6565b9150614dd8826158b7565b604082019050919050565b6000614df06020836152f6565b9150614dfb82615906565b602082019050919050565b6000614e13602f836152f6565b9150614e1e8261592f565b604082019050919050565b6000614e366016836152f6565b9150614e418261597e565b602082019050919050565b6000614e59602a836152f6565b9150614e64826159a7565b604082019050919050565b6000614e7c6000836152eb565b9150614e87826159f6565b600082019050919050565b6000614e9f6010836152f6565b9150614eaa826159f9565b602082019050919050565b614ebe816154ad565b82525050565b614ecd816154ad565b82525050565b6000614edf8284614b09565b60148201915081905092915050565b6000614efa8286614bd5565b9150614f068285614bd5565b9150614f128284614c06565b9150819050949350505050565b6000614f2a82614e6f565b9150819050919050565b6000602082019050614f496000830184614afa565b92915050565b6000602082019050614f646000830184614aeb565b92915050565b60006020820190508181036000830152614f848184614b20565b905092915050565b6000602082019050614fa16000830184614b7e565b92915050565b6000602082019050614fbc6000830184614b8d565b92915050565b60006020820190508181036000830152614fdc8184614b9c565b905092915050565b60006020820190508181036000830152614ffd81614c85565b9050919050565b6000602082019050818103600083015261501d81614ca8565b9050919050565b6000602082019050818103600083015261503d81614ccb565b9050919050565b6000602082019050818103600083015261505d81614cee565b9050919050565b6000602082019050818103600083015261507d81614d11565b9050919050565b6000602082019050818103600083015261509d81614d34565b9050919050565b600060208201905081810360008301526150bd81614d57565b9050919050565b600060208201905081810360008301526150dd81614d7a565b9050919050565b600060208201905081810360008301526150fd81614d9d565b9050919050565b6000602082019050818103600083015261511d81614dc0565b9050919050565b6000602082019050818103600083015261513d81614de3565b9050919050565b6000602082019050818103600083015261515d81614e06565b9050919050565b6000602082019050818103600083015261517d81614e29565b9050919050565b6000602082019050818103600083015261519d81614e4c565b9050919050565b600060208201905081810360008301526151bd81614e92565b9050919050565b60006020820190506151d96000830184614ec4565b92915050565b60006151e96151fa565b90506151f5828261552b565b919050565b6000604051905090565b600067ffffffffffffffff82111561521f5761521e615687565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561524b5761524a615687565b5b615254826156b6565b9050602081019050919050565b600067ffffffffffffffff82111561527c5761527b615687565b5b615285826156b6565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061531d826154ad565b9150615328836154ad565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561535d5761535c6155fa565b5b828201905092915050565b6000615373826154ad565b915061537e836154ad565b92508261538e5761538d615629565b5b828204905092915050565b60006153a4826154ad565b91506153af836154ad565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156153e8576153e76155fa565b5b828202905092915050565b60006153fe826154ad565b9150615409836154ad565b92508282101561541c5761541b6155fa565b5b828203905092915050565b60006154328261548d565b9050919050565b60006154448261548d565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156154e45780820151818401526020810190506154c9565b838111156154f3576000848401525b50505050565b6000600282049050600182168061551157607f821691505b6020821081141561552557615524615658565b5b50919050565b615534826156b6565b810181811067ffffffffffffffff8211171561555357615552615687565b5b80604052505050565b6000615567826154ad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561559a576155996155fa565b5b600182019050919050565b60006155b0826155b7565b9050919050565b60006155c2826156c7565b9050919050565b60006155d4826154ad565b91506155df836154ad565b9250826155ef576155ee615629565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f436f6e74726163742044656e6965642e00000000000000000000000000000000600082015250565b7f5075626c6963206d696e74206e6f7420656e61626c6564210000000000000000600082015250565b7f546f6b656e207472616e7366657220746f20636f6e747261637420616464726560008201527f7373206973206e6f7420616c6c6f7765642e0000000000000000000000000000602082015250565b7f496e76616c696420546f6b656e49640000000000000000000000000000000000600082015250565b7f6d61782070657220616464726573732065786365656465642100000000000000600082015250565b7f4d696e7420616c726561647920636c61696d6564210000000000000000000000600082015250565b7f50726f6f6620496e76616c696400000000000000000000000000000000000000600082015250565b7f45746865722073656e7420776974682074686973207472616e73616374696f6e60008201527f206973206e6f7420636f72726563740000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b7f4d6178696d756d204e4654732063616e206265206d696e74656420706572207460008201527f72616e73616374696f6e00000000000000000000000000000000000000000000602082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b615a2b81615427565b8114615a3657600080fd5b50565b615a428161544b565b8114615a4d57600080fd5b50565b615a5981615457565b8114615a6457600080fd5b50565b615a7081615461565b8114615a7b57600080fd5b50565b615a87816154ad565b8114615a9257600080fd5b5056fea26469706673582212203f54015fc9b3e0c179b964d5555df2acd24036d1ff21501747ddd5d589b1f53364736f6c63430008040033

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.