ETH Price: $2,498.14 (-2.07%)

Token

CosmoArena (METEROID)
 

Overview

Max Total Supply

356 METEROID

Holders

179

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
drslurp.eth
Balance
1 METEROID
0x13ED8515eA47b0B2dc20c7478F839E92b48f6A3b
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CosmoArena

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 31 : CosmoArena.sol
/***********************

  COSMOPOLITY 🪐
    -- METEOROIDS --
    
    cosmopolity.art

************************/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721BurnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./Cosmopolity.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract CosmoArena is
    IERC721MetadataUpgradeable,
    ERC721EnumerableUpgradeable,
    OwnableUpgradeable
{
    using ECDSA for bytes32;

    bool public mintable;
    address payable public feeAddress;
    uint256 public publicMintCount;
    string public baseURI;
    uint256 public currentPrice;
    string public contractURI;
    address public stylizerContractAddress;
    address guarantorAddress;
    uint256 public publicMintCeiling;

    mapping(address => mapping(string => bool)) public originClaimed;

    struct OriginTokenInfo {
        address originContractAddress;
        string originTokenId;
    }

    // duplicate initial token info for quick lookup on the client side
    mapping(uint256 => OriginTokenInfo) public originByRockId;

    function initialize(
        string memory name,
        string memory symbol,
        address payable _feeAddress,
        string memory initBaseURI
    ) public initializer {
        __ERC721_init(name, symbol);
        __Ownable_init();
        feeAddress = _feeAddress;
        baseURI = initBaseURI;

        publicMintCount = 0;
        currentPrice = 0.0 ether;
        publicMintCeiling = 50000;
    }

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

    function _getMessageHash(
        address _owner,
        address _styleTokenContractAddress,
        string memory _styleTokenId,
        uint256 _nonce
    ) public pure returns (bytes32) {
        string memory _message = "STYLE_TOKEN_OK_TO_USE";
        return
            keccak256(
                abi.encodePacked(
                    _message,
                    _owner,
                    _styleTokenContractAddress,
                    _styleTokenId,
                    _nonce
                )
            );
    }

    function _verify(
        address _owner,
        address _styleTokenContractAddress,
        string memory _styleTokenId,
        uint256 _nonce,
        bytes memory signature
    ) private view returns (bool) {
        bytes32 messageHash = _getMessageHash(
            _owner,
            _styleTokenContractAddress,
            _styleTokenId,
            _nonce
        );
        return
            messageHash.toEthSignedMessageHash().recover(signature) ==
            guarantorAddress;
    }

    function claimOne(
        address to,
        address originContractAddress,
        string memory originTokenId,
        uint256 nonce,
        bytes memory signature
    ) public payable {
        require(
            _verify(
                msg.sender,
                originContractAddress,
                originTokenId,
                nonce,
                signature
            ),
            "Invalid signature"
        );
        publicMintCount++;

        uint256 newRockId = 200 + publicMintCount;
        _mintRock(to, originContractAddress, originTokenId, newRockId);
    }

    function _mintRock(
        address to,
        address originContractAddress,
        string memory originTokenId,
        uint256 newRockId
    ) internal {
        require(
            totalSupply() + 1 <= publicMintCeiling,
            "Current total mint limit reached."
        );
        require(
            !originClaimed[originContractAddress][originTokenId],
            "The origin token is already used for claiming."
        );
        _assignOrigin(originContractAddress, originTokenId, newRockId);
        _mint(to, newRockId);
    }

    function _assignOrigin(
        address originContractAddress,
        string memory originTokenId,
        uint256 newRockId
    ) internal {
        originByRockId[newRockId] = OriginTokenInfo(
            originContractAddress,
            originTokenId
        );
        originClaimed[originContractAddress][originTokenId] = true;
    }

    function tokenExists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    /***** Owner Operations *****/
    function ownerSetBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function ownerSetFeeAddress(address payable _newAddress) public onlyOwner {
        feeAddress = _newAddress;
    }

    function ownerSetMintable(bool _mintable) public onlyOwner {
        mintable = _mintable;
    }

    function ownerSetStylizerContractAddress(address _addr) public onlyOwner {
        stylizerContractAddress = _addr;
    }

    function ownerWithdrawETH() public onlyOwner {
        Address.sendValue(feeAddress, address(this).balance);
    }

    function ownerSetCurrentPrice(uint256 _price) public onlyOwner {
        currentPrice = _price;
    }

    function ownerSetContractURI(string memory _newContractURI)
        public
        onlyOwner
    {
        contractURI = _newContractURI;
    }

    function ownerSetPublicMintCeiling(uint256 _newMintCeiling)
        public
        onlyOwner
    {
        publicMintCeiling = _newMintCeiling;
    }

    function ownerSetGuarantorAddress(address _addr) public onlyOwner {
        guarantorAddress = _addr;
    }

    function ownerBatchMirrorMint(
        address cosContractAdrress,
        uint256 start,
        uint256 end
    ) public onlyOwner {
        ERC721 cosmopolityContract = ERC721(cosContractAdrress);
        address currOwner;
        for (uint256 currTokenId = start; currTokenId <= end; currTokenId++) {
            currOwner = cosmopolityContract.ownerOf(currTokenId);
            _mint(currOwner, currTokenId);
        }
    }

    function ownerMint(
        address to,
        uint256 rockId,
        address originContractAddress,
        string memory originTokenId
    ) public onlyOwner {
        _mintRock(to, originContractAddress, originTokenId, rockId);
    }

    function ownerAssignOrigin(
        address originContractAddress,
        string memory originTokenId,
        uint256 newRockId
    ) public onlyOwner {
        _assignOrigin(originContractAddress, originTokenId, newRockId);
    }

    /***** End of Owner Operations *****/
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 3 of 31 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 4 of 31 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable 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.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) {
        return
            interfaceId == type(IERC721Upgradeable).interfaceId ||
            interfaceId == type(IERC721MetadataUpgradeable).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 = ERC721Upgradeable.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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[44] private __gap;
}

File 5 of 31 : ERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @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 ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal onlyInitializing {
    }

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }
    // 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(IERC165Upgradeable, ERC721Upgradeable) returns (bool) {
        return interfaceId == type(IERC721EnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Upgradeable.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 < ERC721EnumerableUpgradeable.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 = ERC721Upgradeable.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 = ERC721Upgradeable.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 This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[46] private __gap;
}

File 6 of 31 : IERC721MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

File 7 of 31 : ERC721BurnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "../../../utils/ContextUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721BurnableUpgradeable is Initializable, ContextUpgradeable, ERC721Upgradeable {
    function __ERC721Burnable_init() internal onlyInitializing {
    }

    function __ERC721Burnable_init_unchained() internal onlyInitializing {
    }
    /**
     * @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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 8 of 31 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 9 of 31 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 31 : Cosmopolity.sol
/*********************

  COSMOPOLITY 🪐
    
    cosmopolity.art

**********************/

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

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IMintPassContract.sol";

contract Cosmopolity is IERC721Metadata, ERC721Enumerable, Ownable {
    bool public mintable;
    address payable public feeAddress;
    uint256 public immutable maxNumberOfPieces = 8000;
    uint256 public publicMintCeiling = 200;
    uint256 public publicMintCount = 0;
    uint256 public maximumMintsPerTransaction = 2;
    string public baseURI;
    uint256 public currentPrice = 1.0 ether;
    bool public baseURILocked;
    string public contractURI;
    address public stylizerContractAddress;
    address _mintPassAddress;

    struct TokenGenesisInfo {
        address originContractAddress;
        uint256 initialTokenCount;
    }

    // duplicate initial token info for quick lookup on the client side
    mapping(uint256 => TokenGenesisInfo) public tokenGenesisInfo;

    constructor(
        string memory name,
        string memory symbol,
        address payable _feeAddress,
        string memory initBaseURI
    ) ERC721(name, symbol) {
        feeAddress = _feeAddress;
        baseURI = initBaseURI;
    }

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

    function mintMultiple(address to, uint256 numberOfTokens) public payable {
        require(
            msg.value == currentPrice * numberOfTokens,
            "Must send in the correct amount to mint Cosmopolity token(s)."
        );
        publicMintCount += numberOfTokens;
        require(
            publicMintCount <= publicMintCeiling,
            "Current public mint limit reached."
        );
        _mintMultiple(to, numberOfTokens);
    }

    function mintMultipleWithMintPasses(uint256[] memory mintPassTokenIds)
        public
        payable
    {
        IMintPass mintPassContract = IMintPass(_mintPassAddress);
        require(
            mintPassContract.isMintPassSalesActive() == true,
            "Mint pass sale is not active."
        );
        mintPassContract.expend(mintPassTokenIds, msg.value);
        _mintMultiple(msg.sender, mintPassTokenIds.length);
    }

    function _mintMultiple(address to, uint256 numberOfTokens) private {
        // mint
        require(mintable == true, "Minting is not active.");
        require(
            piecesLeft() >= numberOfTokens,
            "Not enough tokens left to mint."
        );
        require(
            numberOfTokens <= maximumMintsPerTransaction,
            "Minting too many."
        );

        for (uint256 i = 0; i < numberOfTokens; i++) {
            // figure out the token id
            uint256 newTokenId = totalSupply() + 1;
            _mintAssigningInitialTokens(to, newTokenId);
        }
    }

    function _mintAssigningInitialTokens(address to, uint256 newTokenId)
        private
    {
        uint256 newOwnerTokenCount = balanceOf(to) + 1;
        tokenGenesisInfo[newTokenId] = TokenGenesisInfo(to, newOwnerTokenCount);
        _mint(to, newTokenId);
    }

    function tokenExists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    function piecesLeft() public view returns (uint256) {
        return maxNumberOfPieces - totalSupply();
    }

    /***** Owner Operations *****/

    // TODO: artist proof mint function. make sure can only be called by owner
    // and only be called once

    function ownerSetBaseURI(string memory _newBaseURI) public onlyOwner {
        require(baseURILocked == false, "baseURI is permenantly locked.");
        baseURI = _newBaseURI;
    }

    function ownerSetFeeAddress(address payable _newAddress) public onlyOwner {
        feeAddress = _newAddress;
    }

    function ownerSetMintable(bool _mintable) public onlyOwner {
        mintable = _mintable;
    }

    function ownerSetStylizerContractAddress(address _addr) public onlyOwner {
        stylizerContractAddress = _addr;
    }

    function ownerSetAuctionContractAddress(address _addr) public onlyOwner {
        _mintPassAddress = _addr;
    }

    function ownerSetPublicMintCeiling(uint256 _newMintCeiling)
        public
        onlyOwner
    {
        publicMintCeiling = _newMintCeiling;
    }

    function ownerSetMaximumMintsPerTransaction(uint256 max) public onlyOwner {
        maximumMintsPerTransaction = max;
    }

    function ownerWithdrawETH() public onlyOwner {
        Address.sendValue(feeAddress, address(this).balance);
    }

    function ownerSetCurrentPrice(uint256 _price) public onlyOwner {
        currentPrice = _price;
    }

    function ownerDangerouslyPermanentlyLockBaseURI() public onlyOwner {
        // DANGER: this will permanently lock the baseURI
        baseURILocked = true;
    }

    function ownerSetContractURI(string memory _newContractURI)
        public
        onlyOwner
    {
        contractURI = _newContractURI;
    }

    /***** End of Owner Operations *****/
}

