ETH Price: $3,518.65 (+0.14%)
Gas: 2 Gwei

Token

Moon Ape Lab (MAL)
 

Overview

Max Total Supply

8,000 MAL

Holders

1,280

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 MAL
0x83d4d73ce85040363eddb03b29dcb30c50e27b3c
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Moon Ape Labs is a project designed with two goals in mind, to provide unique artwork for the NFT community and to provide the goodwill of giving back to the environment.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MAL

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;



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


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

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

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

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

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

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

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

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

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

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

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

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


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


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


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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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


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

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

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

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

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


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


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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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


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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

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

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).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(base, _tokenURI));
        }

        return super.tokenURI(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), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

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


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

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

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

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

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

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

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


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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

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

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


/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}


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

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

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

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

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


struct Team {
    uint256 balance;
    uint256 share;
    string name;
}

contract MALPass is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, ERC721Burnable, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdCounter;

    uint256 public constant MAX_SUPPLY_GREEN =  1100;
    uint256 public constant RESERVED_GREEN = 100;
    uint256 public constant MAX_SUPPLY_BLUE =  100;
    uint256 public constant MAX_SUPPLY_GOLD =  10;

    uint256 public constant MAX_FOR_ONE_ADDRESS_GREEN = 20;
    uint256 public constant MAX_FOR_ONE_ADDRESS_BLUE = 4;
    uint256 public constant MAX_FOR_ONE_ADDRESS_GOLD = 1;

    uint256 public constant PASS_VALUE_IN_APES_GREEN = 1;
    uint256 public constant PASS_VALUE_IN_APES_BLUE = 5;
    uint256 public constant PASS_VALUE_IN_APES_GOLD = 10;

    uint256 public constant PASS_PRICE_GREEN = 0.09 ether;
    uint256 public constant PASS_PRICE_BLUE = 0.45 ether;
    uint256 public constant PASS_PRICE_GOLD = 0.9 ether;

    uint256 public MINTED_GREEN = 0;
    uint256 public MINTED_BLUE = 0;
    uint256 public MINTED_GOLD = 0;

    mapping(address=>uint256) OWNERS_GREEN;
    mapping(address=>uint256) OWNERS_BLUE;
    mapping(address=>uint256) OWNERS_GOLD;
    
    address public APE_CONTRACT; // for pause and burn
    
    uint256 total_teams;
    mapping(uint=>address) team_addresses;
    mapping(address=>Team) teams;

    mapping(uint=>uint) pass_types;
    
    constructor() ERC721("Moon Ape Lab Pass", "MALPASS") {
        total_teams = 0;
        
        team_addresses[total_teams] = 0x5966932Ae92fbE75280e0371cb3bC27B558115A8;
        teams[address(0x5966932Ae92fbE75280e0371cb3bC27B558115A8)] = Team(0, 30, "Pvl");
        total_teams = total_teams + 1;
        
        team_addresses[total_teams] = 0xA45845299bD26af707D0F3C902519b41D8aAefca;
        teams[address(0xA45845299bD26af707D0F3C902519b41D8aAefca)] = Team(0, 5, "Nkt");
        total_teams = total_teams + 1;

        team_addresses[total_teams] = 0x77FeB62f865365f4b81ef49901BC012d017509F3;
        teams[address(0x77FeB62f865365f4b81ef49901BC012d017509F3)] = Team(0, 20, "Sts");
        total_teams = total_teams + 1;

        team_addresses[total_teams] = 0xc2a6035fB9200446f154cdce00EA6ff0160C2854;
        teams[address(0xc2a6035fB9200446f154cdce00EA6ff0160C2854)] = Team(0, 20, "Vld");
        total_teams = total_teams + 1;

        team_addresses[total_teams] = 0xd44ac9eB549DCF1D47D47d81398182265C312232;
        teams[address(0xd44ac9eB549DCF1D47D47d81398182265C312232)] = Team(0, 5, "Nck");
        total_teams = total_teams + 1;

        team_addresses[total_teams] = 0x1eAC73484bcf66564D896213E06d6c5D013244A4;
        teams[address(0x1eAC73484bcf66564D896213E06d6c5D013244A4)] = Team(0, 20, "Andr");
        total_teams = total_teams + 1;
        
        _tokenIdCounter.increment();
    }
    
    function pause() public {
        require(msg.sender == owner() || msg.sender == APE_CONTRACT);
        _pause();
    }

    function reservePasses(uint256 quantity, uint256 _pass_type) public onlyOwner {
        require(_pass_type == 1 || _pass_type == 2 || _pass_type == 3, "Invalid pass type to be minted. Allowed are: 1=Green, 2=Blue, 3=Gold");
        if (_pass_type == 1){
            require(MINTED_GREEN + quantity < MAX_SUPPLY_GREEN + 1, "Too many passes are to be created.");
        } else if (_pass_type == 2){
            require(MINTED_BLUE + quantity < MAX_SUPPLY_BLUE + 1, "Too many passes are to be created.");
        } else {
            require(MINTED_GOLD + quantity < MAX_SUPPLY_GOLD + 1, "Too many passes are to be created.");
        }
        for (uint256 i = 0; i < quantity; i++) {
            _safeMint(msg.sender, _tokenIdCounter.current());
            pass_types[_tokenIdCounter.current()] = _pass_type;
            _tokenIdCounter.increment();
        }
        if (_pass_type == 1){
            MINTED_GREEN += quantity;
            OWNERS_GREEN[msg.sender] += quantity;
        } else if (_pass_type == 2){
            MINTED_BLUE += quantity;
            OWNERS_BLUE[msg.sender] += quantity;
        } else {
            MINTED_GOLD += quantity;
            OWNERS_GOLD[msg.sender] += quantity;
        }
    }

    function myBalance(uint256 _pass_type) public view returns (uint256){
        require(_pass_type == 1 || _pass_type == 2 || _pass_type == 3, "Invalid pass type. Allowed are: 1=Green, 2=Blue, 3=Gold");
        if (_pass_type == 1){
            return OWNERS_GREEN[msg.sender];
        } else if (_pass_type == 2){
            return OWNERS_BLUE[msg.sender];
        } else {
            return OWNERS_GOLD[msg.sender];
        }
    }

    function unpause() public onlyOwner {
        _unpause();
    }
    
    function setApeContract(address ape_contract_address) public onlyOwner{
        APE_CONTRACT = ape_contract_address;
    }
    
    function pass_value_in_apes(uint256 _tokenId) public view returns (uint256){
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent pass");
        uint256 token_pass_type = pass_types[_tokenId];
        if (token_pass_type == 1){
            return PASS_VALUE_IN_APES_GREEN;
        } else if (token_pass_type == 2){
            return PASS_VALUE_IN_APES_BLUE;
        } else {
            return PASS_VALUE_IN_APES_GOLD;
        }
    }
    
    function get_pass(uint256 quantity, uint256 _pass_type) public payable whenNotPaused{
        require(msg.sender != address(0) && msg.sender != address(this));
        require(_pass_type == 1 || _pass_type == 2 || _pass_type == 3, "Invalid pass type to be minted. Allowed are: 1=Green, 2=Blue, 3=Gold.");
        if (_pass_type == 1){
            require(quantity * PASS_PRICE_GREEN == msg.value, "Ether value sent is incorrect.");
            require(MINTED_GREEN + quantity < MAX_SUPPLY_GREEN - RESERVED_GREEN + 1, "Too many Green Passes are to be minted.");
            require(quantity + OWNERS_GREEN[msg.sender] <= MAX_FOR_ONE_ADDRESS_GREEN, "Maximum quantity of Green Passes to buy from 1 address is 20.");
        } else if (_pass_type == 2){
            require(quantity * PASS_PRICE_BLUE == msg.value, "Ether value sent is incorrect.");
            require(MINTED_BLUE + quantity < MAX_SUPPLY_BLUE + 1, "Too many Blue Passes are to be minted.");
            require(quantity + OWNERS_BLUE[msg.sender] <= MAX_FOR_ONE_ADDRESS_BLUE, "Maximum quantity of Blue Passes to buy from 1 address is 4.");
        } else {
            require(quantity * PASS_PRICE_GOLD == msg.value, "Ether value sent is incorrect.");
            require(MINTED_GOLD + quantity < MAX_SUPPLY_GOLD + 1, "Too many Gold Passes are to be minted.");
            require(quantity + OWNERS_GOLD[msg.sender] <= MAX_FOR_ONE_ADDRESS_GOLD, "Maximum quantity of Gold Passes to buy from 1 address is 1.");
        }
        
        for(uint256 i = 0; i < quantity; i++) {
            _safeMint(msg.sender, _tokenIdCounter.current());
            pass_types[_tokenIdCounter.current()] = _pass_type;
            _tokenIdCounter.increment();
        }

        if (_pass_type == 1){
            MINTED_GREEN += quantity;
            OWNERS_GREEN[msg.sender] += quantity;
        } else if (_pass_type == 2){
            MINTED_BLUE += quantity;
            OWNERS_BLUE[msg.sender] += quantity;
        } else {
            MINTED_GOLD += quantity;
            OWNERS_GOLD[msg.sender] += quantity;
        }

        for (uint256 i = 0; i < total_teams; i++){
            teams[team_addresses[i]].balance += msg.value * teams[team_addresses[i]].share / 100;
        }
    }
    
    function withdraw(address payable to_address) public returns (bool){
        require(teams[msg.sender].balance > 0, "Sorry! You have nothing to withdraw.");
        require(to_address != address(0) && to_address != address(this));
        require(msg.sender != address(0) && msg.sender != address(this));
        to_address.transfer(teams[msg.sender].balance);
        teams[msg.sender].balance = 0;
        return true;
    }

    function team_get_percentage(address my_address) public view returns (uint256){
        return teams[my_address].share;
    }

    function team_get_share_balance(address my_address) public view returns (uint256){
        return teams[my_address].balance;
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        whenNotPaused
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }
    
    function burn(uint256 tokenId) public override {
        require(_isApprovedOrOwner(_msgSender(), tokenId) || msg.sender == APE_CONTRACT, "Caller is not approved/owner nor the Ape contract");
        _burn(tokenId);
    }

    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function _baseURI() internal pure override returns (string memory) {
        return "ipfs://QmWTXioufvNjRkWod4dYGV685CD1ZDesFP5dezUMRoJkEc/";
    }


    function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent pass");
        string memory baseURI = _baseURI();
        uint256 token_pass_type = pass_types[tokenId];
        if (token_pass_type == 1){
            return string(abi.encodePacked(baseURI, "green_metadata.json"));
        } else if (token_pass_type == 2){
            return string(abi.encodePacked(baseURI, "blue_metadata.json"));
        } else {
            return string(abi.encodePacked(baseURI, "gold_metadata.json"));
        }
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}



