ETH Price: $3,288.43 (-3.33%)
 

Overview

ETH Balance

0.002410000000001001 ETH

Eth Value

$7.93 (@ $3,288.43/ETH)

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Init105351592020-07-26 12:44:251643 days ago1595767465IN
0xe3aF60f1...68400c7ec
0 ETH0.0162844100

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
105880762020-08-03 17:04:091635 days ago1596474249
0xe3aF60f1...68400c7ec
0.001 ETH
105821362020-08-02 19:03:361636 days ago1596395016
0xe3aF60f1...68400c7ec
0.00001 ETH
105821362020-08-02 19:03:361636 days ago1596395016
0xe3aF60f1...68400c7ec
0.00001 ETH
105821362020-08-02 19:03:361636 days ago1596395016
0xe3aF60f1...68400c7ec
0.00001 ETH
105821282020-08-02 19:01:401636 days ago1596394900
0xe3aF60f1...68400c7ec
0.00001 ETH
105820902020-08-02 18:51:441636 days ago1596394304
0xe3aF60f1...68400c7ec
0.00001 ETH
105820902020-08-02 18:51:441636 days ago1596394304
0xe3aF60f1...68400c7ec
0.00001 ETH
105820882020-08-02 18:50:471636 days ago1596394247
0xe3aF60f1...68400c7ec
0.00001 ETH
105820882020-08-02 18:50:471636 days ago1596394247
0xe3aF60f1...68400c7ec
0.00001 ETH
105820852020-08-02 18:50:191636 days ago1596394219
0xe3aF60f1...68400c7ec
0.00001 ETH
105820852020-08-02 18:50:191636 days ago1596394219
0xe3aF60f1...68400c7ec
0.00001 ETH
105820702020-08-02 18:45:551636 days ago1596393955
0xe3aF60f1...68400c7ec
0.00001 ETH
105820412020-08-02 18:40:271636 days ago1596393627
0xe3aF60f1...68400c7ec
0.00001 ETH
105820382020-08-02 18:40:121636 days ago1596393612
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
105766602020-08-01 22:43:261637 days ago1596321806
0xe3aF60f1...68400c7ec
0.00001 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
oodaspaceTokensOfProfitShare

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-07-26
*/

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/introspection/IERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/introspection/ERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC1155/IERC1155.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @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 transfered from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

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

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

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

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

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

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC1155/IERC1155Receiver.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC1155/ERC1155Receiver.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;



/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    constructor() public {
        _registerInterface(
            ERC1155Receiver(0).onERC1155Received.selector ^
            ERC1155Receiver(0).onERC1155BatchReceived.selector
        );
    }
}



// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC1155/IERC1155MetadataURI.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/GSN/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC1155/ERC1155.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;








/**
 *
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using SafeMath for uint256;
    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 substition, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /*
     *     bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e
     *     bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a
     *     bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6
     *
     *     => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^
     *        0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26
     */
    bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;

    /*
     *     bytes4(keccak256('uri(uint256)')) == 0x0e89341c
     */
    bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;

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

        // register the supported interfaces to conform to ERC1155 via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155);

        // register the supported interfaces to conform to ERC1155MetadataURI via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substituion 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) external view 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 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
        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) {
            require(accounts[i] != address(0), "ERC1155: batch balance query for the zero address");
            batchBalances[i] = _balances[ids[i]][accounts[i]];
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view 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(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        address operator = _msgSender();

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

        _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer");
        _balances[id][to] = _balances[id][to].add(amount);

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

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

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

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

            _balances[id][from] = _balances[id][from].sub(
                amount,
                "ERC1155: insufficient balance for transfer"
            );
            _balances[id][to] = _balances[id][to].add(amount);
        }

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

        _balances[id][account] = _balances[id][account].sub(
            amount,
            "ERC1155: burn amount exceeds balance"
        );

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

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

        address operator = _msgSender();

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

        for (uint i = 0; i < ids.length; i++) {
            _balances[ids[i]][account] = _balances[ids[i]][account].sub(
                amounts[i],
                "ERC1155: burn amount exceeds balance"
            );
        }

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

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

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

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

        return array;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC1155/ERC1155Burnable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(address account, uint256 id, uint256 value) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/utils/Strings.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/utils/EnumerableMap.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint256(value)));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/utils/EnumerableSet.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC721/IERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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




// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC721/IERC721Enumerable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC721/IERC721Metadata.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

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

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

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


// File: https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC721/ERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;