File 11 of 31 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 31 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 31 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 14 of 31 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 15 of 31 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 16 of 31 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 18 of 31 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165Upgradeable.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 31 : IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 20 of 31 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 21 of 31 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 22 of 31 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 23 of 31 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 24 of 31 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 25 of 31 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 26 of 31 : IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
    /**
     * @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);

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

File 27 of 31 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 28 of 31 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../utils/Context.sol";

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

File 29 of 31 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

File 30 of 31 : IMintPassContract.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IMintPass  {
    function isMintPassSalesActive() external returns (bool);
    function expend(uint256[] memory tokenIds,  uint256 totalAmountSent) external;
}

File 31 of 31 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

Contract Security Audit

Contract ABI

[{"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":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_styleTokenContractAddress","type":"address"},{"internalType":"string","name":"_styleTokenId","type":"string"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"_getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"originContractAddress","type":"address"},{"internalType":"string","name":"originTokenId","type":"string"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address payable","name":"_feeAddress","type":"address"},{"internalType":"string","name":"initBaseURI","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"originByRockId","outputs":[{"internalType":"address","name":"originContractAddress","type":"address"},{"internalType":"string","name":"originTokenId","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"}],"name":"originClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"originContractAddress","type":"address"},{"internalType":"string","name":"originTokenId","type":"string"},{"internalType":"uint256","name":"newRockId","type":"uint256"}],"name":"ownerAssignOrigin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"cosContractAdrress","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"ownerBatchMirrorMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"rockId","type":"uint256"},{"internalType":"address","name":"originContractAddress","type":"address"},{"internalType":"string","name":"originTokenId","type":"string"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"ownerSetBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"ownerSetContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"ownerSetCurrentPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newAddress","type":"address"}],"name":"ownerSetFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"ownerSetGuarantorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintable","type":"bool"}],"name":"ownerSetMintable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintCeiling","type":"uint256"}],"name":"ownerSetPublicMintCeiling","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"ownerSetStylizerContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerWithdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicMintCeiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stylizerContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"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"}]

608060405234801561001057600080fd5b50615fb880620000216000396000f3fe6080604052600436106102715760003560e01c80636646575c1161014f578063b88d4fde116100c1578063e6a070631161007a578063e6a0706314610977578063e8a3d485146109a0578063e985e9c5146109cb578063f2fde38b14610a08578063f5a63e4a14610a31578063f729950014610a5a57610271565b8063b88d4fde1461086d578063b9a87c0914610896578063c752d90d146108bf578063c87b56dd146108e8578063d9eaf26c14610925578063dcbfbebc1461094e57610271565b80638da5cb5b116101135780638da5cb5b1461077e57806395d89b41146107a95780639a298bad146107d45780639d1b464a146107f0578063a22cb4651461081b578063a75075711461084457610271565b80636646575c146106ab5780636c0360eb146106d45780636f7b9f2f146106ff57806370a082311461072a578063715018a61461076757610271565b806329c03961116101e85780634587b505116101ac5780634587b505146105895780634bf365df146105b25780634f6ccce7146105dd5780635d0e05e81461061a5780636352211e1461064557806363d580f71461068257610271565b806329c03961146104925780632f745c59146104cf57806334c057111461050c578063412753581461053557806342842e0e1461056057610271565b8063081812fc1161023a578063081812fc14610396578063095ea7b3146103d35780630d84d1ce146103fc57806318160ddd1461042757806323b872dd1461045257806327a910dc1461047b57610271565b8062923f9e1461027657806301ffc9a7146102b357806303e854b1146102f05780630647edcd1461032e57806306fdde031461036b575b600080fd5b34801561028257600080fd5b5061029d60048036038101906102989190614743565b610a83565b6040516102aa9190614e6a565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190614605565b610a95565b6040516102e79190614e6a565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190614743565b610b0f565b604051610325929190614e3a565b60405180910390f35b34801561033a57600080fd5b506103556004803603810190610350919061441b565b610bdc565b6040516103629190614e6a565b60405180910390f35b34801561037757600080fd5b50610380610c22565b60405161038d9190614ee5565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b89190614743565b610cb4565b6040516103ca9190614db8565b60405180910390f35b3480156103df57600080fd5b506103fa60048036038101906103f591906144d6565b610d39565b005b34801561040857600080fd5b50610411610e51565b60405161041e91906152a7565b60405180910390f35b34801561043357600080fd5b5061043c610e57565b60405161044991906152a7565b60405180910390f35b34801561045e57600080fd5b5061047960048036038101906104749190614315565b610e64565b005b34801561048757600080fd5b50610490610ec4565b005b34801561049e57600080fd5b506104b960048036038101906104b491906141f3565b610f6e565b6040516104c69190614e85565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f191906144d6565b610fe3565b60405161050391906152a7565b60405180910390f35b34801561051857600080fd5b50610533600480360381019061052e9190614657565b611088565b005b34801561054157600080fd5b5061054a61111e565b6040516105579190614dd3565b60405180910390f35b34801561056c57600080fd5b5061058760048036038101906105829190614315565b611144565b005b34801561059557600080fd5b506105b060048036038101906105ab919061413c565b611164565b005b3480156105be57600080fd5b506105c7611225565b6040516105d49190614e6a565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff9190614743565b611238565b60405161061191906152a7565b60405180910390f35b34801561062657600080fd5b5061062f6112cf565b60405161063c9190614db8565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190614743565b6112f6565b6040516106799190614db8565b60405180910390f35b34801561068e57600080fd5b506106a960048036038101906106a4919061418e565b6113a8565b005b3480156106b757600080fd5b506106d260048036038101906106cd919061446f565b611468565b005b3480156106e057600080fd5b506106e96114f4565b6040516106f69190614ee5565b60405180910390f35b34801561070b57600080fd5b50610714611582565b60405161072191906152a7565b60405180910390f35b34801561073657600080fd5b50610751600480360381019061074c919061413c565b611589565b60405161075e91906152a7565b60405180910390f35b34801561077357600080fd5b5061077c611641565b005b34801561078a57600080fd5b506107936116c9565b6040516107a09190614db8565b60405180910390f35b3480156107b557600080fd5b506107be6116f3565b6040516107cb9190614ee5565b60405180910390f35b6107ee60048036038101906107e9919061426e565b611785565b005b3480156107fc57600080fd5b50610805611810565b60405161081291906152a7565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d91906143df565b611816565b005b34801561085057600080fd5b5061086b60048036038101906108669190614512565b61182c565b005b34801561087957600080fd5b50610894600480360381019061088f9190614364565b6118ba565b005b3480156108a257600080fd5b506108bd60048036038101906108b89190614657565b61191c565b005b3480156108cb57600080fd5b506108e660048036038101906108e191906145dc565b6119b2565b005b3480156108f457600080fd5b5061090f600480360381019061090a9190614743565b611a4b565b60405161091c9190614ee5565b60405180910390f35b34801561093157600080fd5b5061094c6004803603810190610947919061458d565b611af2565b005b34801561095a57600080fd5b506109756004803603810190610970919061413c565b611c31565b005b34801561098357600080fd5b5061099e60048036038101906109999190614698565b611cf2565b005b3480156109ac57600080fd5b506109b5611e5e565b6040516109c29190614ee5565b60405180910390f35b3480156109d757600080fd5b506109f260048036038101906109ed91906141b7565b611eec565b6040516109ff9190614e6a565b60405180910390f35b348015610a1457600080fd5b50610a2f6004803603810190610a2a919061413c565b611f80565b005b348015610a3d57600080fd5b50610a586004803603810190610a539190614743565b612078565b005b348015610a6657600080fd5b50610a816004803603810190610a7c9190614743565b6120fe565b005b6000610a8e82612185565b9050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b085750610b07826121f1565b5b9050919050565b6101046020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001018054610b5990615531565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8590615531565b8015610bd25780601f10610ba757610100808354040283529160200191610bd2565b820191906000526020600020905b815481529060010190602001808311610bb557829003601f168201915b5050505050905082565b610103602052816000526040600020818051602081018201805184825260208301602085012081835280955050505050506000915091509054906101000a900460ff1681565b606060658054610c3190615531565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5d90615531565b8015610caa5780601f10610c7f57610100808354040283529160200191610caa565b820191906000526020600020905b815481529060010190602001808311610c8d57829003601f168201915b5050505050905090565b6000610cbf82612185565b610cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf5906151a7565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d44826112f6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dac90615207565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dd46122d3565b73ffffffffffffffffffffffffffffffffffffffff161480610e035750610e0281610dfd6122d3565b611eec565b5b610e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e39906150e7565b60405180910390fd5b610e4c83836122db565b505050565b60fc5481565b6000609980549050905090565b610e75610e6f6122d3565b82612394565b610eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eab90615227565b60405180910390fd5b610ebf838383612472565b505050565b610ecc6122d3565b73ffffffffffffffffffffffffffffffffffffffff16610eea6116c9565b73ffffffffffffffffffffffffffffffffffffffff1614610f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f37906151c7565b60405180910390fd5b610f6c60fb60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16476126d9565b565b6000806040518060400160405280601581526020017f5354594c455f544f4b454e5f4f4b5f544f5f555345000000000000000000000081525090508086868686604051602001610fc2959493929190614d02565b60405160208183030381529060405280519060200120915050949350505050565b6000610fee83611589565b821061102f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102690614f67565b60405180910390fd5b609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6110906122d3565b73ffffffffffffffffffffffffffffffffffffffff166110ae6116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611104576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fb906151c7565b60405180910390fd5b8060ff908051906020019061111a929190613f36565b5050565b60fb60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61115f838383604051806020016040528060008152506118ba565b505050565b61116c6122d3565b73ffffffffffffffffffffffffffffffffffffffff1661118a6116c9565b73ffffffffffffffffffffffffffffffffffffffff16146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d7906151c7565b60405180910390fd5b8061010060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60fb60009054906101000a900460ff1681565b6000611242610e57565b8210611283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127a90615247565b60405180910390fd5b609982815481106112bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b61010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561139f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139690615127565b60405180910390fd5b80915050919050565b6113b06122d3565b73ffffffffffffffffffffffffffffffffffffffff166113ce6116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b906151c7565b60405180910390fd5b8060fb60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6114706122d3565b73ffffffffffffffffffffffffffffffffffffffff1661148e6116c9565b73ffffffffffffffffffffffffffffffffffffffff16146114e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114db906151c7565b60405180910390fd5b6114ef8383836127cd565b505050565b60fd805461150190615531565b80601f016020809104026020016040519081016040528092919081815260200182805461152d90615531565b801561157a5780601f1061154f5761010080835404028352916020019161157a565b820191906000526020600020905b81548152906001019060200180831161155d57829003601f168201915b505050505081565b6101025481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f190615107565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116496122d3565b73ffffffffffffffffffffffffffffffffffffffff166116676116c9565b73ffffffffffffffffffffffffffffffffffffffff16146116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b4906151c7565b60405180910390fd5b6116c760006128ed565b565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606066805461170290615531565b80601f016020809104026020016040519081016040528092919081815260200182805461172e90615531565b801561177b5780601f106117505761010080835404028352916020019161177b565b820191906000526020600020905b81548152906001019060200180831161175e57829003601f168201915b5050505050905090565b61179233858585856129b3565b6117d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c890615047565b60405180910390fd5b60fc60008154809291906117e490615594565b9190505550600060fc5460c86117fa9190615397565b905061180886868684612a3c565b505050505050565b60fe5481565b6118286118216122d3565b8383612b5a565b5050565b6118346122d3565b73ffffffffffffffffffffffffffffffffffffffff166118526116c9565b73ffffffffffffffffffffffffffffffffffffffff16146118a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189f906151c7565b60405180910390fd5b6118b484838386612a3c565b50505050565b6118cb6118c56122d3565b83612394565b61190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190190615227565b60405180910390fd5b61191684848484612cc7565b50505050565b6119246122d3565b73ffffffffffffffffffffffffffffffffffffffff166119426116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f906151c7565b60405180910390fd5b8060fd90805190602001906119ae929190613f36565b5050565b6119ba6122d3565b73ffffffffffffffffffffffffffffffffffffffff166119d86116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a25906151c7565b60405180910390fd5b8060fb60006101000a81548160ff02191690831515021790555050565b6060611a5682612185565b611a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8c906151e7565b60405180910390fd5b6000611a9f612d23565b90506000815111611abf5760405180602001604052806000815250611aea565b80611ac984612db5565b604051602001611ada929190614d59565b6040516020818303038152906040525b915050919050565b611afa6122d3565b73ffffffffffffffffffffffffffffffffffffffff16611b186116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b65906151c7565b60405180910390fd5b60008390506000808490505b838111611c29578273ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b8152600401611bba91906152a7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a9190614165565b9150611c168282612f62565b8080611c2190615594565b915050611b7a565b505050505050565b611c396122d3565b73ffffffffffffffffffffffffffffffffffffffff16611c576116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca4906151c7565b60405180910390fd5b8061010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060019054906101000a900460ff16611d1a5760008054906101000a900460ff1615611d23565b611d2261313c565b5b611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990615147565b60405180910390fd5b60008060019054906101000a900460ff161590508015611db2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611dbc858561314d565b611dc46131aa565b8260fb60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160fd9080519060200190611e1b929190613f36565b50600060fc81905550600060fe8190555061c350610102819055508015611e575760008060016101000a81548160ff0219169083151502179055505b5050505050565b60ff8054611e6b90615531565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9790615531565b8015611ee45780601f10611eb957610100808354040283529160200191611ee4565b820191906000526020600020905b815481529060010190602001808311611ec757829003601f168201915b505050505081565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f886122d3565b73ffffffffffffffffffffffffffffffffffffffff16611fa66116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff3906151c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561206c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206390614fa7565b60405180910390fd5b612075816128ed565b50565b6120806122d3565b73ffffffffffffffffffffffffffffffffffffffff1661209e6116c9565b73ffffffffffffffffffffffffffffffffffffffff16146120f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120eb906151c7565b60405180910390fd5b8060fe8190555050565b6121066122d3565b73ffffffffffffffffffffffffffffffffffffffff166121246116c9565b73ffffffffffffffffffffffffffffffffffffffff161461217a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612171906151c7565b60405180910390fd5b806101028190555050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122bc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122cc57506122cb82613203565b5b9050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661234e836112f6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061239f82612185565b6123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d5906150c7565b60405180910390fd5b60006123e9836112f6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061245857508373ffffffffffffffffffffffffffffffffffffffff1661244084610cb4565b73ffffffffffffffffffffffffffffffffffffffff16145b8061246957506124688185611eec565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612492826112f6565b73ffffffffffffffffffffffffffffffffffffffff16146124e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124df90614fc7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254f90615007565b60405180910390fd5b61256383838361326d565b61256e6000826122db565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125be919061541e565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126159190615397565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126d4838383613381565b505050565b8047101561271c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612713906150a7565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161274290614da3565b60006040518083038185875af1925050503d806000811461277f576040519150601f19603f3d011682016040523d82523d6000602084013e612784565b606091505b50509050806127c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127bf90615067565b60405180910390fd5b505050565b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200183815250610104600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101908051906020019061286f929190613f36565b50905050600161010360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020836040516128c39190614ceb565b908152602001604051809103902060006101000a81548160ff021916908315150217905550505050565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806129c287878787610f6e565b905061010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612a1984612a0b84613386565b6133b690919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161491505095945050505050565b610102546001612a4a610e57565b612a549190615397565b1115612a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8c90615287565b60405180910390fd5b61010360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082604051612ae39190614ceb565b908152602001604051809103902060009054906101000a900460ff1615612b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3690614f27565b60405180910390fd5b612b4a8383836127cd565b612b548482612f62565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc090615027565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612cba9190614e6a565b60405180910390a3505050565b612cd2848484612472565b612cde848484846133dd565b612d1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1490614f87565b60405180910390fd5b50505050565b606060fd8054612d3290615531565b80601f0160208091040260200160405190810160405280929190818152602001828054612d5e90615531565b8015612dab5780601f10612d8057610100808354040283529160200191612dab565b820191906000526020600020905b815481529060010190602001808311612d8e57829003601f168201915b5050505050905090565b60606000821415612dfd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f5d565b600082905060005b60008214612e2f578080612e1890615594565b915050600a82612e2891906153ed565b9150612e05565b60008167ffffffffffffffff811115612e71577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ea35781602001600182028036833780820191505090505b5090505b60008514612f5657600182612ebc919061541e565b9150600a85612ecb9190615615565b6030612ed79190615397565b60f81b818381518110612f13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f4f91906153ed565b9450612ea7565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc990615187565b60405180910390fd5b612fdb81612185565b1561301b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301290614fe7565b60405180910390fd5b6130276000838361326d565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130779190615397565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461313860008383613381565b5050565b600061314730613574565b15905090565b600060019054906101000a900460ff1661319c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319390615267565b60405180910390fd5b6131a68282613597565b5050565b600060019054906101000a900460ff166131f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f090615267565b60405180910390fd5b613201613618565b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613278838383613679565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132bb576132b68161367e565b6132fa565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132f9576132f883826136c7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561333d5761333881613834565b61337c565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461337b5761337a8282613977565b5b5b505050565b505050565b6000816040516020016133999190614d7d565b604051602081830303815290604052805190602001209050919050565b60008060006133c585856139f6565b915091506133d281613a79565b819250505092915050565b60006133fe8473ffffffffffffffffffffffffffffffffffffffff16613574565b15613567578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134276122d3565b8786866040518563ffffffff1660e01b81526004016134499493929190614dee565b602060405180830381600087803b15801561346357600080fd5b505af192505050801561349457506040513d601f19601f82011682018060405250810190613491919061462e565b60015b613517573d80600081146134c4576040519150601f19603f3d011682016040523d82523d6000602084013e6134c9565b606091505b5060008151141561350f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350690614f87565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061356c565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166135e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135dd90615267565b60405180910390fd5b81606590805190602001906135fc929190613f36565b508060669080519060200190613613929190613f36565b505050565b600060019054906101000a900460ff16613667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365e90615267565b60405180910390fd5b6136776136726122d3565b6128ed565b565b505050565b609980549050609a600083815260200190815260200160002081905550609981908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136d484611589565b6136de919061541e565b90506000609860008481526020019081526020016000205490508181146137c3576000609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080609760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816098600083815260200190815260200160002081905550505b6098600084815260200190815260200160002060009055609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001609980549050613848919061541e565b90506000609a600084815260200190815260200160002054905060006099838154811061389e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080609983815481106138e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081609a600083815260200190815260200160002081905550609a600085815260200190815260200160002060009055609980548061395b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061398283611589565b905081609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806098600084815260200190815260200160002081905550505050565b600080604183511415613a385760008060006020860151925060408601519150606086015160001a9050613a2c87828585613dca565b94509450505050613a72565b604083511415613a69576000806020850151915060408501519050613a5e868383613ed7565b935093505050613a72565b60006002915091505b9250929050565b60006004811115613ab3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613aec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613af757613dc7565b60016004811115613b31577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613b6a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba290614f07565b60405180910390fd5b60026004811115613be5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613c1e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5690614f47565b60405180910390fd5b60036004811115613c99577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d0a90615087565b60405180910390fd5b600480811115613d4c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613d85577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dbd90615167565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613e05576000600391509150613ece565b601b8560ff1614158015613e1d5750601c8560ff1614155b15613e2f576000600491509150613ece565b600060018787878760405160008152602001604052604051613e549493929190614ea0565b6020604051602081039080840390855afa158015613e76573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613ec557600060019250925050613ece565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613f1a9190615397565b9050613f2887828885613dca565b935093505050935093915050565b828054613f4290615531565b90600052602060002090601f016020900481019282613f645760008555613fab565b82601f10613f7d57805160ff1916838001178555613fab565b82800160010185558215613fab579182015b82811115613faa578251825591602001919060010190613f8f565b5b509050613fb89190613fbc565b5090565b5b80821115613fd5576000816000905550600101613fbd565b5090565b6000613fec613fe7846152e7565b6152c2565b90508281526020810184848401111561400457600080fd5b61400f8482856154ef565b509392505050565b600061402a61402584615318565b6152c2565b90508281526020810184848401111561404257600080fd5b61404d8482856154ef565b509392505050565b60008135905061406481615f0f565b92915050565b60008151905061407981615f0f565b92915050565b60008135905061408e81615f26565b92915050565b6000813590506140a381615f3d565b92915050565b6000813590506140b881615f54565b92915050565b6000815190506140cd81615f54565b92915050565b600082601f8301126140e457600080fd5b81356140f4848260208601613fd9565b91505092915050565b600082601f83011261410e57600080fd5b813561411e848260208601614017565b91505092915050565b60008135905061413681615f6b565b92915050565b60006020828403121561414e57600080fd5b600061415c84828501614055565b91505092915050565b60006020828403121561417757600080fd5b60006141858482850161406a565b91505092915050565b6000602082840312156141a057600080fd5b60006141ae8482850161407f565b91505092915050565b600080604083850312156141ca57600080fd5b60006141d885828601614055565b92505060206141e985828601614055565b9150509250929050565b6000806000806080858703121561420957600080fd5b600061421787828801614055565b945050602061422887828801614055565b935050604085013567ffffffffffffffff81111561424557600080fd5b614251878288016140fd565b925050606061426287828801614127565b91505092959194509250565b600080600080600060a0868803121561428657600080fd5b600061429488828901614055565b95505060206142a588828901614055565b945050604086013567ffffffffffffffff8111156142c257600080fd5b6142ce888289016140fd565b93505060606142df88828901614127565b925050608086013567ffffffffffffffff8111156142fc57600080fd5b614308888289016140d3565b9150509295509295909350565b60008060006060848603121561432a57600080fd5b600061433886828701614055565b935050602061434986828701614055565b925050604061435a86828701614127565b9150509250925092565b6000806000806080858703121561437a57600080fd5b600061438887828801614055565b945050602061439987828801614055565b93505060406143aa87828801614127565b925050606085013567ffffffffffffffff8111156143c757600080fd5b6143d3878288016140d3565b91505092959194509250565b600080604083850312156143f257600080fd5b600061440085828601614055565b925050602061441185828601614094565b9150509250929050565b6000806040838503121561442e57600080fd5b600061443c85828601614055565b925050602083013567ffffffffffffffff81111561445957600080fd5b614465858286016140fd565b9150509250929050565b60008060006060848603121561448457600080fd5b600061449286828701614055565b935050602084013567ffffffffffffffff8111156144af57600080fd5b6144bb868287016140fd565b92505060406144cc86828701614127565b9150509250925092565b600080604083850312156144e957600080fd5b60006144f785828601614055565b925050602061450885828601614127565b9150509250929050565b6000806000806080858703121561452857600080fd5b600061453687828801614055565b945050602061454787828801614127565b935050604061455887828801614055565b925050606085013567ffffffffffffffff81111561457557600080fd5b614581878288016140fd565b91505092959194509250565b6000806000606084860312156145a257600080fd5b60006145b086828701614055565b93505060206145c186828701614127565b92505060406145d286828701614127565b9150509250925092565b6000602082840312156145ee57600080fd5b60006145fc84828501614094565b91505092915050565b60006020828403121561461757600080fd5b6000614625848285016140a9565b91505092915050565b60006020828403121561464057600080fd5b600061464e848285016140be565b91505092915050565b60006020828403121561466957600080fd5b600082013567ffffffffffffffff81111561468357600080fd5b61468f848285016140fd565b91505092915050565b600080600080608085870312156146ae57600080fd5b600085013567ffffffffffffffff8111156146c857600080fd5b6146d4878288016140fd565b945050602085013567ffffffffffffffff8111156146f157600080fd5b6146fd878288016140fd565b935050604061470e8782880161407f565b925050606085013567ffffffffffffffff81111561472b57600080fd5b614737878288016140fd565b91505092959194509250565b60006020828403121561475557600080fd5b600061476384828501614127565b91505092915050565b61477581615464565b82525050565b61478481615452565b82525050565b61479b61479682615452565b6155dd565b82525050565b6147aa81615476565b82525050565b6147b981615482565b82525050565b6147d06147cb82615482565b6155ef565b82525050565b60006147e182615349565b6147eb818561535f565b93506147fb8185602086016154fe565b61480481615702565b840191505092915050565b600061481a82615354565b614824818561537b565b93506148348185602086016154fe565b61483d81615702565b840191505092915050565b600061485382615354565b61485d818561538c565b935061486d8185602086016154fe565b80840191505092915050565b600061488660188361537b565b915061489182615720565b602082019050919050565b60006148a9602e8361537b565b91506148b482615749565b604082019050919050565b60006148cc601f8361537b565b91506148d782615798565b602082019050919050565b60006148ef601c8361538c565b91506148fa826157c1565b601c82019050919050565b6000614912602b8361537b565b915061491d826157ea565b604082019050919050565b600061493560328361537b565b915061494082615839565b604082019050919050565b600061495860268361537b565b915061496382615888565b604082019050919050565b600061497b60258361537b565b9150614986826158d7565b604082019050919050565b600061499e601c8361537b565b91506149a982615926565b602082019050919050565b60006149c160248361537b565b91506149cc8261594f565b604082019050919050565b60006149e460198361537b565b91506149ef8261599e565b602082019050919050565b6000614a0760118361537b565b9150614a12826159c7565b602082019050919050565b6000614a2a603a8361537b565b9150614a35826159f0565b604082019050919050565b6000614a4d60228361537b565b9150614a5882615a3f565b604082019050919050565b6000614a70601d8361537b565b9150614a7b82615a8e565b602082019050919050565b6000614a93602c8361537b565b9150614a9e82615ab7565b604082019050919050565b6000614ab660388361537b565b9150614ac182615b06565b604082019050919050565b6000614ad9602a8361537b565b9150614ae482615b55565b604082019050919050565b6000614afc60298361537b565b9150614b0782615ba4565b604082019050919050565b6000614b1f602e8361537b565b9150614b2a82615bf3565b604082019050919050565b6000614b4260228361537b565b9150614b4d82615c42565b604082019050919050565b6000614b6560208361537b565b9150614b7082615c91565b602082019050919050565b6000614b88602c8361537b565b9150614b9382615cba565b604082019050919050565b6000614bab60208361537b565b9150614bb682615d09565b602082019050919050565b6000614bce602f8361537b565b9150614bd982615d32565b604082019050919050565b6000614bf160218361537b565b9150614bfc82615d81565b604082019050919050565b6000614c14600083615370565b9150614c1f82615dd0565b600082019050919050565b6000614c3760318361537b565b9150614c4282615dd3565b604082019050919050565b6000614c5a602c8361537b565b9150614c6582615e22565b604082019050919050565b6000614c7d602b8361537b565b9150614c8882615e71565b604082019050919050565b6000614ca060218361537b565b9150614cab82615ec0565b604082019050919050565b614cbf816154d8565b82525050565b614cd6614cd1826154d8565b61560b565b82525050565b614ce5816154e2565b82525050565b6000614cf78284614848565b915081905092915050565b6000614d0e8288614848565b9150614d1a828761478a565b601482019150614d2a828661478a565b601482019150614d3a8285614848565b9150614d468284614cc5565b6020820191508190509695505050505050565b6000614d658285614848565b9150614d718284614848565b91508190509392505050565b6000614d88826148e2565b9150614d9482846147bf565b60208201915081905092915050565b6000614dae82614c07565b9150819050919050565b6000602082019050614dcd600083018461477b565b92915050565b6000602082019050614de8600083018461476c565b92915050565b6000608082019050614e03600083018761477b565b614e10602083018661477b565b614e1d6040830185614cb6565b8181036060830152614e2f81846147d6565b905095945050505050565b6000604082019050614e4f600083018561477b565b8181036020830152614e61818461480f565b90509392505050565b6000602082019050614e7f60008301846147a1565b92915050565b6000602082019050614e9a60008301846147b0565b92915050565b6000608082019050614eb560008301876147b0565b614ec26020830186614cdc565b614ecf60408301856147b0565b614edc60608301846147b0565b95945050505050565b60006020820190508181036000830152614eff818461480f565b905092915050565b60006020820190508181036000830152614f2081614879565b9050919050565b60006020820190508181036000830152614f408161489c565b9050919050565b60006020820190508181036000830152614f60816148bf565b9050919050565b60006020820190508181036000830152614f8081614905565b9050919050565b60006020820190508181036000830152614fa081614928565b9050919050565b60006020820190508181036000830152614fc08161494b565b9050919050565b60006020820190508181036000830152614fe08161496e565b9050919050565b6000602082019050818103600083015261500081614991565b9050919050565b60006020820190508181036000830152615020816149b4565b9050919050565b60006020820190508181036000830152615040816149d7565b9050919050565b60006020820190508181036000830152615060816149fa565b9050919050565b6000602082019050818103600083015261508081614a1d565b9050919050565b600060208201905081810360008301526150a081614a40565b9050919050565b600060208201905081810360008301526150c081614a63565b9050919050565b600060208201905081810360008301526150e081614a86565b9050919050565b6000602082019050818103600083015261510081614aa9565b9050919050565b6000602082019050818103600083015261512081614acc565b9050919050565b6000602082019050818103600083015261514081614aef565b9050919050565b6000602082019050818103600083015261516081614b12565b9050919050565b6000602082019050818103600083015261518081614b35565b9050919050565b600060208201905081810360008301526151a081614b58565b9050919050565b600060208201905081810360008301526151c081614b7b565b9050919050565b600060208201905081810360008301526151e081614b9e565b9050919050565b6000602082019050818103600083015261520081614bc1565b9050919050565b6000602082019050818103600083015261522081614be4565b9050919050565b6000602082019050818103600083015261524081614c2a565b9050919050565b6000602082019050818103600083015261526081614c4d565b9050919050565b6000602082019050818103600083015261528081614c70565b9050919050565b600060208201905081810360008301526152a081614c93565b9050919050565b60006020820190506152bc6000830184614cb6565b92915050565b60006152cc6152dd565b90506152d88282615563565b919050565b6000604051905090565b600067ffffffffffffffff821115615302576153016156d3565b5b61530b82615702565b9050602081019050919050565b600067ffffffffffffffff821115615333576153326156d3565b5b61533c82615702565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006153a2826154d8565b91506153ad836154d8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156153e2576153e1615646565b5b828201905092915050565b60006153f8826154d8565b9150615403836154d8565b92508261541357615412615675565b5b828204905092915050565b6000615429826154d8565b9150615434836154d8565b92508282101561544757615446615646565b5b828203905092915050565b600061545d826154b8565b9050919050565b600061546f826154b8565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561551c578082015181840152602081019050615501565b8381111561552b576000848401525b50505050565b6000600282049050600182168061554957607f821691505b6020821081141561555d5761555c6156a4565b5b50919050565b61556c82615702565b810181811067ffffffffffffffff8211171561558b5761558a6156d3565b5b80604052505050565b600061559f826154d8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156155d2576155d1615646565b5b600182019050919050565b60006155e8826155f9565b9050919050565b6000819050919050565b600061560482615713565b9050919050565b6000819050919050565b6000615620826154d8565b915061562b836154d8565b92508261563b5761563a615675565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f546865206f726967696e20746f6b656e20697320616c7265616479207573656460008201527f20666f7220636c61696d696e672e000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f43757272656e7420746f74616c206d696e74206c696d6974207265616368656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b615f1881615452565b8114615f2357600080fd5b50565b615f2f81615464565b8114615f3a57600080fd5b50565b615f4681615476565b8114615f5157600080fd5b50565b615f5d8161548c565b8114615f6857600080fd5b50565b615f74816154d8565b8114615f7f57600080fd5b5056fea2646970667358221220c6844c236e563c7205d9074a277218355d0998adb2a1be12baa7c9ad97c78fa764736f6c63430008040033

Deployed Bytecode

0x6080604052600436106102715760003560e01c80636646575c1161014f578063b88d4fde116100c1578063e6a070631161007a578063e6a0706314610977578063e8a3d485146109a0578063e985e9c5146109cb578063f2fde38b14610a08578063f5a63e4a14610a31578063f729950014610a5a57610271565b8063b88d4fde1461086d578063b9a87c0914610896578063c752d90d146108bf578063c87b56dd146108e8578063d9eaf26c14610925578063dcbfbebc1461094e57610271565b80638da5cb5b116101135780638da5cb5b1461077e57806395d89b41146107a95780639a298bad146107d45780639d1b464a146107f0578063a22cb4651461081b578063a75075711461084457610271565b80636646575c146106ab5780636c0360eb146106d45780636f7b9f2f146106ff57806370a082311461072a578063715018a61461076757610271565b806329c03961116101e85780634587b505116101ac5780634587b505146105895780634bf365df146105b25780634f6ccce7146105dd5780635d0e05e81461061a5780636352211e1461064557806363d580f71461068257610271565b806329c03961146104925780632f745c59146104cf57806334c057111461050c578063412753581461053557806342842e0e1461056057610271565b8063081812fc1161023a578063081812fc14610396578063095ea7b3146103d35780630d84d1ce146103fc57806318160ddd1461042757806323b872dd1461045257806327a910dc1461047b57610271565b8062923f9e1461027657806301ffc9a7146102b357806303e854b1146102f05780630647edcd1461032e57806306fdde031461036b575b600080fd5b34801561028257600080fd5b5061029d60048036038101906102989190614743565b610a83565b6040516102aa9190614e6a565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190614605565b610a95565b6040516102e79190614e6a565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190614743565b610b0f565b604051610325929190614e3a565b60405180910390f35b34801561033a57600080fd5b506103556004803603810190610350919061441b565b610bdc565b6040516103629190614e6a565b60405180910390f35b34801561037757600080fd5b50610380610c22565b60405161038d9190614ee5565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b89190614743565b610cb4565b6040516103ca9190614db8565b60405180910390f35b3480156103df57600080fd5b506103fa60048036038101906103f591906144d6565b610d39565b005b34801561040857600080fd5b50610411610e51565b60405161041e91906152a7565b60405180910390f35b34801561043357600080fd5b5061043c610e57565b60405161044991906152a7565b60405180910390f35b34801561045e57600080fd5b5061047960048036038101906104749190614315565b610e64565b005b34801561048757600080fd5b50610490610ec4565b005b34801561049e57600080fd5b506104b960048036038101906104b491906141f3565b610f6e565b6040516104c69190614e85565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f191906144d6565b610fe3565b60405161050391906152a7565b60405180910390f35b34801561051857600080fd5b50610533600480360381019061052e9190614657565b611088565b005b34801561054157600080fd5b5061054a61111e565b6040516105579190614dd3565b60405180910390f35b34801561056c57600080fd5b5061058760048036038101906105829190614315565b611144565b005b34801561059557600080fd5b506105b060048036038101906105ab919061413c565b611164565b005b3480156105be57600080fd5b506105c7611225565b6040516105d49190614e6a565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff9190614743565b611238565b60405161061191906152a7565b60405180910390f35b34801561062657600080fd5b5061062f6112cf565b60405161063c9190614db8565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190614743565b6112f6565b6040516106799190614db8565b60405180910390f35b34801561068e57600080fd5b506106a960048036038101906106a4919061418e565b6113a8565b005b3480156106b757600080fd5b506106d260048036038101906106cd919061446f565b611468565b005b3480156106e057600080fd5b506106e96114f4565b6040516106f69190614ee5565b60405180910390f35b34801561070b57600080fd5b50610714611582565b60405161072191906152a7565b60405180910390f35b34801561073657600080fd5b50610751600480360381019061074c919061413c565b611589565b60405161075e91906152a7565b60405180910390f35b34801561077357600080fd5b5061077c611641565b005b34801561078a57600080fd5b506107936116c9565b6040516107a09190614db8565b60405180910390f35b3480156107b557600080fd5b506107be6116f3565b6040516107cb9190614ee5565b60405180910390f35b6107ee60048036038101906107e9919061426e565b611785565b005b3480156107fc57600080fd5b50610805611810565b60405161081291906152a7565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d91906143df565b611816565b005b34801561085057600080fd5b5061086b60048036038101906108669190614512565b61182c565b005b34801561087957600080fd5b50610894600480360381019061088f9190614364565b6118ba565b005b3480156108a257600080fd5b506108bd60048036038101906108b89190614657565b61191c565b005b3480156108cb57600080fd5b506108e660048036038101906108e191906145dc565b6119b2565b005b3480156108f457600080fd5b5061090f600480360381019061090a9190614743565b611a4b565b60405161091c9190614ee5565b60405180910390f35b34801561093157600080fd5b5061094c6004803603810190610947919061458d565b611af2565b005b34801561095a57600080fd5b506109756004803603810190610970919061413c565b611c31565b005b34801561098357600080fd5b5061099e60048036038101906109999190614698565b611cf2565b005b3480156109ac57600080fd5b506109b5611e5e565b6040516109c29190614ee5565b60405180910390f35b3480156109d757600080fd5b506109f260048036038101906109ed91906141b7565b611eec565b6040516109ff9190614e6a565b60405180910390f35b348015610a1457600080fd5b50610a2f6004803603810190610a2a919061413c565b611f80565b005b348015610a3d57600080fd5b50610a586004803603810190610a539190614743565b612078565b005b348015610a6657600080fd5b50610a816004803603810190610a7c9190614743565b6120fe565b005b6000610a8e82612185565b9050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b085750610b07826121f1565b5b9050919050565b6101046020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001018054610b5990615531565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8590615531565b8015610bd25780601f10610ba757610100808354040283529160200191610bd2565b820191906000526020600020905b815481529060010190602001808311610bb557829003601f168201915b5050505050905082565b610103602052816000526040600020818051602081018201805184825260208301602085012081835280955050505050506000915091509054906101000a900460ff1681565b606060658054610c3190615531565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5d90615531565b8015610caa5780601f10610c7f57610100808354040283529160200191610caa565b820191906000526020600020905b815481529060010190602001808311610c8d57829003601f168201915b5050505050905090565b6000610cbf82612185565b610cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf5906151a7565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d44826112f6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dac90615207565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dd46122d3565b73ffffffffffffffffffffffffffffffffffffffff161480610e035750610e0281610dfd6122d3565b611eec565b5b610e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e39906150e7565b60405180910390fd5b610e4c83836122db565b505050565b60fc5481565b6000609980549050905090565b610e75610e6f6122d3565b82612394565b610eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eab90615227565b60405180910390fd5b610ebf838383612472565b505050565b610ecc6122d3565b73ffffffffffffffffffffffffffffffffffffffff16610eea6116c9565b73ffffffffffffffffffffffffffffffffffffffff1614610f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f37906151c7565b60405180910390fd5b610f6c60fb60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16476126d9565b565b6000806040518060400160405280601581526020017f5354594c455f544f4b454e5f4f4b5f544f5f555345000000000000000000000081525090508086868686604051602001610fc2959493929190614d02565b60405160208183030381529060405280519060200120915050949350505050565b6000610fee83611589565b821061102f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102690614f67565b60405180910390fd5b609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6110906122d3565b73ffffffffffffffffffffffffffffffffffffffff166110ae6116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611104576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fb906151c7565b60405180910390fd5b8060ff908051906020019061111a929190613f36565b5050565b60fb60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61115f838383604051806020016040528060008152506118ba565b505050565b61116c6122d3565b73ffffffffffffffffffffffffffffffffffffffff1661118a6116c9565b73ffffffffffffffffffffffffffffffffffffffff16146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d7906151c7565b60405180910390fd5b8061010060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60fb60009054906101000a900460ff1681565b6000611242610e57565b8210611283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127a90615247565b60405180910390fd5b609982815481106112bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b61010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561139f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139690615127565b60405180910390fd5b80915050919050565b6113b06122d3565b73ffffffffffffffffffffffffffffffffffffffff166113ce6116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b906151c7565b60405180910390fd5b8060fb60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6114706122d3565b73ffffffffffffffffffffffffffffffffffffffff1661148e6116c9565b73ffffffffffffffffffffffffffffffffffffffff16146114e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114db906151c7565b60405180910390fd5b6114ef8383836127cd565b505050565b60fd805461150190615531565b80601f016020809104026020016040519081016040528092919081815260200182805461152d90615531565b801561157a5780601f1061154f5761010080835404028352916020019161157a565b820191906000526020600020905b81548152906001019060200180831161155d57829003601f168201915b505050505081565b6101025481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f190615107565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116496122d3565b73ffffffffffffffffffffffffffffffffffffffff166116676116c9565b73ffffffffffffffffffffffffffffffffffffffff16146116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b4906151c7565b60405180910390fd5b6116c760006128ed565b565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606066805461170290615531565b80601f016020809104026020016040519081016040528092919081815260200182805461172e90615531565b801561177b5780601f106117505761010080835404028352916020019161177b565b820191906000526020600020905b81548152906001019060200180831161175e57829003601f168201915b5050505050905090565b61179233858585856129b3565b6117d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c890615047565b60405180910390fd5b60fc60008154809291906117e490615594565b9190505550600060fc5460c86117fa9190615397565b905061180886868684612a3c565b505050505050565b60fe5481565b6118286118216122d3565b8383612b5a565b5050565b6118346122d3565b73ffffffffffffffffffffffffffffffffffffffff166118526116c9565b73ffffffffffffffffffffffffffffffffffffffff16146118a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189f906151c7565b60405180910390fd5b6118b484838386612a3c565b50505050565b6118cb6118c56122d3565b83612394565b61190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190190615227565b60405180910390fd5b61191684848484612cc7565b50505050565b6119246122d3565b73ffffffffffffffffffffffffffffffffffffffff166119426116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f906151c7565b60405180910390fd5b8060fd90805190602001906119ae929190613f36565b5050565b6119ba6122d3565b73ffffffffffffffffffffffffffffffffffffffff166119d86116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a25906151c7565b60405180910390fd5b8060fb60006101000a81548160ff02191690831515021790555050565b6060611a5682612185565b611a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8c906151e7565b60405180910390fd5b6000611a9f612d23565b90506000815111611abf5760405180602001604052806000815250611aea565b80611ac984612db5565b604051602001611ada929190614d59565b6040516020818303038152906040525b915050919050565b611afa6122d3565b73ffffffffffffffffffffffffffffffffffffffff16611b186116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b65906151c7565b60405180910390fd5b60008390506000808490505b838111611c29578273ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b8152600401611bba91906152a7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a9190614165565b9150611c168282612f62565b8080611c2190615594565b915050611b7a565b505050505050565b611c396122d3565b73ffffffffffffffffffffffffffffffffffffffff16611c576116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca4906151c7565b60405180910390fd5b8061010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060019054906101000a900460ff16611d1a5760008054906101000a900460ff1615611d23565b611d2261313c565b5b611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990615147565b60405180910390fd5b60008060019054906101000a900460ff161590508015611db2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611dbc858561314d565b611dc46131aa565b8260fb60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160fd9080519060200190611e1b929190613f36565b50600060fc81905550600060fe8190555061c350610102819055508015611e575760008060016101000a81548160ff0219169083151502179055505b5050505050565b60ff8054611e6b90615531565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9790615531565b8015611ee45780601f10611eb957610100808354040283529160200191611ee4565b820191906000526020600020905b815481529060010190602001808311611ec757829003601f168201915b505050505081565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f886122d3565b73ffffffffffffffffffffffffffffffffffffffff16611fa66116c9565b73ffffffffffffffffffffffffffffffffffffffff1614611ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff3906151c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561206c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206390614fa7565b60405180910390fd5b612075816128ed565b50565b6120806122d3565b73ffffffffffffffffffffffffffffffffffffffff1661209e6116c9565b73ffffffffffffffffffffffffffffffffffffffff16146120f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120eb906151c7565b60405180910390fd5b8060fe8190555050565b6121066122d3565b73ffffffffffffffffffffffffffffffffffffffff166121246116c9565b73ffffffffffffffffffffffffffffffffffffffff161461217a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612171906151c7565b60405180910390fd5b806101028190555050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122bc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122cc57506122cb82613203565b5b9050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661234e836112f6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061239f82612185565b6123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d5906150c7565b60405180910390fd5b60006123e9836112f6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061245857508373ffffffffffffffffffffffffffffffffffffffff1661244084610cb4565b73ffffffffffffffffffffffffffffffffffffffff16145b8061246957506124688185611eec565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612492826112f6565b73ffffffffffffffffffffffffffffffffffffffff16146124e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124df90614fc7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254f90615007565b60405180910390fd5b61256383838361326d565b61256e6000826122db565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125be919061541e565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126159190615397565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126d4838383613381565b505050565b8047101561271c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612713906150a7565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161274290614da3565b60006040518083038185875af1925050503d806000811461277f576040519150601f19603f3d011682016040523d82523d6000602084013e612784565b606091505b50509050806127c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127bf90615067565b60405180910390fd5b505050565b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff16815260200183815250610104600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101908051906020019061286f929190613f36565b50905050600161010360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020836040516128c39190614ceb565b908152602001604051809103902060006101000a81548160ff021916908315150217905550505050565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806129c287878787610f6e565b905061010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612a1984612a0b84613386565b6133b690919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161491505095945050505050565b610102546001612a4a610e57565b612a549190615397565b1115612a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8c90615287565b60405180910390fd5b61010360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082604051612ae39190614ceb565b908152602001604051809103902060009054906101000a900460ff1615612b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3690614f27565b60405180910390fd5b612b4a8383836127cd565b612b548482612f62565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc090615027565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612cba9190614e6a565b60405180910390a3505050565b612cd2848484612472565b612cde848484846133dd565b612d1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1490614f87565b60405180910390fd5b50505050565b606060fd8054612d3290615531565b80601f0160208091040260200160405190810160405280929190818152602001828054612d5e90615531565b8015612dab5780601f10612d8057610100808354040283529160200191612dab565b820191906000526020600020905b815481529060010190602001808311612d8e57829003601f168201915b5050505050905090565b60606000821415612dfd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f5d565b600082905060005b60008214612e2f578080612e1890615594565b915050600a82612e2891906153ed565b9150612e05565b60008167ffffffffffffffff811115612e71577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ea35781602001600182028036833780820191505090505b5090505b60008514612f5657600182612ebc919061541e565b9150600a85612ecb9190615615565b6030612ed79190615397565b60f81b818381518110612f13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f4f91906153ed565b9450612ea7565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc990615187565b60405180910390fd5b612fdb81612185565b1561301b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301290614fe7565b60405180910390fd5b6130276000838361326d565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130779190615397565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461313860008383613381565b5050565b600061314730613574565b15905090565b600060019054906101000a900460ff1661319c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319390615267565b60405180910390fd5b6131a68282613597565b5050565b600060019054906101000a900460ff166131f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f090615267565b60405180910390fd5b613201613618565b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613278838383613679565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132bb576132b68161367e565b6132fa565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132f9576132f883826136c7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561333d5761333881613834565b61337c565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461337b5761337a8282613977565b5b5b505050565b505050565b6000816040516020016133999190614d7d565b604051602081830303815290604052805190602001209050919050565b60008060006133c585856139f6565b915091506133d281613a79565b819250505092915050565b60006133fe8473ffffffffffffffffffffffffffffffffffffffff16613574565b15613567578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134276122d3565b8786866040518563ffffffff1660e01b81526004016134499493929190614dee565b602060405180830381600087803b15801561346357600080fd5b505af192505050801561349457506040513d601f19601f82011682018060405250810190613491919061462e565b60015b613517573d80600081146134c4576040519150601f19603f3d011682016040523d82523d6000602084013e6134c9565b606091505b5060008151141561350f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350690614f87565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061356c565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166135e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135dd90615267565b60405180910390fd5b81606590805190602001906135fc929190613f36565b508060669080519060200190613613929190613f36565b505050565b600060019054906101000a900460ff16613667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365e90615267565b60405180910390fd5b6136776136726122d3565b6128ed565b565b505050565b609980549050609a600083815260200190815260200160002081905550609981908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136d484611589565b6136de919061541e565b90506000609860008481526020019081526020016000205490508181146137c3576000609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080609760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816098600083815260200190815260200160002081905550505b6098600084815260200190815260200160002060009055609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001609980549050613848919061541e565b90506000609a600084815260200190815260200160002054905060006099838154811061389e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080609983815481106138e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081609a600083815260200190815260200160002081905550609a600085815260200190815260200160002060009055609980548061395b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061398283611589565b905081609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806098600084815260200190815260200160002081905550505050565b600080604183511415613a385760008060006020860151925060408601519150606086015160001a9050613a2c87828585613dca565b94509450505050613a72565b604083511415613a69576000806020850151915060408501519050613a5e868383613ed7565b935093505050613a72565b60006002915091505b9250929050565b60006004811115613ab3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613aec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613af757613dc7565b60016004811115613b31577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613b6a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba290614f07565b60405180910390fd5b60026004811115613be5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613c1e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5690614f47565b60405180910390fd5b60036004811115613c99577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d0a90615087565b60405180910390fd5b600480811115613d4c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613d85577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dbd90615167565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613e05576000600391509150613ece565b601b8560ff1614158015613e1d5750601c8560ff1614155b15613e2f576000600491509150613ece565b600060018787878760405160008152602001604052604051613e549493929190614ea0565b6020604051602081039080840390855afa158015613e76573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613ec557600060019250925050613ece565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613f1a9190615397565b9050613f2887828885613dca565b935093505050935093915050565b828054613f4290615531565b90600052602060002090601f016020900481019282613f645760008555613fab565b82601f10613f7d57805160ff1916838001178555613fab565b82800160010185558215613fab579182015b82811115613faa578251825591602001919060010190613f8f565b5b509050613fb89190613fbc565b5090565b5b80821115613fd5576000816000905550600101613fbd565b5090565b6000613fec613fe7846152e7565b6152c2565b90508281526020810184848401111561400457600080fd5b61400f8482856154ef565b509392505050565b600061402a61402584615318565b6152c2565b90508281526020810184848401111561404257600080fd5b61404d8482856154ef565b509392505050565b60008135905061406481615f0f565b92915050565b60008151905061407981615f0f565b92915050565b60008135905061408e81615f26565b92915050565b6000813590506140a381615f3d565b92915050565b6000813590506140b881615f54565b92915050565b6000815190506140cd81615f54565b92915050565b600082601f8301126140e457600080fd5b81356140f4848260208601613fd9565b91505092915050565b600082601f83011261410e57600080fd5b813561411e848260208601614017565b91505092915050565b60008135905061413681615f6b565b92915050565b60006020828403121561414e57600080fd5b600061415c84828501614055565b91505092915050565b60006020828403121561417757600080fd5b60006141858482850161406a565b91505092915050565b6000602082840312156141a057600080fd5b60006141ae8482850161407f565b91505092915050565b600080604083850312156141ca57600080fd5b60006141d885828601614055565b92505060206141e985828601614055565b9150509250929050565b6000806000806080858703121561420957600080fd5b600061421787828801614055565b945050602061422887828801614055565b935050604085013567ffffffffffffffff81111561424557600080fd5b614251878288016140fd565b925050606061426287828801614127565b91505092959194509250565b600080600080600060a0868803121561428657600080fd5b600061429488828901614055565b95505060206142a588828901614055565b945050604086013567ffffffffffffffff8111156142c257600080fd5b6142ce888289016140fd565b93505060606142df88828901614127565b925050608086013567ffffffffffffffff8111156142fc57600080fd5b614308888289016140d3565b9150509295509295909350565b60008060006060848603121561432a57600080fd5b600061433886828701614055565b935050602061434986828701614055565b925050604061435a86828701614127565b9150509250925092565b6000806000806080858703121561437a57600080fd5b600061438887828801614055565b945050602061439987828801614055565b93505060406143aa87828801614127565b925050606085013567ffffffffffffffff8111156143c757600080fd5b6143d3878288016140d3565b91505092959194509250565b600080604083850312156143f257600080fd5b600061440085828601614055565b925050602061441185828601614094565b9150509250929050565b6000806040838503121561442e57600080fd5b600061443c85828601614055565b925050602083013567ffffffffffffffff81111561445957600080fd5b614465858286016140fd565b9150509250929050565b60008060006060848603121561448457600080fd5b600061449286828701614055565b935050602084013567ffffffffffffffff8111156144af57600080fd5b6144bb868287016140fd565b92505060406144cc86828701614127565b9150509250925092565b600080604083850312156144e957600080fd5b60006144f785828601614055565b925050602061450885828601614127565b9150509250929050565b6000806000806080858703121561452857600080fd5b600061453687828801614055565b945050602061454787828801614127565b935050604061455887828801614055565b925050606085013567ffffffffffffffff81111561457557600080fd5b614581878288016140fd565b91505092959194509250565b6000806000606084860312156145a257600080fd5b60006145b086828701614055565b93505060206145c186828701614127565b92505060406145d286828701614127565b9150509250925092565b6000602082840312156145ee57600080fd5b60006145fc84828501614094565b91505092915050565b60006020828403121561461757600080fd5b6000614625848285016140a9565b91505092915050565b60006020828403121561464057600080fd5b600061464e848285016140be565b91505092915050565b60006020828403121561466957600080fd5b600082013567ffffffffffffffff81111561468357600080fd5b61468f848285016140fd565b91505092915050565b600080600080608085870312156146ae57600080fd5b600085013567ffffffffffffffff8111156146c857600080fd5b6146d4878288016140fd565b945050602085013567ffffffffffffffff8111156146f157600080fd5b6146fd878288016140fd565b935050604061470e8782880161407f565b925050606085013567ffffffffffffffff81111561472b57600080fd5b614737878288016140fd565b91505092959194509250565b60006020828403121561475557600080fd5b600061476384828501614127565b91505092915050565b61477581615464565b82525050565b61478481615452565b82525050565b61479b61479682615452565b6155dd565b82525050565b6147aa81615476565b82525050565b6147b981615482565b82525050565b6147d06147cb82615482565b6155ef565b82525050565b60006147e182615349565b6147eb818561535f565b93506147fb8185602086016154fe565b61480481615702565b840191505092915050565b600061481a82615354565b614824818561537b565b93506148348185602086016154fe565b61483d81615702565b840191505092915050565b600061485382615354565b61485d818561538c565b935061486d8185602086016154fe565b80840191505092915050565b600061488660188361537b565b915061489182615720565b602082019050919050565b60006148a9602e8361537b565b91506148b482615749565b604082019050919050565b60006148cc601f8361537b565b91506148d782615798565b602082019050919050565b60006148ef601c8361538c565b91506148fa826157c1565b601c82019050919050565b6000614912602b8361537b565b915061491d826157ea565b604082019050919050565b600061493560328361537b565b915061494082615839565b604082019050919050565b600061495860268361537b565b915061496382615888565b604082019050919050565b600061497b60258361537b565b9150614986826158d7565b604082019050919050565b600061499e601c8361537b565b91506149a982615926565b602082019050919050565b60006149c160248361537b565b91506149cc8261594f565b604082019050919050565b60006149e460198361537b565b91506149ef8261599e565b602082019050919050565b6000614a0760118361537b565b9150614a12826159c7565b602082019050919050565b6000614a2a603a8361537b565b9150614a35826159f0565b604082019050919050565b6000614a4d60228361537b565b9150614a5882615a3f565b604082019050919050565b6000614a70601d8361537b565b9150614a7b82615a8e565b602082019050919050565b6000614a93602c8361537b565b9150614a9e82615ab7565b604082019050919050565b6000614ab660388361537b565b9150614ac182615b06565b604082019050919050565b6000614ad9602a8361537b565b9150614ae482615b55565b604082019050919050565b6000614afc60298361537b565b9150614b0782615ba4565b604082019050919050565b6000614b1f602e8361537b565b9150614b2a82615bf3565b604082019050919050565b6000614b4260228361537b565b9150614b4d82615c42565b604082019050919050565b6000614b6560208361537b565b9150614b7082615c91565b602082019050919050565b6000614b88602c8361537b565b9150614b9382615cba565b604082019050919050565b6000614bab60208361537b565b9150614bb682615d09565b602082019050919050565b6000614bce602f8361537b565b9150614bd982615d32565b604082019050919050565b6000614bf160218361537b565b9150614bfc82615d81565b604082019050919050565b6000614c14600083615370565b9150614c1f82615dd0565b600082019050919050565b6000614c3760318361537b565b9150614c4282615dd3565b604082019050919050565b6000614c5a602c8361537b565b9150614c6582615e22565b604082019050919050565b6000614c7d602b8361537b565b9150614c8882615e71565b604082019050919050565b6000614ca060218361537b565b9150614cab82615ec0565b604082019050919050565b614cbf816154d8565b82525050565b614cd6614cd1826154d8565b61560b565b82525050565b614ce5816154e2565b82525050565b6000614cf78284614848565b915081905092915050565b6000614d0e8288614848565b9150614d1a828761478a565b601482019150614d2a828661478a565b601482019150614d3a8285614848565b9150614d468284614cc5565b6020820191508190509695505050505050565b6000614d658285614848565b9150614d718284614848565b91508190509392505050565b6000614d88826148e2565b9150614d9482846147bf565b60208201915081905092915050565b6000614dae82614c07565b9150819050919050565b6000602082019050614dcd600083018461477b565b92915050565b6000602082019050614de8600083018461476c565b92915050565b6000608082019050614e03600083018761477b565b614e10602083018661477b565b614e1d6040830185614cb6565b8181036060830152614e2f81846147d6565b905095945050505050565b6000604082019050614e4f600083018561477b565b8181036020830152614e61818461480f565b90509392505050565b6000602082019050614e7f60008301846147a1565b92915050565b6000602082019050614e9a60008301846147b0565b92915050565b6000608082019050614eb560008301876147b0565b614ec26020830186614cdc565b614ecf60408301856147b0565b614edc60608301846147b0565b95945050505050565b60006020820190508181036000830152614eff818461480f565b905092915050565b60006020820190508181036000830152614f2081614879565b9050919050565b60006020820190508181036000830152614f408161489c565b9050919050565b60006020820190508181036000830152614f60816148bf565b9050919050565b60006020820190508181036000830152614f8081614905565b9050919050565b60006020820190508181036000830152614fa081614928565b9050919050565b60006020820190508181036000830152614fc08161494b565b9050919050565b60006020820190508181036000830152614fe08161496e565b9050919050565b6000602082019050818103600083015261500081614991565b9050919050565b60006020820190508181036000830152615020816149b4565b9050919050565b60006020820190508181036000830152615040816149d7565b9050919050565b60006020820190508181036000830152615060816149fa565b9050919050565b6000602082019050818103600083015261508081614a1d565b9050919050565b600060208201905081810360008301526150a081614a40565b9050919050565b600060208201905081810360008301526150c081614a63565b9050919050565b600060208201905081810360008301526150e081614a86565b9050919050565b6000602082019050818103600083015261510081614aa9565b9050919050565b6000602082019050818103600083015261512081614acc565b9050919050565b6000602082019050818103600083015261514081614aef565b9050919050565b6000602082019050818103600083015261516081614b12565b9050919050565b6000602082019050818103600083015261518081614b35565b9050919050565b600060208201905081810360008301526151a081614b58565b9050919050565b600060208201905081810360008301526151c081614b7b565b9050919050565b600060208201905081810360008301526151e081614b9e565b9050919050565b6000602082019050818103600083015261520081614bc1565b9050919050565b6000602082019050818103600083015261522081614be4565b9050919050565b6000602082019050818103600083015261524081614c2a565b9050919050565b6000602082019050818103600083015261526081614c4d565b9050919050565b6000602082019050818103600083015261528081614c70565b9050919050565b600060208201905081810360008301526152a081614c93565b9050919050565b60006020820190506152bc6000830184614cb6565b92915050565b60006152cc6152dd565b90506152d88282615563565b919050565b6000604051905090565b600067ffffffffffffffff821115615302576153016156d3565b5b61530b82615702565b9050602081019050919050565b600067ffffffffffffffff821115615333576153326156d3565b5b61533c82615702565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006153a2826154d8565b91506153ad836154d8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156153e2576153e1615646565b5b828201905092915050565b60006153f8826154d8565b9150615403836154d8565b92508261541357615412615675565b5b828204905092915050565b6000615429826154d8565b9150615434836154d8565b92508282101561544757615446615646565b5b828203905092915050565b600061545d826154b8565b9050919050565b600061546f826154b8565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561551c578082015181840152602081019050615501565b8381111561552b576000848401525b50505050565b6000600282049050600182168061554957607f821691505b6020821081141561555d5761555c6156a4565b5b50919050565b61556c82615702565b810181811067ffffffffffffffff8211171561558b5761558a6156d3565b5b80604052505050565b600061559f826154d8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156155d2576155d1615646565b5b600182019050919050565b60006155e8826155f9565b9050919050565b6000819050919050565b600061560482615713565b9050919050565b6000819050919050565b6000615620826154d8565b915061562b836154d8565b92508261563b5761563a615675565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f546865206f726967696e20746f6b656e20697320616c7265616479207573656460008201527f20666f7220636c61696d696e672e000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f43757272656e7420746f74616c206d696e74206c696d6974207265616368656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b615f1881615452565b8114615f2357600080fd5b50565b615f2f81615464565b8114615f3a57600080fd5b50565b615f4681615476565b8114615f5157600080fd5b50565b615f5d8161548c565b8114615f6857600080fd5b50565b615f74816154d8565b8114615f7f57600080fd5b5056fea2646970667358221220c6844c236e563c7205d9074a277218355d0998adb2a1be12baa7c9ad97c78fa764736f6c63430008040033

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.