contract MAL is ERC721, ERC721URIStorage, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdCounter;
	
    uint256 total_teams;
    mapping(uint=>address) team_addresses;
    mapping(address=>Team) teams;
    
	uint256 TOTAL_SUPPLY = 1;
    bool public MINTING_PAUSED;
    uint256 public constant MAX_SUPPLY = 8000;
    uint256 public constant APE_PRICE = 90000000000000000; //0.09 ETH
    
    address public PASS_CONTRACT_ADDRESS;

    bool public REVEALED;
    string private base_url;
	bool private withdrawal_enabled;
	bool public whitelist_sale;
	
	mapping(address=>uint256) whitelisted;
    
    
    constructor() ERC721("Moon Ape Lab", "MAL") {
        REVEALED = false;
		withdrawal_enabled = true;
		whitelist_sale = true;
        MINTING_PAUSED = true;
        
        team_addresses[0] = 0x84629C04D07FC89220E7Dc970a1Fb127bCd86f47;
        teams[address(0x84629C04D07FC89220E7Dc970a1Fb127bCd86f47)] = Team(0, 50, "Ph");
        
        team_addresses[1] = 0xC8e40F13434f1dFA4072382d15f8a00adD0ba481;
        teams[address(0xC8e40F13434f1dFA4072382d15f8a00adD0ba481)] = Team(0, 38, "StsVld");

        team_addresses[2] = 0x1eAC73484bcf66564D896213E06d6c5D013244A4;
        teams[address(0x1eAC73484bcf66564D896213E06d6c5D013244A4)] = Team(0, 12, "And");

        total_teams = 3;
        _tokenIdCounter.increment();
        
        base_url = "ipfs://QmUgcPaqkFq9FuknZx7gS2UVGBwLgGFuhFeaUzadvZFhgV/";
    }

    function addWhitelisted(address[] memory wl_addresses) external onlyOwner{
        for (uint256 i = 0; i < wl_addresses.length; i++){
            whitelisted[wl_addresses[i]] = 7;
        }
    }

    function setPassContract(address _pass_address) public onlyOwner{
        PASS_CONTRACT_ADDRESS = _pass_address;
    }

    function totalSupply() public view returns(uint256){
        return TOTAL_SUPPLY - 1;
    }

    function pause() external onlyOwner {
        require(MINTING_PAUSED == false, "Minting is already paused");
        MINTING_PAUSED = true;
    }

    function unpause() external onlyOwner {
        require(MINTING_PAUSED == true, "Minting is already unpaused");
        MINTING_PAUSED = false;
    }
	
	function startPublicSale() external onlyOwner{
		require(whitelist_sale == true, "Public Sale is already active");
		whitelist_sale = false;
	}

    function transformToAddressesWithNum(address[] memory ape_owners, uint8[] memory qs) external onlyOwner{ // Passes to Apes
        require(ape_owners.length == qs.length, "Lists must be same length");
        for (uint256 i = 0; i < ape_owners.length; i++){
            for (uint8 j = 0; j < qs[i]; j++){
                _safeMint(ape_owners[i], _tokenIdCounter.current());
                _tokenIdCounter.increment();
            }
            TOTAL_SUPPLY += qs[i];
        }
    }

    function revealApes(string memory baseURI) external onlyOwner {
        require(REVEALED == false, "Apes are already revealed");
        base_url = baseURI;
        REVEALED = true;
    }
	
	function mintApeForWhitelisted(uint256 number_of_tokens) payable external{
		require(whitelist_sale == true, "Public sale is active. Please use function mintApe(number_of_tokens)");
        require(MINTING_PAUSED == false, "Sorry! Minting is currently paused.");
		require(msg.sender != address(0) && msg.sender != address(this));
		require(APE_PRICE * number_of_tokens <= msg.value, "Ether value sent is not correct");
		require(number_of_tokens > 0, "Please mint at least 1 Ape");
        require(TOTAL_SUPPLY + number_of_tokens < MAX_SUPPLY + 2, "Too many tokens are to be created. Max supply is 8000");
		require(number_of_tokens < whitelisted[msg.sender], "Whitelisted users can purchase up to 6 NFTs. Either you are not whitelisted or you have already bought the maximum amount.");
		
		for(uint256 i = 0; i < number_of_tokens; i++) {
            _safeMint(msg.sender, _tokenIdCounter.current());
            _tokenIdCounter.increment();
        }
        for (uint256 i = 0; i < total_teams; i++){
            teams[team_addresses[i]].balance += msg.value * teams[team_addresses[i]].share / 100;
        }
        TOTAL_SUPPLY += number_of_tokens;
		
		whitelisted[msg.sender] -= number_of_tokens;
	}
    
    function mintApe(uint256 number_of_tokens) payable external{
		require(whitelist_sale == false, "Public sale is not active. Please try again later");
        require(MINTING_PAUSED == false, "Sorry! Minting is currently paused.");
        require(msg.sender != address(0) && msg.sender != address(this));
        require(APE_PRICE * number_of_tokens <= msg.value, "Ether value sent is not correct");
        require(TOTAL_SUPPLY + number_of_tokens < MAX_SUPPLY + 2, "Too many tokens are to be created. Max supply is 8000");
        require(number_of_tokens + balanceOf(msg.sender) <= 20, "1 address can hold max 20 NFTs");
		require(number_of_tokens > 0, "Please mint at least 1 Ape");
        
        for(uint256 i = 0; i < number_of_tokens; i++) {
            _safeMint(msg.sender, _tokenIdCounter.current());
            _tokenIdCounter.increment();
        }
        for (uint256 i = 0; i < total_teams; i++){
            teams[team_addresses[i]].balance += msg.value * teams[team_addresses[i]].share / 100;
        }
        TOTAL_SUPPLY += number_of_tokens;
    }
    
    function withdraw(address payable to_address) external {
        require(teams[msg.sender].balance > 0, "Sorry! You have nothing to withdraw.");
        require(to_address != address(0) && to_address != address(this));
        require(msg.sender != address(0) && msg.sender != address(this));
		require(withdrawal_enabled == true, "Please try again later.");
        to_address.transfer(teams[msg.sender].balance);
        teams[msg.sender].balance = 0;
    }

    function getTeamMemberBalance(address my_address) external view returns (uint256){
        return teams[my_address].balance;
    }
	
	function safeMint(address to) external onlyOwner {
        _safeMint(to, _tokenIdCounter.current());
        _tokenIdCounter.increment();
        TOTAL_SUPPLY += 1;
    }

    function safeMintMultiple(address[] memory receivers) external onlyOwner {
        for (uint256 i = 0; i < receivers.length; i++){
            _safeMint(receivers[i], _tokenIdCounter.current());
            _tokenIdCounter.increment();
        }
        TOTAL_SUPPLY += receivers.length;
    }

    function _baseURI() internal view override returns (string memory) {
        return base_url;
    }
    
    function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return string(abi.encodePacked(super.tokenURI(tokenId), ".json"));
    }

    function toggle() external onlyOwner returns(bool) {
		if (withdrawal_enabled == true){
			withdrawal_enabled = false;
            return false;
		} else {
			withdrawal_enabled = true;
            return true;
		}
	}

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"APE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTING_PAUSED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PASS_CONTRACT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEALED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"wl_addresses","type":"address[]"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"my_address","type":"address"}],"name":"getTeamMemberBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number_of_tokens","type":"uint256"}],"name":"mintApe","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number_of_tokens","type":"uint256"}],"name":"mintApeForWhitelisted","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"revealApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"safeMintMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pass_address","type":"address"}],"name":"setPassContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"ape_owners","type":"address[]"},{"internalType":"uint8[]","name":"qs","type":"uint8[]"}],"name":"transformToAddressesWithNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelist_sale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to_address","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600c553480156200001657600080fd5b50604080518082018252600c81526b26b7b7b71020b832902630b160a11b60208083019182528351808501909452600384526213505360ea1b908401528151919291620000669160009162000491565b5080516200007c90600190602084019062000491565b50505062000099620000936200043260201b60201c565b62000436565b600d8054600f805461ffff191661010117905560ff60ff60a81b01191660011790557f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e380547384629c04d07fc89220e7dc970a1fb127bcd86f476001600160a01b03199091168117909155604080516060810182526000808252603260208084019182528451808601865260028152610a0d60f31b8183015294840194855294909152600b845281517ff8b2c42ddeef65ed5b7970112db9dd2dad5b5122299d0e32079a90f081ee75ea90815590517ff8b2c42ddeef65ed5b7970112db9dd2dad5b5122299d0e32079a90f081ee75eb55915180519193620001c1927ff8b2c42ddeef65ed5b7970112db9dd2dad5b5122299d0e32079a90f081ee75ec929091019062000491565b50507fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc780546001600160a01b03191673c8e40f13434f1dfa4072382d15f8a00add0ba4819081179091556040805160608101825260008082526026602083810191825284518086018652600681526514dd1cd59b1960d21b8183015294840194855294909152600b845281517fef21754d7639b416578b3ec93a2a470497a78b30d5bb668249deca88b0752db190815590517fef21754d7639b416578b3ec93a2a470497a78b30d5bb668249deca88b0752db255915180519194509192620002ce927fef21754d7639b416578b3ec93a2a470497a78b30d5bb668249deca88b0752db39291019062000491565b50507fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba880546001600160a01b031916731eac73484bcf66564d896213e06d6c5d013244a4908117909155604080516060810182526000808252600c6020838101918252845180860186526003815262105b9960ea1b8183015294840194855294909152600b845281517fa01ee1cb010f9613294ba4fa97edeafb099c0890df0c9c96805c1bd4513cbff890815590517fa01ee1cb010f9613294ba4fa97edeafb099c0890df0c9c96805c1bd4513cbff955915180519194509192620003d8927fa01ee1cb010f9613294ba4fa97edeafb099c0890df0c9c96805c1bd4513cbffa9291019062000491565b509050506003600981905550620003fb60086200048860201b62001a261760201c565b6040518060600160405280603681526020016200323d6036913980516200042b91600e9160209091019062000491565b5062000574565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b8280546200049f9062000537565b90600052602060002090601f016020900481019282620004c357600085556200050e565b82601f10620004de57805160ff19168380011785556200050e565b828001600101855582156200050e579182015b828111156200050e578251825591602001919060010190620004f1565b506200051c92915062000520565b5090565b5b808211156200051c576000815560010162000521565b600181811c908216806200054c57607f821691505b602082108114156200056e57634e487b7160e01b600052602260045260246000fd5b50919050565b612cb980620005846000396000f3fe60806040526004361061021a5760003560e01c80636352211e11610123578063a76a9587116100ab578063d445cc9c1161006f578063d445cc9c1461060f578063d4d44c7414610622578063e985e9c514610642578063f2fde38b1461068b578063f6e024a8146106ab57600080fd5b8063a76a95871461056e578063b88d4fde1461058f578063c87b56dd146105af578063c9ca02fb146105cf578063d1e82fb0146105ef57600080fd5b80638456cb59116100f25780638456cb59146104f35780638da5cb5b1461050857806395d89b4114610526578063a22cb4651461053b578063a723533e1461055b57600080fd5b80636352211e1461047f57806370a082311461049f578063715018a6146104bf578063780a707a146104d457600080fd5b806323b872dd116101a657806340d097c31161017557806340d097c3146103de57806342842e0e146103fe57806351cff8d91461041e5780635966a5b91461043e578063607c86fe1461046357600080fd5b806323b872dd1461037e57806332cb6b0c1461039e5780633f4ba83a146103b457806340a3d246146103c957600080fd5b8063095ea7b3116101ed578063095ea7b3146102d05780630c1c972a146102f057806318160ddd146103055780631f4cec4714610328578063227275ef1461035e57600080fd5b806301ffc9a71461021f578063058d58451461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a366004612438565b6106c5565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046124f4565b6106d6565b005b34801561028257600080fd5b5061028b61078d565b60405161024b9190612595565b3480156102a457600080fd5b506102b86102b33660046125a8565b61081f565b6040516001600160a01b03909116815260200161024b565b3480156102dc57600080fd5b506102746102eb3660046125d6565b6108a7565b3480156102fc57600080fd5b506102746109bd565b34801561031157600080fd5b5061031a610a51565b60405190815260200161024b565b34801561033457600080fd5b5061031a610343366004612602565b6001600160a01b03166000908152600b602052604090205490565b34801561036a57600080fd5b506102746103793660046126b7565b610a67565b34801561038a57600080fd5b506102746103993660046126ec565b610af8565b3480156103aa57600080fd5b5061031a611f4081565b3480156103c057600080fd5b50610274610b29565b3480156103d557600080fd5b5061023f610bb6565b3480156103ea57600080fd5b506102746103f9366004612602565b610c17565b34801561040a57600080fd5b506102746104193660046126ec565b610c7c565b34801561042a57600080fd5b50610274610439366004612602565b610c97565b34801561044a57600080fd5b50600d546102b89061010090046001600160a01b031681565b34801561046f57600080fd5b5061031a67013fbe85edc9000081565b34801561048b57600080fd5b506102b861049a3660046125a8565b610df0565b3480156104ab57600080fd5b5061031a6104ba366004612602565b610e67565b3480156104cb57600080fd5b50610274610eee565b3480156104e057600080fd5b50600f5461023f90610100900460ff1681565b3480156104ff57600080fd5b50610274610f24565b34801561051457600080fd5b506007546001600160a01b03166102b8565b34801561053257600080fd5b5061028b610fb0565b34801561054757600080fd5b5061027461055636600461272d565b610fbf565b6102746105693660046125a8565b611084565b34801561057a57600080fd5b50600d5461023f90600160a81b900460ff1681565b34801561059b57600080fd5b506102746105aa36600461276b565b611361565b3480156105bb57600080fd5b5061028b6105ca3660046125a8565b611399565b3480156105db57600080fd5b506102746105ea366004612602565b6113ef565b3480156105fb57600080fd5b5061027461060a3660046127eb565b611441565b61027461061d3660046125a8565b61157f565b34801561062e57600080fd5b5061027461063d3660046126b7565b61190c565b34801561064e57600080fd5b5061023f61065d3660046128b6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561069757600080fd5b506102746106a6366004612602565b61198b565b3480156106b757600080fd5b50600d5461023f9060ff1681565b60006106d082611a2f565b92915050565b6007546001600160a01b031633146107095760405162461bcd60e51b8152600401610700906128e4565b60405180910390fd5b600d54600160a81b900460ff16156107635760405162461bcd60e51b815260206004820152601960248201527f417065732061726520616c72656164792072657665616c6564000000000000006044820152606401610700565b805161077690600e906020840190612389565b5050600d805460ff60a81b1916600160a81b179055565b60606000805461079c90612919565b80601f01602080910402602001604051908101604052809291908181526020018280546107c890612919565b80156108155780601f106107ea57610100808354040283529160200191610815565b820191906000526020600020905b8154815290600101906020018083116107f857829003601f168201915b5050505050905090565b600061082a82611a7f565b61088b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610700565b506000908152600460205260409020546001600160a01b031690565b60006108b282610df0565b9050806001600160a01b0316836001600160a01b031614156109205760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610700565b336001600160a01b038216148061093c575061093c813361065d565b6109ae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610700565b6109b88383611a9c565b505050565b6007546001600160a01b031633146109e75760405162461bcd60e51b8152600401610700906128e4565b600f5460ff610100909104161515600114610a445760405162461bcd60e51b815260206004820152601d60248201527f5075626c69632053616c6520697320616c7265616479206163746976650000006044820152606401610700565b600f805461ff0019169055565b60006001600c54610a62919061296a565b905090565b6007546001600160a01b03163314610a915760405162461bcd60e51b8152600401610700906128e4565b60005b8151811015610af457600760106000848481518110610ab557610ab5612981565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610aec90612997565b915050610a94565b5050565b610b023382611b0a565b610b1e5760405162461bcd60e51b8152600401610700906129b2565b6109b8838383611bf4565b6007546001600160a01b03163314610b535760405162461bcd60e51b8152600401610700906128e4565b600d5460ff161515600114610baa5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720697320616c726561647920756e70617573656400000000006044820152606401610700565b600d805460ff19169055565b6007546000906001600160a01b03163314610be35760405162461bcd60e51b8152600401610700906128e4565b600f5460ff16151560011415610c035750600f805460ff19169055600090565b50600f805460ff1916600190811790915590565b6007546001600160a01b03163314610c415760405162461bcd60e51b8152600401610700906128e4565b610c5381610c4e60085490565b611d94565b610c61600880546001019055565b6001600c6000828254610c749190612a03565b909155505050565b6109b883838360405180602001604052806000815250611361565b336000908152600b6020526040902054610cff5760405162461bcd60e51b8152602060048201526024808201527f536f7272792120596f752068617665206e6f7468696e6720746f2077697468646044820152633930bb9760e11b6064820152608401610700565b6001600160a01b03811615801590610d2057506001600160a01b0381163014155b610d2957600080fd5b3315801590610d385750333014155b610d4157600080fd5b600f5460ff161515600114610d985760405162461bcd60e51b815260206004820152601760248201527f506c656173652074727920616761696e206c617465722e0000000000000000006044820152606401610700565b336000908152600b60205260408082205490516001600160a01b0384169282156108fc02929190818181858888f19350505050158015610ddc573d6000803e3d6000fd5b5050336000908152600b6020526040812055565b6000818152600260205260408120546001600160a01b0316806106d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610700565b60006001600160a01b038216610ed25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610700565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610f185760405162461bcd60e51b8152600401610700906128e4565b610f226000611dae565b565b6007546001600160a01b03163314610f4e5760405162461bcd60e51b8152600401610700906128e4565b600d5460ff1615610fa15760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6720697320616c726561647920706175736564000000000000006044820152606401610700565b600d805460ff19166001179055565b60606001805461079c90612919565b6001600160a01b0382163314156110185760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610700565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f54610100900460ff16156110f65760405162461bcd60e51b815260206004820152603160248201527f5075626c69632073616c65206973206e6f74206163746976652e20506c65617360448201527032903a393c9030b3b0b4b7103630ba32b960791b6064820152608401610700565b600d5460ff16156111195760405162461bcd60e51b815260040161070090612a1b565b33158015906111285750333014155b61113157600080fd5b346111448267013fbe85edc90000612a5e565b11156111925760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610700565b61119f611f406002612a03565b81600c546111ad9190612a03565b106111ca5760405162461bcd60e51b815260040161070090612a7d565b60146111d533610e67565b6111df9083612a03565b111561122d5760405162461bcd60e51b815260206004820152601e60248201527f3120616464726573732063616e20686f6c64206d6178203230204e46547300006044820152606401610700565b6000811161127d5760405162461bcd60e51b815260206004820152601a60248201527f506c65617365206d696e74206174206c656173742031204170650000000000006044820152606401610700565b60005b818110156112b55761129533610c4e60085490565b6112a3600880546001019055565b806112ad81612997565b915050611280565b5060005b60095481101561134e576000818152600a60209081526040808320546001600160a01b03168352600b9091529020600101546064906112f89034612a5e565b6113029190612ae8565b6000828152600a60209081526040808320546001600160a01b03168352600b90915281208054909190611336908490612a03565b9091555081905061134681612997565b9150506112b9565b5080600c6000828254610c749190612a03565b61136b3383611b0a565b6113875760405162461bcd60e51b8152600401610700906129b2565b61139384848484611e00565b50505050565b60606113a482611a7f565b6113c05760405162461bcd60e51b815260040161070090612afc565b6113c982611e33565b6040516020016113d99190612b4b565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146114195760405162461bcd60e51b8152600401610700906128e4565b600d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6007546001600160a01b0316331461146b5760405162461bcd60e51b8152600401610700906128e4565b80518251146114bc5760405162461bcd60e51b815260206004820152601960248201527f4c69737473206d7573742062652073616d65206c656e677468000000000000006044820152606401610700565b60005b82518110156109b85760005b8282815181106114dd576114dd612981565b602002602001015160ff168160ff1610156115385761151884838151811061150757611507612981565b6020026020010151610c4e60085490565b611526600880546001019055565b8061153081612b74565b9150506114cb565b5081818151811061154b5761154b612981565b602002602001015160ff16600c60008282546115679190612a03565b9091555081905061157781612997565b9150506114bf565b600f5460ff6101009091041615156001146116105760405162461bcd60e51b8152602060048201526044602482018190527f5075626c69632073616c65206973206163746976652e20506c65617365207573908201527f652066756e6374696f6e206d696e74417065286e756d6265725f6f665f746f6b606482015263656e732960e01b608482015260a401610700565b600d5460ff16156116335760405162461bcd60e51b815260040161070090612a1b565b33158015906116425750333014155b61164b57600080fd5b3461165e8267013fbe85edc90000612a5e565b11156116ac5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610700565b600081116116fc5760405162461bcd60e51b815260206004820152601a60248201527f506c65617365206d696e74206174206c656173742031204170650000000000006044820152606401610700565b611709611f406002612a03565b81600c546117179190612a03565b106117345760405162461bcd60e51b815260040161070090612a7d565b3360009081526010602052604090205481106118045760405162461bcd60e51b815260206004820152607a60248201527f57686974656c69737465642075736572732063616e207075726368617365207560448201527f7020746f2036204e4654732e2045697468657220796f7520617265206e6f742060648201527f77686974656c6973746564206f7220796f75206861766520616c72656164792060848201527f626f7567687420746865206d6178696d756d20616d6f756e742e00000000000060a482015260c401610700565b60005b8181101561183c5761181c33610c4e60085490565b61182a600880546001019055565b8061183481612997565b915050611807565b5060005b6009548110156118d5576000818152600a60209081526040808320546001600160a01b03168352600b90915290206001015460649061187f9034612a5e565b6118899190612ae8565b6000828152600a60209081526040808320546001600160a01b03168352600b909152812080549091906118bd908490612a03565b909155508190506118cd81612997565b915050611840565b5080600c60008282546118e89190612a03565b90915550503360009081526010602052604081208054839290610c7490849061296a565b6007546001600160a01b031633146119365760405162461bcd60e51b8152600401610700906128e4565b60005b81518110156119775761195782828151811061150757611507612981565b611965600880546001019055565b8061196f81612997565b915050611939565b508051600c6000828254610c749190612a03565b6007546001600160a01b031633146119b55760405162461bcd60e51b8152600401610700906128e4565b6001600160a01b038116611a1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610700565b611a2381611dae565b50565b80546001019055565b60006001600160e01b031982166380ac58cd60e01b1480611a6057506001600160e01b03198216635b5e139f60e01b145b806106d057506301ffc9a760e01b6001600160e01b03198316146106d0565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ad182610df0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b1582611a7f565b611b765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610700565b6000611b8183610df0565b9050806001600160a01b0316846001600160a01b03161480611bbc5750836001600160a01b0316611bb18461081f565b6001600160a01b0316145b80611bec57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c0782610df0565b6001600160a01b031614611c6f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610700565b6001600160a01b038216611cd15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610700565b611cdc600082611a9c565b6001600160a01b0383166000908152600360205260408120805460019290611d0590849061296a565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d33908490612a03565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610af4828260405180602001604052806000815250611f95565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e0b848484611bf4565b611e1784848484611fc8565b6113935760405162461bcd60e51b815260040161070090612b94565b6060611e3e82611a7f565b611ea45760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610700565b60008281526006602052604081208054611ebd90612919565b80601f0160208091040260200160405190810160405280929190818152602001828054611ee990612919565b8015611f365780601f10611f0b57610100808354040283529160200191611f36565b820191906000526020600020905b815481529060010190602001808311611f1957829003601f168201915b505050505090506000611f476120c6565b9050805160001415611f5a575092915050565b815115611f8c578082604051602001611f74929190612be6565b60405160208183030381529060405292505050919050565b611bec846120d5565b611f9f8383612158565b611fac6000848484611fc8565b6109b85760405162461bcd60e51b815260040161070090612b94565b60006001600160a01b0384163b156120bb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061200c903390899088908890600401612c15565b6020604051808303816000875af1925050508015612047575060408051601f3d908101601f1916820190925261204491810190612c52565b60015b6120a1573d808015612075576040519150601f19603f3d011682016040523d82523d6000602084013e61207a565b606091505b5080516120995760405162461bcd60e51b815260040161070090612b94565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bec565b506001949350505050565b6060600e805461079c90612919565b60606120e082611a7f565b6120fc5760405162461bcd60e51b815260040161070090612afc565b60006121066120c6565b905060008151116121265760405180602001604052806000815250612151565b806121308461228b565b604051602001612141929190612be6565b6040516020818303038152906040525b9392505050565b6001600160a01b0382166121ae5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610700565b6121b781611a7f565b156122045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610700565b6001600160a01b038216600090815260036020526040812080546001929061222d908490612a03565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816122af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d957806122c381612997565b91506122d29050600a83612ae8565b91506122b3565b60008167ffffffffffffffff8111156122f4576122f4612455565b6040519080825280601f01601f19166020018201604052801561231e576020820181803683370190505b5090505b8415611bec5761233360018361296a565b9150612340600a86612c6f565b61234b906030612a03565b60f81b81838151811061236057612360612981565b60200101906001600160f81b031916908160001a905350612382600a86612ae8565b9450612322565b82805461239590612919565b90600052602060002090601f0160209004810192826123b757600085556123fd565b82601f106123d057805160ff19168380011785556123fd565b828001600101855582156123fd579182015b828111156123fd5782518255916020019190600101906123e2565b5061240992915061240d565b5090565b5b80821115612409576000815560010161240e565b6001600160e01b031981168114611a2357600080fd5b60006020828403121561244a57600080fd5b813561215181612422565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561249457612494612455565b604052919050565b600067ffffffffffffffff8311156124b6576124b6612455565b6124c9601f8401601f191660200161246b565b90508281528383830111156124dd57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561250657600080fd5b813567ffffffffffffffff81111561251d57600080fd5b8201601f8101841361252e57600080fd5b611bec8482356020840161249c565b60005b83811015612558578181015183820152602001612540565b838111156113935750506000910152565b6000815180845261258181602086016020860161253d565b601f01601f19169290920160200192915050565b6020815260006121516020830184612569565b6000602082840312156125ba57600080fd5b5035919050565b6001600160a01b0381168114611a2357600080fd5b600080604083850312156125e957600080fd5b82356125f4816125c1565b946020939093013593505050565b60006020828403121561261457600080fd5b8135612151816125c1565b600067ffffffffffffffff82111561263957612639612455565b5060051b60200190565b600082601f83011261265457600080fd5b813560206126696126648361261f565b61246b565b82815260059290921b8401810191818101908684111561268857600080fd5b8286015b848110156126ac57803561269f816125c1565b835291830191830161268c565b509695505050505050565b6000602082840312156126c957600080fd5b813567ffffffffffffffff8111156126e057600080fd5b611bec84828501612643565b60008060006060848603121561270157600080fd5b833561270c816125c1565b9250602084013561271c816125c1565b929592945050506040919091013590565b6000806040838503121561274057600080fd5b823561274b816125c1565b91506020830135801515811461276057600080fd5b809150509250929050565b6000806000806080858703121561278157600080fd5b843561278c816125c1565b9350602085013561279c816125c1565b925060408501359150606085013567ffffffffffffffff8111156127bf57600080fd5b8501601f810187136127d057600080fd5b6127df8782356020840161249c565b91505092959194509250565b600080604083850312156127fe57600080fd5b823567ffffffffffffffff8082111561281657600080fd5b61282286838701612643565b935060209150818501358181111561283957600080fd5b85019050601f8101861361284c57600080fd5b803561285a6126648261261f565b81815260059190911b8201830190838101908883111561287957600080fd5b928401925b828410156128a757833560ff811681146128985760008081fd5b8252928401929084019061287e565b80955050505050509250929050565b600080604083850312156128c957600080fd5b82356128d4816125c1565b91506020830135612760816125c1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061292d57607f821691505b6020821081141561294e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561297c5761297c612954565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156129ab576129ab612954565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612a1657612a16612954565b500190565b60208082526023908201527f536f72727921204d696e74696e672069732063757272656e746c79207061757360408201526232b21760e91b606082015260800190565b6000816000190483118215151615612a7857612a78612954565b500290565b60208082526035908201527f546f6f206d616e7920746f6b656e732061726520746f206265206372656174656040820152740642e204d617820737570706c79206973203830303605c1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612af757612af7612ad2565b500490565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60008251612b5d81846020870161253d565b64173539b7b760d91b920191825250600501919050565b600060ff821660ff811415612b8b57612b8b612954565b60010192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612bf881846020880161253d565b835190830190612c0c81836020880161253d565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c4890830184612569565b9695505050505050565b600060208284031215612c6457600080fd5b815161215181612422565b600082612c7e57612c7e612ad2565b50069056fea2646970667358221220528de904934b4ac54e55aca44d4938f010ee74f71e6828a5f4e778df19e6f59e64736f6c634300080b0033697066733a2f2f516d5567635061716b46713946756b6e5a783767533255564742774c6747467568466561557a6164765a466867562f

