ETH Price: $2,467.52 (+1.20%)

Token

NFTownPlaces ()
 

Overview

Max Total Supply

416

Holders

127

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0xae0b7e2f2124b47917ba834f79c0776d99bbaca4
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NFTownPlaces

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-01
*/

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

pragma solidity ^0.8.0;

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

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



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

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



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




// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)





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

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

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

    /**
     * @dev 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 {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}



// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)





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



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





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





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


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)





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


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



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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



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





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


/**
 * @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 {
        _setApprovalForAll(_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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

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

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

        _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 `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

        _doSafeTransferAcceptanceCheck(operator, address(0), to, 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);

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

        address operator = _msgSender();

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

        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: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

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

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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;
    }
}


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)





/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}


// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)





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



// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)





/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}


contract NFTownPlaces is Ownable, ERC1155, ERC1155Supply, IERC2981 {

    // supply for ALL tokens
    uint256 public currentSupply = 0;

    // mint allowed
    bool public mintAllowed = false;

    // mint price
    uint256 public mintPrice = 0 ether;

    // royalties percentage and recipient
    uint128 public royaltiesAmount;
    address public royaltiesRecipient;

    // ECDSA mint permit verification
    address public signingAddress;

    mapping(bytes16 => bool) usedPermits;

    struct Signature {
        bytes32 r;
        bytes32 s;
        uint8 v;
    }

    struct Permit {
        bytes16 permitId;
        uint validTill;
        address contractAddress;
        address buyerAddress;
        uint256 tokenId;
        uint32 quantity;
        Signature signature;
    }

    constructor() ERC1155("https://metadata.nftown.com/places/{id}") {
        // set contract owner as default royalties recipient
        royaltiesRecipient = msg.sender;
        // default royalties percentage - 10%
        royaltiesAmount = 1000;
    }

    modifier noBots() {
        require(tx.origin == msg.sender, "No bots please!");
        _;
    }

    function setURI(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }

    // set token mint price
    function setMintPrice(uint256 _newPrice) external onlyOwner {
        mintPrice = _newPrice;
    }

    // set mint status
    function setMintStatus(bool _allowed) external onlyOwner {
        mintAllowed = _allowed;
    }

    // set ECDSA signing address (public key)
    function setSigningAddress(address newAddress) external onlyOwner {
        signingAddress = newAddress;
    }

    // airdrop
    function drop(address to, uint256 tokenId, uint32 qty) external onlyOwner {
        require(tokenId > 0, "Incorrect token id");
        currentSupply += qty;
        _mint(to, tokenId, qty, "");
    }

    // airdrop multiple
    function dropMultiple(address [] calldata to, uint256 [] calldata tokenIds, uint32 [] calldata quantities) external onlyOwner {
        require(to.length == tokenIds.length, "Invalid arguments");
        require(to.length == quantities.length, "Invalid arguments");
        for (uint i = 0; i < to.length; i++) {
            require(tokenIds[i] > 0, "Incorrect token id");
            currentSupply += quantities[i];
            _mint(to[i], tokenIds[i], quantities[i], "");
        }
    }


    // public mint
    function publicMint(Permit memory permit) external payable noBots {

        // verify contract address
        require(permit.contractAddress == address(this), "Invalid contract address");
        // check minting is allowed
        require(mintAllowed, "Mint is not allowed");
        // check the price
        require(msg.value == (mintPrice * permit.quantity), "Incorrect price sent");
        // cannot mint zero
        require(permit.quantity > 0, "Quantity must be larger than 0");
        // verify minter address
        require(permit.buyerAddress == msg.sender, "Address not allowed");
        // verify permit is not expired
        require(permit.validTill >= block.timestamp, "Permit is expired");

        // verify digital signature
        bytes32 dataHash = keccak256(
            abi.encode(
                permit.permitId,
                permit.validTill,
                permit.contractAddress,
                permit.buyerAddress,
                permit.tokenId,
                permit.quantity));

        require(ECDSA.recover(dataHash, permit.signature.v, permit.signature.r, permit.signature.s) == signingAddress,
            "Incorrect digital signature");

        // verify that permit hasn't been used yet
        require(!usedPermits[permit.permitId], "The permit has been already used");
        usedPermits[permit.permitId] = true;

        // actual mint
        currentSupply += permit.quantity;
        _mint(msg.sender, permit.tokenId, permit.quantity, "");
    }


    // The following functions are overrides required by Solidity.
    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids,
        uint256[] memory amounts, bytes memory data) internal override(ERC1155, ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

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


    // sets royalties recipient and percentage
    function setRoyaltyInfo(address _recipient, uint128 _amount) external onlyOwner {
        require(_amount <= 10000, 'ERC2981Royalties: Too high');
        royaltiesRecipient = _recipient;
        royaltiesAmount = _amount;
    }

    // ERC-2981 royalties
    function royaltyInfo(uint256, uint256 _salePrice) external view virtual override returns (address, uint256) {
        require(_salePrice > 0, "Sale price should be greater than zero");
        // percentage of the sale price
        uint256 royaltyAmount = _salePrice * royaltiesAmount / 10000;
        return (royaltiesRecipient, royaltyAmount);
    }

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

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"qty","type":"uint32"}],"name":"drop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint32[]","name":"quantities","type":"uint32[]"}],"name":"dropMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes16","name":"permitId","type":"bytes16"},{"internalType":"uint256","name":"validTill","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"address","name":"buyerAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"quantity","type":"uint32"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct NFTownPlaces.Signature","name":"signature","type":"tuple"}],"internalType":"struct NFTownPlaces.Permit","name":"permit","type":"tuple"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltiesAmount","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltiesRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"uint256","name":"_newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint128","name":"_amount","type":"uint128"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060058190556006805460ff191690556007553480156200002557600080fd5b5060405180606001604052806027815260200162002f54602791396200004b3362000083565b6200005681620000d3565b50600980546001600160a01b03191633179055600880546001600160801b0319166103e8179055620001ce565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051620000e8906003906020840190620000ec565b5050565b828054620000fa9062000192565b90600052602060002090601f0160209004810192826200011e576000855562000169565b82601f106200013957805160ff191683800117855562000169565b8280016001018555821562000169579182015b82811115620001695782518255916020019190600101906200014c565b50620001779291506200017b565b5090565b5b808211156200017757600081556001016200017c565b600181811c90821680620001a757607f821691505b602082108103620001c857634e487b7160e01b600052602260045260246000fd5b50919050565b612d7680620001de6000396000f3fe6080604052600436106101c15760003560e01c8063771282f6116100f7578063c467201e11610095578063f1a78add11610064578063f1a78add1461057a578063f242432a1461059a578063f2fde38b146105ba578063f4a0a528146105da57600080fd5b8063c467201e146104bf578063db7ee536146104d9578063e985e9c5146104f9578063f10829101461054257600080fd5b8063ae86ce36116100d1578063ae86ce361461043f578063b3e82dc914610452578063bc4b47b014610472578063bd85b0391461049257600080fd5b8063771282f6146103eb5780638da5cb5b14610401578063a22cb4651461041f57600080fd5b80632eb2c2d6116101645780634e1273f41161013e5780634e1273f4146103645780634f558e79146103915780636817c76c146103c0578063715018a6146103d657600080fd5b80632eb2c2d61461030f57806331beb6051461032f5780633ccfd60b1461034f57600080fd5b80630e89341c116101a05780630e89341c1461024b5780631d96a082146102785780631f85e3ca146102b05780632a55205a146102d057600080fd5b8062fdd58e146101c657806301ffc9a7146101f957806302fe530514610229575b600080fd5b3480156101d257600080fd5b506101e66101e1366004612195565b6105fa565b6040519081526020015b60405180910390f35b34801561020557600080fd5b506102196102143660046121d5565b610693565b60405190151581526020016101f0565b34801561023557600080fd5b506102496102443660046122bd565b6106be565b005b34801561025757600080fd5b5061026b61026636600461230d565b6106f4565b6040516101f09190612373565b34801561028457600080fd5b50600954610298906001600160a01b031681565b6040516001600160a01b0390911681526020016101f0565b3480156102bc57600080fd5b506102496102cb366004612396565b610788565b3480156102dc57600080fd5b506102f06102eb3660046123b1565b6107c5565b604080516001600160a01b0390931683526020830191909152016101f0565b34801561031b57600080fd5b5061024961032a366004612487565b610867565b34801561033b57600080fd5b5061024961034a366004612530565b6108fe565b34801561035b57600080fd5b5061024961094a565b34801561037057600080fd5b5061038461037f36600461254b565b610a09565b6040516101f09190612650565b34801561039d57600080fd5b506102196103ac36600461230d565b600090815260046020526040902054151590565b3480156103cc57600080fd5b506101e660075481565b3480156103e257600080fd5b50610249610b32565b3480156103f757600080fd5b506101e660055481565b34801561040d57600080fd5b506000546001600160a01b0316610298565b34801561042b57600080fd5b5061024961043a366004612663565b610b68565b61024961044d366004612715565b610b77565b34801561045e57600080fd5b50600a54610298906001600160a01b031681565b34801561047e57600080fd5b5061024961048d3660046127f2565b610f94565b34801561049e57600080fd5b506101e66104ad36600461230d565b60009081526004602052604090205490565b3480156104cb57600080fd5b506006546102199060ff1681565b3480156104e557600080fd5b506102496104f436600461288b565b611190565b34801561050557600080fd5b506102196105143660046128c7565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b34801561054e57600080fd5b50600854610562906001600160801b031681565b6040516001600160801b0390911681526020016101f0565b34801561058657600080fd5b506102496105953660046128f1565b61123f565b3480156105a657600080fd5b506102496105b5366004612934565b611306565b3480156105c657600080fd5b506102496105d5366004612530565b61138d565b3480156105e657600080fd5b506102496105f536600461230d565b611425565b60006001600160a01b03831661066b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b14806106b857506106b882611454565b92915050565b6000546001600160a01b031633146106e85760405162461bcd60e51b815260040161066290612998565b6106f1816114a4565b50565b606060038054610703906129cd565b80601f016020809104026020016040519081016040528092919081815260200182805461072f906129cd565b801561077c5780601f106107515761010080835404028352916020019161077c565b820191906000526020600020905b81548152906001019060200180831161075f57829003601f168201915b50505050509050919050565b6000546001600160a01b031633146107b25760405162461bcd60e51b815260040161066290612998565b6006805460ff1916911515919091179055565b600080600083116108275760405162461bcd60e51b815260206004820152602660248201527f53616c652070726963652073686f756c642062652067726561746572207468616044820152656e207a65726f60d01b6064820152608401610662565b60085460009061271090610844906001600160801b031686612a1d565b61084e9190612a3c565b6009546001600160a01b031693509150505b9250929050565b6001600160a01b03851633148061088357506108838533610514565b6108ea5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610662565b6108f785858585856114b7565b5050505050565b6000546001600160a01b031633146109285760405162461bcd60e51b815260040161066290612998565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146109745760405162461bcd60e51b815260040161066290612998565b6040513090339060009082908431908381818185875af1925050503d80600081146109bb576040519150601f19603f3d011682016040523d82523d6000602084013e6109c0565b606091505b5050905080610a045760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610662565b505050565b60608151835114610a6e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610662565b600083516001600160401b03811115610a8957610a896121f9565b604051908082528060200260200182016040528015610ab2578160200160208202803683370190505b50905060005b8451811015610b2a57610afd858281518110610ad657610ad6612a5e565b6020026020010151858381518110610af057610af0612a5e565b60200260200101516105fa565b828281518110610b0f57610b0f612a5e565b6020908102919091010152610b2381612a74565b9050610ab8565b509392505050565b6000546001600160a01b03163314610b5c5760405162461bcd60e51b815260040161066290612998565b610b6660006116a5565b565b610b733383836116f5565b5050565b323314610bb85760405162461bcd60e51b815260206004820152600f60248201526e4e6f20626f747320706c656173652160881b6044820152606401610662565b60408101516001600160a01b03163014610c145760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636f6e7472616374206164647265737300000000000000006044820152606401610662565b60065460ff16610c5c5760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081a5cc81b9bdd08185b1b1bddd959606a1b6044820152606401610662565b8060a0015163ffffffff16600754610c749190612a1d565b3414610cb95760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081c1c9a58d9481cd95b9d60621b6044820152606401610662565b60008160a0015163ffffffff1611610d135760405162461bcd60e51b815260206004820152601e60248201527f5175616e74697479206d757374206265206c6172676572207468616e203000006044820152606401610662565b60608101516001600160a01b03163314610d655760405162461bcd60e51b81526020600482015260136024820152721059191c995cdcc81b9bdd08185b1b1bddd959606a1b6044820152606401610662565b4281602001511015610dad5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5d081a5cc8195e1c1a5c9959607a1b6044820152606401610662565b80516020808301516040808501516060860151608087015160a08801519351600097610e1c9790969591016001600160801b031996909616865260208601949094526001600160a01b03928316604086015291166060840152608083015263ffffffff1660a082015260c00190565b60408051601f198184030181529181528151602092830120600a5460c086015192830151835193909401519194506001600160a01b031692610e5f9285926117d5565b6001600160a01b031614610eb55760405162461bcd60e51b815260206004820152601b60248201527f496e636f7272656374206469676974616c207369676e617475726500000000006044820152606401610662565b81516001600160801b0319166000908152600b602052604090205460ff1615610f205760405162461bcd60e51b815260206004820181905260248201527f546865207065726d697420686173206265656e20616c726561647920757365646044820152606401610662565b81516001600160801b0319166000908152600b60205260408120805460ff1916600117905560a08301516005805463ffffffff909216929091610f64908490612a8d565b92505081905550610b733383608001518460a0015163ffffffff16604051806020016040528060008152506117fd565b6000546001600160a01b03163314610fbe5760405162461bcd60e51b815260040161066290612998565b8483146110015760405162461bcd60e51b8152602060048201526011602482015270496e76616c696420617267756d656e747360781b6044820152606401610662565b8481146110445760405162461bcd60e51b8152602060048201526011602482015270496e76616c696420617267756d656e747360781b6044820152606401610662565b60005b8581101561118757600085858381811061106357611063612a5e565b90506020020135116110ac5760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd081d1bdad95b881a5960721b6044820152606401610662565b8282828181106110be576110be612a5e565b90506020020160208101906110d39190612aa5565b63ffffffff16600560008282546110ea9190612a8d565b90915550611175905087878381811061110557611105612a5e565b905060200201602081019061111a9190612530565b86868481811061112c5761112c612a5e565b9050602002013585858581811061114557611145612a5e565b905060200201602081019061115a9190612aa5565b63ffffffff16604051806020016040528060008152506117fd565b8061117f81612a74565b915050611047565b50505050505050565b6000546001600160a01b031633146111ba5760405162461bcd60e51b815260040161066290612998565b600082116111ff5760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd081d1bdad95b881a5960721b6044820152606401610662565b8063ffffffff16600560008282546112179190612a8d565b92505081905550610a0483838363ffffffff16604051806020016040528060008152506117fd565b6000546001600160a01b031633146112695760405162461bcd60e51b815260040161066290612998565b612710816001600160801b031611156112c45760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610662565b600980546001600160a01b0319166001600160a01b039390931692909217909155600880546001600160801b0319166001600160801b03909216919091179055565b6001600160a01b03851633148061132257506113228533610514565b6113805760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610662565b6108f78585858585611919565b6000546001600160a01b031633146113b75760405162461bcd60e51b815260040161066290612998565b6001600160a01b03811661141c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610662565b6106f1816116a5565b6000546001600160a01b0316331461144f5760405162461bcd60e51b815260040161066290612998565b600755565b60006001600160e01b03198216636cdb3d1360e11b148061148557506001600160e01b031982166303a24d0760e21b145b806106b857506301ffc9a760e01b6001600160e01b03198316146106b8565b8051610b739060039060208401906120e0565b81518351146115195760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610662565b6001600160a01b03841661153f5760405162461bcd60e51b815260040161066290612ac0565b3361154e818787878787611a55565b60005b845181101561163757600085828151811061156e5761156e612a5e565b60200260200101519050600085838151811061158c5761158c612a5e565b60209081029190910181015160008481526001835260408082206001600160a01b038e1683529093529190912054909150818110156115dd5760405162461bcd60e51b815260040161066290612b05565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061161c908490612a8d565b925050819055505050508061163090612a74565b9050611551565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611687929190612b4f565b60405180910390a461169d818787878787611a63565b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036117685760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610662565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008060006117e687878787611bbe565b915091506117f381611cab565b5095945050505050565b6001600160a01b03841661185d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610662565b33600061186985611e61565b9050600061187685611e61565b905061188783600089858589611a55565b60008681526001602090815260408083206001600160a01b038b168452909152812080548792906118b9908490612a8d565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461118783600089898989611eac565b6001600160a01b03841661193f5760405162461bcd60e51b815260040161066290612ac0565b33600061194b85611e61565b9050600061195885611e61565b9050611968838989858589611a55565b60008681526001602090815260408083206001600160a01b038c168452909152902054858110156119ab5760405162461bcd60e51b815260040161066290612b05565b60008781526001602090815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906119ea908490612a8d565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611a4a848a8a8a8a8a611eac565b505050505050505050565b61169d868686868686611f67565b6001600160a01b0384163b1561169d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611aa79089908990889088908890600401612b7d565b6020604051808303816000875af1925050508015611ae2575060408051601f3d908101601f19168201909252611adf91810190612bdb565b60015b611b8e57611aee612bf8565b806308c379a003611b275750611b02612c14565b80611b0d5750611b29565b8060405162461bcd60e51b81526004016106629190612373565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610662565b6001600160e01b0319811663bc197c8160e01b146111875760405162461bcd60e51b815260040161066290612c9d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611bf55750600090506003611ca2565b8460ff16601b14158015611c0d57508460ff16601c14155b15611c1e5750600090506004611ca2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611c72573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c9b57600060019250925050611ca2565b9150600090505b94509492505050565b6000816004811115611cbf57611cbf612ce5565b03611cc75750565b6001816004811115611cdb57611cdb612ce5565b03611d285760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610662565b6002816004811115611d3c57611d3c612ce5565b03611d895760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610662565b6003816004811115611d9d57611d9d612ce5565b03611df55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610662565b6004816004811115611e0957611e09612ce5565b036106f15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610662565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e9b57611e9b612a5e565b602090810291909101015292915050565b6001600160a01b0384163b1561169d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611ef09089908990889088908890600401612cfb565b6020604051808303816000875af1925050508015611f2b575060408051601f3d908101601f19168201909252611f2891810190612bdb565b60015b611f3757611aee612bf8565b6001600160e01b0319811663f23a6e6160e01b146111875760405162461bcd60e51b815260040161066290612c9d565b6001600160a01b038516611fee5760005b8351811015611fec57828181518110611f9357611f93612a5e565b602002602001015160046000868481518110611fb157611fb1612a5e565b602002602001015181526020019081526020016000206000828254611fd69190612a8d565b90915550611fe5905081612a74565b9050611f78565b505b6001600160a01b03841661169d5760005b835181101561118757600084828151811061201c5761201c612a5e565b60200260200101519050600084838151811061203a5761203a612a5e565b60200260200101519050600060046000848152602001908152602001600020549050818110156120bd5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610662565b600092835260046020526040909220910390556120d981612a74565b9050611fff565b8280546120ec906129cd565b90600052602060002090601f01602090048101928261210e5760008555612154565b82601f1061212757805160ff1916838001178555612154565b82800160010185558215612154579182015b82811115612154578251825591602001919060010190612139565b50612160929150612164565b5090565b5b808211156121605760008155600101612165565b80356001600160a01b038116811461219057600080fd5b919050565b600080604083850312156121a857600080fd5b6121b183612179565b946020939093013593505050565b6001600160e01b0319811681146106f157600080fd5b6000602082840312156121e757600080fd5b81356121f2816121bf565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60e081018181106001600160401b038211171561222e5761222e6121f9565b60405250565b601f8201601f191681016001600160401b0381118282101715612259576122596121f9565b6040525050565b60006001600160401b03831115612279576122796121f9565b604051612290601f8501601f191660200182612234565b8091508381528484840111156122a557600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156122cf57600080fd5b81356001600160401b038111156122e557600080fd5b8201601f810184136122f657600080fd5b61230584823560208401612260565b949350505050565b60006020828403121561231f57600080fd5b5035919050565b6000815180845260005b8181101561234c57602081850181015186830182015201612330565b8181111561235e576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006121f26020830184612326565b8035801515811461219057600080fd5b6000602082840312156123a857600080fd5b6121f282612386565b600080604083850312156123c457600080fd5b50508035926020909101359150565b60006001600160401b038211156123ec576123ec6121f9565b5060051b60200190565b600082601f83011261240757600080fd5b81356020612414826123d3565b6040516124218282612234565b83815260059390931b850182019282810191508684111561244157600080fd5b8286015b8481101561245c5780358352918301918301612445565b509695505050505050565b600082601f83011261247857600080fd5b6121f283833560208501612260565b600080600080600060a0868803121561249f57600080fd5b6124a886612179565b94506124b660208701612179565b935060408601356001600160401b03808211156124d257600080fd5b6124de89838a016123f6565b945060608801359150808211156124f457600080fd5b61250089838a016123f6565b9350608088013591508082111561251657600080fd5b5061252388828901612467565b9150509295509295909350565b60006020828403121561254257600080fd5b6121f282612179565b6000806040838503121561255e57600080fd5b82356001600160401b038082111561257557600080fd5b818501915085601f83011261258957600080fd5b81356020612596826123d3565b6040516125a38282612234565b83815260059390931b85018201928281019150898411156125c357600080fd5b948201945b838610156125e8576125d986612179565b825294820194908201906125c8565b965050860135925050808211156125fe57600080fd5b5061260b858286016123f6565b9150509250929050565b600081518084526020808501945080840160005b8381101561264557815187529582019590820190600101612629565b509495945050505050565b6020815260006121f26020830184612615565b6000806040838503121561267657600080fd5b61267f83612179565b915061268d60208401612386565b90509250929050565b803563ffffffff8116811461219057600080fd5b6000606082840312156126bc57600080fd5b604051606081018181106001600160401b03821117156126de576126de6121f9565b80604052508091508235815260208301356020820152604083013560ff8116811461270857600080fd5b6040919091015292915050565b6000610120828403121561272857600080fd5b6040516127348161220f565b82356001600160801b03198116811461274c57600080fd5b81526020838101359082015261276460408401612179565b604082015261277560608401612179565b60608201526080830135608082015261279060a08401612696565b60a08201526127a28460c085016126aa565b60c08201529392505050565b60008083601f8401126127c057600080fd5b5081356001600160401b038111156127d757600080fd5b6020830191508360208260051b850101111561086057600080fd5b6000806000806000806060878903121561280b57600080fd5b86356001600160401b038082111561282257600080fd5b61282e8a838b016127ae565b9098509650602089013591508082111561284757600080fd5b6128538a838b016127ae565b9096509450604089013591508082111561286c57600080fd5b5061287989828a016127ae565b979a9699509497509295939492505050565b6000806000606084860312156128a057600080fd5b6128a984612179565b9250602084013591506128be60408501612696565b90509250925092565b600080604083850312156128da57600080fd5b6128e383612179565b915061268d60208401612179565b6000806040838503121561290457600080fd5b61290d83612179565b915060208301356001600160801b038116811461292957600080fd5b809150509250929050565b600080600080600060a0868803121561294c57600080fd5b61295586612179565b945061296360208701612179565b9350604086013592506060860135915060808601356001600160401b0381111561298c57600080fd5b61252388828901612467565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806129e157607f821691505b602082108103612a0157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612a3757612a37612a07565b500290565b600082612a5957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612a8657612a86612a07565b5060010190565b60008219821115612aa057612aa0612a07565b500190565b600060208284031215612ab757600080fd5b6121f282612696565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612b626040830185612615565b8281036020840152612b748185612615565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ba990830186612615565b8281036060840152612bbb8186612615565b90508281036080840152612bcf8185612326565b98975050505050505050565b600060208284031215612bed57600080fd5b81516121f2816121bf565b600060033d1115612c115760046000803e5060005160e01c5b90565b600060443d1015612c225790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612c5157505050505090565b8285019150815181811115612c695750505050505090565b843d8701016020828501011115612c835750505050505090565b612c9260208286010187612234565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d3590830184612326565b97965050505050505056fea2646970667358221220fdef70a51426c9f85785b8ba06da2187818b2b22377fa3cff151c84e32a52bda64736f6c634300080d003368747470733a2f2f6d657461646174612e6e66746f776e2e636f6d2f706c616365732f7b69647d

Deployed Bytecode

0x6080604052600436106101c15760003560e01c8063771282f6116100f7578063c467201e11610095578063f1a78add11610064578063f1a78add1461057a578063f242432a1461059a578063f2fde38b146105ba578063f4a0a528146105da57600080fd5b8063c467201e146104bf578063db7ee536146104d9578063e985e9c5146104f9578063f10829101461054257600080fd5b8063ae86ce36116100d1578063ae86ce361461043f578063b3e82dc914610452578063bc4b47b014610472578063bd85b0391461049257600080fd5b8063771282f6146103eb5780638da5cb5b14610401578063a22cb4651461041f57600080fd5b80632eb2c2d6116101645780634e1273f41161013e5780634e1273f4146103645780634f558e79146103915780636817c76c146103c0578063715018a6146103d657600080fd5b80632eb2c2d61461030f57806331beb6051461032f5780633ccfd60b1461034f57600080fd5b80630e89341c116101a05780630e89341c1461024b5780631d96a082146102785780631f85e3ca146102b05780632a55205a146102d057600080fd5b8062fdd58e146101c657806301ffc9a7146101f957806302fe530514610229575b600080fd5b3480156101d257600080fd5b506101e66101e1366004612195565b6105fa565b6040519081526020015b60405180910390f35b34801561020557600080fd5b506102196102143660046121d5565b610693565b60405190151581526020016101f0565b34801561023557600080fd5b506102496102443660046122bd565b6106be565b005b34801561025757600080fd5b5061026b61026636600461230d565b6106f4565b6040516101f09190612373565b34801561028457600080fd5b50600954610298906001600160a01b031681565b6040516001600160a01b0390911681526020016101f0565b3480156102bc57600080fd5b506102496102cb366004612396565b610788565b3480156102dc57600080fd5b506102f06102eb3660046123b1565b6107c5565b604080516001600160a01b0390931683526020830191909152016101f0565b34801561031b57600080fd5b5061024961032a366004612487565b610867565b34801561033b57600080fd5b5061024961034a366004612530565b6108fe565b34801561035b57600080fd5b5061024961094a565b34801561037057600080fd5b5061038461037f36600461254b565b610a09565b6040516101f09190612650565b34801561039d57600080fd5b506102196103ac36600461230d565b600090815260046020526040902054151590565b3480156103cc57600080fd5b506101e660075481565b3480156103e257600080fd5b50610249610b32565b3480156103f757600080fd5b506101e660055481565b34801561040d57600080fd5b506000546001600160a01b0316610298565b34801561042b57600080fd5b5061024961043a366004612663565b610b68565b61024961044d366004612715565b610b77565b34801561045e57600080fd5b50600a54610298906001600160a01b031681565b34801561047e57600080fd5b5061024961048d3660046127f2565b610f94565b34801561049e57600080fd5b506101e66104ad36600461230d565b60009081526004602052604090205490565b3480156104cb57600080fd5b506006546102199060ff1681565b3480156104e557600080fd5b506102496104f436600461288b565b611190565b34801561050557600080fd5b506102196105143660046128c7565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b34801561054e57600080fd5b50600854610562906001600160801b031681565b6040516001600160801b0390911681526020016101f0565b34801561058657600080fd5b506102496105953660046128f1565b61123f565b3480156105a657600080fd5b506102496105b5366004612934565b611306565b3480156105c657600080fd5b506102496105d5366004612530565b61138d565b3480156105e657600080fd5b506102496105f536600461230d565b611425565b60006001600160a01b03831661066b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663152a902d60e11b14806106b857506106b882611454565b92915050565b6000546001600160a01b031633146106e85760405162461bcd60e51b815260040161066290612998565b6106f1816114a4565b50565b606060038054610703906129cd565b80601f016020809104026020016040519081016040528092919081815260200182805461072f906129cd565b801561077c5780601f106107515761010080835404028352916020019161077c565b820191906000526020600020905b81548152906001019060200180831161075f57829003601f168201915b50505050509050919050565b6000546001600160a01b031633146107b25760405162461bcd60e51b815260040161066290612998565b6006805460ff1916911515919091179055565b600080600083116108275760405162461bcd60e51b815260206004820152602660248201527f53616c652070726963652073686f756c642062652067726561746572207468616044820152656e207a65726f60d01b6064820152608401610662565b60085460009061271090610844906001600160801b031686612a1d565b61084e9190612a3c565b6009546001600160a01b031693509150505b9250929050565b6001600160a01b03851633148061088357506108838533610514565b6108ea5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610662565b6108f785858585856114b7565b5050505050565b6000546001600160a01b031633146109285760405162461bcd60e51b815260040161066290612998565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146109745760405162461bcd60e51b815260040161066290612998565b6040513090339060009082908431908381818185875af1925050503d80600081146109bb576040519150601f19603f3d011682016040523d82523d6000602084013e6109c0565b606091505b5050905080610a045760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610662565b505050565b60608151835114610a6e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610662565b600083516001600160401b03811115610a8957610a896121f9565b604051908082528060200260200182016040528015610ab2578160200160208202803683370190505b50905060005b8451811015610b2a57610afd858281518110610ad657610ad6612a5e565b6020026020010151858381518110610af057610af0612a5e565b60200260200101516105fa565b828281518110610b0f57610b0f612a5e565b6020908102919091010152610b2381612a74565b9050610ab8565b509392505050565b6000546001600160a01b03163314610b5c5760405162461bcd60e51b815260040161066290612998565b610b6660006116a5565b565b610b733383836116f5565b5050565b323314610bb85760405162461bcd60e51b815260206004820152600f60248201526e4e6f20626f747320706c656173652160881b6044820152606401610662565b60408101516001600160a01b03163014610c145760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636f6e7472616374206164647265737300000000000000006044820152606401610662565b60065460ff16610c5c5760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081a5cc81b9bdd08185b1b1bddd959606a1b6044820152606401610662565b8060a0015163ffffffff16600754610c749190612a1d565b3414610cb95760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081c1c9a58d9481cd95b9d60621b6044820152606401610662565b60008160a0015163ffffffff1611610d135760405162461bcd60e51b815260206004820152601e60248201527f5175616e74697479206d757374206265206c6172676572207468616e203000006044820152606401610662565b60608101516001600160a01b03163314610d655760405162461bcd60e51b81526020600482015260136024820152721059191c995cdcc81b9bdd08185b1b1bddd959606a1b6044820152606401610662565b4281602001511015610dad5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5d081a5cc8195e1c1a5c9959607a1b6044820152606401610662565b80516020808301516040808501516060860151608087015160a08801519351600097610e1c9790969591016001600160801b031996909616865260208601949094526001600160a01b03928316604086015291166060840152608083015263ffffffff1660a082015260c00190565b60408051601f198184030181529181528151602092830120600a5460c086015192830151835193909401519194506001600160a01b031692610e5f9285926117d5565b6001600160a01b031614610eb55760405162461bcd60e51b815260206004820152601b60248201527f496e636f7272656374206469676974616c207369676e617475726500000000006044820152606401610662565b81516001600160801b0319166000908152600b602052604090205460ff1615610f205760405162461bcd60e51b815260206004820181905260248201527f546865207065726d697420686173206265656e20616c726561647920757365646044820152606401610662565b81516001600160801b0319166000908152600b60205260408120805460ff1916600117905560a08301516005805463ffffffff909216929091610f64908490612a8d565b92505081905550610b733383608001518460a0015163ffffffff16604051806020016040528060008152506117fd565b6000546001600160a01b03163314610fbe5760405162461bcd60e51b815260040161066290612998565b8483146110015760405162461bcd60e51b8152602060048201526011602482015270496e76616c696420617267756d656e747360781b6044820152606401610662565b8481146110445760405162461bcd60e51b8152602060048201526011602482015270496e76616c696420617267756d656e747360781b6044820152606401610662565b60005b8581101561118757600085858381811061106357611063612a5e565b90506020020135116110ac5760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd081d1bdad95b881a5960721b6044820152606401610662565b8282828181106110be576110be612a5e565b90506020020160208101906110d39190612aa5565b63ffffffff16600560008282546110ea9190612a8d565b90915550611175905087878381811061110557611105612a5e565b905060200201602081019061111a9190612530565b86868481811061112c5761112c612a5e565b9050602002013585858581811061114557611145612a5e565b905060200201602081019061115a9190612aa5565b63ffffffff16604051806020016040528060008152506117fd565b8061117f81612a74565b915050611047565b50505050505050565b6000546001600160a01b031633146111ba5760405162461bcd60e51b815260040161066290612998565b600082116111ff5760405162461bcd60e51b8152602060048201526012602482015271125b98dbdc9c9958dd081d1bdad95b881a5960721b6044820152606401610662565b8063ffffffff16600560008282546112179190612a8d565b92505081905550610a0483838363ffffffff16604051806020016040528060008152506117fd565b6000546001600160a01b031633146112695760405162461bcd60e51b815260040161066290612998565b612710816001600160801b031611156112c45760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610662565b600980546001600160a01b0319166001600160a01b039390931692909217909155600880546001600160801b0319166001600160801b03909216919091179055565b6001600160a01b03851633148061132257506113228533610514565b6113805760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610662565b6108f78585858585611919565b6000546001600160a01b031633146113b75760405162461bcd60e51b815260040161066290612998565b6001600160a01b03811661141c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610662565b6106f1816116a5565b6000546001600160a01b0316331461144f5760405162461bcd60e51b815260040161066290612998565b600755565b60006001600160e01b03198216636cdb3d1360e11b148061148557506001600160e01b031982166303a24d0760e21b145b806106b857506301ffc9a760e01b6001600160e01b03198316146106b8565b8051610b739060039060208401906120e0565b81518351146115195760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610662565b6001600160a01b03841661153f5760405162461bcd60e51b815260040161066290612ac0565b3361154e818787878787611a55565b60005b845181101561163757600085828151811061156e5761156e612a5e565b60200260200101519050600085838151811061158c5761158c612a5e565b60209081029190910181015160008481526001835260408082206001600160a01b038e1683529093529190912054909150818110156115dd5760405162461bcd60e51b815260040161066290612b05565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061161c908490612a8d565b925050819055505050508061163090612a74565b9050611551565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611687929190612b4f565b60405180910390a461169d818787878787611a63565b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036117685760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610662565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008060006117e687878787611bbe565b915091506117f381611cab565b5095945050505050565b6001600160a01b03841661185d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610662565b33600061186985611e61565b9050600061187685611e61565b905061188783600089858589611a55565b60008681526001602090815260408083206001600160a01b038b168452909152812080548792906118b9908490612a8d565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461118783600089898989611eac565b6001600160a01b03841661193f5760405162461bcd60e51b815260040161066290612ac0565b33600061194b85611e61565b9050600061195885611e61565b9050611968838989858589611a55565b60008681526001602090815260408083206001600160a01b038c168452909152902054858110156119ab5760405162461bcd60e51b815260040161066290612b05565b60008781526001602090815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906119ea908490612a8d565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611a4a848a8a8a8a8a611eac565b505050505050505050565b61169d868686868686611f67565b6001600160a01b0384163b1561169d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611aa79089908990889088908890600401612b7d565b6020604051808303816000875af1925050508015611ae2575060408051601f3d908101601f19168201909252611adf91810190612bdb565b60015b611b8e57611aee612bf8565b806308c379a003611b275750611b02612c14565b80611b0d5750611b29565b8060405162461bcd60e51b81526004016106629190612373565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610662565b6001600160e01b0319811663bc197c8160e01b146111875760405162461bcd60e51b815260040161066290612c9d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611bf55750600090506003611ca2565b8460ff16601b14158015611c0d57508460ff16601c14155b15611c1e5750600090506004611ca2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611c72573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c9b57600060019250925050611ca2565b9150600090505b94509492505050565b6000816004811115611cbf57611cbf612ce5565b03611cc75750565b6001816004811115611cdb57611cdb612ce5565b03611d285760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610662565b6002816004811115611d3c57611d3c612ce5565b03611d895760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610662565b6003816004811115611d9d57611d9d612ce5565b03611df55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610662565b6004816004811115611e0957611e09612ce5565b036106f15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610662565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611e9b57611e9b612a5e565b602090810291909101015292915050565b6001600160a01b0384163b1561169d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611ef09089908990889088908890600401612cfb565b6020604051808303816000875af1925050508015611f2b575060408051601f3d908101601f19168201909252611f2891810190612bdb565b60015b611f3757611aee612bf8565b6001600160e01b0319811663f23a6e6160e01b146111875760405162461bcd60e51b815260040161066290612c9d565b6001600160a01b038516611fee5760005b8351811015611fec57828181518110611f9357611f93612a5e565b602002602001015160046000868481518110611fb157611fb1612a5e565b602002602001015181526020019081526020016000206000828254611fd69190612a8d565b90915550611fe5905081612a74565b9050611f78565b505b6001600160a01b03841661169d5760005b835181101561118757600084828151811061201c5761201c612a5e565b60200260200101519050600084838151811061203a5761203a612a5e565b60200260200101519050600060046000848152602001908152602001600020549050818110156120bd5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610662565b600092835260046020526040909220910390556120d981612a74565b9050611fff565b8280546120ec906129cd565b90600052602060002090601f01602090048101928261210e5760008555612154565b82601f1061212757805160ff1916838001178555612154565b82800160010185558215612154579182015b82811115612154578251825591602001919060010190612139565b50612160929150612164565b5090565b5b808211156121605760008155600101612165565b80356001600160a01b038116811461219057600080fd5b919050565b600080604083850312156121a857600080fd5b6121b183612179565b946020939093013593505050565b6001600160e01b0319811681146106f157600080fd5b6000602082840312156121e757600080fd5b81356121f2816121bf565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60e081018181106001600160401b038211171561222e5761222e6121f9565b60405250565b601f8201601f191681016001600160401b0381118282101715612259576122596121f9565b6040525050565b60006001600160401b03831115612279576122796121f9565b604051612290601f8501601f191660200182612234565b8091508381528484840111156122a557600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156122cf57600080fd5b81356001600160401b038111156122e557600080fd5b8201601f810184136122f657600080fd5b61230584823560208401612260565b949350505050565b60006020828403121561231f57600080fd5b5035919050565b6000815180845260005b8181101561234c57602081850181015186830182015201612330565b8181111561235e576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006121f26020830184612326565b8035801515811461219057600080fd5b6000602082840312156123a857600080fd5b6121f282612386565b600080604083850312156123c457600080fd5b50508035926020909101359150565b60006001600160401b038211156123ec576123ec6121f9565b5060051b60200190565b600082601f83011261240757600080fd5b81356020612414826123d3565b6040516124218282612234565b83815260059390931b850182019282810191508684111561244157600080fd5b8286015b8481101561245c5780358352918301918301612445565b509695505050505050565b600082601f83011261247857600080fd5b6121f283833560208501612260565b600080600080600060a0868803121561249f57600080fd5b6124a886612179565b94506124b660208701612179565b935060408601356001600160401b03808211156124d257600080fd5b6124de89838a016123f6565b945060608801359150808211156124f457600080fd5b61250089838a016123f6565b9350608088013591508082111561251657600080fd5b5061252388828901612467565b9150509295509295909350565b60006020828403121561254257600080fd5b6121f282612179565b6000806040838503121561255e57600080fd5b82356001600160401b038082111561257557600080fd5b818501915085601f83011261258957600080fd5b81356020612596826123d3565b6040516125a38282612234565b83815260059390931b85018201928281019150898411156125c357600080fd5b948201945b838610156125e8576125d986612179565b825294820194908201906125c8565b965050860135925050808211156125fe57600080fd5b5061260b858286016123f6565b9150509250929050565b600081518084526020808501945080840160005b8381101561264557815187529582019590820190600101612629565b509495945050505050565b6020815260006121f26020830184612615565b6000806040838503121561267657600080fd5b61267f83612179565b915061268d60208401612386565b90509250929050565b803563ffffffff8116811461219057600080fd5b6000606082840312156126bc57600080fd5b604051606081018181106001600160401b03821117156126de576126de6121f9565b80604052508091508235815260208301356020820152604083013560ff8116811461270857600080fd5b6040919091015292915050565b6000610120828403121561272857600080fd5b6040516127348161220f565b82356001600160801b03198116811461274c57600080fd5b81526020838101359082015261276460408401612179565b604082015261277560608401612179565b60608201526080830135608082015261279060a08401612696565b60a08201526127a28460c085016126aa565b60c08201529392505050565b60008083601f8401126127c057600080fd5b5081356001600160401b038111156127d757600080fd5b6020830191508360208260051b850101111561086057600080fd5b6000806000806000806060878903121561280b57600080fd5b86356001600160401b038082111561282257600080fd5b61282e8a838b016127ae565b9098509650602089013591508082111561284757600080fd5b6128538a838b016127ae565b9096509450604089013591508082111561286c57600080fd5b5061287989828a016127ae565b979a9699509497509295939492505050565b6000806000606084860312156128a057600080fd5b6128a984612179565b9250602084013591506128be60408501612696565b90509250925092565b600080604083850312156128da57600080fd5b6128e383612179565b915061268d60208401612179565b6000806040838503121561290457600080fd5b61290d83612179565b915060208301356001600160801b038116811461292957600080fd5b809150509250929050565b600080600080600060a0868803121561294c57600080fd5b61295586612179565b945061296360208701612179565b9350604086013592506060860135915060808601356001600160401b0381111561298c57600080fd5b61252388828901612467565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806129e157607f821691505b602082108103612a0157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612a3757612a37612a07565b500290565b600082612a5957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612a8657612a86612a07565b5060010190565b60008219821115612aa057612aa0612a07565b500190565b600060208284031215612ab757600080fd5b6121f282612696565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612b626040830185612615565b8281036020840152612b748185612615565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ba990830186612615565b8281036060840152612bbb8186612615565b90508281036080840152612bcf8185612326565b98975050505050505050565b600060208284031215612bed57600080fd5b81516121f2816121bf565b600060033d1115612c115760046000803e5060005160e01c5b90565b600060443d1015612c225790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612c5157505050505090565b8285019150815181811115612c695750505050505090565b843d8701016020828501011115612c835750505050505090565b612c9260208286010187612234565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d3590830184612326565b97965050505050505056fea2646970667358221220fdef70a51426c9f85785b8ba06da2187818b2b22377fa3cff151c84e32a52bda64736f6c634300080d0033

Deployed Bytecode Sourcemap

52350:5630:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24715:231;;;;;;;;;;-1:-1:-1;24715:231:0;;;;;:::i;:::-;;:::i;:::-;;;597:25:1;;;585:2;570:18;24715:231:0;;;;;;;;57758:217;;;;;;;;;;-1:-1:-1;57758:217:0;;;;;:::i;:::-;;:::i;:::-;;;1184:14:1;;1177:22;1159:41;;1147:2;1132:18;57758:217:0;1019:187:1;53557:89:0;;;;;;;;;;-1:-1:-1;53557:89:0;;;;;:::i;:::-;;:::i;:::-;;24459:105;;;;;;;;;;-1:-1:-1;24459:105:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;52700:33::-;;;;;;;;;;-1:-1:-1;52700:33:0;;;;-1:-1:-1;;;;;52700:33:0;;;;;;-1:-1:-1;;;;;3808:32:1;;;3790:51;;3778:2;3763:18;52700:33:0;3644:203:1;53815:98:0;;;;;;;;;;-1:-1:-1;53815:98:0;;;;;:::i;:::-;;:::i;57393:357::-;;;;;;;;;;-1:-1:-1;57393:357:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4647:32:1;;;4629:51;;4711:2;4696:18;;4689:34;;;;4602:18;57393:357:0;4455:274:1;26654:442:0;;;;;;;;;;-1:-1:-1;26654:442:0;;;;;:::i;:::-;;:::i;53968:112::-;;;;;;;;;;-1:-1:-1;53968:112:0;;;;;:::i;:::-;;:::i;56800:268::-;;;;;;;;;;;;;:::i;25112:524::-;;;;;;;;;;-1:-1:-1;25112:524:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;40946:122::-;;;;;;;;;;-1:-1:-1;40946:122:0;;;;;:::i;:::-;41003:4;40824:16;;;:12;:16;;;;;;-1:-1:-1;;;40946:122:0;52577:34;;;;;;;;;;;;;;;;5380:103;;;;;;;;;;;;;:::i;52456:32::-;;;;;;;;;;;;;;;;4729:87;;;;;;;;;;-1:-1:-1;4775:7:0;4802:6;-1:-1:-1;;;;;4802:6:0;4729:87;;25709:155;;;;;;;;;;-1:-1:-1;25709:155:0;;;;;:::i;:::-;;:::i;54869:1539::-;;;;;;:::i;:::-;;:::i;52781:29::-;;;;;;;;;;-1:-1:-1;52781:29:0;;;;-1:-1:-1;;;;;52781:29:0;;;54341:498;;;;;;;;;;-1:-1:-1;54341:498:0;;;;;:::i;:::-;;:::i;40735:113::-;;;;;;;;;;-1:-1:-1;40735:113:0;;;;;:::i;:::-;40797:7;40824:16;;;:12;:16;;;;;;;40735:113;52518:31;;;;;;;;;;-1:-1:-1;52518:31:0;;;;;;;;54104:204;;;;;;;;;;-1:-1:-1;54104:204:0;;;;;:::i;:::-;;:::i;25936:168::-;;;;;;;;;;-1:-1:-1;25936:168:0;;;;;:::i;:::-;-1:-1:-1;;;;;26059:27:0;;;26035:4;26059:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;25936:168;52663:30;;;;;;;;;;-1:-1:-1;52663:30:0;;;;-1:-1:-1;;;;;52663:30:0;;;;;;-1:-1:-1;;;;;13113:47:1;;;13095:66;;13083:2;13068:18;52663:30:0;12949:218:1;57126:232:0;;;;;;;;;;-1:-1:-1;57126:232:0;;;;;:::i;:::-;;:::i;26176:401::-;;;;;;;;;;-1:-1:-1;26176:401:0;;;;;:::i;:::-;;:::i;5638:201::-;;;;;;;;;;-1:-1:-1;5638:201:0;;;;;:::i;:::-;;:::i;53683:100::-;;;;;;;;;;-1:-1:-1;53683:100:0;;;;;:::i;:::-;;:::i;24715:231::-;24801:7;-1:-1:-1;;;;;24829:21:0;;24821:77;;;;-1:-1:-1;;;24821:77:0;;14365:2:1;24821:77:0;;;14347:21:1;14404:2;14384:18;;;14377:30;14443:34;14423:18;;;14416:62;-1:-1:-1;;;14494:18:1;;;14487:41;14545:19;;24821:77:0;;;;;;;;;-1:-1:-1;24916:13:0;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;24916:22:0;;;;;;;;;;;;24715:231::o;57758:217::-;57862:4;-1:-1:-1;;;;;;57886:41:0;;-1:-1:-1;;;57886:41:0;;:81;;;57931:36;57955:11;57931:23;:36::i;:::-;57879:88;57758:217;-1:-1:-1;;57758:217:0:o;53557:89::-;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;53623:15:::1;53631:6;53623:7;:15::i;:::-;53557:89:::0;:::o;24459:105::-;24519:13;24552:4;24545:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24459:105;;;:::o;53815:98::-;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;53883:11:::1;:22:::0;;-1:-1:-1;;53883:22:0::1;::::0;::::1;;::::0;;;::::1;::::0;;53815:98::o;57393:357::-;57483:7;57492;57533:1;57520:10;:14;57512:65;;;;-1:-1:-1;;;57512:65:0;;15523:2:1;57512:65:0;;;15505:21:1;15562:2;15542:18;;;15535:30;15601:34;15581:18;;;15574:62;-1:-1:-1;;;15652:18:1;;;15645:36;15698:19;;57512:65:0;15321:402:1;57512:65:0;57666:15;;57629:21;;57684:5;;57653:28;;-1:-1:-1;;;;;57666:15:0;57653:10;:28;:::i;:::-;:36;;;;:::i;:::-;57708:18;;-1:-1:-1;;;;;57708:18:0;;-1:-1:-1;57629:60:0;-1:-1:-1;;57393:357:0;;;;;;:::o;26654:442::-;-1:-1:-1;;;;;26887:20:0;;3605:10;26887:20;;:60;;-1:-1:-1;26911:36:0;26928:4;3605:10;25936:168;:::i;26911:36::-;26865:160;;;;-1:-1:-1;;;26865:160:0;;16457:2:1;26865:160:0;;;16439:21:1;16496:2;16476:18;;;16469:30;16535:34;16515:18;;;16508:62;-1:-1:-1;;;16586:18:1;;;16579:48;16644:19;;26865:160:0;16255:414:1;26865:160:0;27036:52;27059:4;27065:2;27069:3;27074:7;27083:4;27036:22;:52::i;:::-;26654:442;;;;;:::o;53968:112::-;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;54045:14:::1;:27:::0;;-1:-1:-1;;;;;;54045:27:0::1;-1:-1:-1::0;;;;;54045:27:0;;;::::1;::::0;;;::::1;::::0;;53968:112::o;56800:268::-;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;56969:44:::1;::::0;56881:4:::1;::::0;56929:10:::1;::::0;56850:20:::1;::::0;56929:10;;56988:20;::::1;::::0;56850;56969:44;56850:20;56969:44;56988:20;56929:10;56969:44:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56951:62;;;57032:7;57024:36;;;::::0;-1:-1:-1;;;57024:36:0;;17086:2:1;57024:36:0::1;::::0;::::1;17068:21:1::0;17125:2;17105:18;;;17098:30;-1:-1:-1;;;17144:18:1;;;17137:46;17200:18;;57024:36:0::1;16884:340:1::0;57024:36:0::1;56839:229;;;56800:268::o:0;25112:524::-;25268:16;25329:3;:10;25310:8;:15;:29;25302:83;;;;-1:-1:-1;;;25302:83:0;;17431:2:1;25302:83:0;;;17413:21:1;17470:2;17450:18;;;17443:30;17509:34;17489:18;;;17482:62;-1:-1:-1;;;17560:18:1;;;17553:39;17609:19;;25302:83:0;17229:405:1;25302:83:0;25398:30;25445:8;:15;-1:-1:-1;;;;;25431:30:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25431:30:0;;25398:63;;25479:9;25474:122;25498:8;:15;25494:1;:19;25474:122;;;25554:30;25564:8;25573:1;25564:11;;;;;;;;:::i;:::-;;;;;;;25577:3;25581:1;25577:6;;;;;;;;:::i;:::-;;;;;;;25554:9;:30::i;:::-;25535:13;25549:1;25535:16;;;;;;;;:::i;:::-;;;;;;;;;;:49;25515:3;;;:::i;:::-;;;25474:122;;;-1:-1:-1;25615:13:0;25112:524;-1:-1:-1;;;25112:524:0:o;5380:103::-;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;5445:30:::1;5472:1;5445:18;:30::i;:::-;5380:103::o:0;25709:155::-;25804:52;3605:10;25837:8;25847;25804:18;:52::i;:::-;25709:155;;:::o;54869:1539::-;53486:9;53499:10;53486:23;53478:51;;;;-1:-1:-1;;;53478:51:0;;18113:2:1;53478:51:0;;;18095:21:1;18152:2;18132:18;;;18125:30;-1:-1:-1;;;18171:18:1;;;18164:45;18226:18;;53478:51:0;17911:339:1;53478:51:0;54992:22:::1;::::0;::::1;::::0;-1:-1:-1;;;;;54992:39:0::1;55026:4;54992:39;54984:76;;;::::0;-1:-1:-1;;;54984:76:0;;18457:2:1;54984:76:0::1;::::0;::::1;18439:21:1::0;18496:2;18476:18;;;18469:30;18535:26;18515:18;;;18508:54;18579:18;;54984:76:0::1;18255:348:1::0;54984:76:0::1;55116:11;::::0;::::1;;55108:43;;;::::0;-1:-1:-1;;;55108:43:0;;18810:2:1;55108:43:0::1;::::0;::::1;18792:21:1::0;18849:2;18829:18;;;18822:30;-1:-1:-1;;;18868:18:1;;;18861:49;18927:18;;55108:43:0::1;18608:343:1::0;55108:43:0::1;55224:6;:15;;;55212:27;;:9;;:27;;;;:::i;:::-;55198:9;:42;55190:75;;;::::0;-1:-1:-1;;;55190:75:0;;19158:2:1;55190:75:0::1;::::0;::::1;19140:21:1::0;19197:2;19177:18;;;19170:30;-1:-1:-1;;;19216:18:1;;;19209:50;19276:18;;55190:75:0::1;18956:344:1::0;55190:75:0::1;55331:1;55313:6;:15;;;:19;;;55305:62;;;::::0;-1:-1:-1;;;55305:62:0;;19507:2:1;55305:62:0::1;::::0;::::1;19489:21:1::0;19546:2;19526:18;;;19519:30;19585:32;19565:18;;;19558:60;19635:18;;55305:62:0::1;19305:354:1::0;55305:62:0::1;55420:19;::::0;::::1;::::0;-1:-1:-1;;;;;55420:33:0::1;55443:10;55420:33;55412:65;;;::::0;-1:-1:-1;;;55412:65:0;;19866:2:1;55412:65:0::1;::::0;::::1;19848:21:1::0;19905:2;19885:18;;;19878:30;-1:-1:-1;;;19924:18:1;;;19917:49;19983:18;;55412:65:0::1;19664:343:1::0;55412:65:0::1;55557:15;55537:6;:16;;;:35;;55529:65;;;::::0;-1:-1:-1;;;55529:65:0;;20214:2:1;55529:65:0::1;::::0;::::1;20196:21:1::0;20253:2;20233:18;;;20226:30;-1:-1:-1;;;20272:18:1;;;20265:47;20329:18;;55529:65:0::1;20012:341:1::0;55529:65:0::1;55716:15:::0;;55750:16:::1;::::0;;::::1;::::0;55785:22:::1;::::0;;::::1;::::0;55826:19:::1;::::0;::::1;::::0;55864:14:::1;::::0;::::1;::::0;55897:15:::1;::::0;::::1;::::0;55687:226;;55644:16:::1;::::0;55687:226:::1;::::0;55716:15;;55750:16;55897:15;55687:226:::1;-1:-1:-1::0;;;;;;20661:52:1;;;;20643:71;;20745:2;20730:18;;20723:34;;;;-1:-1:-1;;;;;20831:15:1;;;20826:2;20811:18;;20804:43;20883:15;;20878:2;20863:18;;20856:43;20930:3;20915:19;;20908:35;20992:10;20980:23;20784:3;20959:19;;20952:52;20630:3;20615:19;;20358:652;55687:226:0::1;;::::0;;-1:-1:-1;;55687:226:0;;::::1;::::0;;;;;;55663:251;;55687:226:::1;55663:251:::0;;::::1;::::0;56022:14:::1;::::0;55959:16:::1;::::0;::::1;::::0;:18;;::::1;::::0;55979;;55999;;;::::1;::::0;55663:251;;-1:-1:-1;;;;;;56022:14:0::1;::::0;55935:83:::1;::::0;55663:251;;55935:13:::1;:83::i;:::-;-1:-1:-1::0;;;;;55935:101:0::1;;55927:154;;;::::0;-1:-1:-1;;;55927:154:0;;21217:2:1;55927:154:0::1;::::0;::::1;21199:21:1::0;21256:2;21236:18;;;21229:30;21295:29;21275:18;;;21268:57;21342:18;;55927:154:0::1;21015:351:1::0;55927:154:0::1;56167:15:::0;;-1:-1:-1;;;;;;56155:28:0::1;;::::0;;;:11:::1;:28;::::0;;;;;::::1;;56154:29;56146:74;;;::::0;-1:-1:-1;;;56146:74:0;;21573:2:1;56146:74:0::1;::::0;::::1;21555:21:1::0;;;21592:18;;;21585:30;21651:34;21631:18;;;21624:62;21703:18;;56146:74:0::1;21371:356:1::0;56146:74:0::1;56243:15:::0;;-1:-1:-1;;;;;;56231:28:0::1;;::::0;;;:11:::1;:28;::::0;;;;:35;;-1:-1:-1;;56231:35:0::1;56262:4;56231:35;::::0;;56320:15:::1;::::0;::::1;::::0;56303:13:::1;:32:::0;;::::1;::::0;;::::1;::::0;:13;;:32:::1;::::0;;;::::1;:::i;:::-;;;;;;;;56346:54;56352:10;56364:6;:14;;;56380:6;:15;;;56346:54;;;;;;;;;;;;;::::0;:5:::1;:54::i;54341:498::-:0;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;54486:28;;::::1;54478:58;;;::::0;-1:-1:-1;;;54478:58:0;;22067:2:1;54478:58:0::1;::::0;::::1;22049:21:1::0;22106:2;22086:18;;;22079:30;-1:-1:-1;;;22125:18:1;;;22118:47;22182:18;;54478:58:0::1;21865:341:1::0;54478:58:0::1;54555:30:::0;;::::1;54547:60;;;::::0;-1:-1:-1;;;54547:60:0;;22067:2:1;54547:60:0::1;::::0;::::1;22049:21:1::0;22106:2;22086:18;;;22079:30;-1:-1:-1;;;22125:18:1;;;22118:47;22182:18;;54547:60:0::1;21865:341:1::0;54547:60:0::1;54623:6;54618:214;54635:13:::0;;::::1;54618:214;;;54692:1;54678:8;;54687:1;54678:11;;;;;;;:::i;:::-;;;;;;;:15;54670:46;;;::::0;-1:-1:-1;;;54670:46:0;;22413:2:1;54670:46:0::1;::::0;::::1;22395:21:1::0;22452:2;22432:18;;;22425:30;-1:-1:-1;;;22471:18:1;;;22464:48;22529:18;;54670:46:0::1;22211:342:1::0;54670:46:0::1;54748:10;;54759:1;54748:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;54731:30;;:13;;:30;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;54776:44:0::1;::::0;-1:-1:-1;54782:2:0;;54785:1;54782:5;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;54789:8;;54798:1;54789:11;;;;;;;:::i;:::-;;;;;;;54802:10;;54813:1;54802:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;54776:44;;;;;;;;;;;;;::::0;:5:::1;:44::i;:::-;54650:3:::0;::::1;::::0;::::1;:::i;:::-;;;;54618:214;;;;54341:498:::0;;;;;;:::o;54104:204::-;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;54207:1:::1;54197:7;:11;54189:42;;;::::0;-1:-1:-1;;;54189:42:0;;22413:2:1;54189:42:0::1;::::0;::::1;22395:21:1::0;22452:2;22432:18;;;22425:30;-1:-1:-1;;;22471:18:1;;;22464:48;22529:18;;54189:42:0::1;22211:342:1::0;54189:42:0::1;54259:3;54242:20;;:13;;:20;;;;;;;:::i;:::-;;;;;;;;54273:27;54279:2;54283:7;54292:3;54273:27;;;;;;;;;;;;;::::0;:5:::1;:27::i;57126:232::-:0;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;57236:5:::1;57225:7;-1:-1:-1::0;;;;;57225:16:0::1;;;57217:55;;;::::0;-1:-1:-1;;;57217:55:0;;22949:2:1;57217:55:0::1;::::0;::::1;22931:21:1::0;22988:2;22968:18;;;22961:30;23027:28;23007:18;;;23000:56;23073:18;;57217:55:0::1;22747:350:1::0;57217:55:0::1;57283:18;:31:::0;;-1:-1:-1;;;;;;57283:31:0::1;-1:-1:-1::0;;;;;57283:31:0;;;::::1;::::0;;;::::1;::::0;;;57325:15:::1;:25:::0;;-1:-1:-1;;;;;;57325:25:0::1;-1:-1:-1::0;;;;;57325:25:0;;::::1;::::0;;;::::1;::::0;;57126:232::o;26176:401::-;-1:-1:-1;;;;;26384:20:0;;3605:10;26384:20;;:60;;-1:-1:-1;26408:36:0;26425:4;3605:10;25936:168;:::i;26408:36::-;26362:151;;;;-1:-1:-1;;;26362:151:0;;23304:2:1;26362:151:0;;;23286:21:1;23343:2;23323:18;;;23316:30;23382:34;23362:18;;;23355:62;-1:-1:-1;;;23433:18:1;;;23426:39;23482:19;;26362:151:0;23102:405:1;26362:151:0;26524:45;26542:4;26548:2;26552;26556:6;26564:4;26524:17;:45::i;5638:201::-;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;5727:22:0;::::1;5719:73;;;::::0;-1:-1:-1;;;5719:73:0;;23714:2:1;5719:73:0::1;::::0;::::1;23696:21:1::0;23753:2;23733:18;;;23726:30;23792:34;23772:18;;;23765:62;-1:-1:-1;;;23843:18:1;;;23836:36;23889:19;;5719:73:0::1;23512:402:1::0;5719:73:0::1;5803:28;5822:8;5803:18;:28::i;53683:100::-:0;4775:7;4802:6;-1:-1:-1;;;;;4802:6:0;3605:10;4949:23;4941:68;;;;-1:-1:-1;;;4941:68:0;;;;;;;:::i;:::-;53754:9:::1;:21:::0;53683:100::o;23738:310::-;23840:4;-1:-1:-1;;;;;;23877:41:0;;-1:-1:-1;;;23877:41:0;;:110;;-1:-1:-1;;;;;;;23935:52:0;;-1:-1:-1;;;23935:52:0;23877:110;:163;;;-1:-1:-1;;;;;;;;;;22771:40:0;;;24004:36;22662:157;30882:88;30949:13;;;;:4;;:13;;;;;:::i;28892:1146::-;29119:7;:14;29105:3;:10;:28;29097:81;;;;-1:-1:-1;;;29097:81:0;;24121:2:1;29097:81:0;;;24103:21:1;24160:2;24140:18;;;24133:30;24199:34;24179:18;;;24172:62;-1:-1:-1;;;24250:18:1;;;24243:38;24298:19;;29097:81:0;23919:404:1;29097:81:0;-1:-1:-1;;;;;29197:16:0;;29189:66;;;;-1:-1:-1;;;29189:66:0;;;;;;;:::i;:::-;3605:10;29312:60;3605:10;29343:4;29349:2;29353:3;29358:7;29367:4;29312:20;:60::i;:::-;29390:9;29385:421;29409:3;:10;29405:1;:14;29385:421;;;29441:10;29454:3;29458:1;29454:6;;;;;;;;:::i;:::-;;;;;;;29441:19;;29475:14;29492:7;29500:1;29492:10;;;;;;;;:::i;:::-;;;;;;;;;;;;29519:19;29541:13;;;:9;:13;;;;;;-1:-1:-1;;;;;29541:19:0;;;;;;;;;;;;29492:10;;-1:-1:-1;29583:21:0;;;;29575:76;;;;-1:-1:-1;;;29575:76:0;;;;;;;:::i;:::-;29695:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;29695:19:0;;;;;;;;;;29717:20;;;29695:42;;29767:17;;;;;;;:27;;29717:20;;29695:13;29767:27;;29717:20;;29767:27;:::i;:::-;;;;;;;;29426:380;;;29421:3;;;;:::i;:::-;;;29385:421;;;;29853:2;-1:-1:-1;;;;;29823:47:0;29847:4;-1:-1:-1;;;;;29823:47:0;29837:8;-1:-1:-1;;;;;29823:47:0;;29857:3;29862:7;29823:47;;;;;;;:::i;:::-;;;;;;;;29955:75;29991:8;30001:4;30007:2;30011:3;30016:7;30025:4;29955:35;:75::i;:::-;29086:952;28892:1146;;;;;:::o;5999:191::-;6073:16;6092:6;;-1:-1:-1;;;;;6109:17:0;;;-1:-1:-1;;;;;;6109:17:0;;;;;;6142:40;;6092:6;;;;;;;6142:40;;6073:16;6142:40;6062:128;5999:191;:::o;35626:331::-;35781:8;-1:-1:-1;;;;;35772:17:0;:5;-1:-1:-1;;;;;35772:17:0;;35764:71;;;;-1:-1:-1;;;35764:71:0;;25817:2:1;35764:71:0;;;25799:21:1;25856:2;25836:18;;;25829:30;25895:34;25875:18;;;25868:62;-1:-1:-1;;;25946:18:1;;;25939:39;25995:19;;35764:71:0;25615:405:1;35764:71:0;-1:-1:-1;;;;;35846:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;35846:46:0;;;;;;;;;;35908:41;;1159::1;;;35908::0;;1132:18:1;35908:41:0;;;;;;;35626:331;;;:::o;50454:279::-;50582:7;50603:17;50622:18;50644:25;50655:4;50661:1;50664;50667;50644:10;:25::i;:::-;50602:67;;;;50680:18;50692:5;50680:11;:18::i;:::-;-1:-1:-1;50716:9:0;50454:279;-1:-1:-1;;;;;50454:279:0:o;31356:729::-;-1:-1:-1;;;;;31509:16:0;;31501:62;;;;-1:-1:-1;;;31501:62:0;;26227:2:1;31501:62:0;;;26209:21:1;26266:2;26246:18;;;26239:30;26305:34;26285:18;;;26278:62;-1:-1:-1;;;26356:18:1;;;26349:31;26397:19;;31501:62:0;26025:397:1;31501:62:0;3605:10;31576:16;31641:21;31659:2;31641:17;:21::i;:::-;31618:44;;31673:24;31700:25;31718:6;31700:17;:25::i;:::-;31673:52;;31738:66;31759:8;31777:1;31781:2;31785:3;31790:7;31799:4;31738:20;:66::i;:::-;31817:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;31817:17:0;;;;;;;;;:27;;31838:6;;31817:13;:27;;31838:6;;31817:27;:::i;:::-;;;;-1:-1:-1;;31860:52:0;;;26601:25:1;;;26657:2;26642:18;;26635:34;;;-1:-1:-1;;;;;31860:52:0;;;;31893:1;;31860:52;;;;;;26574:18:1;31860:52:0;;;;;;;32003:74;32034:8;32052:1;32056:2;32060;32064:6;32072:4;32003:30;:74::i;27560:974::-;-1:-1:-1;;;;;27748:16:0;;27740:66;;;;-1:-1:-1;;;27740:66:0;;;;;;;:::i;:::-;3605:10;27819:16;27884:21;27902:2;27884:17;:21::i;:::-;27861:44;;27916:24;27943:25;27961:6;27943:17;:25::i;:::-;27916:52;;27981:60;28002:8;28012:4;28018:2;28022:3;28027:7;28036:4;27981:20;:60::i;:::-;28054:19;28076:13;;;:9;:13;;;;;;;;-1:-1:-1;;;;;28076:19:0;;;;;;;;;;28114:21;;;;28106:76;;;;-1:-1:-1;;;28106:76:0;;;;;;;:::i;:::-;28218:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;28218:19:0;;;;;;;;;;28240:20;;;28218:42;;28282:17;;;;;;;:27;;28240:20;;28218:13;28282:27;;28240:20;;28282:27;:::i;:::-;;;;-1:-1:-1;;28327:46:0;;;26601:25:1;;;26657:2;26642:18;;26635:34;;;-1:-1:-1;;;;;28327:46:0;;;;;;;;;;;;;;26574:18:1;28327:46:0;;;;;;;28458:68;28489:8;28499:4;28505:2;28509;28513:6;28521:4;28458:30;:68::i;:::-;27729:805;;;;27560:974;;;;;:::o;56486:277::-;56689:66;56716:8;56726:4;56732:2;56736:3;56741:7;56750:4;56689:26;:66::i;39069:813::-;-1:-1:-1;;;;;39309:13:0;;14908:19;:23;39305:570;;39345:79;;-1:-1:-1;;;39345:79:0;;-1:-1:-1;;;;;39345:43:0;;;;;:79;;39389:8;;39399:4;;39405:3;;39410:7;;39419:4;;39345:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39345:79:0;;;;;;;;-1:-1:-1;;39345:79:0;;;;;;;;;;;;:::i;:::-;;;39341:523;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;39737:6;39730:14;;-1:-1:-1;;;39730:14:0;;;;;;;;:::i;39341:523::-;;;39786:62;;-1:-1:-1;;;39786:62:0;;28828:2:1;39786:62:0;;;28810:21:1;28867:2;28847:18;;;28840:30;28906:34;28886:18;;;28879:62;-1:-1:-1;;;28957:18:1;;;28950:50;29017:19;;39786:62:0;28626:416:1;39341:523:0;-1:-1:-1;;;;;;39506:60:0;;-1:-1:-1;;;39506:60:0;39502:159;;39591:50;;-1:-1:-1;;;39591:50:0;;;;;;;:::i;48683:1632::-;48814:7;;49748:66;49735:79;;49731:163;;;-1:-1:-1;49847:1:0;;-1:-1:-1;49851:30:0;49831:51;;49731:163;49908:1;:7;;49913:2;49908:7;;:18;;;;;49919:1;:7;;49924:2;49919:7;;49908:18;49904:102;;;-1:-1:-1;49959:1:0;;-1:-1:-1;49963:30:0;49943:51;;49904:102;50120:24;;;50103:14;50120:24;;;;;;;;;29683:25:1;;;29756:4;29744:17;;29724:18;;;29717:45;;;;29778:18;;;29771:34;;;29821:18;;;29814:34;;;50120:24:0;;29655:19:1;;50120:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50120:24:0;;-1:-1:-1;;50120:24:0;;;-1:-1:-1;;;;;;;50159:20:0;;50155:103;;50212:1;50216:29;50196:50;;;;;;;50155:103;50278:6;-1:-1:-1;50286:20:0;;-1:-1:-1;48683:1632:0;;;;;;;;:::o;43392:643::-;43470:20;43461:5;:29;;;;;;;;:::i;:::-;;43457:571;;43392:643;:::o;43457:571::-;43568:29;43559:5;:38;;;;;;;;:::i;:::-;;43555:473;;43614:34;;-1:-1:-1;;;43614:34:0;;30193:2:1;43614:34:0;;;30175:21:1;30232:2;30212:18;;;30205:30;30271:26;30251:18;;;30244:54;30315:18;;43614:34:0;29991:348:1;43555:473:0;43679:35;43670:5;:44;;;;;;;;:::i;:::-;;43666:362;;43731:41;;-1:-1:-1;;;43731:41:0;;30546:2:1;43731:41:0;;;30528:21:1;30585:2;30565:18;;;30558:30;30624:33;30604:18;;;30597:61;30675:18;;43731:41:0;30344:355:1;43666:362:0;43803:30;43794:5;:39;;;;;;;;:::i;:::-;;43790:238;;43850:44;;-1:-1:-1;;;43850:44:0;;30906:2:1;43850:44:0;;;30888:21:1;30945:2;30925:18;;;30918:30;30984:34;30964:18;;;30957:62;-1:-1:-1;;;31035:18:1;;;31028:32;31077:19;;43850:44:0;30704:398:1;43790:238:0;43925:30;43916:5;:39;;;;;;;;:::i;:::-;;43912:116;;43972:44;;-1:-1:-1;;;43972:44:0;;31309:2:1;43972:44:0;;;31291:21:1;31348:2;31328:18;;;31321:30;31387:34;31367:18;;;31360:62;-1:-1:-1;;;31438:18:1;;;31431:32;31480:19;;43972:44:0;31107:398:1;39890:198:0;40010:16;;;40024:1;40010:16;;;;;;;;;39956;;39985:22;;40010:16;;;;;;;;;;;;-1:-1:-1;40010:16:0;39985:41;;40048:7;40037:5;40043:1;40037:8;;;;;;;;:::i;:::-;;;;;;;;;;:18;40075:5;39890:198;-1:-1:-1;;39890:198:0:o;38317:744::-;-1:-1:-1;;;;;38532:13:0;;14908:19;:23;38528:526;;38568:72;;-1:-1:-1;;;38568:72:0;;-1:-1:-1;;;;;38568:38:0;;;;;:72;;38607:8;;38617:4;;38623:2;;38627:6;;38635:4;;38568:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38568:72:0;;;;;;;;-1:-1:-1;;38568:72:0;;;;;;;;;;;;:::i;:::-;;;38564:479;;;;:::i;:::-;-1:-1:-1;;;;;;38690:55:0;;-1:-1:-1;;;38690:55:0;38686:154;;38770:50;;-1:-1:-1;;;38770:50:0;;;;;;;:::i;41143:931::-;-1:-1:-1;;;;;41465:18:0;;41461:160;;41505:9;41500:110;41524:3;:10;41520:1;:14;41500:110;;;41584:7;41592:1;41584:10;;;;;;;;:::i;:::-;;;;;;;41560:12;:20;41573:3;41577:1;41573:6;;;;;;;;:::i;:::-;;;;;;;41560:20;;;;;;;;;;;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;41536:3:0;;-1:-1:-1;41536:3:0;;:::i;:::-;;;41500:110;;;;41461:160;-1:-1:-1;;;;;41637:16:0;;41633:434;;41675:9;41670:386;41694:3;:10;41690:1;:14;41670:386;;;41730:10;41743:3;41747:1;41743:6;;;;;;;;:::i;:::-;;;;;;;41730:19;;41768:14;41785:7;41793:1;41785:10;;;;;;;;:::i;:::-;;;;;;;41768:27;;41814:14;41831:12;:16;41844:2;41831:16;;;;;;;;;;;;41814:33;;41884:6;41874;:16;;41866:69;;;;-1:-1:-1;;;41866:69:0;;32278:2:1;41866:69:0;;;32260:21:1;32317:2;32297:18;;;32290:30;32356:34;32336:18;;;32329:62;-1:-1:-1;;;32407:18:1;;;32400:38;32455:19;;41866:69:0;32076:404:1;41866:69:0;41987:16;;;;:12;:16;;;;;;42006:15;;41987:34;;41706:3;;;:::i;:::-;;;41670:386;;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:254::-;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;360:29;379:9;360:29;:::i;:::-;350:39;436:2;421:18;;;;408:32;;-1:-1:-1;;;192:254:1:o;633:131::-;-1:-1:-1;;;;;;707:32:1;;697:43;;687:71;;754:1;751;744:12;769:245;827:6;880:2;868:9;859:7;855:23;851:32;848:52;;;896:1;893;886:12;848:52;935:9;922:23;954:30;978:5;954:30;:::i;:::-;1003:5;769:245;-1:-1:-1;;;769:245:1:o;1211:127::-;1272:10;1267:3;1263:20;1260:1;1253:31;1303:4;1300:1;1293:15;1327:4;1324:1;1317:15;1343:225;1429:4;1421:6;1417:17;1500:6;1488:10;1485:22;-1:-1:-1;;;;;1452:10:1;1449:34;1446:62;1443:88;;;1511:18;;:::i;:::-;1547:2;1540:22;-1:-1:-1;1343:225:1:o;1573:249::-;1683:2;1664:13;;-1:-1:-1;;1660:27:1;1648:40;;-1:-1:-1;;;;;1703:34:1;;1739:22;;;1700:62;1697:88;;;1765:18;;:::i;:::-;1801:2;1794:22;-1:-1:-1;;1573:249:1:o;1827:469::-;1892:5;-1:-1:-1;;;;;1918:6:1;1915:30;1912:56;;;1948:18;;:::i;:::-;1997:2;1991:9;2009:69;2066:2;2045:15;;-1:-1:-1;;2041:29:1;2072:4;2037:40;1991:9;2009:69;:::i;:::-;2096:6;2087:15;;2126:6;2118;2111:22;2166:3;2157:6;2152:3;2148:16;2145:25;2142:45;;;2183:1;2180;2173:12;2142:45;2233:6;2228:3;2221:4;2213:6;2209:17;2196:44;2288:1;2281:4;2272:6;2264;2260:19;2256:30;2249:41;;1827:469;;;;;:::o;2301:451::-;2370:6;2423:2;2411:9;2402:7;2398:23;2394:32;2391:52;;;2439:1;2436;2429:12;2391:52;2479:9;2466:23;-1:-1:-1;;;;;2504:6:1;2501:30;2498:50;;;2544:1;2541;2534:12;2498:50;2567:22;;2620:4;2612:13;;2608:27;-1:-1:-1;2598:55:1;;2649:1;2646;2639:12;2598:55;2672:74;2738:7;2733:2;2720:16;2715:2;2711;2707:11;2672:74;:::i;:::-;2662:84;2301:451;-1:-1:-1;;;;2301:451:1:o;2757:180::-;2816:6;2869:2;2857:9;2848:7;2844:23;2840:32;2837:52;;;2885:1;2882;2875:12;2837:52;-1:-1:-1;2908:23:1;;2757:180;-1:-1:-1;2757:180:1:o;2942:472::-;2984:3;3022:5;3016:12;3049:6;3044:3;3037:19;3074:1;3084:162;3098:6;3095:1;3092:13;3084:162;;;3160:4;3216:13;;;3212:22;;3206:29;3188:11;;;3184:20;;3177:59;3113:12;3084:162;;;3264:6;3261:1;3258:13;3255:87;;;3330:1;3323:4;3314:6;3309:3;3305:16;3301:27;3294:38;3255:87;-1:-1:-1;3396:2:1;3375:15;-1:-1:-1;;3371:29:1;3362:39;;;;3403:4;3358:50;;2942:472;-1:-1:-1;;2942:472:1:o;3419:220::-;3568:2;3557:9;3550:21;3531:4;3588:45;3629:2;3618:9;3614:18;3606:6;3588:45;:::i;3852:160::-;3917:20;;3973:13;;3966:21;3956:32;;3946:60;;4002:1;3999;3992:12;4017:180;4073:6;4126:2;4114:9;4105:7;4101:23;4097:32;4094:52;;;4142:1;4139;4132:12;4094:52;4165:26;4181:9;4165:26;:::i;4202:248::-;4270:6;4278;4331:2;4319:9;4310:7;4306:23;4302:32;4299:52;;;4347:1;4344;4337:12;4299:52;-1:-1:-1;;4370:23:1;;;4440:2;4425:18;;;4412:32;;-1:-1:-1;4202:248:1:o;4734:183::-;4794:4;-1:-1:-1;;;;;4819:6:1;4816:30;4813:56;;;4849:18;;:::i;:::-;-1:-1:-1;4894:1:1;4890:14;4906:4;4886:25;;4734:183::o;4922:724::-;4976:5;5029:3;5022:4;5014:6;5010:17;5006:27;4996:55;;5047:1;5044;5037:12;4996:55;5083:6;5070:20;5109:4;5132:43;5172:2;5132:43;:::i;:::-;5204:2;5198:9;5216:31;5244:2;5236:6;5216:31;:::i;:::-;5282:18;;;5374:1;5370:10;;;;5358:23;;5354:32;;;5316:15;;;;-1:-1:-1;5398:15:1;;;5395:35;;;5426:1;5423;5416:12;5395:35;5462:2;5454:6;5450:15;5474:142;5490:6;5485:3;5482:15;5474:142;;;5556:17;;5544:30;;5594:12;;;;5507;;5474:142;;;-1:-1:-1;5634:6:1;4922:724;-1:-1:-1;;;;;;4922:724:1:o;5651:221::-;5693:5;5746:3;5739:4;5731:6;5727:17;5723:27;5713:55;;5764:1;5761;5754:12;5713:55;5786:80;5862:3;5853:6;5840:20;5833:4;5825:6;5821:17;5786:80;:::i;5877:943::-;6031:6;6039;6047;6055;6063;6116:3;6104:9;6095:7;6091:23;6087:33;6084:53;;;6133:1;6130;6123:12;6084:53;6156:29;6175:9;6156:29;:::i;:::-;6146:39;;6204:38;6238:2;6227:9;6223:18;6204:38;:::i;:::-;6194:48;;6293:2;6282:9;6278:18;6265:32;-1:-1:-1;;;;;6357:2:1;6349:6;6346:14;6343:34;;;6373:1;6370;6363:12;6343:34;6396:61;6449:7;6440:6;6429:9;6425:22;6396:61;:::i;:::-;6386:71;;6510:2;6499:9;6495:18;6482:32;6466:48;;6539:2;6529:8;6526:16;6523:36;;;6555:1;6552;6545:12;6523:36;6578:63;6633:7;6622:8;6611:9;6607:24;6578:63;:::i;:::-;6568:73;;6694:3;6683:9;6679:19;6666:33;6650:49;;6724:2;6714:8;6711:16;6708:36;;;6740:1;6737;6730:12;6708:36;;6763:51;6806:7;6795:8;6784:9;6780:24;6763:51;:::i;:::-;6753:61;;;5877:943;;;;;;;;:::o;6825:186::-;6884:6;6937:2;6925:9;6916:7;6912:23;6908:32;6905:52;;;6953:1;6950;6943:12;6905:52;6976:29;6995:9;6976:29;:::i;7016:1208::-;7134:6;7142;7195:2;7183:9;7174:7;7170:23;7166:32;7163:52;;;7211:1;7208;7201:12;7163:52;7251:9;7238:23;-1:-1:-1;;;;;7321:2:1;7313:6;7310:14;7307:34;;;7337:1;7334;7327:12;7307:34;7375:6;7364:9;7360:22;7350:32;;7420:7;7413:4;7409:2;7405:13;7401:27;7391:55;;7442:1;7439;7432:12;7391:55;7478:2;7465:16;7500:4;7523:43;7563:2;7523:43;:::i;:::-;7595:2;7589:9;7607:31;7635:2;7627:6;7607:31;:::i;:::-;7673:18;;;7761:1;7757:10;;;;7749:19;;7745:28;;;7707:15;;;;-1:-1:-1;7785:19:1;;;7782:39;;;7817:1;7814;7807:12;7782:39;7841:11;;;;7861:148;7877:6;7872:3;7869:15;7861:148;;;7943:23;7962:3;7943:23;:::i;:::-;7931:36;;7894:12;;;;7987;;;;7861:148;;;8028:6;-1:-1:-1;;8072:18:1;;8059:32;;-1:-1:-1;;8103:16:1;;;8100:36;;;8132:1;8129;8122:12;8100:36;;8155:63;8210:7;8199:8;8188:9;8184:24;8155:63;:::i;:::-;8145:73;;;7016:1208;;;;;:::o;8229:435::-;8282:3;8320:5;8314:12;8347:6;8342:3;8335:19;8373:4;8402:2;8397:3;8393:12;8386:19;;8439:2;8432:5;8428:14;8460:1;8470:169;8484:6;8481:1;8478:13;8470:169;;;8545:13;;8533:26;;8579:12;;;;8614:15;;;;8506:1;8499:9;8470:169;;;-1:-1:-1;8655:3:1;;8229:435;-1:-1:-1;;;;;8229:435:1:o;8669:261::-;8848:2;8837:9;8830:21;8811:4;8868:56;8920:2;8909:9;8905:18;8897:6;8868:56;:::i;8935:254::-;9000:6;9008;9061:2;9049:9;9040:7;9036:23;9032:32;9029:52;;;9077:1;9074;9067:12;9029:52;9100:29;9119:9;9100:29;:::i;:::-;9090:39;;9148:35;9179:2;9168:9;9164:18;9148:35;:::i;:::-;9138:45;;8935:254;;;;;:::o;9194:163::-;9261:20;;9321:10;9310:22;;9300:33;;9290:61;;9347:1;9344;9337:12;9362:639;9418:5;9466:4;9454:9;9449:3;9445:19;9441:30;9438:50;;;9484:1;9481;9474:12;9438:50;9517:2;9511:9;9559:4;9551:6;9547:17;9630:6;9618:10;9615:22;-1:-1:-1;;;;;9582:10:1;9579:34;9576:62;9573:88;;;9641:18;;:::i;:::-;9681:10;9677:2;9670:22;;9710:6;9701:15;;9753:9;9740:23;9732:6;9725:39;9825:2;9814:9;9810:18;9797:32;9792:2;9784:6;9780:15;9773:57;9882:2;9871:9;9867:18;9854:32;9930:4;9921:7;9917:18;9908:7;9905:31;9895:59;;9950:1;9947;9940:12;9895:59;9982:2;9970:15;;;;9963:32;9362:639;;-1:-1:-1;;9362:639:1:o;10006:878::-;10089:6;10142:3;10130:9;10121:7;10117:23;10113:33;10110:53;;;10159:1;10156;10149:12;10110:53;10192:2;10186:9;10204:32;10229:6;10204:32;:::i;:::-;10258:23;;-1:-1:-1;;;;;;10310:51:1;;10300:62;;10290:90;;10376:1;10373;10366:12;10290:90;10389:21;;10471:2;10456:18;;;10443:32;10426:15;;;10419:57;10509:38;10543:2;10528:18;;10509:38;:::i;:::-;10504:2;10496:6;10492:15;10485:63;10581:38;10615:2;10604:9;10600:18;10581:38;:::i;:::-;10576:2;10568:6;10564:15;10557:63;10682:3;10671:9;10667:19;10654:33;10648:3;10640:6;10636:16;10629:59;10722:38;10755:3;10744:9;10740:19;10722:38;:::i;:::-;10716:3;10708:6;10704:16;10697:64;10795:57;10844:7;10838:3;10827:9;10823:19;10795:57;:::i;:::-;10789:3;10777:16;;10770:83;10781:6;10006:878;-1:-1:-1;;;10006:878:1:o;10889:367::-;10952:8;10962:6;11016:3;11009:4;11001:6;10997:17;10993:27;10983:55;;11034:1;11031;11024:12;10983:55;-1:-1:-1;11057:20:1;;-1:-1:-1;;;;;11089:30:1;;11086:50;;;11132:1;11129;11122:12;11086:50;11169:4;11161:6;11157:17;11145:29;;11229:3;11222:4;11212:6;11209:1;11205:14;11197:6;11193:27;11189:38;11186:47;11183:67;;;11246:1;11243;11236:12;11261:1087;11418:6;11426;11434;11442;11450;11458;11511:2;11499:9;11490:7;11486:23;11482:32;11479:52;;;11527:1;11524;11517:12;11479:52;11567:9;11554:23;-1:-1:-1;;;;;11637:2:1;11629:6;11626:14;11623:34;;;11653:1;11650;11643:12;11623:34;11692:70;11754:7;11745:6;11734:9;11730:22;11692:70;:::i;:::-;11781:8;;-1:-1:-1;11666:96:1;-1:-1:-1;11869:2:1;11854:18;;11841:32;;-1:-1:-1;11885:16:1;;;11882:36;;;11914:1;11911;11904:12;11882:36;11953:72;12017:7;12006:8;11995:9;11991:24;11953:72;:::i;:::-;12044:8;;-1:-1:-1;11927:98:1;-1:-1:-1;12132:2:1;12117:18;;12104:32;;-1:-1:-1;12148:16:1;;;12145:36;;;12177:1;12174;12167:12;12145:36;;12216:72;12280:7;12269:8;12258:9;12254:24;12216:72;:::i;:::-;11261:1087;;;;-1:-1:-1;11261:1087:1;;-1:-1:-1;11261:1087:1;;12307:8;;11261:1087;-1:-1:-1;;;11261:1087:1:o;12353:326::-;12429:6;12437;12445;12498:2;12486:9;12477:7;12473:23;12469:32;12466:52;;;12514:1;12511;12504:12;12466:52;12537:29;12556:9;12537:29;:::i;:::-;12527:39;;12613:2;12602:9;12598:18;12585:32;12575:42;;12636:37;12669:2;12658:9;12654:18;12636:37;:::i;:::-;12626:47;;12353:326;;;;;:::o;12684:260::-;12752:6;12760;12813:2;12801:9;12792:7;12788:23;12784:32;12781:52;;;12829:1;12826;12819:12;12781:52;12852:29;12871:9;12852:29;:::i;:::-;12842:39;;12900:38;12934:2;12923:9;12919:18;12900:38;:::i;13172:375::-;13240:6;13248;13301:2;13289:9;13280:7;13276:23;13272:32;13269:52;;;13317:1;13314;13307:12;13269:52;13340:29;13359:9;13340:29;:::i;:::-;13330:39;;13419:2;13408:9;13404:18;13391:32;-1:-1:-1;;;;;13456:5:1;13452:46;13445:5;13442:57;13432:85;;13513:1;13510;13503:12;13432:85;13536:5;13526:15;;;13172:375;;;;;:::o;13552:606::-;13656:6;13664;13672;13680;13688;13741:3;13729:9;13720:7;13716:23;13712:33;13709:53;;;13758:1;13755;13748:12;13709:53;13781:29;13800:9;13781:29;:::i;:::-;13771:39;;13829:38;13863:2;13852:9;13848:18;13829:38;:::i;:::-;13819:48;;13914:2;13903:9;13899:18;13886:32;13876:42;;13965:2;13954:9;13950:18;13937:32;13927:42;;14020:3;14009:9;14005:19;13992:33;-1:-1:-1;;;;;14040:6:1;14037:30;14034:50;;;14080:1;14077;14070:12;14034:50;14103:49;14144:7;14135:6;14124:9;14120:22;14103:49;:::i;14575:356::-;14777:2;14759:21;;;14796:18;;;14789:30;14855:34;14850:2;14835:18;;14828:62;14922:2;14907:18;;14575:356::o;14936:380::-;15015:1;15011:12;;;;15058;;;15079:61;;15133:4;15125:6;15121:17;15111:27;;15079:61;15186:2;15178:6;15175:14;15155:18;15152:38;15149:161;;15232:10;15227:3;15223:20;15220:1;15213:31;15267:4;15264:1;15257:15;15295:4;15292:1;15285:15;15149:161;;14936:380;;;:::o;15728:127::-;15789:10;15784:3;15780:20;15777:1;15770:31;15820:4;15817:1;15810:15;15844:4;15841:1;15834:15;15860:168;15900:7;15966:1;15962;15958:6;15954:14;15951:1;15948:21;15943:1;15936:9;15929:17;15925:45;15922:71;;;15973:18;;:::i;:::-;-1:-1:-1;16013:9:1;;15860:168::o;16033:217::-;16073:1;16099;16089:132;;16143:10;16138:3;16134:20;16131:1;16124:31;16178:4;16175:1;16168:15;16206:4;16203:1;16196:15;16089:132;-1:-1:-1;16235:9:1;;16033:217::o;17639:127::-;17700:10;17695:3;17691:20;17688:1;17681:31;17731:4;17728:1;17721:15;17755:4;17752:1;17745:15;17771:135;17810:3;17831:17;;;17828:43;;17851:18;;:::i;:::-;-1:-1:-1;17898:1:1;17887:13;;17771:135::o;21732:128::-;21772:3;21803:1;21799:6;21796:1;21793:13;21790:39;;;21809:18;;:::i;:::-;-1:-1:-1;21845:9:1;;21732:128::o;22558:184::-;22616:6;22669:2;22657:9;22648:7;22644:23;22640:32;22637:52;;;22685:1;22682;22675:12;22637:52;22708:28;22726:9;22708:28;:::i;24328:401::-;24530:2;24512:21;;;24569:2;24549:18;;;24542:30;24608:34;24603:2;24588:18;;24581:62;-1:-1:-1;;;24674:2:1;24659:18;;24652:35;24719:3;24704:19;;24328:401::o;24734:406::-;24936:2;24918:21;;;24975:2;24955:18;;;24948:30;25014:34;25009:2;24994:18;;24987:62;-1:-1:-1;;;25080:2:1;25065:18;;25058:40;25130:3;25115:19;;24734:406::o;25145:465::-;25402:2;25391:9;25384:21;25365:4;25428:56;25480:2;25469:9;25465:18;25457:6;25428:56;:::i;:::-;25532:9;25524:6;25520:22;25515:2;25504:9;25500:18;25493:50;25560:44;25597:6;25589;25560:44;:::i;:::-;25552:52;25145:465;-1:-1:-1;;;;;25145:465:1:o;26680:827::-;-1:-1:-1;;;;;27077:15:1;;;27059:34;;27129:15;;27124:2;27109:18;;27102:43;27039:3;27176:2;27161:18;;27154:31;;;27002:4;;27208:57;;27245:19;;27237:6;27208:57;:::i;:::-;27313:9;27305:6;27301:22;27296:2;27285:9;27281:18;27274:50;27347:44;27384:6;27376;27347:44;:::i;:::-;27333:58;;27440:9;27432:6;27428:22;27422:3;27411:9;27407:19;27400:51;27468:33;27494:6;27486;27468:33;:::i;:::-;27460:41;26680:827;-1:-1:-1;;;;;;;;26680:827:1:o;27512:249::-;27581:6;27634:2;27622:9;27613:7;27609:23;27605:32;27602:52;;;27650:1;27647;27640:12;27602:52;27682:9;27676:16;27701:30;27725:5;27701:30;:::i;27766:179::-;27801:3;27843:1;27825:16;27822:23;27819:120;;;27889:1;27886;27883;27868:23;-1:-1:-1;27926:1:1;27920:8;27915:3;27911:18;27819:120;27766:179;:::o;27950:671::-;27989:3;28031:4;28013:16;28010:26;28007:39;;;27950:671;:::o;28007:39::-;28073:2;28067:9;-1:-1:-1;;28138:16:1;28134:25;;28131:1;28067:9;28110:50;28189:4;28183:11;28213:16;-1:-1:-1;;;;;28319:2:1;28312:4;28304:6;28300:17;28297:25;28292:2;28284:6;28281:14;28278:45;28275:58;;;28326:5;;;;;27950:671;:::o;28275:58::-;28363:6;28357:4;28353:17;28342:28;;28399:3;28393:10;28426:2;28418:6;28415:14;28412:27;;;28432:5;;;;;;27950:671;:::o;28412:27::-;28516:2;28497:16;28491:4;28487:27;28483:36;28476:4;28467:6;28462:3;28458:16;28454:27;28451:69;28448:82;;;28523:5;;;;;;27950:671;:::o;28448:82::-;28539:57;28590:4;28581:6;28573;28569:19;28565:30;28559:4;28539:57;:::i;:::-;-1:-1:-1;28612:3:1;;27950:671;-1:-1:-1;;;;;27950:671:1:o;29047:404::-;29249:2;29231:21;;;29288:2;29268:18;;;29261:30;29327:34;29322:2;29307:18;;29300:62;-1:-1:-1;;;29393:2:1;29378:18;;29371:38;29441:3;29426:19;;29047:404::o;29859:127::-;29920:10;29915:3;29911:20;29908:1;29901:31;29951:4;29948:1;29941:15;29975:4;29972:1;29965:15;31510:561;-1:-1:-1;;;;;31807:15:1;;;31789:34;;31859:15;;31854:2;31839:18;;31832:43;31906:2;31891:18;;31884:34;;;31949:2;31934:18;;31927:34;;;31769:3;31992;31977:19;;31970:32;;;31732:4;;32019:46;;32045:19;;32037:6;32019:46;:::i;:::-;32011:54;31510:561;-1:-1:-1;;;;;;;31510:561:1:o

Swarm Source

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