ETH Price: $3,039.16 (+3.39%)

Token

NFTheo (NFTheo)
 

Overview

Max Total Supply

0 NFTheo

Holders

1,146

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bobamor.eth
Balance
1 NFTheo
0x7401572D8B4E07F89579D804e267ac000C8C67cC
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

NFTheo is an art project of 3000 unique NFT Teddy Bears. Every Theo is one of a kind. This project is entirely about the art, so manage your expectations accordingly. There will only ever be 3000 Theos, comprised of multiple themed sets and ANIMATED Legendary Theos.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NFTheo

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-09-10
*/

// SPDX-License-Identifier: MIT

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



pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol



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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol



pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol



pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol



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: @openzeppelin/contracts/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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol



pragma solidity ^0.8.0;


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

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

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

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



pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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: @openzeppelin/contracts/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/introspection/ERC165.sol



pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC721/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 view 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 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"
        );

        _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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @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 of token that is not own");
        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);
    }

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

// File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol



pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

// File: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol



pragma solidity ^0.8.0;


/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol



pragma solidity ^0.8.0;


/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

// File: @openzeppelin/contracts/token/ERC1155/ERC1155.sol



pragma solidity ^0.8.0;







/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

// File: contracts/ERC1155Tradeable.sol

pragma solidity >=0.8;



contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