Deployed Bytecode

0x60806040526004361061021a5760003560e01c80636352211e11610123578063a76a9587116100ab578063d445cc9c1161006f578063d445cc9c1461060f578063d4d44c7414610622578063e985e9c514610642578063f2fde38b1461068b578063f6e024a8146106ab57600080fd5b8063a76a95871461056e578063b88d4fde1461058f578063c87b56dd146105af578063c9ca02fb146105cf578063d1e82fb0146105ef57600080fd5b80638456cb59116100f25780638456cb59146104f35780638da5cb5b1461050857806395d89b4114610526578063a22cb4651461053b578063a723533e1461055b57600080fd5b80636352211e1461047f57806370a082311461049f578063715018a6146104bf578063780a707a146104d457600080fd5b806323b872dd116101a657806340d097c31161017557806340d097c3146103de57806342842e0e146103fe57806351cff8d91461041e5780635966a5b91461043e578063607c86fe1461046357600080fd5b806323b872dd1461037e57806332cb6b0c1461039e5780633f4ba83a146103b457806340a3d246146103c957600080fd5b8063095ea7b3116101ed578063095ea7b3146102d05780630c1c972a146102f057806318160ddd146103055780631f4cec4714610328578063227275ef1461035e57600080fd5b806301ffc9a71461021f578063058d58451461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a366004612438565b6106c5565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046124f4565b6106d6565b005b34801561028257600080fd5b5061028b61078d565b60405161024b9190612595565b3480156102a457600080fd5b506102b86102b33660046125a8565b61081f565b6040516001600160a01b03909116815260200161024b565b3480156102dc57600080fd5b506102746102eb3660046125d6565b6108a7565b3480156102fc57600080fd5b506102746109bd565b34801561031157600080fd5b5061031a610a51565b60405190815260200161024b565b34801561033457600080fd5b5061031a610343366004612602565b6001600160a01b03166000908152600b602052604090205490565b34801561036a57600080fd5b506102746103793660046126b7565b610a67565b34801561038a57600080fd5b506102746103993660046126ec565b610af8565b3480156103aa57600080fd5b5061031a611f4081565b3480156103c057600080fd5b50610274610b29565b3480156103d557600080fd5b5061023f610bb6565b3480156103ea57600080fd5b506102746103f9366004612602565b610c17565b34801561040a57600080fd5b506102746104193660046126ec565b610c7c565b34801561042a57600080fd5b50610274610439366004612602565b610c97565b34801561044a57600080fd5b50600d546102b89061010090046001600160a01b031681565b34801561046f57600080fd5b5061031a67013fbe85edc9000081565b34801561048b57600080fd5b506102b861049a3660046125a8565b610df0565b3480156104ab57600080fd5b5061031a6104ba366004612602565b610e67565b3480156104cb57600080fd5b50610274610eee565b3480156104e057600080fd5b50600f5461023f90610100900460ff1681565b3480156104ff57600080fd5b50610274610f24565b34801561051457600080fd5b506007546001600160a01b03166102b8565b34801561053257600080fd5b5061028b610fb0565b34801561054757600080fd5b5061027461055636600461272d565b610fbf565b6102746105693660046125a8565b611084565b34801561057a57600080fd5b50600d5461023f90600160a81b900460ff1681565b34801561059b57600080fd5b506102746105aa36600461276b565b611361565b3480156105bb57600080fd5b5061028b6105ca3660046125a8565b611399565b3480156105db57600080fd5b506102746105ea366004612602565b6113ef565b3480156105fb57600080fd5b5061027461060a3660046127eb565b611441565b61027461061d3660046125a8565b61157f565b34801561062e57600080fd5b5061027461063d3660046126b7565b61190c565b34801561064e57600080fd5b5061023f61065d3660046128b6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561069757600080fd5b506102746106a6366004612602565b61198b565b3480156106b757600080fd5b50600d5461023f9060ff1681565b60006106d082611a2f565b92915050565b6007546001600160a01b031633146107095760405162461bcd60e51b8152600401610700906128e4565b60405180910390fd5b600d54600160a81b900460ff16156107635760405162461bcd60e51b815260206004820152601960248201527f417065732061726520616c72656164792072657665616c6564000000000000006044820152606401610700565b805161077690600e906020840190612389565b5050600d805460ff60a81b1916600160a81b179055565b60606000805461079c90612919565b80601f01602080910402602001604051908101604052809291908181526020018280546107c890612919565b80156108155780601f106107ea57610100808354040283529160200191610815565b820191906000526020600020905b8154815290600101906020018083116107f857829003601f168201915b5050505050905090565b600061082a82611a7f565b61088b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610700565b506000908152600460205260409020546001600160a01b031690565b60006108b282610df0565b9050806001600160a01b0316836001600160a01b031614156109205760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610700565b336001600160a01b038216148061093c575061093c813361065d565b6109ae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610700565b6109b88383611a9c565b505050565b6007546001600160a01b031633146109e75760405162461bcd60e51b8152600401610700906128e4565b600f5460ff610100909104161515600114610a445760405162461bcd60e51b815260206004820152601d60248201527f5075626c69632053616c6520697320616c7265616479206163746976650000006044820152606401610700565b600f805461ff0019169055565b60006001600c54610a62919061296a565b905090565b6007546001600160a01b03163314610a915760405162461bcd60e51b8152600401610700906128e4565b60005b8151811015610af457600760106000848481518110610ab557610ab5612981565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610aec90612997565b915050610a94565b5050565b610b023382611b0a565b610b1e5760405162461bcd60e51b8152600401610700906129b2565b6109b8838383611bf4565b6007546001600160a01b03163314610b535760405162461bcd60e51b8152600401610700906128e4565b600d5460ff161515600114610baa5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720697320616c726561647920756e70617573656400000000006044820152606401610700565b600d805460ff19169055565b6007546000906001600160a01b03163314610be35760405162461bcd60e51b8152600401610700906128e4565b600f5460ff16151560011415610c035750600f805460ff19169055600090565b50600f805460ff1916600190811790915590565b6007546001600160a01b03163314610c415760405162461bcd60e51b8152600401610700906128e4565b610c5381610c4e60085490565b611d94565b610c61600880546001019055565b6001600c6000828254610c749190612a03565b909155505050565b6109b883838360405180602001604052806000815250611361565b336000908152600b6020526040902054610cff5760405162461bcd60e51b8152602060048201526024808201527f536f7272792120596f752068617665206e6f7468696e6720746f2077697468646044820152633930bb9760e11b6064820152608401610700565b6001600160a01b03811615801590610d2057506001600160a01b0381163014155b610d2957600080fd5b3315801590610d385750333014155b610d4157600080fd5b600f5460ff161515600114610d985760405162461bcd60e51b815260206004820152601760248201527f506c656173652074727920616761696e206c617465722e0000000000000000006044820152606401610700565b336000908152600b60205260408082205490516001600160a01b0384169282156108fc02929190818181858888f19350505050158015610ddc573d6000803e3d6000fd5b5050336000908152600b6020526040812055565b6000818152600260205260408120546001600160a01b0316806106d05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610700565b60006001600160a01b038216610ed25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610700565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610f185760405162461bcd60e51b8152600401610700906128e4565b610f226000611dae565b565b6007546001600160a01b03163314610f4e5760405162461bcd60e51b8152600401610700906128e4565b600d5460ff1615610fa15760405162461bcd60e51b815260206004820152601960248201527f4d696e74696e6720697320616c726561647920706175736564000000000000006044820152606401610700565b600d805460ff19166001179055565b60606001805461079c90612919565b6001600160a01b0382163314156110185760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610700565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f54610100900460ff16156110f65760405162461bcd60e51b815260206004820152603160248201527f5075626c69632073616c65206973206e6f74206163746976652e20506c65617360448201527032903a393c9030b3b0b4b7103630ba32b960791b6064820152608401610700565b600d5460ff16156111195760405162461bcd60e51b815260040161070090612a1b565b33158015906111285750333014155b61113157600080fd5b346111448267013fbe85edc90000612a5e565b11156111925760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610700565b61119f611f406002612a03565b81600c546111ad9190612a03565b106111ca5760405162461bcd60e51b815260040161070090612a7d565b60146111d533610e67565b6111df9083612a03565b111561122d5760405162461bcd60e51b815260206004820152601e60248201527f3120616464726573732063616e20686f6c64206d6178203230204e46547300006044820152606401610700565b6000811161127d5760405162461bcd60e51b815260206004820152601a60248201527f506c65617365206d696e74206174206c656173742031204170650000000000006044820152606401610700565b60005b818110156112b55761129533610c4e60085490565b6112a3600880546001019055565b806112ad81612997565b915050611280565b5060005b60095481101561134e576000818152600a60209081526040808320546001600160a01b03168352600b9091529020600101546064906112f89034612a5e565b6113029190612ae8565b6000828152600a60209081526040808320546001600160a01b03168352600b90915281208054909190611336908490612a03565b9091555081905061134681612997565b9150506112b9565b5080600c6000828254610c749190612a03565b61136b3383611b0a565b6113875760405162461bcd60e51b8152600401610700906129b2565b61139384848484611e00565b50505050565b60606113a482611a7f565b6113c05760405162461bcd60e51b815260040161070090612afc565b6113c982611e33565b6040516020016113d99190612b4b565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146114195760405162461bcd60e51b8152600401610700906128e4565b600d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6007546001600160a01b0316331461146b5760405162461bcd60e51b8152600401610700906128e4565b80518251146114bc5760405162461bcd60e51b815260206004820152601960248201527f4c69737473206d7573742062652073616d65206c656e677468000000000000006044820152606401610700565b60005b82518110156109b85760005b8282815181106114dd576114dd612981565b602002602001015160ff168160ff1610156115385761151884838151811061150757611507612981565b6020026020010151610c4e60085490565b611526600880546001019055565b8061153081612b74565b9150506114cb565b5081818151811061154b5761154b612981565b602002602001015160ff16600c60008282546115679190612a03565b9091555081905061157781612997565b9150506114bf565b600f5460ff6101009091041615156001146116105760405162461bcd60e51b8152602060048201526044602482018190527f5075626c69632073616c65206973206163746976652e20506c65617365207573908201527f652066756e6374696f6e206d696e74417065286e756d6265725f6f665f746f6b606482015263656e732960e01b608482015260a401610700565b600d5460ff16156116335760405162461bcd60e51b815260040161070090612a1b565b33158015906116425750333014155b61164b57600080fd5b3461165e8267013fbe85edc90000612a5e565b11156116ac5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610700565b600081116116fc5760405162461bcd60e51b815260206004820152601a60248201527f506c65617365206d696e74206174206c656173742031204170650000000000006044820152606401610700565b611709611f406002612a03565b81600c546117179190612a03565b106117345760405162461bcd60e51b815260040161070090612a7d565b3360009081526010602052604090205481106118045760405162461bcd60e51b815260206004820152607a60248201527f57686974656c69737465642075736572732063616e207075726368617365207560448201527f7020746f2036204e4654732e2045697468657220796f7520617265206e6f742060648201527f77686974656c6973746564206f7220796f75206861766520616c72656164792060848201527f626f7567687420746865206d6178696d756d20616d6f756e742e00000000000060a482015260c401610700565b60005b8181101561183c5761181c33610c4e60085490565b61182a600880546001019055565b8061183481612997565b915050611807565b5060005b6009548110156118d5576000818152600a60209081526040808320546001600160a01b03168352600b90915290206001015460649061187f9034612a5e565b6118899190612ae8565b6000828152600a60209081526040808320546001600160a01b03168352600b909152812080549091906118bd908490612a03565b909155508190506118cd81612997565b915050611840565b5080600c60008282546118e89190612a03565b90915550503360009081526010602052604081208054839290610c7490849061296a565b6007546001600160a01b031633146119365760405162461bcd60e51b8152600401610700906128e4565b60005b81518110156119775761195782828151811061150757611507612981565b611965600880546001019055565b8061196f81612997565b915050611939565b508051600c6000828254610c749190612a03565b6007546001600160a01b031633146119b55760405162461bcd60e51b8152600401610700906128e4565b6001600160a01b038116611a1a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610700565b611a2381611dae565b50565b80546001019055565b60006001600160e01b031982166380ac58cd60e01b1480611a6057506001600160e01b03198216635b5e139f60e01b145b806106d057506301ffc9a760e01b6001600160e01b03198316146106d0565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ad182610df0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b1582611a7f565b611b765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610700565b6000611b8183610df0565b9050806001600160a01b0316846001600160a01b03161480611bbc5750836001600160a01b0316611bb18461081f565b6001600160a01b0316145b80611bec57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c0782610df0565b6001600160a01b031614611c6f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610700565b6001600160a01b038216611cd15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610700565b611cdc600082611a9c565b6001600160a01b0383166000908152600360205260408120805460019290611d0590849061296a565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d33908490612a03565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610af4828260405180602001604052806000815250611f95565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e0b848484611bf4565b611e1784848484611fc8565b6113935760405162461bcd60e51b815260040161070090612b94565b6060611e3e82611a7f565b611ea45760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610700565b60008281526006602052604081208054611ebd90612919565b80601f0160208091040260200160405190810160405280929190818152602001828054611ee990612919565b8015611f365780601f10611f0b57610100808354040283529160200191611f36565b820191906000526020600020905b815481529060010190602001808311611f1957829003601f168201915b505050505090506000611f476120c6565b9050805160001415611f5a575092915050565b815115611f8c578082604051602001611f74929190612be6565b60405160208183030381529060405292505050919050565b611bec846120d5565b611f9f8383612158565b611fac6000848484611fc8565b6109b85760405162461bcd60e51b815260040161070090612b94565b60006001600160a01b0384163b156120bb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061200c903390899088908890600401612c15565b6020604051808303816000875af1925050508015612047575060408051601f3d908101601f1916820190925261204491810190612c52565b60015b6120a1573d808015612075576040519150601f19603f3d011682016040523d82523d6000602084013e61207a565b606091505b5080516120995760405162461bcd60e51b815260040161070090612b94565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bec565b506001949350505050565b6060600e805461079c90612919565b60606120e082611a7f565b6120fc5760405162461bcd60e51b815260040161070090612afc565b60006121066120c6565b905060008151116121265760405180602001604052806000815250612151565b806121308461228b565b604051602001612141929190612be6565b6040516020818303038152906040525b9392505050565b6001600160a01b0382166121ae5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610700565b6121b781611a7f565b156122045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610700565b6001600160a01b038216600090815260036020526040812080546001929061222d908490612a03565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816122af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d957806122c381612997565b91506122d29050600a83612ae8565b91506122b3565b60008167ffffffffffffffff8111156122f4576122f4612455565b6040519080825280601f01601f19166020018201604052801561231e576020820181803683370190505b5090505b8415611bec5761233360018361296a565b9150612340600a86612c6f565b61234b906030612a03565b60f81b81838151811061236057612360612981565b60200101906001600160f81b031916908160001a905350612382600a86612ae8565b9450612322565b82805461239590612919565b90600052602060002090601f0160209004810192826123b757600085556123fd565b82601f106123d057805160ff19168380011785556123fd565b828001600101855582156123fd579182015b828111156123fd5782518255916020019190600101906123e2565b5061240992915061240d565b5090565b5b80821115612409576000815560010161240e565b6001600160e01b031981168114611a2357600080fd5b60006020828403121561244a57600080fd5b813561215181612422565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561249457612494612455565b604052919050565b600067ffffffffffffffff8311156124b6576124b6612455565b6124c9601f8401601f191660200161246b565b90508281528383830111156124dd57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561250657600080fd5b813567ffffffffffffffff81111561251d57600080fd5b8201601f8101841361252e57600080fd5b611bec8482356020840161249c565b60005b83811015612558578181015183820152602001612540565b838111156113935750506000910152565b6000815180845261258181602086016020860161253d565b601f01601f19169290920160200192915050565b6020815260006121516020830184612569565b6000602082840312156125ba57600080fd5b5035919050565b6001600160a01b0381168114611a2357600080fd5b600080604083850312156125e957600080fd5b82356125f4816125c1565b946020939093013593505050565b60006020828403121561261457600080fd5b8135612151816125c1565b600067ffffffffffffffff82111561263957612639612455565b5060051b60200190565b600082601f83011261265457600080fd5b813560206126696126648361261f565b61246b565b82815260059290921b8401810191818101908684111561268857600080fd5b8286015b848110156126ac57803561269f816125c1565b835291830191830161268c565b509695505050505050565b6000602082840312156126c957600080fd5b813567ffffffffffffffff8111156126e057600080fd5b611bec84828501612643565b60008060006060848603121561270157600080fd5b833561270c816125c1565b9250602084013561271c816125c1565b929592945050506040919091013590565b6000806040838503121561274057600080fd5b823561274b816125c1565b91506020830135801515811461276057600080fd5b809150509250929050565b6000806000806080858703121561278157600080fd5b843561278c816125c1565b9350602085013561279c816125c1565b925060408501359150606085013567ffffffffffffffff8111156127bf57600080fd5b8501601f810187136127d057600080fd5b6127df8782356020840161249c565b91505092959194509250565b600080604083850312156127fe57600080fd5b823567ffffffffffffffff8082111561281657600080fd5b61282286838701612643565b935060209150818501358181111561283957600080fd5b85019050601f8101861361284c57600080fd5b803561285a6126648261261f565b81815260059190911b8201830190838101908883111561287957600080fd5b928401925b828410156128a757833560ff811681146128985760008081fd5b8252928401929084019061287e565b80955050505050509250929050565b600080604083850312156128c957600080fd5b82356128d4816125c1565b91506020830135612760816125c1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061292d57607f821691505b6020821081141561294e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561297c5761297c612954565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156129ab576129ab612954565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612a1657612a16612954565b500190565b60208082526023908201527f536f72727921204d696e74696e672069732063757272656e746c79207061757360408201526232b21760e91b606082015260800190565b6000816000190483118215151615612a7857612a78612954565b500290565b60208082526035908201527f546f6f206d616e7920746f6b656e732061726520746f206265206372656174656040820152740642e204d617820737570706c79206973203830303605c1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612af757612af7612ad2565b500490565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60008251612b5d81846020870161253d565b64173539b7b760d91b920191825250600501919050565b600060ff821660ff811415612b8b57612b8b612954565b60010192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612bf881846020880161253d565b835190830190612c0c81836020880161253d565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c4890830184612569565b9695505050505050565b600060208284031215612c6457600080fd5b815161215181612422565b600082612c7e57612c7e612ad2565b50069056fea2646970667358221220528de904934b4ac54e55aca44d4938f010ee74f71e6828a5f4e778df19e6f59e64736f6c634300080b0033