/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

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

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

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

        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

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

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

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

        string memory _tokenURI = _tokenURIs[tokenId];

        // If there is no base URI, return the token URI.
        if (bytes(_baseURI).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(_baseURI, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(_baseURI, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

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

        require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

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

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}

// File: browser/Untitled.sol

pragma solidity ^0.6.0;





/*
The ooda space open source licence.
version 0:
© (c) Copyright 2020 ooda space ltd
###############################################################################
A. Redistribution and use:
    1. Redistribution and use in source and binary forms, without modification, are permitted provided that the following conditions are met:
            i.    Redistributions of source code must retain the above copyright notice and this text (Sections A., B., C., D.*, E.*, and F.*).
            ii.   Redistributions in binary form must reproduce the above copyright notice and this text (Sections A., B., C., D.*, E.*, and F.*) in the documentation and/or other materials provided with the distribution.
    2. Redistribution and use in source and binary forms, with modification, are permitted provided that the following conditions are met:
            i.    Redistributions of source code must retain the above copyright notice and this text (Sections A., B., C., D.*, E.*, and F*. with Section C. modified as per A.2.iii).
            ii.   Redistributions in binary form must reproduce the above copyright notice and this text (Sections A., B., C., D.*, E.*, and F.* with Section C. modified as per A.2.iii) in the documentation and/or other materials provided with the distribution.
            iii.  The modifier has updated Section C. below as described in Section D.
            iv.   The modifier has signalled value in the modified file on the ideas.oodaspace.eth smart contract as described in section E.
            v.    The modified file is stored on the Arweave system as described in Section F.
    3. If any part of this text (Sections A., B., C., D.*, E.*, and F.*) is held to be invalid it shall not invalidate the text as a whole or any other part of this text (Sections A., B., C., D., E., and F.).
    * Sections D., E., and F. may be replaced by reference to an arweave transaction containing version 0 of the full license (with nothing else included). I.e. "For Sections D., E., and F. refer to the Arweave transaction am0Zxgnoxrip32hGUzCd3VTFoLMpZ9VbyfdvA_fIZ-I"
###############################################################################
B. Disclaimer:
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
###############################################################################
C. The file
    1. Media-type:                                              text/plain
    2. Ethereum address of modifier:                            0x266D80d1a7f8926FE44BA310eA2bDa7d302a9615
    3. Distance [integer dec]:                                  0
    4. Context [256bit word hex]:                               0x0000000000000000000000000000000000000000000000000000000000000000
    5. SHA3 256-bit hash of the file [only for redistributions in binary form, else "Not Applicable"]:  Not Applicable
###############################################################################
For Sections D., E., and F. refer to the Arweave transaction am0Zxgnoxrip32hGUzCd3VTFoLMpZ9VbyfdvA_fIZ-I
###############################################################################
*/

/// @author Lee Thomas, ooda space ltd, email @ ooda.space
/// @title  ooda space Tokens of Profit Share (ToPS)
/// @notice mints ERC1155 tokens that can exchanged for a share in oodaspaceIdeaTokens contract profits.
/// @notice ERC1155 tokens are batched by interval number (intervals are a minimum of 7 days)
contract oodaspaceTokensOfProfitShare is ERC1155, ERC1155Receiver {
    using SafeMath for uint256;

    constructor() public ERC1155("https://ooda.space/tops/interval/{id}.json") {}

    address private oodaspaceltd = 0x74bf4D496b66A6688188805Ee069b6D1db54E03b;
    address public minterAddress;

    uint256 public currentIntervalSec = now;
    uint256 public currentIntervalNo = 1;
    bool public isInitialised = false;
    mapping(uint256 => uint256) public supplyPerInterval;
    mapping(uint256 => uint256) public allocatedETH;
    mapping(address => uint256) public balanceOfETH;


    /// @notice Initialises contract link to oodaspaceIdeaTokens ERC721 contract
    /// @param minter - The new address of the oodaspaceIdeaTokens ERC721 contract
    function init(address minter) external payable {
        require(!isInitialised);
        require(msg.sender == oodaspaceltd);
        require(msg.value == 1001);
        minterAddress = minter;
        _mint(oodaspaceltd,0,1,'');
        supplyPerInterval[0] = 1;
        _mint(oodaspaceltd,1,msg.value - 1,'');
        supplyPerInterval[1] = msg.value - 1;
        isInitialised = true;
        currentIntervalSec = now;
    }

    /// @notice updates the address that represents the company
    /// @param newAddress - The new address
    function setCompanyAddress(address newAddress) external {
        require(msg.sender == oodaspaceltd);
        require(msg.sender != address(0));
        oodaspaceltd = newAddress;
    }

    /// @notice mints a new ERC1155 token
    /// @notice the tokens are minted in per-interval batches, this is to allow profit share calculations
    /// @param receiver - the address that will control the minted token(s).
    function mint(address receiver) external payable {
        require(msg.sender == minterAddress);
        require(msg.value > 0);
        if (now >= currentIntervalSec + 7 days && (415*supplyPerInterval[currentIntervalNo] >= supplyPerInterval[currentIntervalNo-1])){
            currentIntervalNo++;
            currentIntervalSec = currentIntervalSec + 7 days;
            supplyPerInterval[currentIntervalNo] = 0;
        }
        supplyPerInterval[currentIntervalNo] += msg.value;
        _mint(receiver,currentIntervalNo,msg.value,'');
    }

    /// @notice sets the token uri
    /// @param newuri - the uri
    function SetURI(string calldata newuri) external {
        require(msg.sender == oodaspaceltd);
        _setURI(newuri);
    }

    /// @notice This function calculates the ETH and ToPS that can be exchanged for a given interval's tokens
    /// @param intervalNo - the interval number id (token Id) of the ToPS ERC1155 tokens to be exchanged
    /// @param amt - the number of ERC1155 tokens to be exchanged
    /// @return intervalNoETH - the amount of ETH exchangable with the ToPS ERC1155 tokens, nextTknAmt the number of the next interval's ERC1155 ToPS exchangeable
    function calcProfitShare(uint256 intervalNo,uint256 amt) public view returns(uint256,uint256){
        require(intervalNo < currentIntervalNo-1);
        uint256 WEIforAmt = 0;
        uint256 thisIntervalSupply = supplyPerInterval[intervalNo];
        require(amt <= thisIntervalSupply);
        if (thisIntervalSupply > allocatedETH[intervalNo]){
            WEIforAmt = (amt / 416);
        }
        uint NextIntervalToPSfromThisIntervalToPS = ((amt * 415 * supplyPerInterval[intervalNo+1]) / thisIntervalSupply);
        return (WEIforAmt, NextIntervalToPSfromThisIntervalToPS);
    }

    /// @notice This function is called on reciept of ERC1155 tokens.
    /// @notice It exchanges the received token for ETH and ToPS for the following interval)
    /// @param operator - the operator contract address of the ERC1155s (this contract!)
    /// @param sender - the account sending the ERC1155 tokens
    /// @param intervalNo - the intervalNo of the ToPS tokens received
    /// @param amt - the amount of ToPS received
    /// @param data - unused parameter (required for ERC1155 standard)
    /// @return this function signature (required for ERC1155 standard)
    function onERC1155Received(address operator, address sender, uint256 intervalNo, uint256 amt, bytes calldata data) external override returns (bytes4) {
        operator; data;
        require(msg.sender == address(this),"Only ERC1155 tokens from this contract can be received.");
        require(intervalNo < currentIntervalNo-1,"Two intervals must pass before ETH and tokens can be exchanged.");
        exchangeToPS(sender, intervalNo, amt);
        return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"));
    }

    /// @notice This function performs the exchange of ToPS tokens (for ETH and next interval ToPS)
    /// @param sender - the account sending the ERC1155 tokens
    /// @param intervalNo - the ERC1155 tokenId
    /// @param amt - the amount of tokens to exchange
    function exchangeToPS(address sender, uint256 intervalNo, uint256 amt) internal {
        uint256 amtETHThisInterval;
        uint256 amtofNext;
        (amtETHThisInterval, amtofNext) = calcProfitShare(intervalNo,amt);
        balanceOfETH[sender] = balanceOfETH[sender].add(amtETHThisInterval);
        allocatedETH[intervalNo] = allocatedETH[intervalNo].add(amtETHThisInterval);
        _mint(sender,intervalNo+1,amtofNext,'');
        _burn(address(this),intervalNo,amt);
    }

    /// @notice This function is called on reciept of ERC1155 tokens.
    /// @notice It exchanges the received token for ETH and ToPS for the following interval)
    /// @param operator - the operator contract address of the ERC1155s (this contract!)
    /// @param sender - the account sending the ERC1155 tokens
    /// @param intervalNos - the interval numbers of the ToPS tokens received
    /// @param amts - the amounts of ToPS received, per intervalNo
    /// @param data - unused parameter (required for ERC1155 standard)
    /// @return this function signature (required for ERC1155 standard)
    function onERC1155BatchReceived(address operator, address sender, uint256[] calldata intervalNos, uint256[] calldata amts, bytes calldata data) external override returns (bytes4) {
        operator; data;
        require(msg.sender == address(this),"Only ERC1155 tokens from this contract can be received.");
        uint i;
        for (i = 0;i < intervalNos.length;i++){
            require(intervalNos[i] < currentIntervalNo-1,"Two intervals must pass before ETH and tokens can be exchanged.");
            exchangeToPS(sender, amts[i], intervalNos[i]);
        }
        return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"));
    }

    /// @notice This function allows the company to collect unclaimed or residual ETH after > 3 years (for each interval)
    /// @param intervalNo the interval number
    function collectUnclaimed(uint256 intervalNo) external {
        require(currentIntervalNo > intervalNo + 156);
        uint256 thisIntervalSupply = supplyPerInterval[intervalNo];
        balanceOfETH[oodaspaceltd] = balanceOfETH[oodaspaceltd].add(thisIntervalSupply.sub(allocatedETH[intervalNo]));
        allocatedETH[intervalNo] = thisIntervalSupply;
    }

    // withdrawer
    /// @notice This function allows users to withdraw their ether
    /// @param amt the amount of ether the sender will withdraw
    function withdrawETH(uint256 amt) external {
        require(balanceOfETH[msg.sender] >= amt);
        balanceOfETH[msg.sender] = balanceOfETH[msg.sender].sub(amt);
        (bool success, ) = msg.sender.call{value:amt}("");
        require(success, "Transfer failed.");
    }
}

/// @author Lee Thomas, ooda space ltd, email @ ooda.space
/// @title The ooda space signalling smart contract version 0
/// @notice The main contract that handles payment signals of value in ideas and contexts.
/// @notice Mints ERC721 tokens for those that initiate ideas or contexts (token owner get related value signal payments)
contract oodaspaceIdeaTokens is ERC721 {

    address private oodaspaceltd = 0x74bf4D496b66A6688188805Ee069b6D1db54E03b;

    constructor() public ERC721("oodaspace", "⭗"){}

    event ValueSignal(address indexed signaller, uint256 indexed context, uint256 indexed prospectiveContext, uint256 amount, int256 distance);
    event DiscardSignal(address indexed signaller, uint256 indexed context, uint256 indexed prospectiveContext, uint256 amount, int256 distance);
    event Found(address indexed initiator, uint256 indexed word);

    // Word based
    mapping(uint256 => uint256) public balanceOfETH; //
    mapping(bytes32 => uint256) public notificationBlockNo;		// mapping used to prevent front-running
    mapping(uint256 => uint256) public initBlockNo;
    mapping(uint256 => address) public initiators;

    // the contract location that handles the Tokens for Profit Share (ToPS)
    oodaspaceTokensOfProfitShare public oodaspaceTokensOfProfitShareAddress;
    bool public isInitialised = false;

    /// @notice updates the handles the Tokens for Profit Share (ToPS) contract address
    /// @param contractAddress - The new address
    function init(oodaspaceTokensOfProfitShare contractAddress) external {
        require(msg.sender == oodaspaceltd);
        require(!isInitialised);
        oodaspaceTokensOfProfitShareAddress = contractAddress;
        _mint(oodaspaceltd, 0);
        _mint(oodaspaceltd, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        isInitialised = true;
    }

    // address setters
    /// @notice updates the address that represents the company
    /// @param newAddress - The new address
    function setCompanyAddress(address newAddress) external {
        require(msg.sender == oodaspaceltd);
        oodaspaceltd = newAddress;
    }

    /// @notice sets the base uri
    /// @param newuri - the uri
    function setBaseURI(string calldata newuri) external {
        require(msg.sender == oodaspaceltd);
        _setBaseURI(newuri);
    }

    /// @notice sets the token uri
    /// @param newuri - the uri
    function setTokenURI(uint256 word, string calldata newuri) external {
        require(msg.sender == oodaspaceltd);
        _setTokenURI(word,newuri);
    }

    /// @notice checks whether token has been minted
    /// @param word - the token id to be checked
    /// @return bool true if token id exists
    function exists(uint256 word) external view returns (bool) {
        return _exists(word);
    }

    //bit manipulation funcs
    /// @notice Rotates a 256 bit word right by n*3 bits
    /// @param word - The input word to be bit rotated
    /// @param n - The word is rotated right by 3*n
    /// @return the bit rotated word
    function rotr(uint256 word, int256 n) public pure returns (uint256) {
        int256 shift = (n * 3) % 256;
        if (word == 0) {
            return word;
        }
        return (word >> shift) | (word << (256 - shift));
    }

    /// @notice Rotates a 256 bit word left by n*3 bits
    /// @param word - The input word to be bit rotated
    /// @param n - The word is rotated left by 3*n
    /// @return the bit rotated word
    function rotl(uint256 word, int256 n) public pure returns (uint256) {
        int256 shift = (n * 3) % 256;
        if (word == 0) {
            return word;
        }
        return (word << shift) | (word >> (256 - shift));
    }

    /// @notice Performs a bitwise XOR on two words after bitwise rotating them left and right respectively by 3*n bits
    /// @param a first input word, this is bitwise rotated right by 3*n bits
    /// @param b first input word, this is bitwise rotated left by 3*n bits
    /// @param n The words are rotated by 3* the number of bits
    /// @return the bitwise XOR of the bit rotated words
    function xorwithshift(uint256 a, uint256 b, int256 n) public pure returns (uint256) {
        return rotr(a,n) ^ rotl(b,n);
    }

    // value and discard signals, notifications and claims

    /// @notice Front-running protection: the user can first notify un-initiated ideas and contexts using this function
    /// @notice this allows them a window in which to claim any front-ran tokens (and should act as a disincentive)
    /// @param notificationHashes an array of sha256 of the initiator address, the claimed word and a user defined salt
    function notify(bytes32[] calldata notificationHashes) external {
        uint i;
        for (i = 0;i < notificationHashes.length;i++){
            if (notificationBlockNo[notificationHashes[i]] == 0){
                notificationBlockNo[notificationHashes[i]] = block.number;
            }
        }
    }

    /// @notice This function allows the front-end to reliably create valid claim hashes for a given salt and sending address
    /// @param word - the word (context, idea, or prospectiveContext) to be claimed
    /// @param senderAddr - the address that will be used to send the claiming value signal
    /// @param salt - a user defined word to make the claimed word harder to guess for an adversary
    function notificationHashCreator(uint256 word, address senderAddr, uint256 salt) external pure returns (bytes32){
        return keccak256(abi.encodePacked(uint256(word),senderAddr,uint256(salt)));
    }

    /// @notice This is where the user can, at their option, claim their ERC721 tokens
    /// @notice the tokens must be owned to be able to withdraw value signal payments
    /// @notice if unclaimed for > ~3 years, the company can claim
    /// @param words - an array of the words (ideas or contexts)
    /// @param salts - the salts used in the notification for the words only needed if within 7200 blocks of first value signal
    function claimTokens(uint256[] calldata words, uint256[] calldata salts) external {
        uint i;
        for (i = 0;i < words.length;i++){
            bytes32 notificationHash = keccak256(abi.encodePacked(uint256(words[i]),msg.sender,uint256(salts[i])));
            if(block.number < initBlockNo[words[i]] + 7200){
                // allows ~1 day for claim to be made
                if(notificationBlockNo[notificationHash] > 0 && notificationBlockNo[notificationHash] < initBlockNo[words[i]]){
                    _transfer(address(this),msg.sender,words[i]);
                    delete notificationBlockNo[notificationHash];
                    delete initiators[words[i]];
                }
            }
            else if(block.number > initBlockNo[words[i]] + 8000000){
                // if unclaimed in > ~3 years can be claimed by company
                require(msg.sender == oodaspaceltd);
                _transfer(address(this),msg.sender,words[i]);
                delete notificationBlockNo[notificationHash];
                delete initiators[words[i]];
            }
            else {
                // tokens transferred to initiator
                _transfer(address(this),initiators[words[i]],words[i]);
                delete notificationBlockNo[notificationHash];
                delete initiators[words[i]];
            }
        }
    }

    /// @notice This is used to split an input value into 30% and 10%+remainder portions
    /// @param value the amount to split
    /// @return amt30 30% of input as first value and 10%+remainder as second
    /// @return amt10andR 10%+remainder of input as second
    function splitValue(uint256 value) public pure returns (uint256 amt30, uint256 amt10andR){
        uint256 amtr = value % 10;
        uint256 amttenth = value / 10;
        amt30 = amttenth*3;
        amt10andR = amttenth + amtr;
        return (amt30, amt10andR);
    }

    /// @notice This function is called by a user to signal value in an "oo" (an idea in context)
    /// @notice if the contexts or ideas are new, and properly claimed, an ERC721 token is minted.
    /// @notice The tokens can be claimed using the claimTokens function
    /// @notice value signal payments go to the holder of the ERC721 token
    /// @param context the context word
    /// @param prospectiveContext the prospective context word - this is combined  with the context and n to give the idea
    /// @param n this is the "distance" that modulates how the idea is derived
    function signalValue(uint256 context, uint256 prospectiveContext, int256 n) external payable {
        require(msg.value >= .0001 ether,'A value signal must be >= .0001 ether');
        uint256 idea = xorwithshift(context,prospectiveContext,n);
        if (!(_exists(context))){
            initBlockNo[context] = block.number;
            initiators[context] = msg.sender;
            _mint(address(this), context);
            emit Found(msg.sender, context);
        }
        if (!(_exists(idea))){
            initBlockNo[idea] = block.number;
            initiators[idea] = msg.sender;
            _mint(address(this), idea);
            emit Found(msg.sender, idea);
        }
        if (!(_exists(prospectiveContext))){
            initBlockNo[prospectiveContext] = block.number;
            initiators[prospectiveContext] = msg.sender;
            _mint(address(this), prospectiveContext);
            emit Found(msg.sender, prospectiveContext);
        }

        // 30% of value signal amount goes to holder of idea, context and prospectiveContext tokens, 10% (plus remainder) goes to oodaspaceltd
        (uint256 amt3,uint256 amtoo) = splitValue(msg.value);

        balanceOfETH[context] += amt3;
        balanceOfETH[idea] += amt3;
        balanceOfETH[prospectiveContext] += amt3;

        emit ValueSignal(msg.sender, context, prospectiveContext, msg.value, n);

        // this mints profit share tokens for the value signaller
        oodaspaceTokensOfProfitShareAddress.mint{value: amtoo}(msg.sender);
    }

    /// @notice This function is called by a user to signal that an "oo" (an idea in context) should be discarded
    /// @param context - the context word
    /// @param prospectiveContext - the prospective context word - this is combined  with the context and n to give the idea
    /// @param n - the "distance" that modifies how the idea is derived
    function signalDiscard(uint256 context, uint256 prospectiveContext, int256 n) external payable{
        require(msg.value >= .0001 ether,'A discard signal must be >= .0001 ether');
        uint256 idea = xorwithshift(context,prospectiveContext,n);
        require(_exists(context) && _exists(idea) && _exists(prospectiveContext));
        emit DiscardSignal(msg.sender, context, prospectiveContext, msg.value, n);
        oodaspaceTokensOfProfitShareAddress.mint{value: msg.value}(msg.sender);
    }

    // withdrawer
    /// @notice This function allows users to withdraw ETH
    /// @param tokenIds - the tokenIds from which to withdraw ether
    function withdrawETH(uint256[] calldata tokenIds) external {
        uint i;
        for (i = 0;i < tokenIds.length;i++){
            require(msg.sender == ownerOf(tokenIds[i]));
            uint amt = balanceOfETH[tokenIds[i]];
            balanceOfETH[tokenIds[i]] = 0;
            (bool success, ) = msg.sender.call{value:amt}("");
            require(success, "Transfer failed.");
        }
    }
}

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":"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":"string","name":"newuri","type":"string"}],"name":"SetURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allocatedETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOfETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"intervalNo","type":"uint256"},{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"calcProfitShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"intervalNo","type":"uint256"}],"name":"collectUnclaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentIntervalNo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentIntervalSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"init","outputs":[],"stateMutability":"payable","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":"isInitialised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"minterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256[]","name":"intervalNos","type":"uint256[]"},{"internalType":"uint256[]","name":"amts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"intervalNo","type":"uint256"},{"internalType":"uint256","name":"amt","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"address","name":"newAddress","type":"address"}],"name":"setCompanyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplyPerInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040527374bf4d496b66a6688188805ee069b6d1db54e03b600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504260065560016007556000600860006101000a81548160ff0219169083151502179055503480156200008a57600080fd5b506040518060600160405280602a815260200162003f94602a9139620000bd6301ffc9a760e01b6200012660201b60201c565b620000ce816200022f60201b60201c565b620000e663d9b67a2660e01b6200012660201b60201c565b620000fe630e89341c60e01b6200012660201b60201c565b506200012063bc197c8160e01b63f23a6e6160e01b186200012660201b60201c565b620002fa565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620001c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b8060039080519060200190620002479291906200024b565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028e57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002be578251825591602001919060010190620002a1565b5b509050620002ce9190620002d2565b5090565b620002f791905b80821115620002f3576000816000905550600101620002d9565b5090565b90565b613c8a806200030a6000396000f3fe60806040526004361061014a5760003560e01c8063562bf023116100b6578063ce116a621161006f578063ce116a6214610c30578063e985e9c514610c7f578063ec144dc714610d08578063f14210a614610d43578063f23a6e6114610d7e578063f242432a14610eaa5761014a565b8063562bf023146108b85780636a6278421461093e5780639ed3c90c14610982578063a22cb465146109b1578063bc197c8114610a0e578063c35da2fc14610bd05761014a565b80632161bbca116101085780632161bbca146103a25780632eb2c2d6146103cd57806334d722c9146105fd5780634e1273f4146106545780634f63a77214610802578063561cd462146108535761014a565b8062fdd58e1461014f57806301ffc9a7146101be5780630e89341c1461023057806319ab453c146102e45780631abfe3d1146103285780631ffa20dd14610377575b600080fd5b34801561015b57600080fd5b506101a86004803603604081101561017257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fc6565b6040518082815260200191505060405180910390f35b3480156101ca57600080fd5b50610216600480360360208110156101e157600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291905050506110a6565b604051808215151515815260200191505060405180910390f35b34801561023c57600080fd5b506102696004803603602081101561025357600080fd5b810190808035906020019092919050505061110d565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102a957808201518184015260208101905061028e565b50505050905090810190601f1680156102d65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610326600480360360208110156102fa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111b1565b005b34801561033457600080fd5b506103616004803603602081101561034b57600080fd5b810190808035906020019092919050505061134d565b6040518082815260200191505060405180910390f35b34801561038357600080fd5b5061038c611365565b6040518082815260200191505060405180910390f35b3480156103ae57600080fd5b506103b761136b565b6040518082815260200191505060405180910390f35b3480156103d957600080fd5b506105fb600480360360a08110156103f057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561044d57600080fd5b82018360208201111561045f57600080fd5b8035906020019184602083028401116401000000008311171561048157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156104e157600080fd5b8201836020820111156104f357600080fd5b8035906020019184602083028401116401000000008311171561051557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561057557600080fd5b82018360208201111561058757600080fd5b803590602001918460018302840111640100000000831117156105a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611371565b005b34801561060957600080fd5b506106126117ff565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561066057600080fd5b506107ab6004803603604081101561067757600080fd5b810190808035906020019064010000000081111561069457600080fd5b8201836020820111156106a657600080fd5b803590602001918460208302840111640100000000831117156106c857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561072857600080fd5b82018360208201111561073a57600080fd5b8035906020019184602083028401116401000000008311171561075c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050611825565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156107ee5780820151818401526020810190506107d3565b505050509050019250505060405180910390f35b34801561080e57600080fd5b506108516004803603602081101561082557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611a1a565b005b34801561085f57600080fd5b506108a26004803603602081101561087657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611af2565b6040518082815260200191505060405180910390f35b3480156108c457600080fd5b5061093c600480360360208110156108db57600080fd5b81019080803590602001906401000000008111156108f857600080fd5b82018360208201111561090a57600080fd5b8035906020019184600183028401116401000000008311171561092c57600080fd5b9091929391929390505050611b0a565b005b6109806004803603602081101561095457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611bb5565b005b34801561098e57600080fd5b50610997611ce8565b604051808215151515815260200191505060405180910390f35b3480156109bd57600080fd5b50610a0c600480360360408110156109d457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611cfb565b005b348015610a1a57600080fd5b50610b7c600480360360a0811015610a3157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610a8e57600080fd5b820183602082011115610aa057600080fd5b80359060200191846020830284011164010000000083111715610ac257600080fd5b909192939192939080359060200190640100000000811115610ae357600080fd5b820183602082011115610af557600080fd5b80359060200191846020830284011164010000000083111715610b1757600080fd5b909192939192939080359060200190640100000000811115610b3857600080fd5b820183602082011115610b4a57600080fd5b80359060200191846001830284011164010000000083111715610b6c57600080fd5b9091929391929390505050611e96565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b348015610bdc57600080fd5b50610c1360048036036040811015610bf357600080fd5b810190808035906020019092919080359060200190929190505050612000565b604051808381526020018281526020019250505060405180910390f35b348015610c3c57600080fd5b50610c6960048036036020811015610c5357600080fd5b81019080803590602001909291905050506120a2565b6040518082815260200191505060405180910390f35b348015610c8b57600080fd5b50610cee60048036036040811015610ca257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506120ba565b604051808215151515815260200191505060405180910390f35b348015610d1457600080fd5b50610d4160048036036020811015610d2b57600080fd5b810190808035906020019092919050505061214e565b005b348015610d4f57600080fd5b50610d7c60048036036020811015610d6657600080fd5b8101908080359060200190929190505050612291565b005b348015610d8a57600080fd5b50610e56600480360360a0811015610da157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610e1257600080fd5b820183602082011115610e2457600080fd5b80359060200191846001830284011164010000000083111715610e4657600080fd5b9091929391929390505050612452565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b348015610eb657600080fd5b50610fc4600480360360a0811015610ecd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610f3e57600080fd5b820183602082011115610f5057600080fd5b80359060200191846001830284011164010000000083111715610f7257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612565565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561104d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806139fe602b913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111a55780601f1061117a576101008083540402835291602001916111a5565b820191906000526020600020905b81548152906001019060200180831161118857829003601f168201915b50505050509050919050565b600860009054906101000a900460ff16156111cb57600080fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461122557600080fd5b6103e9341461123357600080fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506112b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006001604051806020016040528060008152506128da565b6001600960008081526020019081526020016000208190555061130c600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001803403604051806020016040528060008152506128da565b600134036009600060018152602001908152602001600020819055506001600860006101000a81548160ff0219169083151502179055504260068190555050565b600a6020528060005260406000206000915090505481565b60075481565b60065481565b81518351146113cb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180613bd46028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611451576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613aa76025913960400191505060405180910390fd5b611459612add565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061149f575061149e85611499612add565b6120ba565b5b6114f4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613acc6032913960400191505060405180910390fd5b60006114fe612add565b905061150e818787878787612ae5565b60008090505b84518110156116e257600085828151811061152b57fe5b60200260200101519050600085838151811061154357fe5b602002602001015190506115ca816040518060600160405280602a8152602001613b21602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612aed9092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611681816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050611514565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611792578082015181840152602081019050611777565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156117d45780820151818401526020810190506117b9565b5050505090500194505050505060405180910390a46117f7818787878787612c35565b505050505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60608151835114611881576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613b746029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561189b57600080fd5b506040519080825280602002602001820160405280156118ca5781602001602082028036833780820191505090505b50905060008090505b8451811015611a0f57600073ffffffffffffffffffffffffffffffffffffffff1685828151811061190057fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611975576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613a296031913960400191505060405180910390fd5b6001600085838151811061198557fe5b6020026020010151815260200190815260200160002060008683815181106119a957fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548282815181106119f857fe5b6020026020010181815250508060010190506118d3565b508091505092915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a7457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611aae57600080fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b6020528060005260406000206000915090505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b6457600080fd5b611bb182828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506130ad565b5050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c0f57600080fd5b60003411611c1c57600080fd5b62093a80600654014210158015611c645750600960006001600754038152602001908152602001600020546009600060075481526020019081526020016000205461019f0210155b15611ca55760076000815480929190600101919050555062093a80600654016006819055506000600960006007548152602001908152602001600020819055505b3460096000600754815260200190815260200160002060008282540192505081905550611ce58160075434604051806020016040528060008152506128da565b50565b600860009054906101000a900460ff1681565b8173ffffffffffffffffffffffffffffffffffffffff16611d1a612add565b73ffffffffffffffffffffffffffffffffffffffff161415611d87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613b4b6029913960400191505060405180910390fd5b8060026000611d94612add565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e41612add565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180613b9d6037913960400191505060405180910390fd5b60008090505b87879050811015611fd857600160075403888883818110611f3f57fe5b9050602002013510611f9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f8152602001806139bf603f913960400191505060405180910390fd5b611fcb89878784818110611fac57fe5b905060200201358a8a85818110611fbf57fe5b905060200201356130c7565b8080600101915050611f22565b6040518080613c1d603891396038019050604051809103902091505098975050505050505050565b600080600160075403841061201457600080fd5b60008090506000600960008781526020019081526020016000205490508085111561203e57600080fd5b600a600087815260200190815260200160002054811115612068576101a0858161206457fe5b0491505b6000816009600060018a0181526020019081526020016000205461019f8802028161208f57fe5b0490508281945094505050509250929050565b60096020528060005260406000206000915090505481565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b609c81016007541161215f57600080fd5b6000600960008381526020019081526020016000205490506122106121a0600a600085815260200190815260200160002054836131de90919063ffffffff16565b600b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b600b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600a6000848152602001908152602001600020819055505050565b80600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156122dd57600080fd5b61232f81600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546131de90919063ffffffff16565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060003373ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d80600081146123d2576040519150601f19603f3d011682016040523d82523d6000602084013e6123d7565b606091505b505090508061244e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5472616e73666572206661696c65642e0000000000000000000000000000000081525060200191505060405180910390fd5b5050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180613b9d6037913960400191505060405180910390fd5b6001600754038510612535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f8152602001806139bf603f913960400191505060405180910390fd5b6125408686866130c7565b6040518080613c1d603891396038019050604051809103902090509695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125eb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613aa76025913960400191505060405180910390fd5b6125f3612add565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612639575061263885612633612add565b6120ba565b5b61268e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613a7e6029913960400191505060405180910390fd5b6000612698612add565b90506126b88187876126a988613228565b6126b288613228565b87612ae5565b612735836040518060600160405280602a8152602001613b21602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612aed9092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506127ec836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a46128d2818787878787613298565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612960576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613bfc6021913960400191505060405180910390fd5b600061296a612add565b905061298b8160008761297c88613228565b61298588613228565b87612ae5565b6129ee836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4612ad681600087878787613298565b5050505050565b600033905090565b505050505050565b6000838311158290612b9a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b5f578082015181840152602081019050612b44565b50505050905090810190601f168015612b8c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015612c2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b612c548473ffffffffffffffffffffffffffffffffffffffff1661368e565b156130a5578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015612d38578082015181840152602081019050612d1d565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015612d7a578082015181840152602081019050612d5f565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015612db9578082015181840152602081019050612d9e565b50505050905090810190601f168015612de65780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015612e0b57600080fd5b505af1925050508015612e3f57506040513d6020811015612e2b57600080fd5b810190808051906020019092919050505060015b613006576000604051905060008152600115612f085760443d1015612e675760009050612f08565b60046000803e60005160e01c6308c379a08114612e88576000915050612f08565b60043d036004833e81513d602482011167ffffffffffffffff82111715612eb457600092505050612f08565b808301805167ffffffffffffffff811115612ed6576000945050505050612f08565b8060208301013d8601811115612ef457600095505050505050612f08565b601f19601f82011660405282955050505050505b80612f135750612fb5565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f7a578082015181840152602081019050612f5f565b50505050905090810190601f168015612fa75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806139636034913960400191505060405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146130a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806139976028913960400191505060405180910390fd5b505b505050505050565b80600390805190602001906130c39291906138bd565b5050565b6000806130d48484612000565b809250819350505061312e82600b60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061319782600a600087815260200190815260200160002054612bad90919063ffffffff16565b600a6000868152602001908152602001600020819055506131cc856001860183604051806020016040528060008152506128da565b6131d73085856136a1565b5050505050565b600061322083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612aed565b905092915050565b606080600167ffffffffffffffff8111801561324357600080fd5b506040519080825280602002602001820160405280156132725781602001602082028036833780820191505090505b509050828160008151811061328357fe5b60200260200101818152505080915050919050565b6132b78473ffffffffffffffffffffffffffffffffffffffff1661368e565b15613686578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561339c578082015181840152602081019050613381565b50505050905090810190601f1680156133c95780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156133ec57600080fd5b505af192505050801561342057506040513d602081101561340c57600080fd5b810190808051906020019092919050505060015b6135e75760006040519050600081526001156134e95760443d101561344857600090506134e9565b60046000803e60005160e01c6308c379a081146134695760009150506134e9565b60043d036004833e81513d602482011167ffffffffffffffff82111715613495576000925050506134e9565b808301805167ffffffffffffffff8111156134b75760009450505050506134e9565b8060208301013d86018111156134d5576000955050505050506134e9565b601f19601f82011660405282955050505050505b806134f45750613596565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561355b578082015181840152602081019050613540565b50505050905090810190601f1680156135885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806139636034913960400191505060405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613684576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806139976028913960400191505060405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613727576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180613afe6023913960400191505060405180910390fd5b6000613731612add565b90506137618185600061374387613228565b61374c87613228565b60405180602001604052806000815250612ae5565b6137de82604051806060016040528060248152602001613a5a602491396001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612aed9092919063ffffffff16565b6001600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051808381526020018281526020019250505060405180910390a450505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106138fe57805160ff191683800117855561392c565b8280016001018555821561392c579182015b8281111561392b578251825591602001919060010190613910565b5b509050613939919061393d565b5090565b61395f91905b8082111561395b576000816000905550600101613943565b5090565b9056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e7354776f20696e74657276616c73206d7573742070617373206265666f72652045544820616e6420746f6b656e732063616e2062652065786368616e6765642e455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d617463684f6e6c79204552433131353520746f6b656e732066726f6d207468697320636f6e74726163742063616e2062652072656365697665642e455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f20616464726573736f6e45524331313535526563656976656428616464726573732c616464726573732c75696e743235362c75696e743235362c627974657329a2646970667358221220277865f9dc52940f61728e3d58c125b4cde983a9ece8ead5f1391c9b841a5a8464736f6c6343000606003368747470733a2f2f6f6f64612e73706163652f746f70732f696e74657276616c2f7b69647d2e6a736f6e

Deployed Bytecode

0x60806040526004361061014a5760003560e01c8063562bf023116100b6578063ce116a621161006f578063ce116a6214610c30578063e985e9c514610c7f578063ec144dc714610d08578063f14210a614610d43578063f23a6e6114610d7e578063f242432a14610eaa5761014a565b8063562bf023146108b85780636a6278421461093e5780639ed3c90c14610982578063a22cb465146109b1578063bc197c8114610a0e578063c35da2fc14610bd05761014a565b80632161bbca116101085780632161bbca146103a25780632eb2c2d6146103cd57806334d722c9146105fd5780634e1273f4146106545780634f63a77214610802578063561cd462146108535761014a565b8062fdd58e1461014f57806301ffc9a7146101be5780630e89341c1461023057806319ab453c146102e45780631abfe3d1146103285780631ffa20dd14610377575b600080fd5b34801561015b57600080fd5b506101a86004803603604081101561017257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fc6565b6040518082815260200191505060405180910390f35b3480156101ca57600080fd5b50610216600480360360208110156101e157600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291905050506110a6565b604051808215151515815260200191505060405180910390f35b34801561023c57600080fd5b506102696004803603602081101561025357600080fd5b810190808035906020019092919050505061110d565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102a957808201518184015260208101905061028e565b50505050905090810190601f1680156102d65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610326600480360360208110156102fa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111b1565b005b34801561033457600080fd5b506103616004803603602081101561034b57600080fd5b810190808035906020019092919050505061134d565b6040518082815260200191505060405180910390f35b34801561038357600080fd5b5061038c611365565b6040518082815260200191505060405180910390f35b3480156103ae57600080fd5b506103b761136b565b6040518082815260200191505060405180910390f35b3480156103d957600080fd5b506105fb600480360360a08110156103f057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561044d57600080fd5b82018360208201111561045f57600080fd5b8035906020019184602083028401116401000000008311171561048157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156104e157600080fd5b8201836020820111156104f357600080fd5b8035906020019184602083028401116401000000008311171561051557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561057557600080fd5b82018360208201111561058757600080fd5b803590602001918460018302840111640100000000831117156105a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611371565b005b34801561060957600080fd5b506106126117ff565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561066057600080fd5b506107ab6004803603604081101561067757600080fd5b810190808035906020019064010000000081111561069457600080fd5b8201836020820111156106a657600080fd5b803590602001918460208302840111640100000000831117156106c857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561072857600080fd5b82018360208201111561073a57600080fd5b8035906020019184602083028401116401000000008311171561075c57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050611825565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156107ee5780820151818401526020810190506107d3565b505050509050019250505060405180910390f35b34801561080e57600080fd5b506108516004803603602081101561082557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611a1a565b005b34801561085f57600080fd5b506108a26004803603602081101561087657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611af2565b6040518082815260200191505060405180910390f35b3480156108c457600080fd5b5061093c600480360360208110156108db57600080fd5b81019080803590602001906401000000008111156108f857600080fd5b82018360208201111561090a57600080fd5b8035906020019184600183028401116401000000008311171561092c57600080fd5b9091929391929390505050611b0a565b005b6109806004803603602081101561095457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611bb5565b005b34801561098e57600080fd5b50610997611ce8565b604051808215151515815260200191505060405180910390f35b3480156109bd57600080fd5b50610a0c600480360360408110156109d457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611cfb565b005b348015610a1a57600080fd5b50610b7c600480360360a0811015610a3157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610a8e57600080fd5b820183602082011115610aa057600080fd5b80359060200191846020830284011164010000000083111715610ac257600080fd5b909192939192939080359060200190640100000000811115610ae357600080fd5b820183602082011115610af557600080fd5b80359060200191846020830284011164010000000083111715610b1757600080fd5b909192939192939080359060200190640100000000811115610b3857600080fd5b820183602082011115610b4a57600080fd5b80359060200191846001830284011164010000000083111715610b6c57600080fd5b9091929391929390505050611e96565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b348015610bdc57600080fd5b50610c1360048036036040811015610bf357600080fd5b810190808035906020019092919080359060200190929190505050612000565b604051808381526020018281526020019250505060405180910390f35b348015610c3c57600080fd5b50610c6960048036036020811015610c5357600080fd5b81019080803590602001909291905050506120a2565b6040518082815260200191505060405180910390f35b348015610c8b57600080fd5b50610cee60048036036040811015610ca257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506120ba565b604051808215151515815260200191505060405180910390f35b348015610d1457600080fd5b50610d4160048036036020811015610d2b57600080fd5b810190808035906020019092919050505061214e565b005b348015610d4f57600080fd5b50610d7c60048036036020811015610d6657600080fd5b8101908080359060200190929190505050612291565b005b348015610d8a57600080fd5b50610e56600480360360a0811015610da157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610e1257600080fd5b820183602082011115610e2457600080fd5b80359060200191846001830284011164010000000083111715610e4657600080fd5b9091929391929390505050612452565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b348015610eb657600080fd5b50610fc4600480360360a0811015610ecd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610f3e57600080fd5b820183602082011115610f5057600080fd5b80359060200191846001830284011164010000000083111715610f7257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612565565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561104d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806139fe602b913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111a55780601f1061117a576101008083540402835291602001916111a5565b820191906000526020600020905b81548152906001019060200180831161118857829003601f168201915b50505050509050919050565b600860009054906101000a900460ff16156111cb57600080fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461122557600080fd5b6103e9341461123357600080fd5b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506112b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006001604051806020016040528060008152506128da565b6001600960008081526020019081526020016000208190555061130c600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001803403604051806020016040528060008152506128da565b600134036009600060018152602001908152602001600020819055506001600860006101000a81548160ff0219169083151502179055504260068190555050565b600a6020528060005260406000206000915090505481565b60075481565b60065481565b81518351146113cb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180613bd46028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611451576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613aa76025913960400191505060405180910390fd5b611459612add565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061149f575061149e85611499612add565b6120ba565b5b6114f4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613acc6032913960400191505060405180910390fd5b60006114fe612add565b905061150e818787878787612ae5565b60008090505b84518110156116e257600085828151811061152b57fe5b60200260200101519050600085838151811061154357fe5b602002602001015190506115ca816040518060600160405280602a8152602001613b21602a91396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612aed9092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611681816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050611514565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611792578082015181840152602081019050611777565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156117d45780820151818401526020810190506117b9565b5050505090500194505050505060405180910390a46117f7818787878787612c35565b505050505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60608151835114611881576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613b746029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561189b57600080fd5b506040519080825280602002602001820160405280156118ca5781602001602082028036833780820191505090505b50905060008090505b8451811015611a0f57600073ffffffffffffffffffffffffffffffffffffffff1685828151811061190057fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611975576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613a296031913960400191505060405180910390fd5b6001600085838151811061198557fe5b6020026020010151815260200190815260200160002060008683815181106119a957fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548282815181106119f857fe5b6020026020010181815250508060010190506118d3565b508091505092915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a7457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611aae57600080fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b6020528060005260406000206000915090505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b6457600080fd5b611bb182828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506130ad565b5050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c0f57600080fd5b60003411611c1c57600080fd5b62093a80600654014210158015611c645750600960006001600754038152602001908152602001600020546009600060075481526020019081526020016000205461019f0210155b15611ca55760076000815480929190600101919050555062093a80600654016006819055506000600960006007548152602001908152602001600020819055505b3460096000600754815260200190815260200160002060008282540192505081905550611ce58160075434604051806020016040528060008152506128da565b50565b600860009054906101000a900460ff1681565b8173ffffffffffffffffffffffffffffffffffffffff16611d1a612add565b73ffffffffffffffffffffffffffffffffffffffff161415611d87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613b4b6029913960400191505060405180910390fd5b8060026000611d94612add565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e41612add565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180613b9d6037913960400191505060405180910390fd5b60008090505b87879050811015611fd857600160075403888883818110611f3f57fe5b9050602002013510611f9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f8152602001806139bf603f913960400191505060405180910390fd5b611fcb89878784818110611fac57fe5b905060200201358a8a85818110611fbf57fe5b905060200201356130c7565b8080600101915050611f22565b6040518080613c1d603891396038019050604051809103902091505098975050505050505050565b600080600160075403841061201457600080fd5b60008090506000600960008781526020019081526020016000205490508085111561203e57600080fd5b600a600087815260200190815260200160002054811115612068576101a0858161206457fe5b0491505b6000816009600060018a0181526020019081526020016000205461019f8802028161208f57fe5b0490508281945094505050509250929050565b60096020528060005260406000206000915090505481565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b609c81016007541161215f57600080fd5b6000600960008381526020019081526020016000205490506122106121a0600a600085815260200190815260200160002054836131de90919063ffffffff16565b600b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b600b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600a6000848152602001908152602001600020819055505050565b80600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156122dd57600080fd5b61232f81600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546131de90919063ffffffff16565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060003373ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d80600081146123d2576040519150601f19603f3d011682016040523d82523d6000602084013e6123d7565b606091505b505090508061244e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5472616e73666572206661696c65642e0000000000000000000000000000000081525060200191505060405180910390fd5b5050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180613b9d6037913960400191505060405180910390fd5b6001600754038510612535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f8152602001806139bf603f913960400191505060405180910390fd5b6125408686866130c7565b6040518080613c1d603891396038019050604051809103902090509695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125eb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180613aa76025913960400191505060405180910390fd5b6125f3612add565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612639575061263885612633612add565b6120ba565b5b61268e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613a7e6029913960400191505060405180910390fd5b6000612698612add565b90506126b88187876126a988613228565b6126b288613228565b87612ae5565b612735836040518060600160405280602a8152602001613b21602a91396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612aed9092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506127ec836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a46128d2818787878787613298565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612960576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613bfc6021913960400191505060405180910390fd5b600061296a612add565b905061298b8160008761297c88613228565b61298588613228565b87612ae5565b6129ee836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4612ad681600087878787613298565b5050505050565b600033905090565b505050505050565b6000838311158290612b9a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b5f578082015181840152602081019050612b44565b50505050905090810190601f168015612b8c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015612c2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b612c548473ffffffffffffffffffffffffffffffffffffffff1661368e565b156130a5578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015612d38578082015181840152602081019050612d1d565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015612d7a578082015181840152602081019050612d5f565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015612db9578082015181840152602081019050612d9e565b50505050905090810190601f168015612de65780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015612e0b57600080fd5b505af1925050508015612e3f57506040513d6020811015612e2b57600080fd5b810190808051906020019092919050505060015b613006576000604051905060008152600115612f085760443d1015612e675760009050612f08565b60046000803e60005160e01c6308c379a08114612e88576000915050612f08565b60043d036004833e81513d602482011167ffffffffffffffff82111715612eb457600092505050612f08565b808301805167ffffffffffffffff811115612ed6576000945050505050612f08565b8060208301013d8601811115612ef457600095505050505050612f08565b601f19601f82011660405282955050505050505b80612f135750612fb5565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f7a578082015181840152602081019050612f5f565b50505050905090810190601f168015612fa75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806139636034913960400191505060405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146130a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806139976028913960400191505060405180910390fd5b505b505050505050565b80600390805190602001906130c39291906138bd565b5050565b6000806130d48484612000565b809250819350505061312e82600b60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bad90919063ffffffff16565b600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061319782600a600087815260200190815260200160002054612bad90919063ffffffff16565b600a6000868152602001908152602001600020819055506131cc856001860183604051806020016040528060008152506128da565b6131d73085856136a1565b5050505050565b600061322083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612aed565b905092915050565b606080600167ffffffffffffffff8111801561324357600080fd5b506040519080825280602002602001820160405280156132725781602001602082028036833780820191505090505b509050828160008151811061328357fe5b60200260200101818152505080915050919050565b6132b78473ffffffffffffffffffffffffffffffffffffffff1661368e565b15613686578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561339c578082015181840152602081019050613381565b50505050905090810190601f1680156133c95780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156133ec57600080fd5b505af192505050801561342057506040513d602081101561340c57600080fd5b810190808051906020019092919050505060015b6135e75760006040519050600081526001156134e95760443d101561344857600090506134e9565b60046000803e60005160e01c6308c379a081146134695760009150506134e9565b60043d036004833e81513d602482011167ffffffffffffffff82111715613495576000925050506134e9565b808301805167ffffffffffffffff8111156134b75760009450505050506134e9565b8060208301013d86018111156134d5576000955050505050506134e9565b601f19601f82011660405282955050505050505b806134f45750613596565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561355b578082015181840152602081019050613540565b50505050905090810190601f1680156135885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806139636034913960400191505060405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613684576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806139976028913960400191505060405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613727576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180613afe6023913960400191505060405180910390fd5b6000613731612add565b90506137618185600061374387613228565b61374c87613228565b60405180602001604052806000815250612ae5565b6137de82604051806060016040528060248152602001613a5a602491396001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612aed9092919063ffffffff16565b6001600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051808381526020018281526020019250505060405180910390a450505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106138fe57805160ff191683800117855561392c565b8280016001018555821561392c579182015b8281111561392b578251825591602001919060010190613910565b5b509050613939919061393d565b5090565b61395f91905b8082111561395b576000816000905550600101613943565b5090565b9056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e7354776f20696e74657276616c73206d7573742070617373206265666f72652045544820616e6420746f6b656e732063616e2062652065786368616e6765642e455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d617463684f6e6c79204552433131353520746f6b656e732066726f6d207468697320636f6e74726163742063616e2062652072656365697665642e455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f20616464726573736f6e45524331313535526563656976656428616464726573732c616464726573732c75696e743235362c75696e743235362c627974657329a2646970667358221220277865f9dc52940f61728e3d58c125b4cde983a9ece8ead5f1391c9b841a5a8464736f6c63430006060033

Deployed Bytecode Sourcemap

85288:7763:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;14418:223:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;14418:223:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;14418:223:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1972:142;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1972:142:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;1972:142:0;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;14168:99;;5:9:-1;2:2;;;27:1;24;17:12;2:2;14168:99:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;14168:99:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;14168:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86064:439;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;86064:439:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;85786:47;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85786:47:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;85786:47:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85644:36;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85644:36:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85598:39;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85598:39:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17130:1220;;5:9:-1;2:2;;;27:1;24;17:12;2:2;17130:1220:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;17130:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;17130:1220:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;17130:1220:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;17130:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;17130:1220:0;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;17130:1220:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;17130:1220:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;17130:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;17130:1220:0;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;17130:1220:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;17130:1220:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;17130:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;17130:1220:0;;;;;;;;;;;;;;;:::i;:::-;;85561:28;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85561:28:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;14807:634;;5:9:-1;2:2;;;27:1;24;17:12;2:2;14807:634:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;14807:634:0;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;14807:634:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;14807:634:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;14807:634:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;14807:634:0;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;14807:634:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;14807:634:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;14807:634:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;14807:634:0;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;14807:634:0;;;;;;;;;;;;;;;;;86621:190;;5:9:-1;2:2;;;27:1;24;17:12;2:2;86621:190:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;86621:190:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;85840:47;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85840:47:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;85840:47:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;87679:129;;5:9:-1;2:2;;;27:1;24;17:12;2:2;87679:129:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;87679:129:0;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;87679:129:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;87679:129:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;87679:129:0;;;;;;;;;;;;:::i;:::-;;87047:555;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;87047:555:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;85687:33;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85687:33:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;15514:311;;5:9:-1;2:2;;;27:1;24;17:12;2:2;15514:311:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;15514:311:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;91391:675;;5:9:-1;2:2;;;27:1;24;17:12;2:2;91391:675:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;91391:675:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;91391:675:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;91391:675:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;91391:675:0;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;91391:675:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;91391:675:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;91391:675:0;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;91391:675:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;91391:675:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;91391:675:0;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;88264:599;;5:9:-1;2:2;;;27:1;24;17:12;2:2;88264:599:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;88264:599:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;85727:52;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85727:52:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;85727:52:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15897:160;;5:9:-1;2:2;;;27:1;24;17:12;2:2;15897:160:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;15897:160:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;92244:364;;5:9:-1;2:2;;;27:1;24;17:12;2:2;92244:364:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;92244:364:0;;;;;;;;;;;;;;;;;:::i;:::-;;92768:280;;5:9:-1;2:2;;;27:1;24;17:12;2:2;92768:280:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;92768:280:0;;;;;;;;;;;;;;;;;:::i;:::-;;89457:549;;5:9:-1;2:2;;;27:1;24;17:12;2:2;89457:549:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;89457:549:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;89457:549:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;89457:549:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;89457:549:0;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;16129:924;;5:9:-1;2:2;;;27:1;24;17:12;2:2;16129:924:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;16129:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;16129:924:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;16129:924:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;16129:924:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;16129:924:0;;;;;;;;;;;;;;;:::i;:::-;;14418:223;14496:7;14543:1;14524:21;;:7;:21;;;;14516:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14611:9;:13;14621:2;14611:13;;;;;;;;;;;:22;14625:7;14611:22;;;;;;;;;;;;;;;;14604:29;;14418:223;;;;:::o;1972:142::-;2049:4;2073:20;:33;2094:11;2073:33;;;;;;;;;;;;;;;;;;;;;;;;;;;2066:40;;1972:142;;;:::o;14168:99::-;14222:13;14255:4;14248:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14168:99;;;:::o;86064:439::-;86131:13;;;;;;;;;;;86130:14;86122:23;;12:1:-1;9;2:12;86122:23:0;86178:12;;;;;;;;;;;86164:26;;:10;:26;;;86156:35;;12:1:-1;9;2:12;86156:35:0;86223:4;86210:9;:17;86202:26;;12:1:-1;9;2:12;86202:26:0;86255:6;86239:13;;:22;;;;;;;;;;;;;;;;;;86272:26;86278:12;;;;;;;;;;;86291:1;86293;86272:26;;;;;;;;;;;;:5;:26::i;:::-;86332:1;86309:17;:20;86327:1;86309:20;;;;;;;;;;;:24;;;;86344:38;86350:12;;;;;;;;;;;86363:1;86377;86365:9;:13;86344:38;;;;;;;;;;;;:5;:38::i;:::-;86428:1;86416:9;:13;86393:17;:20;86411:1;86393:20;;;;;;;;;;;:36;;;;86456:4;86440:13;;:20;;;;;;;;;;;;;;;;;;86492:3;86471:18;:24;;;;86064:439;:::o;85786:47::-;;;;;;;;;;;;;;;;;:::o;85644:36::-;;;;:::o;85598:39::-;;;;:::o;17130:1220::-;17395:7;:14;17381:3;:10;:28;17373:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17487:1;17473:16;;:2;:16;;;;17465:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17572:12;:10;:12::i;:::-;17564:20;;:4;:20;;;:60;;;;17588:36;17605:4;17611:12;:10;:12::i;:::-;17588:16;:36::i;:::-;17564:60;17542:160;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17715:16;17734:12;:10;:12::i;:::-;17715:31;;17759:60;17780:8;17790:4;17796:2;17800:3;17805:7;17814:4;17759:20;:60::i;:::-;17837:9;17849:1;17837:13;;17832:358;17856:3;:10;17852:1;:14;17832:358;;;17888:10;17901:3;17905:1;17901:6;;;;;;;;;;;;;;17888:19;;17922:14;17939:7;17947:1;17939:10;;;;;;;;;;;;;;17922:27;;17988:126;18030:6;17988:126;;;;;;;;;;;;;;;;;:9;:13;17998:2;17988:13;;;;;;;;;;;:19;18002:4;17988:19;;;;;;;;;;;;;;;;:23;;:126;;;;;:::i;:::-;17966:9;:13;17976:2;17966:13;;;;;;;;;;;:19;17980:4;17966:19;;;;;;;;;;;;;;;:148;;;;18149:29;18171:6;18149:9;:13;18159:2;18149:13;;;;;;;;;;;:17;18163:2;18149:17;;;;;;;;;;;;;;;;:21;;:29;;;;:::i;:::-;18129:9;:13;18139:2;18129:13;;;;;;;;;;;:17;18143:2;18129:17;;;;;;;;;;;;;;;:49;;;;17832:358;;17868:3;;;;;17832:358;;;;18237:2;18207:47;;18231:4;18207:47;;18221:8;18207:47;;;18241:3;18246:7;18207:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;18207:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;18207:47:0;;;;;;;;;;;;;;;;;;;18267:75;18303:8;18313:4;18319:2;18323:3;18328:7;18337:4;18267:35;:75::i;:::-;17130:1220;;;;;;:::o;85561:28::-;;;;;;;;;;;;;:::o;14807:634::-;14971:16;15032:3;:10;15013:8;:15;:29;15005:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15101:30;15148:8;:15;15134:30;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;15134:30:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;156:4;148:6;144:17;134:27;;0:165;15134:30:0;;;;15101:63;;15182:9;15194:1;15182:13;;15177:224;15201:8;:15;15197:1;:19;15177:224;;;15269:1;15246:25;;:8;15255:1;15246:11;;;;;;;;;;;;;;:25;;;;15238:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15359:9;:17;15369:3;15373:1;15369:6;;;;;;;;;;;;;;15359:17;;;;;;;;;;;:30;15377:8;15386:1;15377:11;;;;;;;;;;;;;;15359:30;;;;;;;;;;;;;;;;15340:13;15354:1;15340:16;;;;;;;;;;;;;:49;;;;;15218:3;;;;;15177:224;;;;15420:13;15413:20;;;14807:634;;;;:::o;86621:190::-;86710:12;;;;;;;;;;;86696:26;;:10;:26;;;86688:35;;12:1:-1;9;2:12;86688:35:0;86764:1;86742:24;;:10;:24;;;;86734:33;;12:1:-1;9;2:12;86734:33:0;86793:10;86778:12;;:25;;;;;;;;;;;;;;;;;;86621:190;:::o;85840:47::-;;;;;;;;;;;;;;;;;:::o;87679:129::-;87761:12;;;;;;;;;;;87747:26;;:10;:26;;;87739:35;;12:1:-1;9;2:12;87739:35:0;87785:15;87793:6;;87785:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;87785:15:0;;;;;;:7;:15::i;:::-;87679:129;;:::o;87047:555::-;87129:13;;;;;;;;;;;87115:27;;:10;:27;;;87107:36;;12:1:-1;9;2:12;87107:36:0;87174:1;87162:9;:13;87154:22;;12:1:-1;9;2:12;87154:22:0;87219:6;87198:18;;:27;87191:3;:34;;:122;;;;;87274:17;:38;87310:1;87292:17;;:19;87274:38;;;;;;;;;;;;87234:17;:36;87252:17;;87234:36;;;;;;;;;;;;87230:3;:40;:82;;87191:122;87187:291;;;87329:17;;:19;;;;;;;;;;;;;87405:6;87384:18;;:27;87363:18;:48;;;;87465:1;87426:17;:36;87444:17;;87426:36;;;;;;;;;;;:40;;;;87187:291;87528:9;87488:17;:36;87506:17;;87488:36;;;;;;;;;;;;:49;;;;;;;;;;;87548:46;87554:8;87563:17;;87581:9;87548:46;;;;;;;;;;;;:5;:46::i;:::-;87047:555;:::o;85687:33::-;;;;;;;;;;;;;:::o;15514:311::-;15633:8;15617:24;;:12;:10;:12::i;:::-;:24;;;;15609:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15745:8;15700:18;:32;15719:12;:10;:12::i;:::-;15700:32;;;;;;;;;;;;;;;:42;15733:8;15700:42;;;;;;;;;;;;;;;;:53;;;;;;;;;;;;;;;;;;15798:8;15769:48;;15784:12;:10;:12::i;:::-;15769:48;;;15808:8;15769:48;;;;;;;;;;;;;;;;;;;;;;15514:311;;:::o;91391:675::-;91562:6;91636:4;91614:27;;:10;:27;;;91606:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91711:6;91737:1;91733:5;;91728:236;91743:11;;:18;;91739:1;:22;91728:236;;;91824:1;91806:17;;:19;91789:11;;91801:1;91789:14;;;;;;;;;;;;;:36;91781:111;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91907:45;91920:6;91928:4;;91933:1;91928:7;;;;;;;;;;;;;91937:11;;91949:1;91937:14;;;;;;;;;;;;;91907:12;:45::i;:::-;91762:3;;;;;;;91728:236;;;91988:69;;;;;;;;;;;;;;;;;;;91974:84;;;91391:675;;;;;;;;;;:::o;88264:599::-;88341:7;88349;88407:1;88389:17;;:19;88376:10;:32;88368:41;;12:1:-1;9;2:12;88368:41:0;88420:17;88440:1;88420:21;;88452:26;88481:17;:29;88499:10;88481:29;;;;;;;;;;;;88452:58;;88536:18;88529:3;:25;;88521:34;;12:1:-1;9;2:12;88521:34:0;88591:12;:24;88604:10;88591:24;;;;;;;;;;;;88570:18;:45;88566:100;;;88650:3;88644;:9;;;;;;88631:23;;88566:100;88676:41;88769:18;88734:17;:31;88763:1;88752:10;:12;88734:31;;;;;;;;;;;;88728:3;88722;:9;:43;88721:66;;;;;;88676:112;;88807:9;88818:36;88799:56;;;;;;;88264:599;;;;;:::o;85727:52::-;;;;;;;;;;;;;;;;;:::o;15897:160::-;15988:4;16012:18;:27;16031:7;16012:27;;;;;;;;;;;;;;;:37;16040:8;16012:37;;;;;;;;;;;;;;;;;;;;;;;;;16005:44;;15897:160;;;;:::o;92244:364::-;92351:3;92338:10;:16;92318:17;;:36;92310:45;;12:1:-1;9;2:12;92310:45:0;92366:26;92395:17;:29;92413:10;92395:29;;;;;;;;;;;;92366:58;;92464:80;92495:48;92518:12;:24;92531:10;92518:24;;;;;;;;;;;;92495:18;:22;;:48;;;;:::i;:::-;92464:12;:26;92477:12;;;;;;;;;;;92464:26;;;;;;;;;;;;;;;;:30;;:80;;;;:::i;:::-;92435:12;:26;92448:12;;;;;;;;;;;92435:26;;;;;;;;;;;;;;;:109;;;;92582:18;92555:12;:24;92568:10;92555:24;;;;;;;;;;;:45;;;;92244:364;;:::o;92768:280::-;92858:3;92830:12;:24;92843:10;92830:24;;;;;;;;;;;;;;;;:31;;92822:40;;12:1:-1;9;2:12;92822:40:0;92900:33;92929:3;92900:12;:24;92913:10;92900:24;;;;;;;;;;;;;;;;:28;;:33;;;;:::i;:::-;92873:12;:24;92886:10;92873:24;;;;;;;;;;;;;;;:60;;;;92945:12;92963:10;:15;;92985:3;92963:30;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;92944:49:0;;;93012:7;93004:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92768:280;;:::o;89457:549::-;89599:6;89673:4;89651:27;;:10;:27;;;89643:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89787:1;89769:17;;:19;89756:10;:32;89748:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89866:37;89879:6;89887:10;89899:3;89866:12;:37::i;:::-;89928:69;;;;;;;;;;;;;;;;;;;89914:84;;89457:549;;;;;;;;:::o;16129:924::-;16369:1;16355:16;;:2;:16;;;;16347:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16454:12;:10;:12::i;:::-;16446:20;;:4;:20;;;:60;;;;16470:36;16487:4;16493:12;:10;:12::i;:::-;16470:16;:36::i;:::-;16446:60;16424:151;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16588:16;16607:12;:10;:12::i;:::-;16588:31;;16632:96;16653:8;16663:4;16669:2;16673:21;16691:2;16673:17;:21::i;:::-;16696:25;16714:6;16696:17;:25::i;:::-;16723:4;16632:20;:96::i;:::-;16763:77;16787:6;16763:77;;;;;;;;;;;;;;;;;:9;:13;16773:2;16763:13;;;;;;;;;;;:19;16777:4;16763:19;;;;;;;;;;;;;;;;:23;;:77;;;;;:::i;:::-;16741:9;:13;16751:2;16741:13;;;;;;;;;;;:19;16755:4;16741:19;;;;;;;;;;;;;;;:99;;;;16871:29;16893:6;16871:9;:13;16881:2;16871:13;;;;;;;;;;;:17;16885:2;16871:17;;;;;;;;;;;;;;;;:21;;:29;;;;:::i;:::-;16851:9;:13;16861:2;16851:13;;;;;;;;;;;:17;16865:2;16851:17;;;;;;;;;;;;;;;:49;;;;16949:2;16918:46;;16943:4;16918:46;;16933:8;16918:46;;;16953:2;16957:6;16918:46;;;;;;;;;;;;;;;;;;;;;;;;16977:68;17008:8;17018:4;17024:2;17028;17032:6;17040:4;16977:30;:68::i;:::-;16129:924;;;;;;:::o;19676:583::-;19810:1;19791:21;;:7;:21;;;;19783:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19863:16;19882:12;:10;:12::i;:::-;19863:31;;19907:107;19928:8;19946:1;19950:7;19959:21;19977:2;19959:17;:21::i;:::-;19982:25;20000:6;19982:17;:25::i;:::-;20009:4;19907:20;:107::i;:::-;20052:34;20079:6;20052:9;:13;20062:2;20052:13;;;;;;;;;;;:22;20066:7;20052:22;;;;;;;;;;;;;;;;:26;;:34;;;;:::i;:::-;20027:9;:13;20037:2;20027:13;;;;;;;;;;;:22;20041:7;20027:22;;;;;;;;;;;;;;;:59;;;;20139:7;20102:57;;20135:1;20102:57;;20117:8;20102:57;;;20148:2;20152:6;20102:57;;;;;;;;;;;;;;;;;;;;;;;;20172:79;20203:8;20221:1;20225:7;20234:2;20238:6;20246:4;20172:30;:79::i;:::-;19676:583;;;;;:::o;11154:106::-;11207:15;11242:10;11235:17;;11154:106;:::o;24020:236::-;;;;;;;:::o;52943:192::-;53029:7;53062:1;53057;:6;;53065:12;53049:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;53049:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53089:9;53105:1;53101;:5;53089:17;;53126:1;53119:8;;;52943:192;;;;;:::o;52040:181::-;52098:7;52118:9;52134:1;52130;:5;52118:17;;52159:1;52154;:6;;52146:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52212:1;52205:8;;;52040:181;;;;:::o;25034:799::-;25288:15;:2;:13;;;:15::i;:::-;25284:542;;;25341:2;25324:43;;;25368:8;25378:4;25384:3;25389:7;25398:4;25324:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;25324:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;25324:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;25324:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;25324:79:0;;;;;;;;;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;25324:79:0;;;;;;;;;;;;;;;;;;25320:495;;;20:4:-1;14:11;6:19;;43:1;37:4;30:15;57:1;50:730;;;93:4;75:16;72:26;69:2;;;109:1;101:9;;111:5;;69:2;145:1;142;139;124:23;179:1;173:8;168:3;164:18;206:10;201:3;198:19;188:2;;229:1;221:9;;231:5;;;188:2;290:1;272:16;268:24;265:1;259:4;244:49;319:4;313:11;403:16;396:4;388:6;384:17;381:39;354:18;346:6;343:30;333:94;330:2;;;444:1;436:9;;452:5;;;;330:2;491:6;485:4;481:17;524:3;518:10;548:18;540:6;537:30;534:2;;;578:1;570:9;;580:5;;;;;;534:2;624:6;617:4;612:3;608:14;604:27;658:16;652:4;648:27;643:3;640:36;637:2;;;687:1;679:9;;689:5;;;;;;;637:2;739:4;735:9;728:4;723:3;719:14;715:30;709:4;702:44;760:3;752:11;;769:5;;;;;50:730;25320:495:0;;;;;;;25688:6;25681:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;25681::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25320:495;25737:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25320:495;25465:52;;;25453:64;;;:8;:64;;;;25449:163;;25542:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25449:163;25404:223;25284:542;25034:799;;;;;;:::o;19192:88::-;19266:6;19259:4;:13;;;;;;;;;;;;:::i;:::-;;19192:88;:::o;90283:489::-;90374:26;90411:17;90473:31;90489:10;90500:3;90473:15;:31::i;:::-;90439:65;;;;;;;;90538:44;90563:18;90538:12;:20;90551:6;90538:20;;;;;;;;;;;;;;;;:24;;:44;;;;:::i;:::-;90515:12;:20;90528:6;90515:20;;;;;;;;;;;;;;;:67;;;;90620:48;90649:18;90620:12;:24;90633:10;90620:24;;;;;;;;;;;;:28;;:48;;;;:::i;:::-;90593:12;:24;90606:10;90593:24;;;;;;;;;;;:75;;;;90679:39;90685:6;90703:1;90692:10;:12;90705:9;90679:39;;;;;;;;;;;;:5;:39::i;:::-;90729:35;90743:4;90749:10;90760:3;90729:5;:35::i;:::-;90283:489;;;;;:::o;52504:136::-;52562:7;52589:43;52593:1;52596;52589:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;52582:50;;52504:136;;;;:::o;25841:198::-;25907:16;25936:22;25975:1;25961:16;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;25961:16:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;156:4;148:6;144:17;134:27;;0:165;25961:16:0;;;;25936:41;;25999:7;25988:5;25994:1;25988:8;;;;;;;;;;;;;:18;;;;;26026:5;26019:12;;;25841:198;;;:::o;24264:762::-;24493:15;:2;:13;;;:15::i;:::-;24489:530;;;24546:2;24529:38;;;24568:8;24578:4;24584:2;24588:6;24596:4;24529:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;24529:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;24529:72:0;;;;;;;;;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;24529:72:0;;;;;;;;;;;;;;;;;;24525:483;;;20:4:-1;14:11;6:19;;43:1;37:4;30:15;57:1;50:730;;;93:4;75:16;72:26;69:2;;;109:1;101:9;;111:5;;69:2;145:1;142;139;124:23;179:1;173:8;168:3;164:18;206:10;201:3;198:19;188:2;;229:1;221:9;;231:5;;;188:2;290:1;272:16;268:24;265:1;259:4;244:49;319:4;313:11;403:16;396:4;388:6;384:17;381:39;354:18;346:6;343:30;333:94;330:2;;;444:1;436:9;;452:5;;;;330:2;491:6;485:4;481:17;524:3;518:10;548:18;540:6;537:30;534:2;;;578:1;570:9;;580:5;;;;;;534:2;624:6;617:4;612:3;608:14;604:27;658:16;652:4;648:27;643:3;640:36;637:2;;;687:1;679:9;;689:5;;;;;;;637:2;739:4;735:9;728:4;723:3;719:14;715:30;709:4;702:44;760:3;752:11;;769:5;;;;;50:730;24525:483:0;;;;;;;24881:6;24874:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;24874::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24525:483;24930:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24525:483;24663:47;;;24651:59;;;:8;:59;;;;24647:158;;24735:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24647:158;24602:218;24489:530;24264:762;;;;;;:::o;45763:422::-;45823:4;46031:12;46142:7;46130:20;46122:28;;46176:1;46169:4;:8;46162:15;;;45763:422;;;:::o;21589:551::-;21704:1;21685:21;;:7;:21;;;;21677:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21759:16;21778:12;:10;:12::i;:::-;21759:31;;21803:105;21824:8;21834:7;21851:1;21855:21;21873:2;21855:17;:21::i;:::-;21878:25;21896:6;21878:17;:25::i;:::-;21803:105;;;;;;;;;;;;:20;:105::i;:::-;21946:111;21987:6;21946:111;;;;;;;;;;;;;;;;;:9;:13;21956:2;21946:13;;;;;;;;;;;:22;21960:7;21946:22;;;;;;;;;;;;;;;;:26;;:111;;;;;:::i;:::-;21921:9;:13;21931:2;21921:13;;;;;;;;;;;:22;21935:7;21921:22;;;;;;;;;;;;;;;:136;;;;22117:1;22075:57;;22100:7;22075:57;;22090:8;22075:57;;;22121:2;22125:6;22075:57;;;;;;;;;;;;;;;;;;;;;;;;21589:551;;;;:::o;85288:7763::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://277865f9dc52940f61728e3d58c125b4cde983a9ece8ead5f1391c9b841a5a84

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.