abstract contract ContextMixin {
    function msgSender() internal view returns (address payable sender) {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string public constant ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH =
        keccak256(
            bytes(
                "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
            )
        );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(string memory name) internal initializer {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

contract NativeMetaTransaction is EIP712Base {
    bytes32 private constant META_TRANSACTION_TYPEHASH =
        keccak256(
            bytes(
                "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
            )
        );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) external payable returns (bytes memory) {
        MetaTransaction memory metaTx =
            MetaTransaction({
                nonce: nonces[userAddress],
                from: userAddress,
                functionSignature: functionSignature
            });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] += 1;

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) =
            address(this).call(
                abi.encodePacked(functionSignature, userAddress)
            );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}


contract ERC1155Tradable is
    ContextMixin,
    ERC1155,
    NativeMetaTransaction,
    Ownable,
    Pausable
{
    using Address for address;

    // Proxy registry address
    address public proxyRegistryAddress;
    // Contract name
    string public name;
    // Contract symbol
    string public symbol;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private balances;

    mapping(uint256 => uint256) private _supply;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC1155("") {
        name = _name;
        symbol = _symbol;
        proxyRegistryAddress = _proxyRegistryAddress;
        _initializeEIP712(name);
    }

    /**
     * @dev Throws if called by any account other than the owner or their proxy
     */
    modifier onlyOwnerOrProxy() {
        require(
            _isOwnerOrProxy(_msgSender()),
            "ERC1155Tradable#onlyOwner: CALLER_IS_NOT_OWNER"
        );
        _;
    }

    /**
     * @dev Throws if called by any account other than _from or their proxy
     */
    modifier onlyApproved(address _from) {
        require(
            _from == _msgSender() || isApprovedForAll(_from, _msgSender()),
            "ERC1155Tradable#onlyApproved: CALLER_NOT_ALLOWED"
        );
        _;
    }

    function _isOwnerOrProxy(address _address) internal view returns (bool) {
        return owner() == _address || _isProxyForUser(owner(), _address);
    }

    function pause() external onlyOwnerOrProxy {
        _pause();
    }

    function unpause() external onlyOwnerOrProxy {
        _unpause();
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            account != address(0),
            "ERC1155: balance query for the zero address"
        );
        return balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(
            accounts.length == ids.length,
            "ERC1155: accounts and ids length mismatch"
        );

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev Returns the total quantity for a token ID
     * @param _id uint256 ID of the token to query
     * @return amount of token in existence
     */
    function totalSupply(uint256 _id) public view returns (uint256) {
        return _supply[_id];
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings.
     */
    function isApprovedForAll(address _owner, address _operator)
        public
        view
        override
        returns (bool isOperator)
    {
        // Whitelist OpenSea proxy contracts for easy trading.
        if (_isProxyForUser(_owner, _operator)) {
            return true;
        }

        return super.isApprovedForAll(_owner, _operator);
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override whenNotPaused onlyApproved(from) {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            from,
            to,
            asSingletonArray(id),
            asSingletonArray(amount),
            data
        );

        uint256 fromBalance = balances[id][from];
        require(
            fromBalance >= amount,
            "ERC1155: insufficient balance for transfer"
        );
        balances[id][from] = fromBalance - amount;
        balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override whenNotPaused onlyApproved(from) {
        require(
            ids.length == amounts.length,
            "ERC1155: IDS_AMOUNTS_LENGTH_MISMATCH"
        );
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = balances[id][from];
            require(
                fromBalance >= amount,
                "ERC1155: insufficient balance for transfer"
            );
            balances[id][from] = fromBalance - amount;
            balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        doSafeBatchTransferAcceptanceCheck(
            operator,
            from,
            to,
            ids,
            amounts,
            data
        );
    }

    /**
     * @dev Hook to be called right before minting
     * @param _id          Token ID to mint
     * @param _quantity    Amount of tokens to mint
     */
    function _beforeMint(uint256 _id, uint256 _quantity) internal virtual {}

    /**
     * @dev Mints some amount of tokens to an address
     * @param _to          Address of the future owner of the token
     * @param _id          Token ID to mint
     * @param _quantity    Amount of tokens to mint
     * @param _data        Data to pass if receiver is contract
     */
    function mint(
        address _to,
        uint256 _id,
        uint256 _quantity,
        bytes memory _data
    ) public virtual onlyOwnerOrProxy {
        _mint(_to, _id, _quantity, _data);
    }

    /**
     * @dev Mint tokens for each id in _ids
     * @param _to          The address to mint tokens to
     * @param _ids         Array of ids to mint
     * @param _quantities  Array of amounts of tokens to mint per id
     * @param _data        Data to pass if receiver is contract
     */
    function batchMint(
        address _to,
        uint256[] memory _ids,
        uint256[] memory _quantities,
        bytes memory _data
    ) public virtual onlyOwnerOrProxy {
        _batchMint(_to, _ids, _quantities, _data);
    }

    /**
     * @dev Burns amount of a given token id
     * @param _from          The address to burn tokens from
     * @param _id          Token ID to burn
     * @param _quantity    Amount to burn
     */
    function burn(
        address _from,
        uint256 _id,
        uint256 _quantity
    ) public virtual onlyApproved(_from) {
        _burn(_from, _id, _quantity);
    }

    /**
     * @dev Burns tokens for each id in _ids
     * @param _from          The address to burn tokens from
     * @param _ids         Array of token ids to burn
     * @param _quantities  Array of the amount to be burned
     */
    function batchBurn(
        address _from,
        uint256[] memory _ids,
        uint256[] memory _quantities
    ) public virtual onlyApproved(_from) {
        _burnBatch(_from, _ids, _quantities);
    }

    /**
     * @dev Returns whether the specified token is minted
     * @param _id uint256 ID of the token to query the existence of
     * @return bool whether the token exists
     */
    function exists(uint256 _id) public view returns (bool) {
        return _supply[_id] > 0;
    }

    // Overrides ERC1155 _mint to allow changing birth events to creator transfers,
    // and to set _supply
    function _mint(
        address _to,
        uint256 _id,
        uint256 _amount,
        bytes memory _data
    ) internal virtual override whenNotPaused {
        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            address(0),
            _to,
            asSingletonArray(_id),
            asSingletonArray(_amount),
            _data
        );

        _beforeMint(_id, _amount);

        // Add _amount
        balances[_id][_to] += _amount;
        _supply[_id] += _amount;

        // Origin of token will be the _from parameter
        address origin = _origin(_id);

        // Emit event
        emit TransferSingle(operator, origin, _to, _id, _amount);

        // Calling onReceive method if recipient is contract
        doSafeTransferAcceptanceCheck(
            operator,
            origin,
            _to,
            _id,
            _amount,
            _data
        );
    }

    // Overrides ERC1155MintBurn to change the batch birth events to creator transfers, and to set _supply
    function _batchMint(
        address _to,
        uint256[] memory _ids,
        uint256[] memory _amounts,
        bytes memory _data
    ) internal virtual whenNotPaused {
        require(
            _ids.length == _amounts.length,
            "ERC1155Tradable#batchMint: INVALID_ARRAYS_LENGTH"
        );

        // Number of mints to execute
        uint256 nMint = _ids.length;

        // Origin of tokens will be the _from parameter
        address origin = _origin(_ids[0]);

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), _to, _ids, _amounts, _data);

        // Executing all minting
        for (uint256 i = 0; i < nMint; i++) {
            // Update storage balance
            uint256 id = _ids[i];
            uint256 amount = _amounts[i];
            _beforeMint(id, amount);
            require(
                _origin(id) == origin,
                "ERC1155Tradable#batchMint: MULTIPLE_ORIGINS_NOT_ALLOWED"
            );
            balances[id][_to] += amount;
            _supply[id] += amount;
        }

        // Emit batch mint event
        emit TransferBatch(operator, origin, _to, _ids, _amounts);

        // Calling onReceive method if recipient is contract
        doSafeBatchTransferAcceptanceCheck(
            operator,
            origin,
            _to,
            _ids,
            _amounts,
            _data
        );
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal override whenNotPaused {
        require(account != address(0), "ERC1155#_burn: BURN_FROM_ZERO_ADDRESS");
        require(amount > 0, "ERC1155#_burn: AMOUNT_LESS_THAN_ONE");

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            account,
            address(0),
            asSingletonArray(id),
            asSingletonArray(amount),
            ""
        );

        uint256 accountBalance = balances[id][account];
        require(
            accountBalance >= amount,
            "ERC1155#_burn: AMOUNT_EXCEEDS_BALANCE"
        );
        balances[id][account] = accountBalance - amount;
        _supply[id] -= amount;

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal override whenNotPaused {
        require(account != address(0), "ERC1155: BURN_FROM_ZERO_ADDRESS");
        require(
            ids.length == amounts.length,
            "ERC1155: IDS_AMOUNTS_LENGTH_MISMATCH"
        );

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = balances[id][account];
            require(
                accountBalance >= amount,
                "ERC1155#_burnBatch: AMOUNT_EXCEEDS_BALANCE"
            );
            balances[id][account] = accountBalance - amount;
            _supply[id] -= amount;
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    // Override this to change birth events' _from address
    function _origin(
        uint256 /* _id */
    ) internal view virtual returns (address) {
        return address(0);
    }

    // PROXY HELPER METHODS

    function _isProxyForUser(address _user, address _address)
        internal
        view
        virtual
        returns (bool)
    {
        if (!proxyRegistryAddress.isContract()) {
            return false;
        }
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        return address(proxyRegistry.proxies(_user)) == _address;
    }

    // Copied from OpenZeppelin
    // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/c3ae4790c71b7f53cc8fff743536dcb7031fed74/contracts/token/ERC1155/ERC1155.sol#L394
    function doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try
                IERC1155Receiver(to).onERC1155Received(
                    operator,
                    from,
                    id,
                    amount,
                    data
                )
            returns (bytes4 response) {
                if (
                    response != IERC1155Receiver(to).onERC1155Received.selector
                ) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    // Copied from OpenZeppelin
    // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/c3ae4790c71b7f53cc8fff743536dcb7031fed74/contracts/token/ERC1155/ERC1155.sol#L417
    function doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal {
        if (to.isContract()) {
            try
                IERC1155Receiver(to).onERC1155BatchReceived(
                    operator,
                    from,
                    ids,
                    amounts,
                    data
                )
            returns (bytes4 response) {
                if (
                    response !=
                    IERC1155Receiver(to).onERC1155BatchReceived.selector
                ) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    // Copied from OpenZeppelin
    // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/c3ae4790c71b7f53cc8fff743536dcb7031fed74/contracts/token/ERC1155/ERC1155.sol#L440
    function asSingletonArray(uint256 element)
        private
        pure
        returns (uint256[] memory)
    {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender() internal view override returns (address sender) {
        return ContextMixin.msgSender();
    }
}

// File: contracts/NFTheo.sol

  

pragma solidity >= 0.8.0;






contract NFTheo is
    Ownable, 
    ReentrancyGuard, 
    ERC721
{
    using Address for address payable;

    bool public locked = true;
    bool public early = true;

    mapping(address => bool) private earlyMinted;
    
    // maximum number of tokens to exist
    uint256 constant MAX_MINTABLE_TOKENS = 2600;
    // current number of tokens in existence
    uint256 public minted = 0;
    // used to track which IDs have been used
    uint256[MAX_MINTABLE_TOKENS] public indices;
    
    // number of legacy tokens
    uint256 constant private LEGACY_TOKENS = 400;
    // current number of tokens mapped
    uint256 private mapped;
    // used to map legacy NFTheos to new ones
    mapping(uint256 => uint256) public legacyMapping;
    

    // address to withdraw funds
    address payable public teamAddress;
    // instance of legacy contract
    ERC1155Tradable legacyContract;
    // URI of metadata
    string baseURI;
    
    event TeamAddressChanged(
        address teamAddress
    );
    
    constructor(
        address _legacyContract,
        string memory _uri
    ) ERC721("NFTheo", "NFTheo") {
        legacyContract = ERC1155Tradable(_legacyContract);
        baseURI = _uri;
        teamAddress = payable(_msgSender());
    }
    
    /*************/
    /* MODIFIERS */
    /*************/
    

    modifier onlyUnlocked() {
        require(!locked, "Contract is locked");
        _;
    }

    modifier limitEarly(uint256 quantity) {
        if (early) {
            require(balanceOf(_msgSender()) > 0, "Only migrated legacy owners can currently mint");
            require(earlyMinted[_msgSender()] == false, "Can only mint once early");
            require(quantity <= 2, "Can only mint two early");
            earlyMinted[_msgSender()] = true;
        }
        _;
    }

    /***********************/
    /* USER INTERACTIONS   */
    /***********************/


    /**
     * @notice mints NFTs with random IDs
     * @param quantity the number of NFTs to create
     */
    function mint(uint256 quantity) external payable nonReentrant onlyUnlocked limitEarly(quantity) {
        require(minted + quantity <= MAX_MINTABLE_TOKENS, "Exceeds max NFT supply");
        require(quantity > 0, "Cannot mint 0 NFTs");
        require(quantity <= 5, "Cannot mint more than 5 NFTs at once");
        require(msg.value == nftCost() * quantity, "Incorrect payment amount");

        uint256 id;
        for (uint i = 0; i < quantity; i++) {
            id = randomID();
            _safeMint(_msgSender(), id);
            minted = minted + 1;
        }
    }
    
    /**
     * @notice burns a legacy NFT in return for a current NFT
     * @param tokenId ID of token to swap
     */
    function redeem(uint256 tokenId) external nonReentrant onlyUnlocked { 
        require(legacyContract.balanceOf(_msgSender(), tokenId) > 0, "Must own token to redeem");
        require(legacyMapping[tokenId] != 0, "Invalid legacy ID");
        _safeMint(_msgSender(), legacyMapping[tokenId]);
        legacyContract.safeTransferFrom(_msgSender(), address(0xdead), tokenId, 1, "");
    }

    /***********/
    /* GETTERS */
    /***********/

    /**
     * @notice current cost to create a single avatar
     * @return cost to create
     */
    function nftCost() public pure returns (uint256) {
        return 0.08 ether;
    }

    /***********/
    /* PRIVATE */
    /***********/
    
    /**
     * @notice generates random IDs without collisions
     * @return random ID
     */
    function randomID() internal returns (uint) {
        uint remaining = MAX_MINTABLE_TOKENS - minted;
        uint random = uint(keccak256(abi.encodePacked(minted, msg.sender, block.difficulty, block.timestamp))) % remaining;
        uint value = indices[random] == 0 ? random : indices[random];

        indices[random] = indices[remaining - 1] == 0 ? remaining - 1 : indices[remaining - 1];

        return value + LEGACY_TOKENS + 1;
    }

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

    /**
     * @notice withdraws funds that are owed to the project (contract balance - total held in reserve)
     */
    function withdraw() external onlyOwner {
        payable(teamAddress).transfer(
            address(this).balance
        );
    }
    
    /**
     * @notice adds tokenIds to legacyMapping
     * @param newIds tokenIds, in order, of the new tokens
     * @param oldIds tokenIds, in order, referencing the same index new token
     */
    function addLegacyMappings(uint256[] calldata newIds, uint256[] calldata oldIds) external onlyOwner {
        for (uint i = 0; i < oldIds.length; i++) {
            require(newIds[i] <= LEGACY_TOKENS, "Invalid new ID");
            legacyMapping[oldIds[i]] = newIds[i];
        }
    }

    /**
     * @notice owner mint of tokens from legacy set in case of issues migrating
     * @param tokenIds to mint
     */
    function rescue(uint256[] calldata tokenIds) external onlyOwner {
        for (uint i = 0; i < tokenIds.length; i++) {
            require(tokenIds[i] <= LEGACY_TOKENS, "Must be legacy token");
            _safeMint(_msgSender(), tokenIds[i]);
        }
    }
    
    /**
     * @notice owner mint of tokens before public mint is available
     * @param tokenIds to mint 
     */
    function ownerMint(uint256[] calldata tokenIds) external onlyOwner {
        uint remaining = MAX_MINTABLE_TOKENS - minted;
        require(tokenIds.length <= remaining, "Exceeds number of available tokens");
        for (uint i = 0; i < tokenIds.length; i++) {
            require(tokenIds[i] <= LEGACY_TOKENS + MAX_MINTABLE_TOKENS, "Cannot mint token out of range");
            require(indices[tokenIds[i] - LEGACY_TOKENS - 1] == 0, "Cannot mint already claimed token");
            indices[tokenIds[i] - LEGACY_TOKENS - 1] = remaining - i - 1;
            _safeMint(_msgSender(), tokenIds[i]);
            minted = minted + 1;
        }
    }
    
    /**
     * @notice sets the address to send withdrawable funds to
     * @param _teamAddress the new destination address
     */
    function setTeamAddress(address payable _teamAddress) public onlyOwner {
        teamAddress = _teamAddress;
        emit TeamAddressChanged(teamAddress);
    }

    function setLocked(bool _locked) external onlyOwner {
        locked = _locked;
    }

    function setEarly(bool _early) external onlyOwner {
        early = _early;
    }

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_legacyContract","type":"address"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"teamAddress","type":"address"}],"name":"TeamAddressChanged","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":"newIds","type":"uint256[]"},{"internalType":"uint256[]","name":"oldIds","type":"uint256[]"}],"name":"addLegacyMappings","outputs":[],"stateMutability":"nonpayable","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":[],"name":"early","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"indices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"legacyMapping","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_early","type":"bool"}],"name":"setEarly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_locked","type":"bool"}],"name":"setLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_teamAddress","type":"address"}],"name":"setTeamAddress","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":[],"name":"teamAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805461ffff19166101011790556000600a553480156200002557600080fd5b50604051620030a9380380620030a983398101604081905262000048916200021a565b604051806040016040528060068152602001654e465468656f60d01b815250604051806040016040528060068152602001654e465468656f60d01b815250620000a06200009a6200012060201b60201c565b62000124565b600180558151620000b990600290602085019062000174565b508051620000cf90600390602084019062000174565b5050610a3680546001600160a01b0319166001600160a01b0385161790555080516200010490610a3790602084019062000174565b5050610a3580546001600160a01b03191633179055506200036d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000182906200031a565b90600052602060002090601f016020900481019282620001a65760008555620001f1565b82601f10620001c157805160ff1916838001178555620001f1565b82800160010185558215620001f1579182015b82811115620001f1578251825591602001919060010190620001d4565b50620001ff92915062000203565b5090565b5b80821115620001ff576000815560010162000204565b600080604083850312156200022e57600080fd5b82516001600160a01b03811681146200024657600080fd5b602084810151919350906001600160401b03808211156200026657600080fd5b818601915086601f8301126200027b57600080fd5b81518181111562000290576200029062000357565b604051601f8201601f19908116603f01168101908382118183101715620002bb57620002bb62000357565b816040528281528986848701011115620002d457600080fd5b600093505b82841015620002f85784840186015181850187015292850192620002d9565b828411156200030a5760008684830101525b8096505050505050509250929050565b600181811c908216806200032f57607f821691505b602082108114156200035157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612d2c806200037d6000396000f3fe6080604052600436106101fe5760003560e01c806370a082311161011d578063b88d4fde116100b0578063da80e59b1161007f578063e985e9c511610064578063e985e9c5146105bd578063f2fde38b14610606578063fc2162271461062657600080fd5b8063da80e59b14610582578063db006a751461059d57600080fd5b8063b88d4fde14610508578063c575526914610528578063c87b56dd14610548578063cf3090121461056857600080fd5b80639cc2983d116100ec5780639cc2983d14610495578063a0712d68146104b5578063a1a953fd146104c8578063a22cb465146104e857600080fd5b806370a082311461042d578063715018a61461044d5780638da5cb5b1461046257806395d89b411461048057600080fd5b806323b872dd1161019557806355f804b31161016457806355f804b3146103ad5780636352211e146103cd5780636690864e146103ed5780636a3ef0571461040d57600080fd5b806323b872dd146103345780633ccfd60b1461035457806342842e0e146103695780634f02c4201461038957600080fd5b8063095ea7b3116101d1578063095ea7b3146102b157806311748f02146102d35780631c75f085146102f3578063211e28b61461031457600080fd5b806301ffc9a71461020357806302546d3a1461023857806306fdde0314610257578063081812fc14610279575b600080fd5b34801561020f57600080fd5b5061022361021e3660046129f3565b610654565b60405190151581526020015b60405180910390f35b34801561024457600080fd5b5060085461022390610100900460ff1681565b34801561026357600080fd5b5061026c6106f1565b60405161022f9190612b68565b34801561028557600080fd5b50610299610294366004612a9f565b610783565b6040516001600160a01b03909116815260200161022f565b3480156102bd57600080fd5b506102d16102cc3660046128fe565b61081d565b005b3480156102df57600080fd5b506102d16102ee36600461292a565b61094f565b3480156102ff57600080fd5b50610a3554610299906001600160a01b031681565b34801561032057600080fd5b506102d161032f3660046129d8565b610c15565b34801561034057600080fd5b506102d161034f3660046127a8565b610c82565b34801561036057600080fd5b506102d1610d09565b34801561037557600080fd5b506102d16103843660046127a8565b610da0565b34801561039557600080fd5b5061039f600a5481565b60405190815260200161022f565b3480156103b957600080fd5b506102d16103c8366004612a2d565b610dbb565b3480156103d957600080fd5b506102996103e8366004612a9f565b610e22565b3480156103f957600080fd5b506102d1610408366004612752565b610ead565b34801561041957600080fd5b506102d161042836600461292a565b610f5c565b34801561043957600080fd5b5061039f610448366004612752565b611053565b34801561045957600080fd5b506102d16110ed565b34801561046e57600080fd5b506000546001600160a01b0316610299565b34801561048c57600080fd5b5061026c611153565b3480156104a157600080fd5b506102d16104b036600461296c565b611162565b6102d16104c3366004612a9f565b611294565b3480156104d457600080fd5b5061039f6104e3366004612a9f565b61166d565b3480156104f457600080fd5b506102d16105033660046128c9565b611685565b34801561051457600080fd5b506102d16105233660046127e9565b61174a565b34801561053457600080fd5b506102d16105433660046129d8565b6117d2565b34801561055457600080fd5b5061026c610563366004612a9f565b611846565b34801561057457600080fd5b506008546102239060ff1681565b34801561058e57600080fd5b5067011c37937e08000061039f565b3480156105a957600080fd5b506102d16105b8366004612a9f565b61192f565b3480156105c957600080fd5b506102236105d836600461276f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561061257600080fd5b506102d1610621366004612752565b611bc6565b34801561063257600080fd5b5061039f610641366004612a9f565b610a346020526000908152604090205481565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106b757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106eb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606002805461070090612c09565b80601f016020809104026020016040519081016040528092919081815260200182805461072c90612c09565b80156107795780601f1061074e57610100808354040283529160200191610779565b820191906000526020600020905b81548152906001019060200180831161075c57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166108015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082882610e22565b9050806001600160a01b0316836001600160a01b031614156108b25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107f8565b336001600160a01b03821614806108ce57506108ce81336105d8565b6109405760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f8565b61094a8383611ca5565b505050565b6000546001600160a01b031633146109a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6000600a54610a286109bb9190612bc6565b905080821115610a335760405162461bcd60e51b815260206004820152602260248201527f45786365656473206e756d626572206f6620617661696c61626c6520746f6b6560448201527f6e7300000000000000000000000000000000000000000000000000000000000060648201526084016107f8565b60005b82811015610c0f57610a4c610a28610190612b7b565b848483818110610a5e57610a5e612c9f565b905060200201351115610ab35760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74206d696e7420746f6b656e206f7574206f662072616e6765000060448201526064016107f8565b600b6001610190868685818110610acc57610acc612c9f565b90506020020135610add9190612bc6565b610ae79190612bc6565b610a288110610af857610af8612c9f565b015415610b6d5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f74206d696e7420616c726561647920636c61696d656420746f6b6560448201527f6e0000000000000000000000000000000000000000000000000000000000000060648201526084016107f8565b6001610b798284612bc6565b610b839190612bc6565b600b6001610190878786818110610b9c57610b9c612c9f565b90506020020135610bad9190612bc6565b610bb79190612bc6565b610a288110610bc857610bc8612c9f565b0155610bec33858584818110610be057610be0612c9f565b90506020020135611d13565b600a54610bfa906001612b7b565b600a5580610c0781612c44565b915050610a36565b50505050565b6000546001600160a01b03163314610c6f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6008805460ff1916911515919091179055565b610c8c3382611d31565b610cfe5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107f8565b61094a838383611e28565b6000546001600160a01b03163314610d635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b610a35546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d9d573d6000803e3d6000fd5b50565b61094a8383836040518060200160405280600081525061174a565b6000546001600160a01b03163314610e155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b61094a610a378383612658565b6000818152600460205260408120546001600160a01b0316806106eb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107f8565b6000546001600160a01b03163314610f075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b610a3580546001600160a01b0319166001600160a01b0383169081179091556040519081527ff19f87d1919d189aed7b2b91727d082152e2ff36769ce1143a4676001ab708ca9060200160405180910390a150565b6000546001600160a01b03163314610fb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b60005b8181101561094a57610190838383818110610fd657610fd6612c9f565b90506020020135111561102b5760405162461bcd60e51b815260206004820152601460248201527f4d757374206265206c656761637920746f6b656e00000000000000000000000060448201526064016107f8565b61104133848484818110610be057610be0612c9f565b8061104b81612c44565b915050610fb9565b60006001600160a01b0382166110d15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107f8565b506001600160a01b031660009081526005602052604090205490565b6000546001600160a01b031633146111475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6111516000611ff5565b565b60606003805461070090612c09565b6000546001600160a01b031633146111bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b60005b8181101561128d576101908585838181106111dc576111dc612c9f565b9050602002013511156112315760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964206e657720494400000000000000000000000000000000000060448201526064016107f8565b84848281811061124357611243612c9f565b90506020020135610a34600085858581811061126157611261612c9f565b90506020020135815260200190815260200160002081905550808061128590612c44565b9150506111bf565b5050505050565b600260015414156112e75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f8565b600260015560085460ff161561133f5760405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206973206c6f636b6564000000000000000000000000000060448201526064016107f8565b6008548190610100900460ff161561149b57600061135c33611053565b116113cf5760405162461bcd60e51b815260206004820152602e60248201527f4f6e6c79206d69677261746564206c6567616379206f776e6572732063616e2060448201527f63757272656e746c79206d696e7400000000000000000000000000000000000060648201526084016107f8565b3360009081526009602052604090205460ff161561142f5760405162461bcd60e51b815260206004820152601860248201527f43616e206f6e6c79206d696e74206f6e6365206561726c79000000000000000060448201526064016107f8565b60028111156114805760405162461bcd60e51b815260206004820152601760248201527f43616e206f6e6c79206d696e742074776f206561726c7900000000000000000060448201526064016107f8565b336000908152600960205260409020805460ff191660011790555b610a2882600a546114ac9190612b7b565b11156114fa5760405162461bcd60e51b815260206004820152601660248201527f45786365656473206d6178204e465420737570706c790000000000000000000060448201526064016107f8565b6000821161154a5760405162461bcd60e51b815260206004820152601260248201527f43616e6e6f74206d696e742030204e465473000000000000000000000000000060448201526064016107f8565b60058211156115c05760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74206d696e74206d6f7265207468616e2035204e4654732061742060448201527f6f6e63650000000000000000000000000000000000000000000000000000000060648201526084016107f8565b6115d28267011c37937e080000612ba7565b34146116205760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374207061796d656e7420616d6f756e74000000000000000060448201526064016107f8565b6000805b8381101561166357611634612045565b91506116403383611d13565b600a5461164e906001612b7b565b600a558061165b81612c44565b915050611624565b5050600180555050565b600b81610a28811061167e57600080fd5b0154905081565b6001600160a01b0382163314156116de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f8565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117543383611d31565b6117c65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107f8565b610c0f84848484612180565b6000546001600160a01b0316331461182c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b600880549115156101000261ff0019909216919091179055565b6000818152600460205260409020546060906001600160a01b03166118d35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107f8565b60006118dd6121fe565b905060008151116118fd5760405180602001604052806000815250611928565b806119078461220e565b604051602001611918929190612afd565b6040516020818303038152906040525b9392505050565b600260015414156119825760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f8565b600260015560085460ff16156119da5760405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206973206c6f636b6564000000000000000000000000000060448201526064016107f8565b610a36546000906001600160a01b031662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260440160206040518083038186803b158015611a3557600080fd5b505afa158015611a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6d9190612ab8565b11611aba5760405162461bcd60e51b815260206004820152601860248201527f4d757374206f776e20746f6b656e20746f2072656465656d000000000000000060448201526064016107f8565b6000818152610a346020526040902054611b165760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964206c656761637920494400000000000000000000000000000060448201526064016107f8565b611b2f336000838152610a346020526040902054611d13565b610a36546001600160a01b031663f242432a336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015261dead6024820152604481018490526001606482015260a06084820152600060a482015260c401600060405180830381600087803b158015611ba757600080fd5b505af1158015611bbb573d6000803e3d6000fd5b505060018055505050565b6000546001600160a01b03163314611c205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6001600160a01b038116611c9c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107f8565b610d9d81611ff5565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cda82610e22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611d2d828260405180602001604052806000815250612340565b5050565b6000818152600460205260408120546001600160a01b0316611daa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f8565b6000611db583610e22565b9050806001600160a01b0316846001600160a01b03161480611df05750836001600160a01b0316611de584610783565b6001600160a01b0316145b80611e2057506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e3b82610e22565b6001600160a01b031614611eb75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107f8565b6001600160a01b038216611f325760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107f8565b611f3d600082611ca5565b6001600160a01b0383166000908152600560205260408120805460019290611f66908490612bc6565b90915550506001600160a01b0382166000908152600560205260408120805460019290611f94908490612b7b565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600a54610a286120589190612bc6565b600a546040805160208101929092526bffffffffffffffffffffffff193360601b169082015244605482015242607482015290915060009082906094016040516020818303038152906040528051906020012060001c6120b89190612c5f565b90506000600b82610a2881106120d0576120d0612c9f565b0154156120f257600b82610a2881106120eb576120eb612c9f565b01546120f4565b815b9050600b612103600185612bc6565b610a28811061211457612114612c9f565b01541561214057600b612128600185612bc6565b610a28811061213957612139612c9f565b015461214b565b61214b600184612bc6565b600b83610a28811061215f5761215f612c9f565b015561216d61019082612b7b565b612178906001612b7b565b935050505090565b61218b848484611e28565b612197848484846123be565b610c0f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107f8565b6060610a37805461070090612c09565b60608161224e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612278578061226281612c44565b91506122719050600a83612b93565b9150612252565b60008167ffffffffffffffff81111561229357612293612cb5565b6040519080825280601f01601f1916602001820160405280156122bd576020820181803683370190505b5090505b8415611e20576122d2600183612bc6565b91506122df600a86612c5f565b6122ea906030612b7b565b60f81b8183815181106122ff576122ff612c9f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612339600a86612b93565b94506122c1565b61234a8383612516565b61235760008484846123be565b61094a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107f8565b60006001600160a01b0384163b1561250b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612402903390899088908890600401612b2c565b602060405180830381600087803b15801561241c57600080fd5b505af192505050801561244c575060408051601f3d908101601f1916820190925261244991810190612a10565b60015b6124f1573d80801561247a576040519150601f19603f3d011682016040523d82523d6000602084013e61247f565b606091505b5080516124e95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e20565b506001949350505050565b6001600160a01b03821661256c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f8565b6000818152600460205260409020546001600160a01b0316156125d15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f8565b6001600160a01b03821660009081526005602052604081208054600192906125fa908490612b7b565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461266490612c09565b90600052602060002090601f01602090048101928261268657600085556126cc565b82601f1061269f5782800160ff198235161785556126cc565b828001600101855582156126cc579182015b828111156126cc5782358255916020019190600101906126b1565b506126d89291506126dc565b5090565b5b808211156126d857600081556001016126dd565b60008083601f84011261270357600080fd5b50813567ffffffffffffffff81111561271b57600080fd5b6020830191508360208260051b850101111561273657600080fd5b9250929050565b8035801515811461274d57600080fd5b919050565b60006020828403121561276457600080fd5b813561192881612ccb565b6000806040838503121561278257600080fd5b823561278d81612ccb565b9150602083013561279d81612ccb565b809150509250929050565b6000806000606084860312156127bd57600080fd5b83356127c881612ccb565b925060208401356127d881612ccb565b929592945050506040919091013590565b600080600080608085870312156127ff57600080fd5b843561280a81612ccb565b9350602085013561281a81612ccb565b925060408501359150606085013567ffffffffffffffff8082111561283e57600080fd5b818701915087601f83011261285257600080fd5b81358181111561286457612864612cb5565b604051601f8201601f19908116603f0116810190838211818310171561288c5761288c612cb5565b816040528281528a60208487010111156128a557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156128dc57600080fd5b82356128e781612ccb565b91506128f56020840161273d565b90509250929050565b6000806040838503121561291157600080fd5b823561291c81612ccb565b946020939093013593505050565b6000806020838503121561293d57600080fd5b823567ffffffffffffffff81111561295457600080fd5b612960858286016126f1565b90969095509350505050565b6000806000806040858703121561298257600080fd5b843567ffffffffffffffff8082111561299a57600080fd5b6129a6888389016126f1565b909650945060208701359150808211156129bf57600080fd5b506129cc878288016126f1565b95989497509550505050565b6000602082840312156129ea57600080fd5b6119288261273d565b600060208284031215612a0557600080fd5b813561192881612ce0565b600060208284031215612a2257600080fd5b815161192881612ce0565b60008060208385031215612a4057600080fd5b823567ffffffffffffffff80821115612a5857600080fd5b818501915085601f830112612a6c57600080fd5b813581811115612a7b57600080fd5b866020828501011115612a8d57600080fd5b60209290920196919550909350505050565b600060208284031215612ab157600080fd5b5035919050565b600060208284031215612aca57600080fd5b5051919050565b60008151808452612ae9816020860160208601612bdd565b601f01601f19169290920160200192915050565b60008351612b0f818460208801612bdd565b835190830190612b23818360208801612bdd565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b5e6080830184612ad1565b9695505050505050565b6020815260006119286020830184612ad1565b60008219821115612b8e57612b8e612c73565b500190565b600082612ba257612ba2612c89565b500490565b6000816000190483118215151615612bc157612bc1612c73565b500290565b600082821015612bd857612bd8612c73565b500390565b60005b83811015612bf8578181015183820152602001612be0565b83811115610c0f5750506000910152565b600181811c90821680612c1d57607f821691505b60208210811415612c3e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c5857612c58612c73565b5060010190565b600082612c6e57612c6e612c89565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9d57600080fd5b6001600160e01b031981168114610d9d57600080fdfea2646970667358221220a9581428e606cbe784978aaba5eeb6daa34a0eee619ecdc39417fc634d5eb04f64736f6c63430008070033000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5961675a316b4b33794877506f615043684661705554475466595364536277684263615a375832563561796f2f00000000000000000000

Deployed Bytecode

0x6080604052600436106101fe5760003560e01c806370a082311161011d578063b88d4fde116100b0578063da80e59b1161007f578063e985e9c511610064578063e985e9c5146105bd578063f2fde38b14610606578063fc2162271461062657600080fd5b8063da80e59b14610582578063db006a751461059d57600080fd5b8063b88d4fde14610508578063c575526914610528578063c87b56dd14610548578063cf3090121461056857600080fd5b80639cc2983d116100ec5780639cc2983d14610495578063a0712d68146104b5578063a1a953fd146104c8578063a22cb465146104e857600080fd5b806370a082311461042d578063715018a61461044d5780638da5cb5b1461046257806395d89b411461048057600080fd5b806323b872dd1161019557806355f804b31161016457806355f804b3146103ad5780636352211e146103cd5780636690864e146103ed5780636a3ef0571461040d57600080fd5b806323b872dd146103345780633ccfd60b1461035457806342842e0e146103695780634f02c4201461038957600080fd5b8063095ea7b3116101d1578063095ea7b3146102b157806311748f02146102d35780631c75f085146102f3578063211e28b61461031457600080fd5b806301ffc9a71461020357806302546d3a1461023857806306fdde0314610257578063081812fc14610279575b600080fd5b34801561020f57600080fd5b5061022361021e3660046129f3565b610654565b60405190151581526020015b60405180910390f35b34801561024457600080fd5b5060085461022390610100900460ff1681565b34801561026357600080fd5b5061026c6106f1565b60405161022f9190612b68565b34801561028557600080fd5b50610299610294366004612a9f565b610783565b6040516001600160a01b03909116815260200161022f565b3480156102bd57600080fd5b506102d16102cc3660046128fe565b61081d565b005b3480156102df57600080fd5b506102d16102ee36600461292a565b61094f565b3480156102ff57600080fd5b50610a3554610299906001600160a01b031681565b34801561032057600080fd5b506102d161032f3660046129d8565b610c15565b34801561034057600080fd5b506102d161034f3660046127a8565b610c82565b34801561036057600080fd5b506102d1610d09565b34801561037557600080fd5b506102d16103843660046127a8565b610da0565b34801561039557600080fd5b5061039f600a5481565b60405190815260200161022f565b3480156103b957600080fd5b506102d16103c8366004612a2d565b610dbb565b3480156103d957600080fd5b506102996103e8366004612a9f565b610e22565b3480156103f957600080fd5b506102d1610408366004612752565b610ead565b34801561041957600080fd5b506102d161042836600461292a565b610f5c565b34801561043957600080fd5b5061039f610448366004612752565b611053565b34801561045957600080fd5b506102d16110ed565b34801561046e57600080fd5b506000546001600160a01b0316610299565b34801561048c57600080fd5b5061026c611153565b3480156104a157600080fd5b506102d16104b036600461296c565b611162565b6102d16104c3366004612a9f565b611294565b3480156104d457600080fd5b5061039f6104e3366004612a9f565b61166d565b3480156104f457600080fd5b506102d16105033660046128c9565b611685565b34801561051457600080fd5b506102d16105233660046127e9565b61174a565b34801561053457600080fd5b506102d16105433660046129d8565b6117d2565b34801561055457600080fd5b5061026c610563366004612a9f565b611846565b34801561057457600080fd5b506008546102239060ff1681565b34801561058e57600080fd5b5067011c37937e08000061039f565b3480156105a957600080fd5b506102d16105b8366004612a9f565b61192f565b3480156105c957600080fd5b506102236105d836600461276f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561061257600080fd5b506102d1610621366004612752565b611bc6565b34801561063257600080fd5b5061039f610641366004612a9f565b610a346020526000908152604090205481565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106b757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106eb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606002805461070090612c09565b80601f016020809104026020016040519081016040528092919081815260200182805461072c90612c09565b80156107795780601f1061074e57610100808354040283529160200191610779565b820191906000526020600020905b81548152906001019060200180831161075c57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166108015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082882610e22565b9050806001600160a01b0316836001600160a01b031614156108b25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107f8565b336001600160a01b03821614806108ce57506108ce81336105d8565b6109405760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f8565b61094a8383611ca5565b505050565b6000546001600160a01b031633146109a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6000600a54610a286109bb9190612bc6565b905080821115610a335760405162461bcd60e51b815260206004820152602260248201527f45786365656473206e756d626572206f6620617661696c61626c6520746f6b6560448201527f6e7300000000000000000000000000000000000000000000000000000000000060648201526084016107f8565b60005b82811015610c0f57610a4c610a28610190612b7b565b848483818110610a5e57610a5e612c9f565b905060200201351115610ab35760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74206d696e7420746f6b656e206f7574206f662072616e6765000060448201526064016107f8565b600b6001610190868685818110610acc57610acc612c9f565b90506020020135610add9190612bc6565b610ae79190612bc6565b610a288110610af857610af8612c9f565b015415610b6d5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f74206d696e7420616c726561647920636c61696d656420746f6b6560448201527f6e0000000000000000000000000000000000000000000000000000000000000060648201526084016107f8565b6001610b798284612bc6565b610b839190612bc6565b600b6001610190878786818110610b9c57610b9c612c9f565b90506020020135610bad9190612bc6565b610bb79190612bc6565b610a288110610bc857610bc8612c9f565b0155610bec33858584818110610be057610be0612c9f565b90506020020135611d13565b600a54610bfa906001612b7b565b600a5580610c0781612c44565b915050610a36565b50505050565b6000546001600160a01b03163314610c6f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6008805460ff1916911515919091179055565b610c8c3382611d31565b610cfe5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107f8565b61094a838383611e28565b6000546001600160a01b03163314610d635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b610a35546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d9d573d6000803e3d6000fd5b50565b61094a8383836040518060200160405280600081525061174a565b6000546001600160a01b03163314610e155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b61094a610a378383612658565b6000818152600460205260408120546001600160a01b0316806106eb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107f8565b6000546001600160a01b03163314610f075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b610a3580546001600160a01b0319166001600160a01b0383169081179091556040519081527ff19f87d1919d189aed7b2b91727d082152e2ff36769ce1143a4676001ab708ca9060200160405180910390a150565b6000546001600160a01b03163314610fb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b60005b8181101561094a57610190838383818110610fd657610fd6612c9f565b90506020020135111561102b5760405162461bcd60e51b815260206004820152601460248201527f4d757374206265206c656761637920746f6b656e00000000000000000000000060448201526064016107f8565b61104133848484818110610be057610be0612c9f565b8061104b81612c44565b915050610fb9565b60006001600160a01b0382166110d15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107f8565b506001600160a01b031660009081526005602052604090205490565b6000546001600160a01b031633146111475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6111516000611ff5565b565b60606003805461070090612c09565b6000546001600160a01b031633146111bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b60005b8181101561128d576101908585838181106111dc576111dc612c9f565b9050602002013511156112315760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964206e657720494400000000000000000000000000000000000060448201526064016107f8565b84848281811061124357611243612c9f565b90506020020135610a34600085858581811061126157611261612c9f565b90506020020135815260200190815260200160002081905550808061128590612c44565b9150506111bf565b5050505050565b600260015414156112e75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f8565b600260015560085460ff161561133f5760405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206973206c6f636b6564000000000000000000000000000060448201526064016107f8565b6008548190610100900460ff161561149b57600061135c33611053565b116113cf5760405162461bcd60e51b815260206004820152602e60248201527f4f6e6c79206d69677261746564206c6567616379206f776e6572732063616e2060448201527f63757272656e746c79206d696e7400000000000000000000000000000000000060648201526084016107f8565b3360009081526009602052604090205460ff161561142f5760405162461bcd60e51b815260206004820152601860248201527f43616e206f6e6c79206d696e74206f6e6365206561726c79000000000000000060448201526064016107f8565b60028111156114805760405162461bcd60e51b815260206004820152601760248201527f43616e206f6e6c79206d696e742074776f206561726c7900000000000000000060448201526064016107f8565b336000908152600960205260409020805460ff191660011790555b610a2882600a546114ac9190612b7b565b11156114fa5760405162461bcd60e51b815260206004820152601660248201527f45786365656473206d6178204e465420737570706c790000000000000000000060448201526064016107f8565b6000821161154a5760405162461bcd60e51b815260206004820152601260248201527f43616e6e6f74206d696e742030204e465473000000000000000000000000000060448201526064016107f8565b60058211156115c05760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74206d696e74206d6f7265207468616e2035204e4654732061742060448201527f6f6e63650000000000000000000000000000000000000000000000000000000060648201526084016107f8565b6115d28267011c37937e080000612ba7565b34146116205760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374207061796d656e7420616d6f756e74000000000000000060448201526064016107f8565b6000805b8381101561166357611634612045565b91506116403383611d13565b600a5461164e906001612b7b565b600a558061165b81612c44565b915050611624565b5050600180555050565b600b81610a28811061167e57600080fd5b0154905081565b6001600160a01b0382163314156116de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f8565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117543383611d31565b6117c65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107f8565b610c0f84848484612180565b6000546001600160a01b0316331461182c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b600880549115156101000261ff0019909216919091179055565b6000818152600460205260409020546060906001600160a01b03166118d35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107f8565b60006118dd6121fe565b905060008151116118fd5760405180602001604052806000815250611928565b806119078461220e565b604051602001611918929190612afd565b6040516020818303038152906040525b9392505050565b600260015414156119825760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f8565b600260015560085460ff16156119da5760405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206973206c6f636b6564000000000000000000000000000060448201526064016107f8565b610a36546000906001600160a01b031662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260440160206040518083038186803b158015611a3557600080fd5b505afa158015611a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6d9190612ab8565b11611aba5760405162461bcd60e51b815260206004820152601860248201527f4d757374206f776e20746f6b656e20746f2072656465656d000000000000000060448201526064016107f8565b6000818152610a346020526040902054611b165760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964206c656761637920494400000000000000000000000000000060448201526064016107f8565b611b2f336000838152610a346020526040902054611d13565b610a36546001600160a01b031663f242432a336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015261dead6024820152604481018490526001606482015260a06084820152600060a482015260c401600060405180830381600087803b158015611ba757600080fd5b505af1158015611bbb573d6000803e3d6000fd5b505060018055505050565b6000546001600160a01b03163314611c205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f8565b6001600160a01b038116611c9c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107f8565b610d9d81611ff5565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cda82610e22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611d2d828260405180602001604052806000815250612340565b5050565b6000818152600460205260408120546001600160a01b0316611daa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f8565b6000611db583610e22565b9050806001600160a01b0316846001600160a01b03161480611df05750836001600160a01b0316611de584610783565b6001600160a01b0316145b80611e2057506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e3b82610e22565b6001600160a01b031614611eb75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107f8565b6001600160a01b038216611f325760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107f8565b611f3d600082611ca5565b6001600160a01b0383166000908152600560205260408120805460019290611f66908490612bc6565b90915550506001600160a01b0382166000908152600560205260408120805460019290611f94908490612b7b565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600a54610a286120589190612bc6565b600a546040805160208101929092526bffffffffffffffffffffffff193360601b169082015244605482015242607482015290915060009082906094016040516020818303038152906040528051906020012060001c6120b89190612c5f565b90506000600b82610a2881106120d0576120d0612c9f565b0154156120f257600b82610a2881106120eb576120eb612c9f565b01546120f4565b815b9050600b612103600185612bc6565b610a28811061211457612114612c9f565b01541561214057600b612128600185612bc6565b610a28811061213957612139612c9f565b015461214b565b61214b600184612bc6565b600b83610a28811061215f5761215f612c9f565b015561216d61019082612b7b565b612178906001612b7b565b935050505090565b61218b848484611e28565b612197848484846123be565b610c0f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107f8565b6060610a37805461070090612c09565b60608161224e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612278578061226281612c44565b91506122719050600a83612b93565b9150612252565b60008167ffffffffffffffff81111561229357612293612cb5565b6040519080825280601f01601f1916602001820160405280156122bd576020820181803683370190505b5090505b8415611e20576122d2600183612bc6565b91506122df600a86612c5f565b6122ea906030612b7b565b60f81b8183815181106122ff576122ff612c9f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612339600a86612b93565b94506122c1565b61234a8383612516565b61235760008484846123be565b61094a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107f8565b60006001600160a01b0384163b1561250b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612402903390899088908890600401612b2c565b602060405180830381600087803b15801561241c57600080fd5b505af192505050801561244c575060408051601f3d908101601f1916820190925261244991810190612a10565b60015b6124f1573d80801561247a576040519150601f19603f3d011682016040523d82523d6000602084013e61247f565b606091505b5080516124e95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e20565b506001949350505050565b6001600160a01b03821661256c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f8565b6000818152600460205260409020546001600160a01b0316156125d15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f8565b6001600160a01b03821660009081526005602052604081208054600192906125fa908490612b7b565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461266490612c09565b90600052602060002090601f01602090048101928261268657600085556126cc565b82601f1061269f5782800160ff198235161785556126cc565b828001600101855582156126cc579182015b828111156126cc5782358255916020019190600101906126b1565b506126d89291506126dc565b5090565b5b808211156126d857600081556001016126dd565b60008083601f84011261270357600080fd5b50813567ffffffffffffffff81111561271b57600080fd5b6020830191508360208260051b850101111561273657600080fd5b9250929050565b8035801515811461274d57600080fd5b919050565b60006020828403121561276457600080fd5b813561192881612ccb565b6000806040838503121561278257600080fd5b823561278d81612ccb565b9150602083013561279d81612ccb565b809150509250929050565b6000806000606084860312156127bd57600080fd5b83356127c881612ccb565b925060208401356127d881612ccb565b929592945050506040919091013590565b600080600080608085870312156127ff57600080fd5b843561280a81612ccb565b9350602085013561281a81612ccb565b925060408501359150606085013567ffffffffffffffff8082111561283e57600080fd5b818701915087601f83011261285257600080fd5b81358181111561286457612864612cb5565b604051601f8201601f19908116603f0116810190838211818310171561288c5761288c612cb5565b816040528281528a60208487010111156128a557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156128dc57600080fd5b82356128e781612ccb565b91506128f56020840161273d565b90509250929050565b6000806040838503121561291157600080fd5b823561291c81612ccb565b946020939093013593505050565b6000806020838503121561293d57600080fd5b823567ffffffffffffffff81111561295457600080fd5b612960858286016126f1565b90969095509350505050565b6000806000806040858703121561298257600080fd5b843567ffffffffffffffff8082111561299a57600080fd5b6129a6888389016126f1565b909650945060208701359150808211156129bf57600080fd5b506129cc878288016126f1565b95989497509550505050565b6000602082840312156129ea57600080fd5b6119288261273d565b600060208284031215612a0557600080fd5b813561192881612ce0565b600060208284031215612a2257600080fd5b815161192881612ce0565b60008060208385031215612a4057600080fd5b823567ffffffffffffffff80821115612a5857600080fd5b818501915085601f830112612a6c57600080fd5b813581811115612a7b57600080fd5b866020828501011115612a8d57600080fd5b60209290920196919550909350505050565b600060208284031215612ab157600080fd5b5035919050565b600060208284031215612aca57600080fd5b5051919050565b60008151808452612ae9816020860160208601612bdd565b601f01601f19169290920160200192915050565b60008351612b0f818460208801612bdd565b835190830190612b23818360208801612bdd565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b5e6080830184612ad1565b9695505050505050565b6020815260006119286020830184612ad1565b60008219821115612b8e57612b8e612c73565b500190565b600082612ba257612ba2612c89565b500490565b6000816000190483118215151615612bc157612bc1612c73565b500290565b600082821015612bd857612bd8612c73565b500390565b60005b83811015612bf8578181015183820152602001612be0565b83811115610c0f5750506000910152565b600181811c90821680612c1d57607f821691505b60208210811415612c3e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c5857612c58612c73565b5060010190565b600082612c6e57612c6e612c89565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9d57600080fd5b6001600160e01b031981168114610d9d57600080fdfea2646970667358221220a9581428e606cbe784978aaba5eeb6daa34a0eee619ecdc39417fc634d5eb04f64736f6c63430008070033

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

000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5961675a316b4b33794877506f615043684661705554475466595364536277684263615a375832563561796f2f00000000000000000000

-----Decoded View---------------
Arg [0] : _legacyContract (address): 0x495f947276749Ce646f68AC8c248420045cb7b5e
Arg [1] : _uri (string): ipfs://QmYagZ1kK3yHwPoaPChFapUTGTfYSdSbwhBcaZ7X2V5ayo/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [3] : 697066733a2f2f516d5961675a316b4b33794877506f61504368466170555447
Arg [4] : 5466595364536277684263615a375832563561796f2f00000000000000000000


Deployed Bytecode Sourcemap

85366:6805:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25650:305;;;;;;;;;;-1:-1:-1;25650:305:0;;;;;:::i;:::-;;:::i;:::-;;;10238:14:1;;10231:22;10213:41;;10201:2;10186:18;25650:305:0;;;;;;;;85517:24;;;;;;;;;;-1:-1:-1;85517:24:0;;;;;;;;;;;26595:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;28154:221::-;;;;;;;;;;-1:-1:-1;28154:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;8039:55:1;;;8021:74;;8009:2;7994:18;28154:221:0;7875:226:1;27677:411:0;;;;;;;;;;-1:-1:-1;27677:411:0;;;;;:::i;:::-;;:::i;:::-;;90912:656;;;;;;;;;;-1:-1:-1;90912:656:0;;;;;:::i;:::-;;:::i;86176:34::-;;;;;;;;;;-1:-1:-1;86176:34:0;;;;-1:-1:-1;;;;;86176:34:0;;;91888:87;;;;;;;;;;-1:-1:-1;91888:87:0;;;;;:::i;:::-;;:::i;29044:339::-;;;;;;;;;;-1:-1:-1;29044:339:0;;;;;:::i;:::-;;:::i;89737:134::-;;;;;;;;;;;;;:::i;29454:185::-;;;;;;;;;;-1:-1:-1;29454:185:0;;;;;:::i;:::-;;:::i;85745:25::-;;;;;;;;;;;;;;;;;;;22855::1;;;22843:2;22828:18;85745:25:0;22709:177:1;92074:94:0;;;;;;;;;;-1:-1:-1;92074:94:0;;;;;:::i;:::-;;:::i;26289:239::-;;;;;;;;;;-1:-1:-1;26289:239:0;;;;;:::i;:::-;;:::i;91717:163::-;;;;;;;;;;-1:-1:-1;91717:163:0;;;;;:::i;:::-;;:::i;90516:264::-;;;;;;;;;;-1:-1:-1;90516:264:0;;;;;:::i;:::-;;:::i;26019:208::-;;;;;;;;;;-1:-1:-1;26019:208:0;;;;;:::i;:::-;;:::i;2523:94::-;;;;;;;;;;;;;:::i;1872:87::-;;;;;;;;;;-1:-1:-1;1918:7:0;1945:6;-1:-1:-1;;;;;1945:6:0;1872:87;;26764:104;;;;;;;;;;;;;:::i;90087:290::-;;;;;;;;;;-1:-1:-1;90087:290:0;;;;;:::i;:::-;;:::i;87455:585::-;;;;;;:::i;:::-;;:::i;85824:43::-;;;;;;;;;;-1:-1:-1;85824:43:0;;;;;:::i;:::-;;:::i;28447:295::-;;;;;;;;;;-1:-1:-1;28447:295:0;;;;;:::i;:::-;;:::i;29710:328::-;;;;;;;;;;-1:-1:-1;29710:328:0;;;;;:::i;:::-;;:::i;91983:83::-;;;;;;;;;;-1:-1:-1;91983:83:0;;;;;:::i;:::-;;:::i;26939:334::-;;;;;;;;;;-1:-1:-1;26939:334:0;;;;;:::i;:::-;;:::i;85485:25::-;;;;;;;;;;-1:-1:-1;85485:25:0;;;;;;;;88738:85;;;;;;;;;;-1:-1:-1;88805:10:0;88738:85;;88176:391;;;;;;;;;;-1:-1:-1;88176:391:0;;;;;:::i;:::-;;:::i;28813:164::-;;;;;;;;;;-1:-1:-1;28813:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;28934:25:0;;;28910:4;28934:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;28813:164;2772:192;;;;;;;;;;-1:-1:-1;2772:192:0;;;;;:::i;:::-;;:::i;86079:48::-;;;;;;;;;;-1:-1:-1;86079:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;25650:305;25752:4;-1:-1:-1;;;;;;25789:40:0;;25804:25;25789:40;;:105;;-1:-1:-1;;;;;;;25846:48:0;;25861:33;25846:48;25789:105;:158;;;-1:-1:-1;24278:25:0;-1:-1:-1;;;;;;24263:40:0;;;25911:36;25769:178;25650:305;-1:-1:-1;;25650:305:0:o;26595:100::-;26649:13;26682:5;26675:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26595:100;:::o;28154:221::-;28230:7;31637:16;;;:7;:16;;;;;;-1:-1:-1;;;;;31637:16:0;28250:73;;;;-1:-1:-1;;;28250:73:0;;17677:2:1;28250:73:0;;;17659:21:1;17716:2;17696:18;;;17689:30;17755:34;17735:18;;;17728:62;-1:-1:-1;;;17806:18:1;;;17799:42;17858:19;;28250:73:0;;;;;;;;;-1:-1:-1;28343:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;28343:24:0;;28154:221::o;27677:411::-;27758:13;27774:23;27789:7;27774:14;:23::i;:::-;27758:39;;27822:5;-1:-1:-1;;;;;27816:11:0;:2;-1:-1:-1;;;;;27816:11:0;;;27808:57;;;;-1:-1:-1;;;27808:57:0;;19277:2:1;27808:57:0;;;19259:21:1;19316:2;19296:18;;;19289:30;19355:34;19335:18;;;19328:62;19426:3;19406:18;;;19399:31;19447:19;;27808:57:0;19075:397:1;27808:57:0;740:10;-1:-1:-1;;;;;27900:21:0;;;;:62;;-1:-1:-1;27925:37:0;27942:5;740:10;28813:164;:::i;27925:37::-;27878:168;;;;-1:-1:-1;;;27878:168:0;;15724:2:1;27878:168:0;;;15706:21:1;15763:2;15743:18;;;15736:30;15802:34;15782:18;;;15775:62;15873:26;15853:18;;;15846:54;15917:19;;27878:168:0;15522:420:1;27878:168:0;28059:21;28068:2;28072:7;28059:8;:21::i;:::-;27747:341;27677:411;;:::o;90912:656::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;90990:14:::1;91029:6;;85688:4;91007:28;;;;:::i;:::-;90990:45:::0;-1:-1:-1;91054:28:0;;::::1;;91046:75;;;::::0;-1:-1:-1;;;91046:75:0;;12691:2:1;91046:75:0::1;::::0;::::1;12673:21:1::0;12730:2;12710:18;;;12703:30;12769:34;12749:18;;;12742:62;12840:4;12820:18;;;12813:32;12862:19;;91046:75:0::1;12489:398:1::0;91046:75:0::1;91137:6;91132:429;91149:19:::0;;::::1;91132:429;;;91213:35;85688:4;85953:3;91213:35;:::i;:::-;91198:8;;91207:1;91198:11;;;;;;;:::i;:::-;;;;;;;:50;;91190:93;;;::::0;-1:-1:-1;;;91190:93:0;;20097:2:1;91190:93:0::1;::::0;::::1;20079:21:1::0;20136:2;20116:18;;;20109:30;20175:32;20155:18;;;20148:60;20225:18;;91190:93:0::1;19895:354:1::0;91190:93:0::1;91306:7;91344:1;85953:3;91314:8;;91323:1;91314:11;;;;;;;:::i;:::-;;;;;;;:27;;;;:::i;:::-;:31;;;;:::i;:::-;91306:40;;;;;;;:::i;:::-;;::::0;:45;91298:91:::1;;;::::0;-1:-1:-1;;;91298:91:0;;10691:2:1;91298:91:0::1;::::0;::::1;10673:21:1::0;10730:2;10710:18;;;10703:30;10769:34;10749:18;;;10742:62;10840:3;10820:18;;;10813:31;10861:19;;91298:91:0::1;10489:397:1::0;91298:91:0::1;91463:1;91447:13;91459:1:::0;91447:9;:13:::1;:::i;:::-;:17;;;;:::i;:::-;91404:7;91442:1;85953:3;91412:8;;91421:1;91412:11;;;;;;;:::i;:::-;;;;;;;:27;;;;:::i;:::-;:31;;;;:::i;:::-;91404:40;;;;;;;:::i;:::-;;:60:::0;91479:36:::1;740:10:::0;91503:8:::1;;91512:1;91503:11;;;;;;;:::i;:::-;;;;;;;91479:9;:36::i;:::-;91539:6;::::0;:10:::1;::::0;91548:1:::1;91539:10;:::i;:::-;91530:6;:19:::0;91170:3;::::1;::::0;::::1;:::i;:::-;;;;91132:429;;;;90979:589;90912:656:::0;;:::o;91888:87::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;91951:6:::1;:16:::0;;-1:-1:-1;;91951:16:0::1;::::0;::::1;;::::0;;;::::1;::::0;;91888:87::o;29044:339::-;29239:41;740:10;29272:7;29239:18;:41::i;:::-;29231:103;;;;-1:-1:-1;;;29231:103:0;;19679:2:1;29231:103:0;;;19661:21:1;19718:2;19698:18;;;19691:30;19757:34;19737:18;;;19730:62;19828:19;19808:18;;;19801:47;19865:19;;29231:103:0;19477:413:1;29231:103:0;29347:28;29357:4;29363:2;29367:7;29347:9;:28::i;89737:134::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;89795:11:::1;::::0;89787:76:::1;::::0;-1:-1:-1;;;;;89795:11:0;;::::1;::::0;89831:21:::1;89787:76:::0;::::1;;;::::0;89795:11:::1;89787:76:::0;89795:11;89787:76;89831:21;89795:11;89787:76;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;89737:134::o:0;29454:185::-;29592:39;29609:4;29615:2;29619:7;29592:39;;;;;;;;;;;;:16;:39::i;92074:94::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;92146:14:::1;:7;92156:4:::0;;92146:14:::1;:::i;26289:239::-:0;26361:7;26397:16;;;:7;:16;;;;;;-1:-1:-1;;;;;26397:16:0;26432:19;26424:73;;;;-1:-1:-1;;;26424:73:0;;16560:2:1;26424:73:0;;;16542:21:1;16599:2;16579:18;;;16572:30;16638:34;16618:18;;;16611:62;16709:11;16689:18;;;16682:39;16738:19;;26424:73:0;16358:405:1;91717:163:0;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;91799:11:::1;:26:::0;;-1:-1:-1;;;;;;91799:26:0::1;-1:-1:-1::0;;;;;91799:26:0;::::1;::::0;;::::1;::::0;;;91841:31:::1;::::0;8021:74:1;;;91841:31:0::1;::::0;8009:2:1;7994:18;91841:31:0::1;;;;;;;91717:163:::0;:::o;90516:264::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;90596:6:::1;90591:182;90608:19:::0;;::::1;90591:182;;;85953:3;90657:8;;90666:1;90657:11;;;;;;;:::i;:::-;;;;;;;:28;;90649:61;;;::::0;-1:-1:-1;;;90649:61:0;;21514:2:1;90649:61:0::1;::::0;::::1;21496:21:1::0;21553:2;21533:18;;;21526:30;21592:22;21572:18;;;21565:50;21632:18;;90649:61:0::1;21312:344:1::0;90649:61:0::1;90725:36;740:10:::0;90749:8:::1;;90758:1;90749:11;;;;;;;:::i;90725:36::-;90629:3:::0;::::1;::::0;::::1;:::i;:::-;;;;90591:182;;26019:208:::0;26091:7;-1:-1:-1;;;;;26119:19:0;;26111:74;;;;-1:-1:-1;;;26111:74:0;;16149:2:1;26111:74:0;;;16131:21:1;16188:2;16168:18;;;16161:30;16227:34;16207:18;;;16200:62;16298:12;16278:18;;;16271:40;16328:19;;26111:74:0;15947:406:1;26111:74:0;-1:-1:-1;;;;;;26203:16:0;;;;;:9;:16;;;;;;;26019:208::o;2523:94::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;2588:21:::1;2606:1;2588:9;:21::i;:::-;2523:94::o:0;26764:104::-;26820:13;26853:7;26846:14;;;;;:::i;90087:290::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;90203:6:::1;90198:172;90215:17:::0;;::::1;90198:172;;;85953:3;90262:6;;90269:1;90262:9;;;;;;;:::i;:::-;;;;;;;:26;;90254:53;;;::::0;-1:-1:-1;;;90254:53:0;;22216:2:1;90254:53:0::1;::::0;::::1;22198:21:1::0;22255:2;22235:18;;;22228:30;22294:16;22274:18;;;22267:44;22328:18;;90254:53:0::1;22014:338:1::0;90254:53:0::1;90349:6;;90356:1;90349:9;;;;;;;:::i;:::-;;;;;;;90322:13;:24;90336:6;;90343:1;90336:9;;;;;;;:::i;:::-;;;;;;;90322:24;;;;;;;;;;;:36;;;;90234:3;;;;;:::i;:::-;;;;90198:172;;;;90087:290:::0;;;;:::o;87455:585::-;4899:1;5495:7;;:19;;5487:63;;;;-1:-1:-1;;;5487:63:0;;21154:2:1;5487:63:0;;;21136:21:1;21193:2;21173:18;;;21166:30;21232:33;21212:18;;;21205:61;21283:18;;5487:63:0;20952:355:1;5487:63:0;4899:1;5628:7;:18;86790:6:::1;::::0;::::1;;86789:7;86781:38;;;::::0;-1:-1:-1;;;86781:38:0;;20807:2:1;86781:38:0::1;::::0;::::1;20789:21:1::0;20846:2;20826:18;;;20819:30;20885:20;20865:18;;;20858:48;20923:18;;86781:38:0::1;20605:342:1::0;86781:38:0::1;86900:5:::2;::::0;87541:8;;86900:5:::2;::::0;::::2;;;86896:321;;;86956:1;86930:23;740:10:::0;26019:208;:::i;86930:23::-:2;:27;86922:86;;;::::0;-1:-1:-1;;;86922:86:0;;11919:2:1;86922:86:0::2;::::0;::::2;11901:21:1::0;11958:2;11938:18;;;11931:30;11997:34;11977:18;;;11970:62;12068:16;12048:18;;;12041:44;12102:19;;86922:86:0::2;11717:410:1::0;86922:86:0::2;740:10:::0;87031:25:::2;::::0;;;:11:::2;:25;::::0;;;;;::::2;;:34;87023:71;;;::::0;-1:-1:-1;;;87023:71:0;;15371:2:1;87023:71:0::2;::::0;::::2;15353:21:1::0;15410:2;15390:18;;;15383:30;15449:26;15429:18;;;15422:54;15493:18;;87023:71:0::2;15169:348:1::0;87023:71:0::2;87129:1;87117:8;:13;;87109:49;;;::::0;-1:-1:-1;;;87109:49:0;;22559:2:1;87109:49:0::2;::::0;::::2;22541:21:1::0;22598:2;22578:18;;;22571:30;22637:25;22617:18;;;22610:53;22680:18;;87109:49:0::2;22357:347:1::0;87109:49:0::2;740:10:::0;87173:25:::2;::::0;;;:11:::2;:25;::::0;;;;:32;;-1:-1:-1;;87173:32:0::2;87201:4;87173:32;::::0;;86896:321:::2;85688:4:::3;87579:8;87570:6;;:17;;;;:::i;:::-;:40;;87562:75;;;::::0;-1:-1:-1;;;87562:75:0;;20456:2:1;87562:75:0::3;::::0;::::3;20438:21:1::0;20495:2;20475:18;;;20468:30;20534:24;20514:18;;;20507:52;20576:18;;87562:75:0::3;20254:346:1::0;87562:75:0::3;87667:1;87656:8;:12;87648:43;;;::::0;-1:-1:-1;;;87648:43:0;;15024:2:1;87648:43:0::3;::::0;::::3;15006:21:1::0;15063:2;15043:18;;;15036:30;15102:20;15082:18;;;15075:48;15140:18;;87648:43:0::3;14822:342:1::0;87648:43:0::3;87722:1;87710:8;:13;;87702:62;;;::::0;-1:-1:-1;;;87702:62:0;;13499:2:1;87702:62:0::3;::::0;::::3;13481:21:1::0;13538:2;13518:18;;;13511:30;13577:34;13557:18;;;13550:62;13648:6;13628:18;;;13621:34;13672:19;;87702:62:0::3;13297:400:1::0;87702:62:0::3;87796:20;87808:8:::0;88805:10;87796:20:::3;:::i;:::-;87783:9;:33;87775:70;;;::::0;-1:-1:-1;;;87775:70:0;;14258:2:1;87775:70:0::3;::::0;::::3;14240:21:1::0;14297:2;14277:18;;;14270:30;14336:26;14316:18;;;14309:54;14380:18;;87775:70:0::3;14056:348:1::0;87775:70:0::3;87858:10;::::0;87879:154:::3;87900:8;87896:1;:12;87879:154;;;87935:10;:8;:10::i;:::-;87930:15:::0;-1:-1:-1;87960:27:0::3;740:10:::0;87984:2:::3;87960:9;:27::i;:::-;88011:6;::::0;:10:::3;::::0;88020:1:::3;88011:10;:::i;:::-;88002:6;:19:::0;87910:3;::::3;::::0;::::3;:::i;:::-;;;;87879:154;;;-1:-1:-1::0;;4855:1:0;5807:22;;-1:-1:-1;;87455:585:0:o;85824:43::-;;;;;;;;;;;;;;;-1:-1:-1;85824:43:0;:::o;28447:295::-;-1:-1:-1;;;;;28550:24:0;;740:10;28550:24;;28542:62;;;;-1:-1:-1;;;28542:62:0;;13904:2:1;28542:62:0;;;13886:21:1;13943:2;13923:18;;;13916:30;13982:27;13962:18;;;13955:55;14027:18;;28542:62:0;13702:349:1;28542:62:0;740:10;28617:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;28617:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;28617:53:0;;;;;;;;;;28686:48;;10213:41:1;;;28617:42:0;;740:10;28686:48;;10186:18:1;28686:48:0;;;;;;;28447:295;;:::o;29710:328::-;29885:41;740:10;29918:7;29885:18;:41::i;:::-;29877:103;;;;-1:-1:-1;;;29877:103:0;;19679:2:1;29877:103:0;;;19661:21:1;19718:2;19698:18;;;19691:30;19757:34;19737:18;;;19730:62;19828:19;19808:18;;;19801:47;19865:19;;29877:103:0;19477:413:1;29877:103:0;29991:39;30005:4;30011:2;30015:7;30024:5;29991:13;:39::i;91983:83::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;92044:5:::1;:14:::0;;;::::1;;;;-1:-1:-1::0;;92044:14:0;;::::1;::::0;;;::::1;::::0;;91983:83::o;26939:334::-;31613:4;31637:16;;;:7;:16;;;;;;27012:13;;-1:-1:-1;;;;;31637:16:0;27038:76;;;;-1:-1:-1;;;27038:76:0;;18861:2:1;27038:76:0;;;18843:21:1;18900:2;18880:18;;;18873:30;18939:34;18919:18;;;18912:62;19010:17;18990:18;;;18983:45;19045:19;;27038:76:0;18659:411:1;27038:76:0;27127:21;27151:10;:8;:10::i;:::-;27127:34;;27203:1;27185:7;27179:21;:25;:86;;;;;;;;;;;;;;;;;27231:7;27240:18;:7;:16;:18::i;:::-;27214:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;27179:86;27172:93;26939:334;-1:-1:-1;;;26939:334:0:o;88176:391::-;4899:1;5495:7;;:19;;5487:63;;;;-1:-1:-1;;;5487:63:0;;21154:2:1;5487:63:0;;;21136:21:1;21193:2;21173:18;;;21166:30;21232:33;21212:18;;;21205:61;21283:18;;5487:63:0;20952:355:1;5487:63:0;4899:1;5628:7;:18;86790:6:::1;::::0;::::1;;86789:7;86781:38;;;::::0;-1:-1:-1;;;86781:38:0;;20807:2:1;86781:38:0::1;::::0;::::1;20789:21:1::0;20846:2;20826:18;;;20819:30;20885:20;20865:18;;;20858:48;20923:18;;86781:38:0::1;20605:342:1::0;86781:38:0::1;88264:14:::2;::::0;88314:1:::2;::::0;-1:-1:-1;;;;;88264:14:0::2;:24;740:10:::0;88264:47:::2;::::0;-1:-1:-1;;;;;;88264:47:0::2;::::0;;;;;;-1:-1:-1;;;;;9963:55:1;;;88264:47:0::2;::::0;::::2;9945:74:1::0;10035:18;;;10028:34;;;9918:18;;88264:47:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;88256:88;;;::::0;-1:-1:-1;;;88256:88:0;;21863:2:1;88256:88:0::2;::::0;::::2;21845:21:1::0;21902:2;21882:18;;;21875:30;21941:26;21921:18;;;21914:54;21985:18;;88256:88:0::2;21661:348:1::0;88256:88:0::2;88363:22;::::0;;;:13:::2;:22;::::0;;;;;88355:57:::2;;;::::0;-1:-1:-1;;;88355:57:0;;16970:2:1;88355:57:0::2;::::0;::::2;16952:21:1::0;17009:2;16989:18;;;16982:30;17048:19;17028:18;;;17021:47;17085:18;;88355:57:0::2;16768:341:1::0;88355:57:0::2;88423:47;740:10:::0;88447:22:::2;::::0;;;:13:::2;:22;::::0;;;;;88423:9:::2;:47::i;:::-;88481:14;::::0;-1:-1:-1;;;;;88481:14:0::2;:31;740:10:::0;88481:78:::2;::::0;-1:-1:-1;;;;;;88481:78:0::2;::::0;;;;;;-1:-1:-1;;;;;9490:15:1;;;88481:78:0::2;::::0;::::2;9472:34:1::0;88535:6:0::2;9522:18:1::0;;;9515:43;9574:18;;;9567:34;;;88553:1:0::2;9617:18:1::0;;;9610:34;9681:3;9660:19;;;9653:32;-1:-1:-1;9701:19:1;;;9694:30;9741:19;;88481:78:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;4855:1:0;5807:22;;-1:-1:-1;;;88176:391:0:o;2772:192::-;1918:7;1945:6;-1:-1:-1;;;;;1945:6:0;740:10;2092:23;2084:68;;;;-1:-1:-1;;;2084:68:0;;18090:2:1;2084:68:0;;;18072:21:1;;;18109:18;;;18102:30;18168:34;18148:18;;;18141:62;18220:18;;2084:68:0;17888:356:1;2084:68:0;-1:-1:-1;;;;;2861:22:0;::::1;2853:73;;;::::0;-1:-1:-1;;;2853:73:0;;11512:2:1;2853:73:0::1;::::0;::::1;11494:21:1::0;11551:2;11531:18;;;11524:30;11590:34;11570:18;;;11563:62;11661:8;11641:18;;;11634:36;11687:19;;2853:73:0::1;11310:402:1::0;2853:73:0::1;2937:19;2947:8;2937:9;:19::i;35530:174::-:0;35605:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;35605:29:0;-1:-1:-1;;;;;35605:29:0;;;;;;;;:24;;35659:23;35605:24;35659:14;:23::i;:::-;-1:-1:-1;;;;;35650:46:0;;;;;;;;;;;35530:174;;:::o;32532:110::-;32608:26;32618:2;32622:7;32608:26;;;;;;;;;;;;:9;:26::i;:::-;32532:110;;:::o;31842:348::-;31935:4;31637:16;;;:7;:16;;;;;;-1:-1:-1;;;;;31637:16:0;31952:73;;;;-1:-1:-1;;;31952:73:0;;14611:2:1;31952:73:0;;;14593:21:1;14650:2;14630:18;;;14623:30;14689:34;14669:18;;;14662:62;-1:-1:-1;;;14740:18:1;;;14733:42;14792:19;;31952:73:0;14409:408:1;31952:73:0;32036:13;32052:23;32067:7;32052:14;:23::i;:::-;32036:39;;32105:5;-1:-1:-1;;;;;32094:16:0;:7;-1:-1:-1;;;;;32094:16:0;;:51;;;;32138:7;-1:-1:-1;;;;;32114:31:0;:20;32126:7;32114:11;:20::i;:::-;-1:-1:-1;;;;;32114:31:0;;32094:51;:87;;;-1:-1:-1;;;;;;28934:25:0;;;28910:4;28934:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;32149:32;32086:96;31842:348;-1:-1:-1;;;;31842:348:0:o;34834:578::-;34993:4;-1:-1:-1;;;;;34966:31:0;:23;34981:7;34966:14;:23::i;:::-;-1:-1:-1;;;;;34966:31:0;;34958:85;;;;-1:-1:-1;;;34958:85:0;;18451:2:1;34958:85:0;;;18433:21:1;18490:2;18470:18;;;18463:30;18529:34;18509:18;;;18502:62;18600:11;18580:18;;;18573:39;18629:19;;34958:85:0;18249:405:1;34958:85:0;-1:-1:-1;;;;;35062:16:0;;35054:65;;;;-1:-1:-1;;;35054:65:0;;13094:2:1;35054:65:0;;;13076:21:1;13133:2;13113:18;;;13106:30;13172:34;13152:18;;;13145:62;13243:6;13223:18;;;13216:34;13267:19;;35054:65:0;12892:400:1;35054:65:0;35236:29;35253:1;35257:7;35236:8;:29::i;:::-;-1:-1:-1;;;;;35278:15:0;;;;;;:9;:15;;;;;:20;;35297:1;;35278:15;:20;;35297:1;;35278:20;:::i;:::-;;;;-1:-1:-1;;;;;;;35309:13:0;;;;;;:9;:13;;;;;:18;;35326:1;;35309:13;:18;;35326:1;;35309:18;:::i;:::-;;;;-1:-1:-1;;35338:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;35338:21:0;-1:-1:-1;;;;;35338:21:0;;;;;;;;;35377:27;;35338:16;;35377:27;;;;;;;34834:578;;;:::o;2972:173::-;3028:16;3047:6;;-1:-1:-1;;;;;3064:17:0;;;-1:-1:-1;;;;;;3064:17:0;;;;;;3097:40;;3047:6;;;;;;;3097:40;;3028:16;3097:40;3017:128;2972:173;:::o;88994:448::-;89032:4;89049:14;89088:6;;85688:4;89066:28;;;;:::i;:::-;89151:6;;89134:71;;;;;;7658:19:1;;;;-1:-1:-1;;89159:10:0;7715:2:1;7711:15;7707:53;7693:12;;;7686:75;89171:16:0;7777:12:1;;;7770:28;89189:15:0;7814:12:1;;;7807:28;89049:45:0;;-1:-1:-1;89105:11:0;;89049:45;;7851:13:1;;89134:71:0;;;;;;;;;;;;89124:82;;;;;;89119:88;;:100;;;;:::i;:::-;89105:114;;89230:10;89243:7;89251:6;89243:15;;;;;;;:::i;:::-;;;:20;:47;;89275:7;89283:6;89275:15;;;;;;;:::i;:::-;;;89243:47;;;89266:6;89243:47;89230:60;-1:-1:-1;89321:7:0;89329:13;89341:1;89329:9;:13;:::i;:::-;89321:22;;;;;;;:::i;:::-;;;:27;:68;;89367:7;89375:13;89387:1;89375:9;:13;:::i;:::-;89367:22;;;;;;;:::i;:::-;;;89321:68;;;89351:13;89363:1;89351:9;:13;:::i;:::-;89303:7;89311:6;89303:15;;;;;;;:::i;:::-;;:86;89409:21;85953:3;89409:5;:21;:::i;:::-;:25;;89433:1;89409:25;:::i;:::-;89402:32;;;;;88994:448;:::o;30920:315::-;31077:28;31087:4;31093:2;31097:7;31077:9;:28::i;:::-;31124:48;31147:4;31153:2;31157:7;31166:5;31124:22;:48::i;:::-;31116:111;;;;-1:-1:-1;;;31116:111:0;;11093:2:1;31116:111:0;;;11075:21:1;11132:2;11112:18;;;11105:30;11171:34;11151:18;;;11144:62;-1:-1:-1;;;11222:18:1;;;11215:48;11280:19;;31116:111:0;10891:414:1;89450:100:0;89502:13;89535:7;89528:14;;;;;:::i;21597:723::-;21653:13;21874:10;21870:53;;-1:-1:-1;;21901:10:0;;;;;;;;;;;;;;;;;;21597:723::o;21870:53::-;21948:5;21933:12;21989:78;21996:9;;21989:78;;22022:8;;;;:::i;:::-;;-1:-1:-1;22045:10:0;;-1:-1:-1;22053:2:0;22045:10;;:::i;:::-;;;21989:78;;;22077:19;22109:6;22099:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22099:17:0;;22077:39;;22127:154;22134:10;;22127:154;;22161:11;22171:1;22161:11;;:::i;:::-;;-1:-1:-1;22230:10:0;22238:2;22230:5;:10;:::i;:::-;22217:24;;:2;:24;:::i;:::-;22204:39;;22187:6;22194;22187:14;;;;;;;;:::i;:::-;;;;:56;;;;;;;;;;-1:-1:-1;22258:11:0;22267:2;22258:11;;:::i;:::-;;;22127:154;;32869:321;32999:18;33005:2;33009:7;32999:5;:18::i;:::-;33050:54;33081:1;33085:2;33089:7;33098:5;33050:22;:54::i;:::-;33028:154;;;;-1:-1:-1;;;33028:154:0;;11093:2:1;33028:154:0;;;11075:21:1;11132:2;11112:18;;;11105:30;11171:34;11151:18;;;11144:62;-1:-1:-1;;;11222:18:1;;;11215:48;11280:19;;33028:154:0;10891:414:1;36269:799:0;36424:4;-1:-1:-1;;;;;36445:13:0;;14278:20;14326:8;36441:620;;36481:72;;-1:-1:-1;;;36481:72:0;;-1:-1:-1;;;;;36481:36:0;;;;;:72;;740:10;;36532:4;;36538:7;;36547:5;;36481:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36481:72:0;;;;;;;;-1:-1:-1;;36481:72:0;;;;;;;;;;;;:::i;:::-;;;36477:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36723:13:0;;36719:272;;36766:60;;-1:-1:-1;;;36766:60:0;;11093:2:1;36766:60:0;;;11075:21:1;11132:2;11112:18;;;11105:30;11171:34;11151:18;;;11144:62;-1:-1:-1;;;11222:18:1;;;11215:48;11280:19;;36766:60:0;10891:414:1;36719:272:0;36941:6;36935:13;36926:6;36922:2;36918:15;36911:38;36477:529;-1:-1:-1;;;;;;36604:51:0;-1:-1:-1;;;36604:51:0;;-1:-1:-1;36597:58:0;;36441:620;-1:-1:-1;37045:4:0;36269:799;;;;;;:::o;33526:382::-;-1:-1:-1;;;;;33606:16:0;;33598:61;;;;-1:-1:-1;;;33598:61:0;;17316:2:1;33598:61:0;;;17298:21:1;;;17335:18;;;17328:30;17394:34;17374:18;;;17367:62;17446:18;;33598:61:0;17114:356:1;33598:61:0;31613:4;31637:16;;;:7;:16;;;;;;-1:-1:-1;;;;;31637:16:0;:30;33670:58;;;;-1:-1:-1;;;33670:58:0;;12334:2:1;33670:58:0;;;12316:21:1;12373:2;12353:18;;;12346:30;12412;12392:18;;;12385:58;12460:18;;33670:58:0;12132:352:1;33670:58:0;-1:-1:-1;;;;;33799:13:0;;;;;;:9;:13;;;;;:18;;33816:1;;33799:13;:18;;33816:1;;33799:18;:::i;:::-;;;;-1:-1:-1;;33828:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;33828:21:0;-1:-1:-1;;;;;33828:21:0;;;;;;;;33867:33;;33828:16;;;33867:33;;33828:16;;33867:33;33526:382;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:367:1;77:8;87:6;141:3;134:4;126:6;122:17;118:27;108:55;;159:1;156;149:12;108:55;-1:-1:-1;182:20:1;;225:18;214:30;;211:50;;;257:1;254;247:12;211:50;294:4;286:6;282:17;270:29;;354:3;347:4;337:6;334:1;330:14;322:6;318:27;314:38;311:47;308:67;;;371:1;368;361:12;308:67;14:367;;;;;:::o;386:160::-;451:20;;507:13;;500:21;490:32;;480:60;;536:1;533;526:12;480:60;386:160;;;:::o;551:247::-;610:6;663:2;651:9;642:7;638:23;634:32;631:52;;;679:1;676;669:12;631:52;718:9;705:23;737:31;762:5;737:31;:::i;1063:388::-;1131:6;1139;1192:2;1180:9;1171:7;1167:23;1163:32;1160:52;;;1208:1;1205;1198:12;1160:52;1247:9;1234:23;1266:31;1291:5;1266:31;:::i;:::-;1316:5;-1:-1:-1;1373:2:1;1358:18;;1345:32;1386:33;1345:32;1386:33;:::i;:::-;1438:7;1428:17;;;1063:388;;;;;:::o;1456:456::-;1533:6;1541;1549;1602:2;1590:9;1581:7;1577:23;1573:32;1570:52;;;1618:1;1615;1608:12;1570:52;1657:9;1644:23;1676:31;1701:5;1676:31;:::i;:::-;1726:5;-1:-1:-1;1783:2:1;1768:18;;1755:32;1796:33;1755:32;1796:33;:::i;:::-;1456:456;;1848:7;;-1:-1:-1;;;1902:2:1;1887:18;;;;1874:32;;1456:456::o;1917:1266::-;2012:6;2020;2028;2036;2089:3;2077:9;2068:7;2064:23;2060:33;2057:53;;;2106:1;2103;2096:12;2057:53;2145:9;2132:23;2164:31;2189:5;2164:31;:::i;:::-;2214:5;-1:-1:-1;2271:2:1;2256:18;;2243:32;2284:33;2243:32;2284:33;:::i;:::-;2336:7;-1:-1:-1;2390:2:1;2375:18;;2362:32;;-1:-1:-1;2445:2:1;2430:18;;2417:32;2468:18;2498:14;;;2495:34;;;2525:1;2522;2515:12;2495:34;2563:6;2552:9;2548:22;2538:32;;2608:7;2601:4;2597:2;2593:13;2589:27;2579:55;;2630:1;2627;2620:12;2579:55;2666:2;2653:16;2688:2;2684;2681:10;2678:36;;;2694:18;;:::i;:::-;2769:2;2763:9;2737:2;2823:13;;-1:-1:-1;;2819:22:1;;;2843:2;2815:31;2811:40;2799:53;;;2867:18;;;2887:22;;;2864:46;2861:72;;;2913:18;;:::i;:::-;2953:10;2949:2;2942:22;2988:2;2980:6;2973:18;3028:7;3023:2;3018;3014;3010:11;3006:20;3003:33;3000:53;;;3049:1;3046;3039:12;3000:53;3105:2;3100;3096;3092:11;3087:2;3079:6;3075:15;3062:46;3150:1;3145:2;3140;3132:6;3128:15;3124:24;3117:35;3171:6;3161:16;;;;;;;1917:1266;;;;;;;:::o;3188:315::-;3253:6;3261;3314:2;3302:9;3293:7;3289:23;3285:32;3282:52;;;3330:1;3327;3320:12;3282:52;3369:9;3356:23;3388:31;3413:5;3388:31;:::i;:::-;3438:5;-1:-1:-1;3462:35:1;3493:2;3478:18;;3462:35;:::i;:::-;3452:45;;3188:315;;;;;:::o;3508:::-;3576:6;3584;3637:2;3625:9;3616:7;3612:23;3608:32;3605:52;;;3653:1;3650;3643:12;3605:52;3692:9;3679:23;3711:31;3736:5;3711:31;:::i;:::-;3761:5;3813:2;3798:18;;;;3785:32;;-1:-1:-1;;;3508:315:1:o;3828:437::-;3914:6;3922;3975:2;3963:9;3954:7;3950:23;3946:32;3943:52;;;3991:1;3988;3981:12;3943:52;4031:9;4018:23;4064:18;4056:6;4053:30;4050:50;;;4096:1;4093;4086:12;4050:50;4135:70;4197:7;4188:6;4177:9;4173:22;4135:70;:::i;:::-;4224:8;;4109:96;;-1:-1:-1;3828:437:1;-1:-1:-1;;;;3828:437:1:o;4270:773::-;4392:6;4400;4408;4416;4469:2;4457:9;4448:7;4444:23;4440:32;4437:52;;;4485:1;4482;4475:12;4437:52;4525:9;4512:23;4554:18;4595:2;4587:6;4584:14;4581:34;;;4611:1;4608;4601:12;4581:34;4650:70;4712:7;4703:6;4692:9;4688:22;4650:70;:::i;:::-;4739:8;;-1:-1:-1;4624:96:1;-1:-1:-1;4827:2:1;4812:18;;4799:32;;-1:-1:-1;4843:16:1;;;4840:36;;;4872:1;4869;4862:12;4840:36;;4911:72;4975:7;4964:8;4953:9;4949:24;4911:72;:::i;:::-;4270:773;;;;-1:-1:-1;5002:8:1;-1:-1:-1;;;;4270:773:1:o;5048:180::-;5104:6;5157:2;5145:9;5136:7;5132:23;5128:32;5125:52;;;5173:1;5170;5163:12;5125:52;5196:26;5212:9;5196:26;:::i;5233:245::-;5291:6;5344:2;5332:9;5323:7;5319:23;5315:32;5312:52;;;5360:1;5357;5350:12;5312:52;5399:9;5386:23;5418:30;5442:5;5418:30;:::i;5483:249::-;5552:6;5605:2;5593:9;5584:7;5580:23;5576:32;5573:52;;;5621:1;5618;5611:12;5573:52;5653:9;5647:16;5672:30;5696:5;5672:30;:::i;5737:592::-;5808:6;5816;5869:2;5857:9;5848:7;5844:23;5840:32;5837:52;;;5885:1;5882;5875:12;5837:52;5925:9;5912:23;5954:18;5995:2;5987:6;5984:14;5981:34;;;6011:1;6008;6001:12;5981:34;6049:6;6038:9;6034:22;6024:32;;6094:7;6087:4;6083:2;6079:13;6075:27;6065:55;;6116:1;6113;6106:12;6065:55;6156:2;6143:16;6182:2;6174:6;6171:14;6168:34;;;6198:1;6195;6188:12;6168:34;6243:7;6238:2;6229:6;6225:2;6221:15;6217:24;6214:37;6211:57;;;6264:1;6261;6254:12;6211:57;6295:2;6287:11;;;;;6317:6;;-1:-1:-1;5737:592:1;;-1:-1:-1;;;;5737:592:1:o;6334:180::-;6393:6;6446:2;6434:9;6425:7;6421:23;6417:32;6414:52;;;6462:1;6459;6452:12;6414:52;-1:-1:-1;6485:23:1;;6334:180;-1:-1:-1;6334:180:1:o;6519:184::-;6589:6;6642:2;6630:9;6621:7;6617:23;6613:32;6610:52;;;6658:1;6655;6648:12;6610:52;-1:-1:-1;6681:16:1;;6519:184;-1:-1:-1;6519:184:1:o;6708:257::-;6749:3;6787:5;6781:12;6814:6;6809:3;6802:19;6830:63;6886:6;6879:4;6874:3;6870:14;6863:4;6856:5;6852:16;6830:63;:::i;:::-;6947:2;6926:15;-1:-1:-1;;6922:29:1;6913:39;;;;6954:4;6909:50;;6708:257;-1:-1:-1;;6708:257:1:o;6970:470::-;7149:3;7187:6;7181:13;7203:53;7249:6;7244:3;7237:4;7229:6;7225:17;7203:53;:::i;:::-;7319:13;;7278:16;;;;7341:57;7319:13;7278:16;7375:4;7363:17;;7341:57;:::i;:::-;7414:20;;6970:470;-1:-1:-1;;;;6970:470:1:o;8592:511::-;8786:4;-1:-1:-1;;;;;8896:2:1;8888:6;8884:15;8873:9;8866:34;8948:2;8940:6;8936:15;8931:2;8920:9;8916:18;8909:43;;8988:6;8983:2;8972:9;8968:18;8961:34;9031:3;9026:2;9015:9;9011:18;9004:31;9052:45;9092:3;9081:9;9077:19;9069:6;9052:45;:::i;:::-;9044:53;8592:511;-1:-1:-1;;;;;;8592:511:1:o;10265:219::-;10414:2;10403:9;10396:21;10377:4;10434:44;10474:2;10463:9;10459:18;10451:6;10434:44;:::i;22891:128::-;22931:3;22962:1;22958:6;22955:1;22952:13;22949:39;;;22968:18;;:::i;:::-;-1:-1:-1;23004:9:1;;22891:128::o;23024:120::-;23064:1;23090;23080:35;;23095:18;;:::i;:::-;-1:-1:-1;23129:9:1;;23024:120::o;23149:168::-;23189:7;23255:1;23251;23247:6;23243:14;23240:1;23237:21;23232:1;23225:9;23218:17;23214:45;23211:71;;;23262:18;;:::i;:::-;-1:-1:-1;23302:9:1;;23149:168::o;23322:125::-;23362:4;23390:1;23387;23384:8;23381:34;;;23395:18;;:::i;:::-;-1:-1:-1;23432:9:1;;23322:125::o;23452:258::-;23524:1;23534:113;23548:6;23545:1;23542:13;23534:113;;;23624:11;;;23618:18;23605:11;;;23598:39;23570:2;23563:10;23534:113;;;23665:6;23662:1;23659:13;23656:48;;;-1:-1:-1;;23700:1:1;23682:16;;23675:27;23452:258::o;23715:437::-;23794:1;23790:12;;;;23837;;;23858:61;;23912:4;23904:6;23900:17;23890:27;;23858:61;23965:2;23957:6;23954:14;23934:18;23931:38;23928:218;;;-1:-1:-1;;;23999:1:1;23992:88;24103:4;24100:1;24093:15;24131:4;24128:1;24121:15;23928:218;;23715:437;;;:::o;24157:135::-;24196:3;-1:-1:-1;;24217:17:1;;24214:43;;;24237:18;;:::i;:::-;-1:-1:-1;24284:1:1;24273:13;;24157:135::o;24297:112::-;24329:1;24355;24345:35;;24360:18;;:::i;:::-;-1:-1:-1;24394:9:1;;24297:112::o;24414:184::-;-1:-1:-1;;;24463:1:1;24456:88;24563:4;24560:1;24553:15;24587:4;24584:1;24577:15;24603:184;-1:-1:-1;;;24652:1:1;24645:88;24752:4;24749:1;24742:15;24776:4;24773:1;24766:15;24792:184;-1:-1:-1;;;24841:1:1;24834:88;24941:4;24938:1;24931:15;24965:4;24962:1;24955:15;24981:184;-1:-1:-1;;;25030:1:1;25023:88;25130:4;25127:1;25120:15;25154:4;25151:1;25144:15;25170:154;-1:-1:-1;;;;;25249:5:1;25245:54;25238:5;25235:65;25225:93;;25314:1;25311;25304:12;25329:177;-1:-1:-1;;;;;;25407:5:1;25403:78;25396:5;25393:89;25383:117;;25496:1;25493;25486:12

Swarm Source

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