Deployed Bytecode Sourcemap

58023:7656:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65490:186;;;;;;;;;;-1:-1:-1;65490:186:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;65490:186:0;;;;;;;;60938:191;;;;;;;;;;-1:-1:-1;60938:191:0;;;;;:::i;:::-;;:::i;:::-;;20804:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;22363:221::-;;;;;;;;;;-1:-1:-1;22363:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2972:32:1;;;2954:51;;2942:2;2927:18;22363:221:0;2808:203:1;21886:411:0;;;;;;;;;;-1:-1:-1;21886:411:0;;;;;:::i;:::-;;:::i;60284:146::-;;;;;;;;;;;;;:::i;59869:93::-;;;;;;;;;;;;;:::i;:::-;;;3618:25:1;;;3606:2;3591:18;59869:93:0;3472:177:1;63946:132:0;;;;;;;;;;-1:-1:-1;63946:132:0;;;;;:::i;:::-;-1:-1:-1;;;;;64045:17:0;64019:7;64045:17;;;:5;:17;;;;;:25;;63946:132;59534:199;;;;;;;;;;-1:-1:-1;59534:199:0;;;;;:::i;:::-;;:::i;23253:339::-;;;;;;;;;;-1:-1:-1;23253:339:0;;;;;:::i;:::-;;:::i;58344:41::-;;;;;;;;;;;;58381:4;58344:41;;60126:152;;;;;;;;;;;;;:::i;64971:225::-;;;;;;;;;;;;;:::i;64084:174::-;;;;;;;;;;-1:-1:-1;64084:174:0;;;;;:::i;:::-;;:::i;23663:185::-;;;;;;;;;;-1:-1:-1;23663:185:0;;;;;:::i;:::-;;:::i;63472:466::-;;;;;;;;;;-1:-1:-1;63472:466:0;;;;;:::i;:::-;;:::i;58469:36::-;;;;;;;;;;-1:-1:-1;58469:36:0;;;;;;;-1:-1:-1;;;;;58469:36:0;;;58392:53;;;;;;;;;;;;58428:17;58392:53;;20498:239;;;;;;;;;;-1:-1:-1;20498:239:0;;;;;:::i;:::-;;:::i;20228:208::-;;;;;;;;;;-1:-1:-1;20228:208:0;;;;;:::i;:::-;;:::i;45370:94::-;;;;;;;;;;;;;:::i;58603:26::-;;;;;;;;;;-1:-1:-1;58603:26:0;;;;;;;;;;;59970:148;;;;;;;;;;;;;:::i;44719:87::-;;;;;;;;;;-1:-1:-1;44792:6:0;;-1:-1:-1;;;;;44792:6:0;44719:87;;20973:104;;;;;;;;;;;;;:::i;22656:295::-;;;;;;;;;;-1:-1:-1;22656:295:0;;;;;:::i;:::-;;:::i;62373:1087::-;;;;;;:::i;:::-;;:::i;58514:20::-;;;;;;;;;;-1:-1:-1;58514:20:0;;;;-1:-1:-1;;;58514:20:0;;;;;;23919:328;;;;;;;;;;-1:-1:-1;23919:328:0;;;;;:::i;:::-;;:::i;64686:277::-;;;;;;;;;;-1:-1:-1;64686:277:0;;;;;:::i;:::-;;:::i;59741:120::-;;;;;;;;;;-1:-1:-1;59741:120:0;;;;;:::i;:::-;;:::i;60438:492::-;;;;;;;;;;-1:-1:-1;60438:492:0;;;;;:::i;:::-;;:::i;61135:1226::-;;;;;;:::i;:::-;;:::i;64266:299::-;;;;;;;;;;-1:-1:-1;64266:299:0;;;;;:::i;:::-;;:::i;23022:164::-;;;;;;;;;;-1:-1:-1;23022:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;23143:25:0;;;23119:4;23143:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;23022:164;45619:192;;;;;;;;;;-1:-1:-1;45619:192:0;;;;;:::i;:::-;;:::i;58311:26::-;;;;;;;;;;-1:-1:-1;58311:26:0;;;;;;;;65490:186;65603:4;65632:36;65656:11;65632:23;:36::i;:::-;65625:43;65490:186;-1:-1:-1;;65490:186:0:o;60938:191::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;;;;;;;;;61019:8:::1;::::0;-1:-1:-1;;;61019:8:0;::::1;;;:17;61011:55;;;::::0;-1:-1:-1;;;61011:55:0;;9397:2:1;61011:55:0::1;::::0;::::1;9379:21:1::0;9436:2;9416:18;;;9409:30;9475:27;9455:18;;;9448:55;9520:18;;61011:55:0::1;9195:349:1::0;61011:55:0::1;61077:18:::0;;::::1;::::0;:8:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;;61106:8:0::1;:15:::0;;-1:-1:-1;;;;61106:15:0::1;-1:-1:-1::0;;;61106:15:0::1;::::0;;60938:191::o;20804:100::-;20858:13;20891:5;20884:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20804:100;:::o;22363:221::-;22439:7;22467:16;22475:7;22467;:16::i;:::-;22459:73;;;;-1:-1:-1;;;22459:73:0;;10136:2:1;22459:73:0;;;10118:21:1;10175:2;10155:18;;;10148:30;10214:34;10194:18;;;10187:62;-1:-1:-1;;;10265:18:1;;;10258:42;10317:19;;22459:73:0;9934:408:1;22459:73:0;-1:-1:-1;22552:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;22552:24:0;;22363:221::o;21886:411::-;21967:13;21983:23;21998:7;21983:14;:23::i;:::-;21967:39;;22031:5;-1:-1:-1;;;;;22025:11:0;:2;-1:-1:-1;;;;;22025:11:0;;;22017:57;;;;-1:-1:-1;;;22017:57:0;;10549:2:1;22017:57:0;;;10531:21:1;10588:2;10568:18;;;10561:30;10627:34;10607:18;;;10600:62;-1:-1:-1;;;10678:18:1;;;10671:31;10719:19;;22017:57:0;10347:397:1;22017:57:0;15645:10;-1:-1:-1;;;;;22109:21:0;;;;:62;;-1:-1:-1;22134:37:0;22151:5;15645:10;23022:164;:::i;22134:37::-;22087:168;;;;-1:-1:-1;;;22087:168:0;;10951:2:1;22087:168:0;;;10933:21:1;10990:2;10970:18;;;10963:30;11029:34;11009:18;;;11002:62;11100:26;11080:18;;;11073:54;11144:19;;22087:168:0;10749:420:1;22087:168:0;22268:21;22277:2;22281:7;22268:8;:21::i;:::-;21956:341;21886:411;;:::o;60284:146::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;60342:14:::1;::::0;::::1;;::::0;;::::1;;:22;;:14;:22;60334:64;;;::::0;-1:-1:-1;;;60334:64:0;;11376:2:1;60334:64:0::1;::::0;::::1;11358:21:1::0;11415:2;11395:18;;;11388:30;11454:31;11434:18;;;11427:59;11503:18;;60334:64:0::1;11174:353:1::0;60334:64:0::1;60403:14;:22:::0;;-1:-1:-1;;60403:22:0::1;::::0;;60284:146::o;59869:93::-;59912:7;59953:1;59938:12;;:16;;;;:::i;:::-;59931:23;;59869:93;:::o;59534:199::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;59623:9:::1;59618:108;59642:12;:19;59638:1;:23;59618:108;;;59713:1;59682:11;:28;59694:12;59707:1;59694:15;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;59682:28:0::1;-1:-1:-1::0;;;;;59682:28:0::1;;;;;;;;;;;;:32;;;;59663:3;;;;;:::i;:::-;;;;59618:108;;;;59534:199:::0;:::o;23253:339::-;23448:41;15645:10;23481:7;23448:18;:41::i;:::-;23440:103;;;;-1:-1:-1;;;23440:103:0;;;;;;;:::i;:::-;23556:28;23566:4;23572:2;23576:7;23556:9;:28::i;60126:152::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;60183:14:::1;::::0;::::1;;:22;;:14:::0;:22:::1;60175:62;;;::::0;-1:-1:-1;;;60175:62:0;;12686:2:1;60175:62:0::1;::::0;::::1;12668:21:1::0;12725:2;12705:18;;;12698:30;12764:29;12744:18;;;12737:57;12811:18;;60175:62:0::1;12484:351:1::0;60175:62:0::1;60248:14;:22:::0;;-1:-1:-1;;60248:22:0::1;::::0;;60126:152::o;64971:225::-;44792:6;;65016:4;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;65031:18:::1;::::0;::::1;;:26;;:18:::0;:26:::1;65027:165;;;-1:-1:-1::0;65064:18:0::1;:26:::0;;-1:-1:-1;;65064:26:0::1;::::0;;65085:5:::1;64971:225:::0;:::o;65027:165::-:1;-1:-1:-1::0;65135:18:0::1;:25:::0;;-1:-1:-1;;65135:25:0::1;65156:4;65135:25:::0;;::::1;::::0;;;64971:225;:::o;64084:174::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;64144:40:::1;64154:2;64158:25;:15;47421:14:::0;;47329:114;64158:25:::1;64144:9;:40::i;:::-;64195:27;:15;47540:19:::0;;47558:1;47540:19;;;47451:127;64195:27:::1;64249:1;64233:12;;:17;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;64084:174:0:o;23663:185::-;23801:39;23818:4;23824:2;23828:7;23801:39;;;;;;;;;;;;:16;:39::i;63472:466::-;63552:10;63574:1;63546:17;;;:5;:17;;;;;:25;63538:78;;;;-1:-1:-1;;;63538:78:0;;13175:2:1;63538:78:0;;;13157:21:1;13214:2;13194:18;;;13187:30;13253:34;13233:18;;;13226:62;-1:-1:-1;;;13304:18:1;;;13297:34;13348:19;;63538:78:0;12973:400:1;63538:78:0;-1:-1:-1;;;;;63635:24:0;;;;;;:55;;-1:-1:-1;;;;;;63663:27:0;;63685:4;63663:27;;63635:55;63627:64;;;;;;63710:10;:24;;;;:55;;-1:-1:-1;63738:10:0;63760:4;63738:27;;63710:55;63702:64;;;;;;63779:18;;;;:26;;:18;:26;63771:62;;;;-1:-1:-1;;;63771:62:0;;13580:2:1;63771:62:0;;;13562:21:1;13619:2;13599:18;;;13592:30;13658:25;13638:18;;;13631:53;13701:18;;63771:62:0;13378:347:1;63771:62:0;63870:10;63864:17;;;;:5;:17;;;;;;:25;63844:46;;-1:-1:-1;;;;;63844:19:0;;;:46;;;;;63864:25;63844:46;;63864:17;63844:46;63864:25;63844:19;:46;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;63907:10:0;63929:1;63901:17;;;:5;:17;;;;;:29;63472:466::o;20498:239::-;20570:7;20606:16;;;:7;:16;;;;;;-1:-1:-1;;;;;20606:16:0;20641:19;20633:73;;;;-1:-1:-1;;;20633:73:0;;13932:2:1;20633:73:0;;;13914:21:1;13971:2;13951:18;;;13944:30;14010:34;13990:18;;;13983:62;-1:-1:-1;;;14061:18:1;;;14054:39;14110:19;;20633:73:0;13730:405:1;20228:208:0;20300:7;-1:-1:-1;;;;;20328:19:0;;20320:74;;;;-1:-1:-1;;;20320:74:0;;14342:2:1;20320:74:0;;;14324:21:1;14381:2;14361:18;;;14354:30;14420:34;14400:18;;;14393:62;-1:-1:-1;;;14471:18:1;;;14464:40;14521:19;;20320:74:0;14140:406:1;20320:74:0;-1:-1:-1;;;;;;20412:16:0;;;;;:9;:16;;;;;;;20228:208::o;45370:94::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;45435:21:::1;45453:1;45435:9;:21::i;:::-;45370:94::o:0;59970:148::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;60025:14:::1;::::0;::::1;;:23;60017:61;;;::::0;-1:-1:-1;;;60017:61:0;;14753:2:1;60017:61:0::1;::::0;::::1;14735:21:1::0;14792:2;14772:18;;;14765:30;14831:27;14811:18;;;14804:55;14876:18;;60017:61:0::1;14551:349:1::0;60017:61:0::1;60089:14;:21:::0;;-1:-1:-1;;60089:21:0::1;60106:4;60089:21;::::0;;59970:148::o;20973:104::-;21029:13;21062:7;21055:14;;;;;:::i;22656:295::-;-1:-1:-1;;;;;22759:24:0;;15645:10;22759:24;;22751:62;;;;-1:-1:-1;;;22751:62:0;;15107:2:1;22751:62:0;;;15089:21:1;15146:2;15126:18;;;15119:30;15185:27;15165:18;;;15158:55;15230:18;;22751:62:0;14905:349:1;22751:62:0;15645:10;22826:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;22826:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;22826:53:0;;;;;;;;;;22895:48;;540:41:1;;;22826:42:0;;15645:10;22895:48;;513:18:1;22895:48:0;;;;;;;22656:295;;:::o;62373:1087::-;62445:14;;;;;;;:23;62437:85;;;;-1:-1:-1;;;62437:85:0;;15461:2:1;62437:85:0;;;15443:21:1;15500:2;15480:18;;;15473:30;15539:34;15519:18;;;15512:62;-1:-1:-1;;;15590:18:1;;;15583:47;15647:19;;62437:85:0;15259:413:1;62437:85:0;62541:14;;;;:23;62533:71;;;;-1:-1:-1;;;62533:71:0;;;;;;;:::i;:::-;62623:10;:24;;;;:55;;-1:-1:-1;62651:10:0;62673:4;62651:27;;62623:55;62615:64;;;;;;62730:9;62698:28;62710:16;58428:17;62698:28;:::i;:::-;:41;;62690:85;;;;-1:-1:-1;;;62690:85:0;;16456:2:1;62690:85:0;;;16438:21:1;16495:2;16475:18;;;16468:30;16534:33;16514:18;;;16507:61;16585:18;;62690:85:0;16254:355:1;62690:85:0;62828:14;58381:4;62841:1;62828:14;:::i;:::-;62809:16;62794:12;;:31;;;;:::i;:::-;:48;62786:114;;;;-1:-1:-1;;;62786:114:0;;;;;;;:::i;:::-;62963:2;62938:21;62948:10;62938:9;:21::i;:::-;62919:40;;:16;:40;:::i;:::-;:46;;62911:89;;;;-1:-1:-1;;;62911:89:0;;17238:2:1;62911:89:0;;;17220:21:1;17277:2;17257:18;;;17250:30;17316:32;17296:18;;;17289:60;17366:18;;62911:89:0;17036:354:1;62911:89:0;63032:1;63013:16;:20;63005:59;;;;-1:-1:-1;;;63005:59:0;;17597:2:1;63005:59:0;;;17579:21:1;17636:2;17616:18;;;17609:30;17675:28;17655:18;;;17648:56;17721:18;;63005:59:0;17395:350:1;63005:59:0;63089:9;63085:163;63108:16;63104:1;:20;63085:163;;;63146:48;63156:10;63168:25;:15;47421:14;;47329:114;63146:48;63209:27;:15;47540:19;;47558:1;47540:19;;;47451:127;63209:27;63126:3;;;;:::i;:::-;;;;63085:163;;;;63263:9;63258:152;63282:11;;63278:1;:15;63258:152;;;63362:24;63368:17;;;:14;:17;;;;;;;;;-1:-1:-1;;;;;63368:17:0;63362:24;;:5;:24;;;;;63368:17;63362:30;;63395:3;;63350:42;;:9;:42;:::i;:::-;:48;;;;:::i;:::-;63314:24;63320:17;;;:14;:17;;;;;;;;;-1:-1:-1;;;;;63320:17:0;63314:24;;:5;:24;;;;;:84;;:24;;;:84;;;;;:::i;:::-;;;;-1:-1:-1;63295:3:0;;-1:-1:-1;63295:3:0;;;:::i;:::-;;;;63258:152;;;;63436:16;63420:12;;:32;;;;;;;:::i;23919:328::-;24094:41;15645:10;24127:7;24094:18;:41::i;:::-;24086:103;;;;-1:-1:-1;;;24086:103:0;;;;;;;:::i;:::-;24200:39;24214:4;24220:2;24224:7;24233:5;24200:13;:39::i;:::-;23919:328;;;;:::o;64686:277::-;64777:13;64811:16;64819:7;64811;:16::i;:::-;64803:76;;;;-1:-1:-1;;;64803:76:0;;;;;;;:::i;:::-;64921:23;64936:7;64921:14;:23::i;:::-;64904:50;;;;;;;;:::i;:::-;;;;;;;;;;;;;64890:65;;64686:277;;;:::o;59741:120::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;59816:21:::1;:37:::0;;-1:-1:-1;;;;;59816:37:0;;::::1;;;-1:-1:-1::0;;;;;;59816:37:0;;::::1;::::0;;;::::1;::::0;;59741:120::o;60438:492::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;60599:2:::1;:9;60578:10;:17;:30;60570:68;;;::::0;-1:-1:-1;;;60570:68:0;;19073:2:1;60570:68:0::1;::::0;::::1;19055:21:1::0;19112:2;19092:18;;;19085:30;19151:27;19131:18;;;19124:55;19196:18;;60570:68:0::1;18871:349:1::0;60570:68:0::1;60654:9;60649:274;60673:10;:17;60669:1;:21;60649:274;;;60716:7;60711:165;60733:2;60736:1;60733:5;;;;;;;;:::i;:::-;;;;;;;60729:9;;:1;:9;;;60711:165;;;60763:51;60773:10;60784:1;60773:13;;;;;;;;:::i;:::-;;;;;;;60788:25;:15;47421:14:::0;;47329:114;60763:51:::1;60833:27;:15;47540:19:::0;;47558:1;47540:19;;;47451:127;60833:27:::1;60740:3:::0;::::1;::::0;::::1;:::i;:::-;;;;60711:165;;;;60906:2;60909:1;60906:5;;;;;;;;:::i;:::-;;;;;;;60890:21;;:12;;:21;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;60692:3:0;;-1:-1:-1;60692:3:0::1;::::0;::::1;:::i;:::-;;;;60649:274;;61135:1226:::0;61221:14;;;;;;;;:22;;:14;:22;61213:103;;;;-1:-1:-1;;;61213:103:0;;19607:2:1;61213:103:0;;;19589:21:1;19646:2;19626:18;;;19619:30;;;19685:34;19665:18;;;19658:62;19756:34;19736:18;;;19729:62;-1:-1:-1;;;19807:19:1;;;19800:35;19852:19;;61213:103:0;19405:472:1;61213:103:0;61335:14;;;;:23;61327:71;;;;-1:-1:-1;;;61327:71:0;;;;;;;:::i;:::-;61411:10;:24;;;;:55;;-1:-1:-1;61439:10:0;61461:4;61439:27;;61411:55;61403:64;;;;;;61512:9;61480:28;61492:16;58428:17;61480:28;:::i;:::-;:41;;61472:85;;;;-1:-1:-1;;;61472:85:0;;16456:2:1;61472:85:0;;;16438:21:1;16495:2;16475:18;;;16468:30;16534:33;16514:18;;;16507:61;16585:18;;61472:85:0;16254:355:1;61472:85:0;61589:1;61570:16;:20;61562:59;;;;-1:-1:-1;;;61562:59:0;;17597:2:1;61562:59:0;;;17579:21:1;17636:2;17616:18;;;17609:30;17675:28;17655:18;;;17648:56;17721:18;;61562:59:0;17395:350:1;61562:59:0;61674:14;58381:4;61687:1;61674:14;:::i;:::-;61655:16;61640:12;;:31;;;;:::i;:::-;:48;61632:114;;;;-1:-1:-1;;;61632:114:0;;;;;;;:::i;:::-;61790:10;61778:23;;;;:11;:23;;;;;;61759:42;;61751:177;;;;-1:-1:-1;;;61751:177:0;;20084:2:1;61751:177:0;;;20066:21:1;20123:3;20103:18;;;20096:31;20163:34;20143:18;;;20136:62;20234:34;20214:18;;;20207:62;20306:34;20285:19;;;20278:63;20378:28;20357:19;;;20350:57;20424:19;;61751:177:0;19882:567:1;61751:177:0;61941:9;61937:163;61960:16;61956:1;:20;61937:163;;;61998:48;62008:10;62020:25;:15;47421:14;;47329:114;61998:48;62061:27;:15;47540:19;;47558:1;47540:19;;;47451:127;62061:27;61978:3;;;;:::i;:::-;;;;61937:163;;;;62115:9;62110:152;62134:11;;62130:1;:15;62110:152;;;62214:24;62220:17;;;:14;:17;;;;;;;;;-1:-1:-1;;;;;62220:17:0;62214:24;;:5;:24;;;;;62220:17;62214:30;;62247:3;;62202:42;;:9;:42;:::i;:::-;:48;;;;:::i;:::-;62166:24;62172:17;;;:14;:17;;;;;;;;;-1:-1:-1;;;;;62172:17:0;62166:24;;:5;:24;;;;;:84;;:24;;;:84;;;;;:::i;:::-;;;;-1:-1:-1;62147:3:0;;-1:-1:-1;62147:3:0;;;:::i;:::-;;;;62110:152;;;;62288:16;62272:12;;:32;;;;;;;:::i;:::-;;;;-1:-1:-1;;62325:10:0;62313:23;;;;:11;:23;;;;;:43;;62340:16;;62313:23;:43;;62340:16;;62313:43;:::i;64266:299::-;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;64355:9:::1;64350:165;64374:9;:16;64370:1;:20;64350:165;;;64411:50;64421:9;64431:1;64421:12;;;;;;;;:::i;64411:50::-;64476:27;:15;47540:19:::0;;47558:1;47540:19;;;47451:127;64476:27:::1;64392:3:::0;::::1;::::0;::::1;:::i;:::-;;;;64350:165;;;;64541:9;:16;64525:12;;:32;;;;;;;:::i;45619:192::-:0;44792:6;;-1:-1:-1;;;;;44792:6:0;15645:10;44939:23;44931:68;;;;-1:-1:-1;;;44931:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;45708:22:0;::::1;45700:73;;;::::0;-1:-1:-1;;;45700:73:0;;20656:2:1;45700:73:0::1;::::0;::::1;20638:21:1::0;20695:2;20675:18;;;20668:30;20734:34;20714:18;;;20707:62;-1:-1:-1;;;20785:18:1;;;20778:36;20831:19;;45700:73:0::1;20454:402:1::0;45700:73:0::1;45784:19;45794:8;45784:9;:19::i;:::-;45619:192:::0;:::o;47451:127::-;47540:19;;47558:1;47540:19;;;47451:127::o;19859:305::-;19961:4;-1:-1:-1;;;;;;19998:40:0;;-1:-1:-1;;;19998:40:0;;:105;;-1:-1:-1;;;;;;;20055:48:0;;-1:-1:-1;;;20055:48:0;19998:105;:158;;;-1:-1:-1;;;;;;;;;;18575:40:0;;;20120:36;18466:157;25757:127;25822:4;25846:16;;;:7;:16;;;;;;-1:-1:-1;;;;;25846:16:0;:30;;;25757:127::o;29739:174::-;29814:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;29814:29:0;-1:-1:-1;;;;;29814:29:0;;;;;;;;:24;;29868:23;29814:24;29868:14;:23::i;:::-;-1:-1:-1;;;;;29859:46:0;;;;;;;;;;;29739:174;;:::o;26051:348::-;26144:4;26169:16;26177:7;26169;:16::i;:::-;26161:73;;;;-1:-1:-1;;;26161:73:0;;21063:2:1;26161:73:0;;;21045:21:1;21102:2;21082:18;;;21075:30;21141:34;21121:18;;;21114:62;-1:-1:-1;;;21192:18:1;;;21185:42;21244:19;;26161:73:0;20861:408:1;26161:73:0;26245:13;26261:23;26276:7;26261:14;:23::i;:::-;26245:39;;26314:5;-1:-1:-1;;;;;26303:16:0;:7;-1:-1:-1;;;;;26303:16:0;;:51;;;;26347:7;-1:-1:-1;;;;;26323:31:0;:20;26335:7;26323:11;:20::i;:::-;-1:-1:-1;;;;;26323:31:0;;26303:51;:87;;;-1:-1:-1;;;;;;23143:25:0;;;23119:4;23143:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;26358:32;26295:96;26051:348;-1:-1:-1;;;;26051:348:0:o;29043:578::-;29202:4;-1:-1:-1;;;;;29175:31:0;:23;29190:7;29175:14;:23::i;:::-;-1:-1:-1;;;;;29175:31:0;;29167:85;;;;-1:-1:-1;;;29167:85:0;;21476:2:1;29167:85:0;;;21458:21:1;21515:2;21495:18;;;21488:30;21554:34;21534:18;;;21527:62;-1:-1:-1;;;21605:18:1;;;21598:39;21654:19;;29167:85:0;21274:405:1;29167:85:0;-1:-1:-1;;;;;29271:16:0;;29263:65;;;;-1:-1:-1;;;29263:65:0;;21886:2:1;29263:65:0;;;21868:21:1;21925:2;21905:18;;;21898:30;21964:34;21944:18;;;21937:62;-1:-1:-1;;;22015:18:1;;;22008:34;22059:19;;29263:65:0;21684:400:1;29263:65:0;29445:29;29462:1;29466:7;29445:8;:29::i;:::-;-1:-1:-1;;;;;29487:15:0;;;;;;:9;:15;;;;;:20;;29506:1;;29487:15;:20;;29506:1;;29487:20;:::i;:::-;;;;-1:-1:-1;;;;;;;29518:13:0;;;;;;:9;:13;;;;;:18;;29535:1;;29518:13;:18;;29535:1;;29518:18;:::i;:::-;;;;-1:-1:-1;;29547:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;29547:21:0;-1:-1:-1;;;;;29547:21:0;;;;;;;;;29586:27;;29547:16;;29586:27;;;;;;;29043:578;;;:::o;26741:110::-;26817:26;26827:2;26831:7;26817:26;;;;;;;;;;;;:9;:26::i;45819:173::-;45894:6;;;-1:-1:-1;;;;;45911:17:0;;;-1:-1:-1;;;;;;45911:17:0;;;;;;;45944:40;;45894:6;;;45911:17;45894:6;;45944:40;;45875:16;;45944:40;45864:128;45819:173;:::o;25129:315::-;25286:28;25296:4;25302:2;25306:7;25286:9;:28::i;:::-;25333:48;25356:4;25362:2;25366:7;25375:5;25333:22;:48::i;:::-;25325:111;;;;-1:-1:-1;;;25325:111:0;;;;;;;:::i;40142:679::-;40215:13;40249:16;40257:7;40249;:16::i;:::-;40241:78;;;;-1:-1:-1;;;40241:78:0;;22710:2:1;40241:78:0;;;22692:21:1;22749:2;22729:18;;;22722:30;22788:34;22768:18;;;22761:62;-1:-1:-1;;;22839:18:1;;;22832:47;22896:19;;40241:78:0;22508:413:1;40241:78:0;40332:23;40358:19;;;:10;:19;;;;;40332:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40388:18;40409:10;:8;:10::i;:::-;40388:31;;40501:4;40495:18;40517:1;40495:23;40491:72;;;-1:-1:-1;40542:9:0;40142:679;-1:-1:-1;;40142:679:0:o;40491:72::-;40667:23;;:27;40663:108;;40742:4;40748:9;40725:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;40711:48;;;;40142:679;;;:::o;40663:108::-;40790:23;40805:7;40790:14;:23::i;27078:321::-;27208:18;27214:2;27218:7;27208:5;:18::i;:::-;27259:54;27290:1;27294:2;27298:7;27307:5;27259:22;:54::i;:::-;27237:154;;;;-1:-1:-1;;;27237:154:0;;;;;;;:::i;30478:799::-;30633:4;-1:-1:-1;;;;;30654:13:0;;8015:20;8063:8;30650:620;;30690:72;;-1:-1:-1;;;30690:72:0;;-1:-1:-1;;;;;30690:36:0;;;;;:72;;15645:10;;30741:4;;30747:7;;30756:5;;30690:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30690:72:0;;;;;;;;-1:-1:-1;;30690:72:0;;;;;;;;;;;;:::i;:::-;;;30686:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30932:13:0;;30928:272;;30975:60;;-1:-1:-1;;;30975:60:0;;;;;;;:::i;30928:272::-;31150:6;31144:13;31135:6;31131:2;31127:15;31120:38;30686:529;-1:-1:-1;;;;;;30813:51:0;-1:-1:-1;;;30813:51:0;;-1:-1:-1;30806:58:0;;30650:620;-1:-1:-1;31254:4:0;30478:799;;;;;;:::o;64573:101::-;64625:13;64658:8;64651:15;;;;;:::i;21148:334::-;21221:13;21255:16;21263:7;21255;:16::i;:::-;21247:76;;;;-1:-1:-1;;;21247:76:0;;;;;;;:::i;:::-;21336:21;21360:10;:8;:10::i;:::-;21336:34;;21412:1;21394:7;21388:21;:25;:86;;;;;;;;;;;;;;;;;21440:7;21449:18;:7;:16;:18::i;:::-;21423:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;21388:86;21381:93;21148:334;-1:-1:-1;;;21148:334:0:o;27735:382::-;-1:-1:-1;;;;;27815:16:0;;27807:61;;;;-1:-1:-1;;;27807:61:0;;24351:2:1;27807:61:0;;;24333:21:1;;;24370:18;;;24363:30;24429:34;24409:18;;;24402:62;24481:18;;27807:61:0;24149:356:1;27807:61:0;27888:16;27896:7;27888;:16::i;:::-;27887:17;27879:58;;;;-1:-1:-1;;;27879:58:0;;24712:2:1;27879:58:0;;;24694:21:1;24751:2;24731:18;;;24724:30;24790;24770:18;;;24763:58;24838:18;;27879:58:0;24510:352:1;27879:58:0;-1:-1:-1;;;;;28008:13:0;;;;;;:9;:13;;;;;:18;;28025:1;;28008:13;:18;;28025:1;;28008:18;:::i;:::-;;;;-1:-1:-1;;28037:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;28037:21:0;-1:-1:-1;;;;;28037:21:0;;;;;;;;28076:33;;28037:16;;;28076:33;;28037:16;;28076:33;27735:382;;:::o;16007:723::-;16063:13;16284:10;16280:53;;-1:-1:-1;;16311:10:0;;;;;;;;;;;;-1:-1:-1;;;16311:10:0;;;;;16007:723::o;16280:53::-;16358:5;16343:12;16399:78;16406:9;;16399:78;;16432:8;;;;:::i;:::-;;-1:-1:-1;16455:10:0;;-1:-1:-1;16463:2:0;16455:10;;:::i;:::-;;;16399:78;;;16487:19;16519:6;16509:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16509:17:0;;16487:39;;16537:154;16544:10;;16537:154;;16571:11;16581:1;16571:11;;:::i;:::-;;-1:-1:-1;16640:10:0;16648:2;16640:5;:10;:::i;:::-;16627:24;;:2;:24;:::i;:::-;16614:39;;16597:6;16604;16597:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;16597:56:0;;;;;;;;-1:-1:-1;16668:11:0;16677:2;16668:11;;:::i;:::-;;;16537:154;;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:127::-;653:10;648:3;644:20;641:1;634:31;684:4;681:1;674:15;708:4;705:1;698:15;724:275;795:2;789:9;860:2;841:13;;-1:-1:-1;;837:27:1;825:40;;895:18;880:34;;916:22;;;877:62;874:88;;;942:18;;:::i;:::-;978:2;971:22;724:275;;-1:-1:-1;724:275:1:o;1004:407::-;1069:5;1103:18;1095:6;1092:30;1089:56;;;1125:18;;:::i;:::-;1163:57;1208:2;1187:15;;-1:-1:-1;;1183:29:1;1214:4;1179:40;1163:57;:::i;:::-;1154:66;;1243:6;1236:5;1229:21;1283:3;1274:6;1269:3;1265:16;1262:25;1259:45;;;1300:1;1297;1290:12;1259:45;1349:6;1344:3;1337:4;1330:5;1326:16;1313:43;1403:1;1396:4;1387:6;1380:5;1376:18;1372:29;1365:40;1004:407;;;;;:::o;1416:451::-;1485:6;1538:2;1526:9;1517:7;1513:23;1509:32;1506:52;;;1554:1;1551;1544:12;1506:52;1594:9;1581:23;1627:18;1619:6;1616:30;1613:50;;;1659:1;1656;1649:12;1613:50;1682:22;;1735:4;1727:13;;1723:27;-1:-1:-1;1713:55:1;;1764:1;1761;1754:12;1713:55;1787:74;1853:7;1848:2;1835:16;1830:2;1826;1822:11;1787:74;:::i;1872:258::-;1944:1;1954:113;1968:6;1965:1;1962:13;1954:113;;;2044:11;;;2038:18;2025:11;;;2018:39;1990:2;1983:10;1954:113;;;2085:6;2082:1;2079:13;2076:48;;;-1:-1:-1;;2120:1:1;2102:16;;2095:27;1872:258::o;2135:::-;2177:3;2215:5;2209:12;2242:6;2237:3;2230:19;2258:63;2314:6;2307:4;2302:3;2298:14;2291:4;2284:5;2280:16;2258:63;:::i;:::-;2375:2;2354:15;-1:-1:-1;;2350:29:1;2341:39;;;;2382:4;2337:50;;2135:258;-1:-1:-1;;2135:258:1:o;2398:220::-;2547:2;2536:9;2529:21;2510:4;2567:45;2608:2;2597:9;2593:18;2585:6;2567:45;:::i;2623:180::-;2682:6;2735:2;2723:9;2714:7;2710:23;2706:32;2703:52;;;2751:1;2748;2741:12;2703:52;-1:-1:-1;2774:23:1;;2623:180;-1:-1:-1;2623:180:1:o;3016:131::-;-1:-1:-1;;;;;3091:31:1;;3081:42;;3071:70;;3137:1;3134;3127:12;3152:315;3220:6;3228;3281:2;3269:9;3260:7;3256:23;3252:32;3249:52;;;3297:1;3294;3287:12;3249:52;3336:9;3323:23;3355:31;3380:5;3355:31;:::i;:::-;3405:5;3457:2;3442:18;;;;3429:32;;-1:-1:-1;;;3152:315:1:o;3654:247::-;3713:6;3766:2;3754:9;3745:7;3741:23;3737:32;3734:52;;;3782:1;3779;3772:12;3734:52;3821:9;3808:23;3840:31;3865:5;3840:31;:::i;3906:183::-;3966:4;3999:18;3991:6;3988:30;3985:56;;;4021:18;;:::i;:::-;-1:-1:-1;4066:1:1;4062:14;4078:4;4058:25;;3906:183::o;4094:737::-;4148:5;4201:3;4194:4;4186:6;4182:17;4178:27;4168:55;;4219:1;4216;4209:12;4168:55;4255:6;4242:20;4281:4;4305:60;4321:43;4361:2;4321:43;:::i;:::-;4305:60;:::i;:::-;4399:15;;;4485:1;4481:10;;;;4469:23;;4465:32;;;4430:12;;;;4509:15;;;4506:35;;;4537:1;4534;4527:12;4506:35;4573:2;4565:6;4561:15;4585:217;4601:6;4596:3;4593:15;4585:217;;;4681:3;4668:17;4698:31;4723:5;4698:31;:::i;:::-;4742:18;;4780:12;;;;4618;;4585:217;;;-1:-1:-1;4820:5:1;4094:737;-1:-1:-1;;;;;;4094:737:1:o;4836:348::-;4920:6;4973:2;4961:9;4952:7;4948:23;4944:32;4941:52;;;4989:1;4986;4979:12;4941:52;5029:9;5016:23;5062:18;5054:6;5051:30;5048:50;;;5094:1;5091;5084:12;5048:50;5117:61;5170:7;5161:6;5150:9;5146:22;5117:61;:::i;5189:456::-;5266:6;5274;5282;5335:2;5323:9;5314:7;5310:23;5306:32;5303:52;;;5351:1;5348;5341:12;5303:52;5390:9;5377:23;5409:31;5434:5;5409:31;:::i;:::-;5459:5;-1:-1:-1;5516:2:1;5501:18;;5488:32;5529:33;5488:32;5529:33;:::i;:::-;5189:456;;5581:7;;-1:-1:-1;;;5635:2:1;5620:18;;;;5607:32;;5189:456::o;5910:416::-;5975:6;5983;6036:2;6024:9;6015:7;6011:23;6007:32;6004:52;;;6052:1;6049;6042:12;6004:52;6091:9;6078:23;6110:31;6135:5;6110:31;:::i;:::-;6160:5;-1:-1:-1;6217:2:1;6202:18;;6189:32;6259:15;;6252:23;6240:36;;6230:64;;6290:1;6287;6280:12;6230:64;6313:7;6303:17;;;5910:416;;;;;:::o;6331:795::-;6426:6;6434;6442;6450;6503:3;6491:9;6482:7;6478:23;6474:33;6471:53;;;6520:1;6517;6510:12;6471:53;6559:9;6546:23;6578:31;6603:5;6578:31;:::i;:::-;6628:5;-1:-1:-1;6685:2:1;6670:18;;6657:32;6698:33;6657:32;6698:33;:::i;:::-;6750:7;-1:-1:-1;6804:2:1;6789:18;;6776:32;;-1:-1:-1;6859:2:1;6844:18;;6831:32;6886:18;6875:30;;6872:50;;;6918:1;6915;6908:12;6872:50;6941:22;;6994:4;6986:13;;6982:27;-1:-1:-1;6972:55:1;;7023:1;7020;7013:12;6972:55;7046:74;7112:7;7107:2;7094:16;7089:2;7085;7081:11;7046:74;:::i;:::-;7036:84;;;6331:795;;;;;;;:::o;7131:1305::-;7247:6;7255;7308:2;7296:9;7287:7;7283:23;7279:32;7276:52;;;7324:1;7321;7314:12;7276:52;7364:9;7351:23;7393:18;7434:2;7426:6;7423:14;7420:34;;;7450:1;7447;7440:12;7420:34;7473:61;7526:7;7517:6;7506:9;7502:22;7473:61;:::i;:::-;7463:71;;7553:2;7543:12;;7608:2;7597:9;7593:18;7580:32;7637:2;7627:8;7624:16;7621:36;;;7653:1;7650;7643:12;7621:36;7676:24;;;-1:-1:-1;7731:4:1;7723:13;;7719:27;-1:-1:-1;7709:55:1;;7760:1;7757;7750:12;7709:55;7796:2;7783:16;7819:60;7835:43;7875:2;7835:43;:::i;7819:60::-;7913:15;;;7995:1;7991:10;;;;7983:19;;7979:28;;;7944:12;;;;8019:19;;;8016:39;;;8051:1;8048;8041:12;8016:39;8075:11;;;;8095:311;8111:6;8106:3;8103:15;8095:311;;;8191:3;8178:17;8239:4;8232:5;8228:16;8221:5;8218:27;8208:125;;8287:1;8316:2;8312;8305:14;8208:125;8346:18;;8128:12;;;;8384;;;;8095:311;;;8425:5;8415:15;;;;;;;7131:1305;;;;;:::o;8441:388::-;8509:6;8517;8570:2;8558:9;8549:7;8545:23;8541:32;8538:52;;;8586:1;8583;8576:12;8538:52;8625:9;8612:23;8644:31;8669:5;8644:31;:::i;:::-;8694:5;-1:-1:-1;8751:2:1;8736:18;;8723:32;8764:33;8723:32;8764:33;:::i;8834:356::-;9036:2;9018:21;;;9055:18;;;9048:30;9114:34;9109:2;9094:18;;9087:62;9181:2;9166:18;;8834:356::o;9549:380::-;9628:1;9624:12;;;;9671;;;9692:61;;9746:4;9738:6;9734:17;9724:27;;9692:61;9799:2;9791:6;9788:14;9768:18;9765:38;9762:161;;;9845:10;9840:3;9836:20;9833:1;9826:31;9880:4;9877:1;9870:15;9908:4;9905:1;9898:15;9762:161;;9549:380;;;:::o;11532:127::-;11593:10;11588:3;11584:20;11581:1;11574:31;11624:4;11621:1;11614:15;11648:4;11645:1;11638:15;11664:125;11704:4;11732:1;11729;11726:8;11723:34;;;11737:18;;:::i;:::-;-1:-1:-1;11774:9:1;;11664:125::o;11794:127::-;11855:10;11850:3;11846:20;11843:1;11836:31;11886:4;11883:1;11876:15;11910:4;11907:1;11900:15;11926:135;11965:3;-1:-1:-1;;11986:17:1;;11983:43;;;12006:18;;:::i;:::-;-1:-1:-1;12053:1:1;12042:13;;11926:135::o;12066:413::-;12268:2;12250:21;;;12307:2;12287:18;;;12280:30;12346:34;12341:2;12326:18;;12319:62;-1:-1:-1;;;12412:2:1;12397:18;;12390:47;12469:3;12454:19;;12066:413::o;12840:128::-;12880:3;12911:1;12907:6;12904:1;12901:13;12898:39;;;12917:18;;:::i;:::-;-1:-1:-1;12953:9:1;;12840:128::o;15677:399::-;15879:2;15861:21;;;15918:2;15898:18;;;15891:30;15957:34;15952:2;15937:18;;15930:62;-1:-1:-1;;;16023:2:1;16008:18;;16001:33;16066:3;16051:19;;15677:399::o;16081:168::-;16121:7;16187:1;16183;16179:6;16175:14;16172:1;16169:21;16164:1;16157:9;16150:17;16146:45;16143:71;;;16194:18;;:::i;:::-;-1:-1:-1;16234:9:1;;16081:168::o;16614:417::-;16816:2;16798:21;;;16855:2;16835:18;;;16828:30;16894:34;16889:2;16874:18;;16867:62;-1:-1:-1;;;16960:2:1;16945:18;;16938:51;17021:3;17006:19;;16614:417::o;17750:127::-;17811:10;17806:3;17802:20;17799:1;17792:31;17842:4;17839:1;17832:15;17866:4;17863:1;17856:15;17882:120;17922:1;17948;17938:35;;17953:18;;:::i;:::-;-1:-1:-1;17987:9:1;;17882:120::o;18007:411::-;18209:2;18191:21;;;18248:2;18228:18;;;18221:30;18287:34;18282:2;18267:18;;18260:62;-1:-1:-1;;;18353:2:1;18338:18;;18331:45;18408:3;18393:19;;18007:411::o;18423:443::-;18655:3;18693:6;18687:13;18709:53;18755:6;18750:3;18743:4;18735:6;18731:17;18709:53;:::i;:::-;-1:-1:-1;;;18784:16:1;;18809:22;;;-1:-1:-1;18858:1:1;18847:13;;18423:443;-1:-1:-1;18423:443:1:o;19225:175::-;19262:3;19306:4;19299:5;19295:16;19335:4;19326:7;19323:17;19320:43;;;19343:18;;:::i;:::-;19392:1;19379:15;;19225:175;-1:-1:-1;;19225:175:1:o;22089:414::-;22291:2;22273:21;;;22330:2;22310:18;;;22303:30;22369:34;22364:2;22349:18;;22342:62;-1:-1:-1;;;22435:2:1;22420:18;;22413:48;22493:3;22478:19;;22089:414::o;22926:470::-;23105:3;23143:6;23137:13;23159:53;23205:6;23200:3;23193:4;23185:6;23181:17;23159:53;:::i;:::-;23275:13;;23234:16;;;;23297:57;23275:13;23234:16;23331:4;23319:17;;23297:57;:::i;:::-;23370:20;;22926:470;-1:-1:-1;;;;22926:470:1:o;23401:489::-;-1:-1:-1;;;;;23670:15:1;;;23652:34;;23722:15;;23717:2;23702:18;;23695:43;23769:2;23754:18;;23747:34;;;23817:3;23812:2;23797:18;;23790:31;;;23595:4;;23838:46;;23864:19;;23856:6;23838:46;:::i;:::-;23830:54;23401:489;-1:-1:-1;;;;;;23401:489:1:o;23895:249::-;23964:6;24017:2;24005:9;23996:7;23992:23;23988:32;23985:52;;;24033:1;24030;24023:12;23985:52;24065:9;24059:16;24084:30;24108:5;24084:30;:::i;24867:112::-;24899:1;24925;24915:35;;24930:18;;:::i;:::-;-1:-1:-1;24964:9:1;;24867:112::o

Swarm Source

ipfs://528de904934b4ac54e55aca44d4938f010ee74f71e6828a5f4e778df19e6f59e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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