ETH Price: $3,470.41 (-0.01%)

Token

Merkletree by IBBA NFTs (MRKLT)
 

Overview

Max Total Supply

165 MRKLT

Holders

36

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 MRKLT
0x03790638CF43a9ECF5966fAF3e95c9C648E04802
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:
IBBA

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : Minting.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

// Import necessary OpenZeppelin libraries and contracts
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";

// IBBA is an ERC-721 smart contract with additional features
contract IBBA is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, ERC721Burnable {

    // Base URI for token metadata (prefix and suffix)
    string private metadataPrefixURI;
    string private metadataSuffixURI;
    
    // Treasury wallet address for receiving minted NFTs
    address public treasurywallet;

/**
 * @dev Emitted when a new NFT is successfully minted.
 *
 * This event provides information about the minted NFT, including the recipient's treasury wallet address
 * and the unique identifier (ID) of the minted NFT.
 *
 * @param treasuryWallet The address of the treasury wallet to which the NFT is minted.
 * @param nftId The unique identifier (ID) of the minted NFT.
 */
    event MintNFT(address treasuryWallet, uint256 nftId);

/**
 * @dev Emitted when attempting to mint NFTs, and some of the specified token IDs already exist.
 *
 * This event provides information about token IDs that were included in the batch minting
 * request but were already minted prior to the function call.
 *
 * @param alreadyMintedNFTs An array of uint256 values representing the token IDs that already exist.
 */
    event AlreadyMintedNFTs(uint256[] alreadyMintedNFTs);

/**
 * @dev Emitted when a batch of NFTs is successfully minted.
 *
 * This event provides information about the minted NFTs, including the recipient's treasury address
 * and an array of unique identifiers (IDs) of the minted NFTs.
 *
 * @param treasuryAddress The address of the treasury to which the NFTs are minted.
 * @param tokenIds An array of uint256 values representing the unique identifiers (IDs) of the minted NFTs.
 */
    event BatchMinted(
        address indexed treasuryAddress,
        uint256[] tokenIds
    );

/**
 * @dev Emitted when the metadata prefix URI is changed.
 *
 * This event provides information about the new metadata prefix URI.
 *
 * @param newMetadataPrefixURI The updated metadata prefix URI.
 */
    event ChangeMetadataPrefix(string newMetadataPrefixURI);

/**
 * @dev Emitted when the metadata suffix URI is changed.
 *
 * This event provides information about the new metadata suffix URI.
 *
 * @param newMetadataSuffixURI The updated metadata suffix URI.
 */
    event ChangeMetadataSuffix(string newMetadataSuffixURI);

/**
 * @dev Emitted when the treasury wallet address is changed.
 *
 * This event provides information about the new treasury wallet address.
 *
 * @param newTreasuryWallet The updated treasury wallet address.
 */
    event ChangeTreasuryWallet(address newTreasuryWallet);

/**
 * @dev Emitted when ownership of the contract is transferred.
 *
 * This event provides information about the new owner's address.
 *
 * @param newOwner The address of the new owner of the contract.
 */
    event TransferOwnership(address newOwner);


    // Struct to store NFT metadata and burn status
    struct NFTMeta {
        uint256 tokenId;
        string metadata;
        bool isBurnt;
    }

    // Mapping to store NFT metadata by token ID
    mapping(uint256 => NFTMeta) public nftData;

    // Constructor initializes the contract with a treasury wallet address and owner
    constructor(address _treasuryWallet, address _admin) ERC721("Merkletree by IBBA NFTs", "MRKLT") {
        require(_treasuryWallet != address(0),"Treasury wallet can not be empty!");
        treasurywallet = _treasuryWallet;
        _transferOwnership(_admin);
    }

    // Function to change ownership of the contract
    function changeOwnership(address newOwner) external onlyOwner returns (address)  {
        // Ensure the new owner address is not the zero address
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        
        // Use the built-in function to transfer ownership to the new owner
        _transferOwnership(newOwner);

        // Emit an event to log the ownership transfer
        emit TransferOwnership(newOwner);

        // Return the address of the new owner as confirmation
        return (newOwner);
    }


    // Function to change the treasury wallet address
    function changeTreasuryWallet(address newTreasuryWallet) external onlyOwner returns (address)  {
        // Ensure the new treasury wallet address is not the zero address
        require(newTreasuryWallet != address(0), "Treasuru Address is the zero address");
        
        // Update the treasury wallet address to the new address
        treasurywallet = newTreasuryWallet;

        // Emit an event to log the change of the treasury wallet address
        emit ChangeTreasuryWallet(newTreasuryWallet);

        // Return the new treasury wallet address as confirmation
        return (newTreasuryWallet);
    }

/**
 * @dev Retrieves the metadata prefix URI.
 *
 * This function allows the owner of the contract to access the current metadata
 * prefix URI, which is used to construct the full metadata URI for NFTs.
 *
 * @return The current metadata prefix URI as a string.
 */
    function getMetadataPrefixURI() external onlyOwner view returns (string memory) {
        return metadataPrefixURI;
    }

/**
 * @dev Retrieves the metadata suffix URI.
 *
 * This function allows the owner of the contract to access the current metadata
 * suffix URI, which is used to construct the full metadata URI for NFTs.
 *
 * @return The current metadata suffix URI as a string.
 */
    function getMetadataSuffixURI() external onlyOwner view returns (string memory) {
        return metadataSuffixURI;
    }

/**
 * @dev Pauses contract functionality.
 *
 * This function allows the owner of the contract to pause certain contract
 * functionalities, preventing certain operations from being executed temporarily.
 * It uses the built-in `_pause` function provided by the OpenZeppelin Pausable contract.
 * Once paused, the contract cannot perform specific actions until it is unpaused.
 */
    function pause() external onlyOwner {
        _pause();
    }

/**
 * @dev Unpauses contract functionality.
 *
 * This function allows the owner of the contract to unpause previously paused
 * contract functionalities, allowing them to resume normal operations.
 * It uses the built-in `_unpause` function provided by the OpenZeppelin Pausable contract.
 * After unpausing, the contract can perform actions as usual.
 */
    function unpause() external onlyOwner {
        _unpause();
    }


/**
 * @dev Batch mint NFTs by specifying custom token IDs and associated metadata.
 *
 * This function allows the contract owner to mint a batch of NFTs by specifying custom
 * token IDs provided in the `tokenIds` array. The number of NFTs to mint is determined by
 * the length of the `tokenIds` array. Each NFT is minted to the treasury wallet address,
 * and its metadata is fetched based on the token ID and set accordingly. The minted NFTs'
 * metadata and burn status are stored in the contract's mapping.
 *
 * @param numberOfNFTs The number of NFTs to mint, inferred from the length of `tokenIds`.
 * @param tokenIds An array of custom token IDs for the NFTs.
 * @return tokenId An array containing the custom token IDs of the newly minted NFTs.
 */
    function batchMintingByPassingTokenIds(uint256 numberOfNFTs, uint256[] memory tokenIds) external onlyOwner returns (bool) {
        // Ensure that the number of provided token IDs matches the number of NFTs to mint
        require(tokenIds.length == numberOfNFTs, "The number of Token IDs for NFTs does not match the number of NFTs");

        uint256[] memory tokenIdsAlreaydMinted = new uint256[](tokenIds.length);
        uint256[] memory newlyMintedNFTs = new uint256[](tokenIds.length);
        uint256 numberOfAlreadyMintedNFTs = 0;
        uint256 numberOfNewlyMintedNFTs = 0;
        // Iterate through the specified number of NFTs
        for(uint i = 0; i < numberOfNFTs; i++){
             if (_exists(tokenIds[i])) {
                 tokenIdsAlreaydMinted[numberOfAlreadyMintedNFTs] = tokenIds[i];
                 numberOfAlreadyMintedNFTs++;
             }
             else{
                
                // Mint the NFT with the provided token ID to the treasury wallet
                _safeMint(treasurywallet, tokenIds[i]);

                // Get metadata for the NFT based on the provided token ID
                string memory metaData = tokenURI(tokenIds[i]);

                // Set the metadata of the minted NFT with its token ID
                _setTokenURI(tokenIds[i], metaData);

                // Store NFT metadata in the contract's mapping
                nftData[tokenIds[i]] = NFTMeta(
                    tokenIds[i],
                    metaData,
                    false         
                );

                newlyMintedNFTs[numberOfNewlyMintedNFTs] = tokenIds[i];
                numberOfNewlyMintedNFTs++;

             }

        }

        // Emit the BatchMinted event to log the minting of NFTs
        emit BatchMinted(treasurywallet, newlyMintedNFTs);  
        emit AlreadyMintedNFTs(tokenIdsAlreaydMinted);

        assembly {
            mstore(tokenIdsAlreaydMinted, numberOfAlreadyMintedNFTs)
            mstore(newlyMintedNFTs, numberOfNewlyMintedNFTs)
        }

        // Return status true if function execute properly
        return true;
    }


/**
 * @dev Mint an NFT with a specific token ID and associated metadata.
 *
 * This function allows the contract owner to mint an NFT with a specified token ID and
 * associate it with the provided recipient address. It performs checks to ensure that the
 * specified token ID does not already exist, then mints the NFT, sets its metadata based on
 * the token ID, and stores metadata and burn status in the contract's mapping. The function
 * emits the `MintNFT` event to log the minting.
 *
 * @param tokenId The unique token ID for the NFT.
 * @param to The recipient address to receive the minted NFT.
 * @return The minted token ID, recipient address, and associated metadata.
 */
    function mintingByTokenId(uint256 tokenId, address to) external onlyOwner returns (uint256, address, string memory) {
        // Ensure the specified token ID does not already exist
        if (_exists(tokenId)) revert("Token ID already exists!");
      

        // Emit the MintNFT event to log the minting
        emit MintNFT(to, tokenId);
        // Mint the NFT with the specified token ID to the provided recipient address
        _safeMint(to, tokenId);

        // Get metadata for the NFT based on the token ID
        string memory metaData = tokenURI(tokenId);

        // Set the metadata of the minted NFT with its token ID
        _setTokenURI(tokenId, metaData);

         // Store NFT metadata in the contract's mapping
        nftData[tokenId] = NFTMeta(
            tokenId,
            metaData,
            false         
        );

        // Return the minted token ID, recipient address, and associated metadata
        return (tokenId, to, metaData);
    }


    function updateMetadataURI(uint256 tokenId, string memory metadataUri) external onlyOwner returns(bool){
         // Ensure the token ID exists
        if (!_exists(tokenId)) revert("Token ID does not exist!");
        _setTokenURI(tokenId, metadataUri);

        return true;
    }


/**
 * @dev Modifier to handle token transfers before execution.
 *
 * This internal modifier is used to handle token transfers before the actual transfer
 * is executed. It is called by the OpenZeppelin `ERC721` and `ERC721Enumerable` contracts
 * as part of the transfer process. The modifier checks that the contract is not paused
 * (i.e., its functionality is not temporarily halted) and delegates the transfer handling
 * to the parent contracts for `ERC721` and `ERC721Enumerable`.
 *
 * @param from The address from which the tokens are transferred.
 * @param to The address to which the tokens are transferred.
 * @param tokenId The unique identifier of the token being transferred.
 * @param batchSize The batch size (used for ERC721Enumerable) for multiple token transfers.
 */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize)
        internal
        whenNotPaused
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId, batchSize);
    }


/**
 * @dev Internal function to handle burning of NFTs.
 *
 * This function is used internally to handle the burning (destruction) of NFTs.
 * It overrides the `_burn` function provided by the OpenZeppelin `ERC721` and
 * `ERC721URIStorage` contracts to add custom logic.
 *
 * @param tokenId The unique identifier of the NFT to be burnt.
 */
    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
        
        // Mark the NFT as burnt in the contract's mapping
        nftData[tokenId].isBurnt = true;
    }

    // Function to get the token URI for a given token ID
/**
 * @dev Retrieve the token's metadata URI.
 *
 * This function is used to retrieve the metadata URI associated with a specific token ID.
 * It constructs the full metadata URI by combining the metadata prefix, the token ID
 * converted to a string, and the metadata suffix. The resulting URI points to the location
 * of the token's metadata, which can be used to access information about the token.
 *
 * @param tokenId The unique identifier of the token for which to retrieve the metadata URI.
 * @return The full metadata URI as a string.
 * @notice Reverts if the specified token ID does not exist.
 */
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {  
        // Ensure the token ID exists
        if (!_exists(tokenId)) revert("Token ID does not exist!");
        
        // Construct and return the full metadata URI
        string memory uri = concatenateStrings(metadataPrefixURI,Strings.toString(tokenId),metadataSuffixURI);
        return string(uri);
    }

    function concatenateStrings(string memory a, string memory b, string memory c) public pure returns (string memory) {
        bytes memory string1 = bytes(a);
        bytes memory string2 = bytes(b);
        bytes memory string3 = bytes(c);
        
        bytes memory combined = new bytes(string1.length + string2.length + string3.length);

        uint k = 0;
        for (uint i = 0; i < string1.length; i++) {
            combined[k++] = string1[i];
        }

        for (uint i = 0; i < string2.length; i++) {
            combined[k++] = string2[i];
        }

        for (uint i = 0; i < string3.length; i++) {
            combined[k++] = string3[i];
        }

        return string(combined);
    }
/**
 * @dev Change the prefix of the metadata URI.
 *
 * This function allows the contract owner to change the prefix of the metadata URI.
 * The new metadata prefix is specified as `newMetaDataPrefixURI`. After changing
 * the prefix, all newly minted NFTs will use the updated prefix in their metadata URI.
 *
 * @param newMetaDataPrefixURI The new metadata URI prefix to set.
 * @return The updated metadata URI prefix.
 */
    function changeMetaDataPrefixURI(string memory newMetaDataPrefixURI) external onlyOwner returns (string memory) {
        // Update the metadata URI prefix
        metadataPrefixURI = newMetaDataPrefixURI;

        // Emit the ChangeMetadataPrefix event to log the change
        emit ChangeMetadataPrefix(newMetaDataPrefixURI);

        // Return the updated metadata URI prefix
        return metadataPrefixURI;
    }

/**
 * @dev Change the suffix of the metadata URI.
 *
 * This function allows the contract owner to change the suffix of the metadata URI.
 * The new metadata suffix is specified as `newMetadataSuffixURI`. After changing
 * the suffix, all newly minted NFTs will use the updated suffix in their metadata URI.
 *
 * @param newMetadataSuffixURI The new metadata URI suffix to set.
 * @return The updated metadata URI suffix.
 */
    function changeMetaDataSuffixURI(string memory newMetadataSuffixURI) external onlyOwner returns (string memory) {
        // Update the metadata URI suffix
        metadataSuffixURI = newMetadataSuffixURI;

        // Emit the ChangeMetadataSuffix event to log the change
        emit ChangeMetadataSuffix(newMetadataSuffixURI);

        // Return the updated metadata URI suffix
        return metadataSuffixURI;
    }

/**
 * @dev Check if an interface is supported.
 *
 * This function checks whether a specific interface, identified by its `interfaceId`, is
 * supported by the contract. It overrides the `supportsInterface` function provided by
 * the OpenZeppelin `ERC721`, `ERC721Enumerable`, and `ERC721URIStorage` contracts.
 *
 * @param interfaceId The interface identifier to check for support.
 * @return `true` if the interface is supported; otherwise, `false`.
 */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, ERC721URIStorage)
        returns (bool)
    {
        // Call the parent contract's supportsInterface function and return the result
        return super.supportsInterface(interfaceId);
    }

}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 3 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 4 of 21 : IERC4906.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4906.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";
import "./IERC721.sol";

/// @title EIP-721 Metadata Update Extension
interface IERC4906 is IERC165, IERC721 {
    /// @dev This event emits when the metadata of a token is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFT.
    event MetadataUpdate(uint256 _tokenId);

    /// @dev This event emits when the metadata of a range of tokens is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFTs.
    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}

File 5 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 6 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

File 7 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 8 of 21 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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 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), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}

File 9 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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 See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        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 10 of 21 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../interfaces/IERC4906.sol";

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

        return super.tokenURI(tokenId);
    }

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

        emit MetadataUpdate(tokenId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

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

File 11 of 21 : 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);
}

File 12 of 21 : 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 13 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 14 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 15 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 16 of 21 : 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 17 of 21 : 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 18 of 21 : 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 19 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 20 of 21 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 21 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"alreadyMintedNFTs","type":"uint256[]"}],"name":"AlreadyMintedNFTs","type":"event"},{"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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"treasuryAddress","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"BatchMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newMetadataPrefixURI","type":"string"}],"name":"ChangeMetadataPrefix","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newMetadataSuffixURI","type":"string"}],"name":"ChangeMetadataSuffix","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTreasuryWallet","type":"address"}],"name":"ChangeTreasuryWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasuryWallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"}],"name":"MintNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"TransferOwnership","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfNFTs","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchMintingByPassingTokenIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetaDataPrefixURI","type":"string"}],"name":"changeMetaDataPrefixURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetadataSuffixURI","type":"string"}],"name":"changeMetaDataSuffixURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwnership","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasuryWallet","type":"address"}],"name":"changeTreasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"a","type":"string"},{"internalType":"string","name":"b","type":"string"},{"internalType":"string","name":"c","type":"string"}],"name":"concatenateStrings","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMetadataPrefixURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMetadataSuffixURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintingByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftData","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"bool","name":"isBurnt","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"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":"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"},{"inputs":[],"name":"treasurywallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"metadataUri","type":"string"}],"name":"updateMetadataURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162005a4838038062005a48833981810160405281019062000037919062000308565b6040518060400160405280601781526020017f4d65726b6c65747265652062792049424241204e4654730000000000000000008152506040518060400160405280600581526020017f4d524b4c540000000000000000000000000000000000000000000000000000008152508160009081620000b49190620005c9565b508060019081620000c69190620005c9565b5050506000600b60006101000a81548160ff02191690831515021790555062000104620000f8620001d060201b60201c565b620001d860201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000176576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200016d9062000737565b60405180910390fd5b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001c881620001d860201b60201c565b505062000759565b600033905090565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002d082620002a3565b9050919050565b620002e281620002c3565b8114620002ee57600080fd5b50565b6000815190506200030281620002d7565b92915050565b600080604083850312156200032257620003216200029e565b5b60006200033285828601620002f1565b92505060206200034585828601620002f1565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003d157607f821691505b602082108103620003e757620003e662000389565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000412565b6200045d868362000412565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004aa620004a46200049e8462000475565b6200047f565b62000475565b9050919050565b6000819050919050565b620004c68362000489565b620004de620004d582620004b1565b8484546200041f565b825550505050565b600090565b620004f5620004e6565b62000502818484620004bb565b505050565b5b818110156200052a576200051e600082620004eb565b60018101905062000508565b5050565b601f82111562000579576200054381620003ed565b6200054e8462000402565b810160208510156200055e578190505b620005766200056d8562000402565b83018262000507565b50505b505050565b600082821c905092915050565b60006200059e600019846008026200057e565b1980831691505092915050565b6000620005b983836200058b565b9150826002028217905092915050565b620005d4826200034f565b67ffffffffffffffff811115620005f057620005ef6200035a565b5b620005fc8254620003b8565b620006098282856200052e565b600060209050601f8311600181146200064157600084156200062c578287015190505b620006388582620005ab565b865550620006a8565b601f1984166200065186620003ed565b60005b828110156200067b5784890151825560018201915060208501945060208101905062000654565b868310156200069b578489015162000697601f8916826200058b565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f54726561737572792077616c6c65742063616e206e6f7420626520656d70747960008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b60006200071f602183620006b0565b91506200072c82620006c1565b604082019050919050565b60006020820190508181036000830152620007528162000710565b9050919050565b6152df80620007696000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80635c975abb1161012557806395d89b41116100ad578063c87b56dd1161007c578063c87b56dd14610650578063d565a1cd14610680578063e9643811146106b2578063e985e9c5146106d0578063f2fde38b1461070057610211565b806395d89b41146105dc57806399fb0d86146105fa578063a22cb46514610618578063b88d4fde1461063457610211565b80638456cb59116100f45780638456cb59146105345780638c2109751461053e5780638da5cb5b146105705780638fe86b3f1461058e57806393946da5146105be57610211565b80635c975abb146104ac5780636352211e146104ca57806370a08231146104fa578063715018a61461052a57610211565b80632f745c59116101a85780633f4ba83a116101775780633f4ba83a1461040a57806342842e0e1461041457806342966c68146104305780634f6ccce71461044c578063537c1ac71461047c57610211565b80632f745c591461034a5780633cb7c34f1461037a5780633d687215146103aa5780633d79ca1a146103da57610211565b806318160ddd116101e457806318160ddd146102b05780631c15cc00146102ce57806323b872dd146102fe5780632af4c31e1461031a57610211565b806301ffc9a71461021657806306fdde0314610246578063081812fc14610264578063095ea7b314610294575b600080fd5b610230600480360381019061022b919061376a565b61071c565b60405161023d91906137b2565b60405180910390f35b61024e61072e565b60405161025b919061385d565b60405180910390f35b61027e600480360381019061027991906138b5565b6107c0565b60405161028b9190613923565b60405180910390f35b6102ae60048036038101906102a9919061396a565b610806565b005b6102b861091d565b6040516102c591906139b9565b60405180910390f35b6102e860048036038101906102e39190613b09565b61092a565b6040516102f5919061385d565b60405180910390f35b61031860048036038101906103139190613b52565b610a0d565b005b610334600480360381019061032f9190613ba5565b610a6d565b6040516103419190613923565b60405180910390f35b610364600480360381019061035f919061396a565b610b2e565b60405161037191906139b9565b60405180910390f35b610394600480360381019061038f9190613bd2565b610bd3565b6040516103a1919061385d565b60405180910390f35b6103c460048036038101906103bf9190613b09565b610e02565b6040516103d1919061385d565b60405180910390f35b6103f460048036038101906103ef9190613d41565b610ee5565b60405161040191906137b2565b60405180910390f35b6104126112a3565b005b61042e60048036038101906104299190613b52565b6112b5565b005b61044a600480360381019061044591906138b5565b6112d5565b005b610466600480360381019061046191906138b5565b611331565b60405161047391906139b9565b60405180910390f35b61049660048036038101906104919190613ba5565b6113a2565b6040516104a39190613923565b60405180910390f35b6104b461149b565b6040516104c191906137b2565b60405180910390f35b6104e460048036038101906104df91906138b5565b6114b2565b6040516104f19190613923565b60405180910390f35b610514600480360381019061050f9190613ba5565b611538565b60405161052191906139b9565b60405180910390f35b6105326115ef565b005b61053c611603565b005b610558600480360381019061055391906138b5565b611615565b60405161056793929190613d9d565b60405180910390f35b6105786116d4565b6040516105859190613923565b60405180910390f35b6105a860048036038101906105a39190613ddb565b6116fe565b6040516105b591906137b2565b60405180910390f35b6105c6611764565b6040516105d39190613923565b60405180910390f35b6105e461178a565b6040516105f1919061385d565b60405180910390f35b61060261181c565b60405161060f919061385d565b60405180910390f35b610632600480360381019061062d9190613e63565b6118b6565b005b61064e60048036038101906106499190613f44565b6118cc565b005b61066a600480360381019061066591906138b5565b61192e565b604051610677919061385d565b60405180910390f35b61069a60048036038101906106959190613fc7565b611aac565b6040516106a993929190614007565b60405180910390f35b6106ba611be1565b6040516106c7919061385d565b60405180910390f35b6106ea60048036038101906106e59190614045565b611c7b565b6040516106f791906137b2565b60405180910390f35b61071a60048036038101906107159190613ba5565b611d0f565b005b600061072782611d92565b9050919050565b60606000805461073d906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054610769906140b4565b80156107b65780601f1061078b576101008083540402835291602001916107b6565b820191906000526020600020905b81548152906001019060200180831161079957829003601f168201915b5050505050905090565b60006107cb82611df3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610811826114b2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087890614157565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108a0611e3e565b73ffffffffffffffffffffffffffffffffffffffff1614806108cf57506108ce816108c9611e3e565b611c7b565b5b61090e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610905906141e9565b60405180910390fd5b6109188383611e46565b505050565b6000600880549050905090565b6060610934611eff565b81600d908161094391906143b5565b507f578508a4da04d2deca7e1f0f9d367e50ab4298e8b2dfb24beec9708540199f1482604051610973919061385d565b60405180910390a1600d8054610988906140b4565b80601f01602080910402602001604051908101604052809291908181526020018280546109b4906140b4565b8015610a015780601f106109d657610100808354040283529160200191610a01565b820191906000526020600020905b8154815290600101906020018083116109e457829003601f168201915b50505050509050919050565b610a1e610a18611e3e565b82611f7d565b610a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a54906144f9565b60405180910390fd5b610a68838383612012565b505050565b6000610a77611eff565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add9061458b565b60405180910390fd5b610aef8261230b565b7fcfaaa26691e16e66e73290fc725eee1a6b4e0e693a1640484937aac25ffb55a482604051610b1e9190613923565b60405180910390a1819050919050565b6000610b3983611538565b8210610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b719061461d565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60606000849050600084905060008490506000815183518551610bf6919061466c565b610c00919061466c565b67ffffffffffffffff811115610c1957610c186139de565b5b6040519080825280601f01601f191660200182016040528015610c4b5781602001600182028036833780820191505090505b5090506000805b8551811015610cda57858181518110610c6e57610c6d6146a0565b5b602001015160f81c60f81b838380610c85906146cf565b945081518110610c9857610c976146a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080610cd2906146cf565b915050610c52565b5060005b8451811015610d6657848181518110610cfa57610cf96146a0565b5b602001015160f81c60f81b838380610d11906146cf565b945081518110610d2457610d236146a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080610d5e906146cf565b915050610cde565b5060005b8351811015610df257838181518110610d8657610d856146a0565b5b602001015160f81c60f81b838380610d9d906146cf565b945081518110610db057610daf6146a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080610dea906146cf565b915050610d6a565b5081955050505050509392505050565b6060610e0c611eff565b81600c9081610e1b91906143b5565b507f606c793fd43f735e30c5a8667f2195d9bc98070eef49f530fa6ed6b231e3ec6282604051610e4b919061385d565b60405180910390a1600c8054610e60906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8c906140b4565b8015610ed95780601f10610eae57610100808354040283529160200191610ed9565b820191906000526020600020905b815481529060010190602001808311610ebc57829003601f168201915b50505050509050919050565b6000610eef611eff565b82825114610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f29906147af565b60405180910390fd5b6000825167ffffffffffffffff811115610f4f57610f4e6139de565b5b604051908082528060200260200182016040528015610f7d5781602001602082028036833780820191505090505b5090506000835167ffffffffffffffff811115610f9d57610f9c6139de565b5b604051908082528060200260200182016040528015610fcb5781602001602082028036833780820191505090505b50905060008060005b878110156111e757610fff878281518110610ff257610ff16146a0565b5b60200260200101516123d1565b1561105157868181518110611017576110166146a0565b5b6020026020010151858481518110611032576110316146a0565b5b6020026020010181815250508280611049906146cf565b9350506111d4565b611097600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688838151811061108a576110896146a0565b5b6020026020010151612412565b60006110bc8883815181106110af576110ae6146a0565b5b602002602001015161192e565b90506110e28883815181106110d4576110d36146a0565b5b602002602001015182612430565b6040518060600160405280898481518110611100576110ff6146a0565b5b6020026020010151815260200182815260200160001515815250600f60008a8581518110611131576111306146a0565b5b6020026020010151815260200190815260200160002060008201518160000155602082015181600101908161116691906143b5565b5060408201518160020160006101000a81548160ff02191690831515021790555090505087828151811061119d5761119c6146a0565b5b60200260200101518584815181106111b8576111b76146a0565b5b60200260200101818152505082806111cf906146cf565b935050505b80806111df906146cf565b915050610fd4565b50600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0fccc44f8f4572066001d167eac735aa3f72308ef306fd3af1b0bb0b6a7ba90f84604051611250919061488d565b60405180910390a27f4cd14f2798413b3c9257174c53ca4fe07d7e956189f69894ec2664621b271edf84604051611287919061488d565b60405180910390a1818452808352600194505050505092915050565b6112ab611eff565b6112b36124d4565b565b6112d0838383604051806020016040528060008152506118cc565b505050565b6112e66112e0611e3e565b82611f7d565b611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c906144f9565b60405180910390fd5b61132e81612537565b50565b600061133b61091d565b821061137c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137390614921565b60405180910390fd5b600882815481106113905761138f6146a0565b5b90600052602060002001549050919050565b60006113ac611eff565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361141b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611412906149b3565b60405180910390fd5b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f06fa0b11d19b1fc1ebfeef70f0eb1fdfb7cef13063ee8428b7039e243e4138ed8260405161148b9190613923565b60405180910390a1819050919050565b6000600b60009054906101000a900460ff16905090565b6000806114be83612572565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361152f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152690614a1f565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159f90614ab1565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115f7611eff565b611601600061230b565b565b61160b611eff565b6116136125af565b565b600f60205280600052604060002060009150905080600001549080600101805461163e906140b4565b80601f016020809104026020016040519081016040528092919081815260200182805461166a906140b4565b80156116b75780601f1061168c576101008083540402835291602001916116b7565b820191906000526020600020905b81548152906001019060200180831161169a57829003601f168201915b5050505050908060020160009054906101000a900460ff16905083565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611708611eff565b611711836123d1565b611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614b1d565b60405180910390fd5b61175a8383612430565b6001905092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060018054611799906140b4565b80601f01602080910402602001604051908101604052809291908181526020018280546117c5906140b4565b80156118125780601f106117e757610100808354040283529160200191611812565b820191906000526020600020905b8154815290600101906020018083116117f557829003601f168201915b5050505050905090565b6060611826611eff565b600c8054611833906140b4565b80601f016020809104026020016040519081016040528092919081815260200182805461185f906140b4565b80156118ac5780601f10611881576101008083540402835291602001916118ac565b820191906000526020600020905b81548152906001019060200180831161188f57829003601f168201915b5050505050905090565b6118c86118c1611e3e565b8383612612565b5050565b6118dd6118d7611e3e565b83611f7d565b61191c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611913906144f9565b60405180910390fd5b6119288484848461277e565b50505050565b6060611939826123d1565b611978576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196f90614b1d565b60405180910390fd5b6000611aa1600c805461198a906140b4565b80601f01602080910402602001604051908101604052809291908181526020018280546119b6906140b4565b8015611a035780601f106119d857610100808354040283529160200191611a03565b820191906000526020600020905b8154815290600101906020018083116119e657829003601f168201915b5050505050611a11856127da565b600d8054611a1e906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4a906140b4565b8015611a975780601f10611a6c57610100808354040283529160200191611a97565b820191906000526020600020905b815481529060010190602001808311611a7a57829003601f168201915b5050505050610bd3565b905080915050919050565b6000806060611ab9611eff565b611ac2856123d1565b15611b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af990614b89565b60405180910390fd5b7f1f89f147a58d1673945cf416187db98efc8208408c011b91887acd59fd8523c38486604051611b33929190614ba9565b60405180910390a1611b458486612412565b6000611b508661192e565b9050611b5c8682612430565b604051806060016040528087815260200182815260200160001515815250600f6000888152602001908152602001600020600082015181600001556020820151816001019081611bac91906143b5565b5060408201518160020160006101000a81548160ff021916908315150217905550905050858582935093509350509250925092565b6060611beb611eff565b600d8054611bf8906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c24906140b4565b8015611c715780601f10611c4657610100808354040283529160200191611c71565b820191906000526020600020905b815481529060010190602001808311611c5457829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d17611eff565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7d9061458b565b60405180910390fd5b611d8f8161230b565b50565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dec5750611deb826128a8565b5b9050919050565b611dfc816123d1565b611e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3290614a1f565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611eb9836114b2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611f07611e3e565b73ffffffffffffffffffffffffffffffffffffffff16611f256116d4565b73ffffffffffffffffffffffffffffffffffffffff1614611f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7290614c1e565b60405180910390fd5b565b600080611f89836114b2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fcb5750611fca8185611c7b565b5b8061200957508373ffffffffffffffffffffffffffffffffffffffff16611ff1846107c0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612032826114b2565b73ffffffffffffffffffffffffffffffffffffffff1614612088576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207f90614cb0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ee90614d42565b60405180910390fd5b6121048383836001612922565b8273ffffffffffffffffffffffffffffffffffffffff16612124826114b2565b73ffffffffffffffffffffffffffffffffffffffff161461217a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217190614cb0565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612306838383600161293c565b505050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff166123f383612572565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61242c828260405180602001604052806000815250612942565b5050565b612439826123d1565b612478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246f90614dd4565b60405180910390fd5b80600a6000848152602001908152602001600020908161249891906143b5565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7826040516124c891906139b9565b60405180910390a15050565b6124dc61299d565b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612520611e3e565b60405161252d9190613923565b60405180910390a1565b612540816129e6565b6001600f600083815260200190815260200160002060020160006101000a81548160ff02191690831515021790555050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6125b7612a39565b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125fb611e3e565b6040516126089190613923565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267790614e40565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161277191906137b2565b60405180910390a3505050565b612789848484612012565b61279584848484612a83565b6127d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127cb90614ed2565b60405180910390fd5b50505050565b6060600060016127e984612c0a565b01905060008167ffffffffffffffff811115612808576128076139de565b5b6040519080825280601f01601f19166020018201604052801561283a5781602001600182028036833780820191505090505b509050600082602001820190505b60011561289d578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161289157612890614ef2565b5b04945060008503612848575b819350505050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061291b575061291a82612d5d565b5b9050919050565b61292a612a39565b61293684848484612e3f565b50505050565b50505050565b61294c8383612f9d565b6129596000848484612a83565b612998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298f90614ed2565b60405180910390fd5b505050565b6129a561149b565b6129e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129db90614f6d565b60405180910390fd5b565b6129ef816131ba565b6000600a60008381526020019081526020016000208054612a0f906140b4565b905014612a3657600a60008281526020019081526020016000206000612a3591906136a1565b5b50565b612a4161149b565b15612a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7890614fd9565b60405180910390fd5b565b6000612aa48473ffffffffffffffffffffffffffffffffffffffff16613308565b15612bfd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612acd611e3e565b8786866040518563ffffffff1660e01b8152600401612aef949392919061504e565b6020604051808303816000875af1925050508015612b2b57506040513d601f19601f82011682018060405250810190612b2891906150af565b60015b612bad573d8060008114612b5b576040519150601f19603f3d011682016040523d82523d6000602084013e612b60565b606091505b506000815103612ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9c90614ed2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c02565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612c68577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612c5e57612c5d614ef2565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612ca5576d04ee2d6d415b85acef81000000008381612c9b57612c9a614ef2565b5b0492506020810190505b662386f26fc100008310612cd457662386f26fc100008381612cca57612cc9614ef2565b5b0492506010810190505b6305f5e1008310612cfd576305f5e1008381612cf357612cf2614ef2565b5b0492506008810190505b6127108310612d22576127108381612d1857612d17614ef2565b5b0492506004810190505b60648310612d455760648381612d3b57612d3a614ef2565b5b0492506002810190505b600a8310612d54576001810190505b80915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e2857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e385750612e378261332b565b5b9050919050565b612e4b84848484613395565b6001811115612e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e869061514e565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612ed657612ed18161339b565b612f15565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612f1457612f1385826133e4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f5757612f5281613551565b612f96565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f9557612f948482613622565b5b5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361300c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613003906151ba565b60405180910390fd5b613015816123d1565b15613055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304c90615226565b60405180910390fd5b613063600083836001612922565b61306c816123d1565b156130ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a390615226565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131b660008383600161293c565b5050565b60006131c5826114b2565b90506131d5816000846001612922565b6131de826114b2565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461330481600084600161293c565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133f184611538565b6133fb9190615246565b90506000600760008481526020019081526020016000205490508181146134e0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135659190615246565b9050600060096000848152602001908152602001600020549050600060088381548110613595576135946146a0565b5b9060005260206000200154905080600883815481106135b7576135b66146a0565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806136065761360561527a565b5b6001900381819060005260206000200160009055905550505050565b600061362d83611538565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b5080546136ad906140b4565b6000825580601f106136bf57506136de565b601f0160209004906000526020600020908101906136dd91906136e1565b5b50565b5b808211156136fa5760008160009055506001016136e2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61374781613712565b811461375257600080fd5b50565b6000813590506137648161373e565b92915050565b6000602082840312156137805761377f613708565b5b600061378e84828501613755565b91505092915050565b60008115159050919050565b6137ac81613797565b82525050565b60006020820190506137c760008301846137a3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138075780820151818401526020810190506137ec565b60008484015250505050565b6000601f19601f8301169050919050565b600061382f826137cd565b61383981856137d8565b93506138498185602086016137e9565b61385281613813565b840191505092915050565b600060208201905081810360008301526138778184613824565b905092915050565b6000819050919050565b6138928161387f565b811461389d57600080fd5b50565b6000813590506138af81613889565b92915050565b6000602082840312156138cb576138ca613708565b5b60006138d9848285016138a0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061390d826138e2565b9050919050565b61391d81613902565b82525050565b60006020820190506139386000830184613914565b92915050565b61394781613902565b811461395257600080fd5b50565b6000813590506139648161393e565b92915050565b6000806040838503121561398157613980613708565b5b600061398f85828601613955565b92505060206139a0858286016138a0565b9150509250929050565b6139b38161387f565b82525050565b60006020820190506139ce60008301846139aa565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a1682613813565b810181811067ffffffffffffffff82111715613a3557613a346139de565b5b80604052505050565b6000613a486136fe565b9050613a548282613a0d565b919050565b600067ffffffffffffffff821115613a7457613a736139de565b5b613a7d82613813565b9050602081019050919050565b82818337600083830152505050565b6000613aac613aa784613a59565b613a3e565b905082815260208101848484011115613ac857613ac76139d9565b5b613ad3848285613a8a565b509392505050565b600082601f830112613af057613aef6139d4565b5b8135613b00848260208601613a99565b91505092915050565b600060208284031215613b1f57613b1e613708565b5b600082013567ffffffffffffffff811115613b3d57613b3c61370d565b5b613b4984828501613adb565b91505092915050565b600080600060608486031215613b6b57613b6a613708565b5b6000613b7986828701613955565b9350506020613b8a86828701613955565b9250506040613b9b868287016138a0565b9150509250925092565b600060208284031215613bbb57613bba613708565b5b6000613bc984828501613955565b91505092915050565b600080600060608486031215613beb57613bea613708565b5b600084013567ffffffffffffffff811115613c0957613c0861370d565b5b613c1586828701613adb565b935050602084013567ffffffffffffffff811115613c3657613c3561370d565b5b613c4286828701613adb565b925050604084013567ffffffffffffffff811115613c6357613c6261370d565b5b613c6f86828701613adb565b9150509250925092565b600067ffffffffffffffff821115613c9457613c936139de565b5b602082029050602081019050919050565b600080fd5b6000613cbd613cb884613c79565b613a3e565b90508083825260208201905060208402830185811115613ce057613cdf613ca5565b5b835b81811015613d095780613cf588826138a0565b845260208401935050602081019050613ce2565b5050509392505050565b600082601f830112613d2857613d276139d4565b5b8135613d38848260208601613caa565b91505092915050565b60008060408385031215613d5857613d57613708565b5b6000613d66858286016138a0565b925050602083013567ffffffffffffffff811115613d8757613d8661370d565b5b613d9385828601613d13565b9150509250929050565b6000606082019050613db260008301866139aa565b8181036020830152613dc48185613824565b9050613dd360408301846137a3565b949350505050565b60008060408385031215613df257613df1613708565b5b6000613e00858286016138a0565b925050602083013567ffffffffffffffff811115613e2157613e2061370d565b5b613e2d85828601613adb565b9150509250929050565b613e4081613797565b8114613e4b57600080fd5b50565b600081359050613e5d81613e37565b92915050565b60008060408385031215613e7a57613e79613708565b5b6000613e8885828601613955565b9250506020613e9985828601613e4e565b9150509250929050565b600067ffffffffffffffff821115613ebe57613ebd6139de565b5b613ec782613813565b9050602081019050919050565b6000613ee7613ee284613ea3565b613a3e565b905082815260208101848484011115613f0357613f026139d9565b5b613f0e848285613a8a565b509392505050565b600082601f830112613f2b57613f2a6139d4565b5b8135613f3b848260208601613ed4565b91505092915050565b60008060008060808587031215613f5e57613f5d613708565b5b6000613f6c87828801613955565b9450506020613f7d87828801613955565b9350506040613f8e878288016138a0565b925050606085013567ffffffffffffffff811115613faf57613fae61370d565b5b613fbb87828801613f16565b91505092959194509250565b60008060408385031215613fde57613fdd613708565b5b6000613fec858286016138a0565b9250506020613ffd85828601613955565b9150509250929050565b600060608201905061401c60008301866139aa565b6140296020830185613914565b818103604083015261403b8184613824565b9050949350505050565b6000806040838503121561405c5761405b613708565b5b600061406a85828601613955565b925050602061407b85828601613955565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140cc57607f821691505b6020821081036140df576140de614085565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006141416021836137d8565b915061414c826140e5565b604082019050919050565b6000602082019050818103600083015261417081614134565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006141d3603d836137d8565b91506141de82614177565b604082019050919050565b60006020820190508181036000830152614202816141c6565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261426b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261422e565b614275868361422e565b95508019841693508086168417925050509392505050565b6000819050919050565b60006142b26142ad6142a88461387f565b61428d565b61387f565b9050919050565b6000819050919050565b6142cc83614297565b6142e06142d8826142b9565b84845461423b565b825550505050565b600090565b6142f56142e8565b6143008184846142c3565b505050565b5b81811015614324576143196000826142ed565b600181019050614306565b5050565b601f8211156143695761433a81614209565b6143438461421e565b81016020851015614352578190505b61436661435e8561421e565b830182614305565b50505b505050565b600082821c905092915050565b600061438c6000198460080261436e565b1980831691505092915050565b60006143a5838361437b565b9150826002028217905092915050565b6143be826137cd565b67ffffffffffffffff8111156143d7576143d66139de565b5b6143e182546140b4565b6143ec828285614328565b600060209050601f83116001811461441f576000841561440d578287015190505b6144178582614399565b86555061447f565b601f19841661442d86614209565b60005b8281101561445557848901518255600182019150602085019450602081019050614430565b86831015614472578489015161446e601f89168261437b565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006144e3602d836137d8565b91506144ee82614487565b604082019050919050565b60006020820190508181036000830152614512816144d6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145756026836137d8565b915061458082614519565b604082019050919050565b600060208201905081810360008301526145a481614568565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614607602b836137d8565b9150614612826145ab565b604082019050919050565b60006020820190508181036000830152614636816145fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146778261387f565b91506146828361387f565b925082820190508082111561469a5761469961463d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006146da8261387f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361470c5761470b61463d565b5b600182019050919050565b7f546865206e756d626572206f6620546f6b656e2049447320666f72204e46547360008201527f20646f6573206e6f74206d6174636820746865206e756d626572206f66204e4660208201527f5473000000000000000000000000000000000000000000000000000000000000604082015250565b60006147996042836137d8565b91506147a482614717565b606082019050919050565b600060208201905081810360008301526147c88161478c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6148048161387f565b82525050565b600061481683836147fb565b60208301905092915050565b6000602082019050919050565b600061483a826147cf565b61484481856147da565b935061484f836147eb565b8060005b83811015614880578151614867888261480a565b975061487283614822565b925050600181019050614853565b5085935050505092915050565b600060208201905081810360008301526148a7818461482f565b905092915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061490b602c836137d8565b9150614916826148af565b604082019050919050565b6000602082019050818103600083015261493a816148fe565b9050919050565b7f5472656173757275204164647265737320697320746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061499d6024836137d8565b91506149a882614941565b604082019050919050565b600060208201905081810360008301526149cc81614990565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614a096018836137d8565b9150614a14826149d3565b602082019050919050565b60006020820190508181036000830152614a38816149fc565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614a9b6029836137d8565b9150614aa682614a3f565b604082019050919050565b60006020820190508181036000830152614aca81614a8e565b9050919050565b7f546f6b656e20494420646f6573206e6f74206578697374210000000000000000600082015250565b6000614b076018836137d8565b9150614b1282614ad1565b602082019050919050565b60006020820190508181036000830152614b3681614afa565b9050919050565b7f546f6b656e20494420616c726561647920657869737473210000000000000000600082015250565b6000614b736018836137d8565b9150614b7e82614b3d565b602082019050919050565b60006020820190508181036000830152614ba281614b66565b9050919050565b6000604082019050614bbe6000830185613914565b614bcb60208301846139aa565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614c086020836137d8565b9150614c1382614bd2565b602082019050919050565b60006020820190508181036000830152614c3781614bfb565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c9a6025836137d8565b9150614ca582614c3e565b604082019050919050565b60006020820190508181036000830152614cc981614c8d565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d2c6024836137d8565b9150614d3782614cd0565b604082019050919050565b60006020820190508181036000830152614d5b81614d1f565b9050919050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000614dbe602e836137d8565b9150614dc982614d62565b604082019050919050565b60006020820190508181036000830152614ded81614db1565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614e2a6019836137d8565b9150614e3582614df4565b602082019050919050565b60006020820190508181036000830152614e5981614e1d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614ebc6032836137d8565b9150614ec782614e60565b604082019050919050565b60006020820190508181036000830152614eeb81614eaf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614f576014836137d8565b9150614f6282614f21565b602082019050919050565b60006020820190508181036000830152614f8681614f4a565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614fc36010836137d8565b9150614fce82614f8d565b602082019050919050565b60006020820190508181036000830152614ff281614fb6565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061502082614ff9565b61502a8185615004565b935061503a8185602086016137e9565b61504381613813565b840191505092915050565b60006080820190506150636000830187613914565b6150706020830186613914565b61507d60408301856139aa565b818103606083015261508f8184615015565b905095945050505050565b6000815190506150a98161373e565b92915050565b6000602082840312156150c5576150c4613708565b5b60006150d38482850161509a565b91505092915050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b60006151386035836137d8565b9150615143826150dc565b604082019050919050565b600060208201905081810360008301526151678161512b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006151a46020836137d8565b91506151af8261516e565b602082019050919050565b600060208201905081810360008301526151d381615197565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615210601c836137d8565b915061521b826151da565b602082019050919050565b6000602082019050818103600083015261523f81615203565b9050919050565b60006152518261387f565b915061525c8361387f565b92508282039050818111156152745761527361463d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220a4165bf1407d4f7545a88afb8506e9fe6453b142ef9983856d7c0cfbee34f2af64736f6c634300081100330000000000000000000000004fdc1e2132fc95e92c6daf31bce68bae65bf45b40000000000000000000000002a398c735a7061b04dbc3588e17f9bb206bf8a08

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102115760003560e01c80635c975abb1161012557806395d89b41116100ad578063c87b56dd1161007c578063c87b56dd14610650578063d565a1cd14610680578063e9643811146106b2578063e985e9c5146106d0578063f2fde38b1461070057610211565b806395d89b41146105dc57806399fb0d86146105fa578063a22cb46514610618578063b88d4fde1461063457610211565b80638456cb59116100f45780638456cb59146105345780638c2109751461053e5780638da5cb5b146105705780638fe86b3f1461058e57806393946da5146105be57610211565b80635c975abb146104ac5780636352211e146104ca57806370a08231146104fa578063715018a61461052a57610211565b80632f745c59116101a85780633f4ba83a116101775780633f4ba83a1461040a57806342842e0e1461041457806342966c68146104305780634f6ccce71461044c578063537c1ac71461047c57610211565b80632f745c591461034a5780633cb7c34f1461037a5780633d687215146103aa5780633d79ca1a146103da57610211565b806318160ddd116101e457806318160ddd146102b05780631c15cc00146102ce57806323b872dd146102fe5780632af4c31e1461031a57610211565b806301ffc9a71461021657806306fdde0314610246578063081812fc14610264578063095ea7b314610294575b600080fd5b610230600480360381019061022b919061376a565b61071c565b60405161023d91906137b2565b60405180910390f35b61024e61072e565b60405161025b919061385d565b60405180910390f35b61027e600480360381019061027991906138b5565b6107c0565b60405161028b9190613923565b60405180910390f35b6102ae60048036038101906102a9919061396a565b610806565b005b6102b861091d565b6040516102c591906139b9565b60405180910390f35b6102e860048036038101906102e39190613b09565b61092a565b6040516102f5919061385d565b60405180910390f35b61031860048036038101906103139190613b52565b610a0d565b005b610334600480360381019061032f9190613ba5565b610a6d565b6040516103419190613923565b60405180910390f35b610364600480360381019061035f919061396a565b610b2e565b60405161037191906139b9565b60405180910390f35b610394600480360381019061038f9190613bd2565b610bd3565b6040516103a1919061385d565b60405180910390f35b6103c460048036038101906103bf9190613b09565b610e02565b6040516103d1919061385d565b60405180910390f35b6103f460048036038101906103ef9190613d41565b610ee5565b60405161040191906137b2565b60405180910390f35b6104126112a3565b005b61042e60048036038101906104299190613b52565b6112b5565b005b61044a600480360381019061044591906138b5565b6112d5565b005b610466600480360381019061046191906138b5565b611331565b60405161047391906139b9565b60405180910390f35b61049660048036038101906104919190613ba5565b6113a2565b6040516104a39190613923565b60405180910390f35b6104b461149b565b6040516104c191906137b2565b60405180910390f35b6104e460048036038101906104df91906138b5565b6114b2565b6040516104f19190613923565b60405180910390f35b610514600480360381019061050f9190613ba5565b611538565b60405161052191906139b9565b60405180910390f35b6105326115ef565b005b61053c611603565b005b610558600480360381019061055391906138b5565b611615565b60405161056793929190613d9d565b60405180910390f35b6105786116d4565b6040516105859190613923565b60405180910390f35b6105a860048036038101906105a39190613ddb565b6116fe565b6040516105b591906137b2565b60405180910390f35b6105c6611764565b6040516105d39190613923565b60405180910390f35b6105e461178a565b6040516105f1919061385d565b60405180910390f35b61060261181c565b60405161060f919061385d565b60405180910390f35b610632600480360381019061062d9190613e63565b6118b6565b005b61064e60048036038101906106499190613f44565b6118cc565b005b61066a600480360381019061066591906138b5565b61192e565b604051610677919061385d565b60405180910390f35b61069a60048036038101906106959190613fc7565b611aac565b6040516106a993929190614007565b60405180910390f35b6106ba611be1565b6040516106c7919061385d565b60405180910390f35b6106ea60048036038101906106e59190614045565b611c7b565b6040516106f791906137b2565b60405180910390f35b61071a60048036038101906107159190613ba5565b611d0f565b005b600061072782611d92565b9050919050565b60606000805461073d906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054610769906140b4565b80156107b65780601f1061078b576101008083540402835291602001916107b6565b820191906000526020600020905b81548152906001019060200180831161079957829003601f168201915b5050505050905090565b60006107cb82611df3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610811826114b2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087890614157565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108a0611e3e565b73ffffffffffffffffffffffffffffffffffffffff1614806108cf57506108ce816108c9611e3e565b611c7b565b5b61090e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610905906141e9565b60405180910390fd5b6109188383611e46565b505050565b6000600880549050905090565b6060610934611eff565b81600d908161094391906143b5565b507f578508a4da04d2deca7e1f0f9d367e50ab4298e8b2dfb24beec9708540199f1482604051610973919061385d565b60405180910390a1600d8054610988906140b4565b80601f01602080910402602001604051908101604052809291908181526020018280546109b4906140b4565b8015610a015780601f106109d657610100808354040283529160200191610a01565b820191906000526020600020905b8154815290600101906020018083116109e457829003601f168201915b50505050509050919050565b610a1e610a18611e3e565b82611f7d565b610a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a54906144f9565b60405180910390fd5b610a68838383612012565b505050565b6000610a77611eff565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add9061458b565b60405180910390fd5b610aef8261230b565b7fcfaaa26691e16e66e73290fc725eee1a6b4e0e693a1640484937aac25ffb55a482604051610b1e9190613923565b60405180910390a1819050919050565b6000610b3983611538565b8210610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b719061461d565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60606000849050600084905060008490506000815183518551610bf6919061466c565b610c00919061466c565b67ffffffffffffffff811115610c1957610c186139de565b5b6040519080825280601f01601f191660200182016040528015610c4b5781602001600182028036833780820191505090505b5090506000805b8551811015610cda57858181518110610c6e57610c6d6146a0565b5b602001015160f81c60f81b838380610c85906146cf565b945081518110610c9857610c976146a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080610cd2906146cf565b915050610c52565b5060005b8451811015610d6657848181518110610cfa57610cf96146a0565b5b602001015160f81c60f81b838380610d11906146cf565b945081518110610d2457610d236146a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080610d5e906146cf565b915050610cde565b5060005b8351811015610df257838181518110610d8657610d856146a0565b5b602001015160f81c60f81b838380610d9d906146cf565b945081518110610db057610daf6146a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080610dea906146cf565b915050610d6a565b5081955050505050509392505050565b6060610e0c611eff565b81600c9081610e1b91906143b5565b507f606c793fd43f735e30c5a8667f2195d9bc98070eef49f530fa6ed6b231e3ec6282604051610e4b919061385d565b60405180910390a1600c8054610e60906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8c906140b4565b8015610ed95780601f10610eae57610100808354040283529160200191610ed9565b820191906000526020600020905b815481529060010190602001808311610ebc57829003601f168201915b50505050509050919050565b6000610eef611eff565b82825114610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f29906147af565b60405180910390fd5b6000825167ffffffffffffffff811115610f4f57610f4e6139de565b5b604051908082528060200260200182016040528015610f7d5781602001602082028036833780820191505090505b5090506000835167ffffffffffffffff811115610f9d57610f9c6139de565b5b604051908082528060200260200182016040528015610fcb5781602001602082028036833780820191505090505b50905060008060005b878110156111e757610fff878281518110610ff257610ff16146a0565b5b60200260200101516123d1565b1561105157868181518110611017576110166146a0565b5b6020026020010151858481518110611032576110316146a0565b5b6020026020010181815250508280611049906146cf565b9350506111d4565b611097600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688838151811061108a576110896146a0565b5b6020026020010151612412565b60006110bc8883815181106110af576110ae6146a0565b5b602002602001015161192e565b90506110e28883815181106110d4576110d36146a0565b5b602002602001015182612430565b6040518060600160405280898481518110611100576110ff6146a0565b5b6020026020010151815260200182815260200160001515815250600f60008a8581518110611131576111306146a0565b5b6020026020010151815260200190815260200160002060008201518160000155602082015181600101908161116691906143b5565b5060408201518160020160006101000a81548160ff02191690831515021790555090505087828151811061119d5761119c6146a0565b5b60200260200101518584815181106111b8576111b76146a0565b5b60200260200101818152505082806111cf906146cf565b935050505b80806111df906146cf565b915050610fd4565b50600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0fccc44f8f4572066001d167eac735aa3f72308ef306fd3af1b0bb0b6a7ba90f84604051611250919061488d565b60405180910390a27f4cd14f2798413b3c9257174c53ca4fe07d7e956189f69894ec2664621b271edf84604051611287919061488d565b60405180910390a1818452808352600194505050505092915050565b6112ab611eff565b6112b36124d4565b565b6112d0838383604051806020016040528060008152506118cc565b505050565b6112e66112e0611e3e565b82611f7d565b611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c906144f9565b60405180910390fd5b61132e81612537565b50565b600061133b61091d565b821061137c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137390614921565b60405180910390fd5b600882815481106113905761138f6146a0565b5b90600052602060002001549050919050565b60006113ac611eff565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361141b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611412906149b3565b60405180910390fd5b81600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f06fa0b11d19b1fc1ebfeef70f0eb1fdfb7cef13063ee8428b7039e243e4138ed8260405161148b9190613923565b60405180910390a1819050919050565b6000600b60009054906101000a900460ff16905090565b6000806114be83612572565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361152f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152690614a1f565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159f90614ab1565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115f7611eff565b611601600061230b565b565b61160b611eff565b6116136125af565b565b600f60205280600052604060002060009150905080600001549080600101805461163e906140b4565b80601f016020809104026020016040519081016040528092919081815260200182805461166a906140b4565b80156116b75780601f1061168c576101008083540402835291602001916116b7565b820191906000526020600020905b81548152906001019060200180831161169a57829003601f168201915b5050505050908060020160009054906101000a900460ff16905083565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611708611eff565b611711836123d1565b611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614b1d565b60405180910390fd5b61175a8383612430565b6001905092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060018054611799906140b4565b80601f01602080910402602001604051908101604052809291908181526020018280546117c5906140b4565b80156118125780601f106117e757610100808354040283529160200191611812565b820191906000526020600020905b8154815290600101906020018083116117f557829003601f168201915b5050505050905090565b6060611826611eff565b600c8054611833906140b4565b80601f016020809104026020016040519081016040528092919081815260200182805461185f906140b4565b80156118ac5780601f10611881576101008083540402835291602001916118ac565b820191906000526020600020905b81548152906001019060200180831161188f57829003601f168201915b5050505050905090565b6118c86118c1611e3e565b8383612612565b5050565b6118dd6118d7611e3e565b83611f7d565b61191c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611913906144f9565b60405180910390fd5b6119288484848461277e565b50505050565b6060611939826123d1565b611978576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196f90614b1d565b60405180910390fd5b6000611aa1600c805461198a906140b4565b80601f01602080910402602001604051908101604052809291908181526020018280546119b6906140b4565b8015611a035780601f106119d857610100808354040283529160200191611a03565b820191906000526020600020905b8154815290600101906020018083116119e657829003601f168201915b5050505050611a11856127da565b600d8054611a1e906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4a906140b4565b8015611a975780601f10611a6c57610100808354040283529160200191611a97565b820191906000526020600020905b815481529060010190602001808311611a7a57829003601f168201915b5050505050610bd3565b905080915050919050565b6000806060611ab9611eff565b611ac2856123d1565b15611b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af990614b89565b60405180910390fd5b7f1f89f147a58d1673945cf416187db98efc8208408c011b91887acd59fd8523c38486604051611b33929190614ba9565b60405180910390a1611b458486612412565b6000611b508661192e565b9050611b5c8682612430565b604051806060016040528087815260200182815260200160001515815250600f6000888152602001908152602001600020600082015181600001556020820151816001019081611bac91906143b5565b5060408201518160020160006101000a81548160ff021916908315150217905550905050858582935093509350509250925092565b6060611beb611eff565b600d8054611bf8906140b4565b80601f0160208091040260200160405190810160405280929190818152602001828054611c24906140b4565b8015611c715780601f10611c4657610100808354040283529160200191611c71565b820191906000526020600020905b815481529060010190602001808311611c5457829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d17611eff565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7d9061458b565b60405180910390fd5b611d8f8161230b565b50565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dec5750611deb826128a8565b5b9050919050565b611dfc816123d1565b611e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3290614a1f565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611eb9836114b2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611f07611e3e565b73ffffffffffffffffffffffffffffffffffffffff16611f256116d4565b73ffffffffffffffffffffffffffffffffffffffff1614611f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7290614c1e565b60405180910390fd5b565b600080611f89836114b2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fcb5750611fca8185611c7b565b5b8061200957508373ffffffffffffffffffffffffffffffffffffffff16611ff1846107c0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612032826114b2565b73ffffffffffffffffffffffffffffffffffffffff1614612088576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207f90614cb0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ee90614d42565b60405180910390fd5b6121048383836001612922565b8273ffffffffffffffffffffffffffffffffffffffff16612124826114b2565b73ffffffffffffffffffffffffffffffffffffffff161461217a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217190614cb0565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612306838383600161293c565b505050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff166123f383612572565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61242c828260405180602001604052806000815250612942565b5050565b612439826123d1565b612478576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246f90614dd4565b60405180910390fd5b80600a6000848152602001908152602001600020908161249891906143b5565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7826040516124c891906139b9565b60405180910390a15050565b6124dc61299d565b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612520611e3e565b60405161252d9190613923565b60405180910390a1565b612540816129e6565b6001600f600083815260200190815260200160002060020160006101000a81548160ff02191690831515021790555050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6125b7612a39565b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125fb611e3e565b6040516126089190613923565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267790614e40565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161277191906137b2565b60405180910390a3505050565b612789848484612012565b61279584848484612a83565b6127d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127cb90614ed2565b60405180910390fd5b50505050565b6060600060016127e984612c0a565b01905060008167ffffffffffffffff811115612808576128076139de565b5b6040519080825280601f01601f19166020018201604052801561283a5781602001600182028036833780820191505090505b509050600082602001820190505b60011561289d578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161289157612890614ef2565b5b04945060008503612848575b819350505050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061291b575061291a82612d5d565b5b9050919050565b61292a612a39565b61293684848484612e3f565b50505050565b50505050565b61294c8383612f9d565b6129596000848484612a83565b612998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298f90614ed2565b60405180910390fd5b505050565b6129a561149b565b6129e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129db90614f6d565b60405180910390fd5b565b6129ef816131ba565b6000600a60008381526020019081526020016000208054612a0f906140b4565b905014612a3657600a60008281526020019081526020016000206000612a3591906136a1565b5b50565b612a4161149b565b15612a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7890614fd9565b60405180910390fd5b565b6000612aa48473ffffffffffffffffffffffffffffffffffffffff16613308565b15612bfd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612acd611e3e565b8786866040518563ffffffff1660e01b8152600401612aef949392919061504e565b6020604051808303816000875af1925050508015612b2b57506040513d601f19601f82011682018060405250810190612b2891906150af565b60015b612bad573d8060008114612b5b576040519150601f19603f3d011682016040523d82523d6000602084013e612b60565b606091505b506000815103612ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9c90614ed2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c02565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612c68577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612c5e57612c5d614ef2565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612ca5576d04ee2d6d415b85acef81000000008381612c9b57612c9a614ef2565b5b0492506020810190505b662386f26fc100008310612cd457662386f26fc100008381612cca57612cc9614ef2565b5b0492506010810190505b6305f5e1008310612cfd576305f5e1008381612cf357612cf2614ef2565b5b0492506008810190505b6127108310612d22576127108381612d1857612d17614ef2565b5b0492506004810190505b60648310612d455760648381612d3b57612d3a614ef2565b5b0492506002810190505b600a8310612d54576001810190505b80915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e2857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e385750612e378261332b565b5b9050919050565b612e4b84848484613395565b6001811115612e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e869061514e565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612ed657612ed18161339b565b612f15565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612f1457612f1385826133e4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f5757612f5281613551565b612f96565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f9557612f948482613622565b5b5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361300c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613003906151ba565b60405180910390fd5b613015816123d1565b15613055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304c90615226565b60405180910390fd5b613063600083836001612922565b61306c816123d1565b156130ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a390615226565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131b660008383600161293c565b5050565b60006131c5826114b2565b90506131d5816000846001612922565b6131de826114b2565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461330481600084600161293c565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133f184611538565b6133fb9190615246565b90506000600760008481526020019081526020016000205490508181146134e0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135659190615246565b9050600060096000848152602001908152602001600020549050600060088381548110613595576135946146a0565b5b9060005260206000200154905080600883815481106135b7576135b66146a0565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806136065761360561527a565b5b6001900381819060005260206000200160009055905550505050565b600061362d83611538565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b5080546136ad906140b4565b6000825580601f106136bf57506136de565b601f0160209004906000526020600020908101906136dd91906136e1565b5b50565b5b808211156136fa5760008160009055506001016136e2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61374781613712565b811461375257600080fd5b50565b6000813590506137648161373e565b92915050565b6000602082840312156137805761377f613708565b5b600061378e84828501613755565b91505092915050565b60008115159050919050565b6137ac81613797565b82525050565b60006020820190506137c760008301846137a3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138075780820151818401526020810190506137ec565b60008484015250505050565b6000601f19601f8301169050919050565b600061382f826137cd565b61383981856137d8565b93506138498185602086016137e9565b61385281613813565b840191505092915050565b600060208201905081810360008301526138778184613824565b905092915050565b6000819050919050565b6138928161387f565b811461389d57600080fd5b50565b6000813590506138af81613889565b92915050565b6000602082840312156138cb576138ca613708565b5b60006138d9848285016138a0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061390d826138e2565b9050919050565b61391d81613902565b82525050565b60006020820190506139386000830184613914565b92915050565b61394781613902565b811461395257600080fd5b50565b6000813590506139648161393e565b92915050565b6000806040838503121561398157613980613708565b5b600061398f85828601613955565b92505060206139a0858286016138a0565b9150509250929050565b6139b38161387f565b82525050565b60006020820190506139ce60008301846139aa565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a1682613813565b810181811067ffffffffffffffff82111715613a3557613a346139de565b5b80604052505050565b6000613a486136fe565b9050613a548282613a0d565b919050565b600067ffffffffffffffff821115613a7457613a736139de565b5b613a7d82613813565b9050602081019050919050565b82818337600083830152505050565b6000613aac613aa784613a59565b613a3e565b905082815260208101848484011115613ac857613ac76139d9565b5b613ad3848285613a8a565b509392505050565b600082601f830112613af057613aef6139d4565b5b8135613b00848260208601613a99565b91505092915050565b600060208284031215613b1f57613b1e613708565b5b600082013567ffffffffffffffff811115613b3d57613b3c61370d565b5b613b4984828501613adb565b91505092915050565b600080600060608486031215613b6b57613b6a613708565b5b6000613b7986828701613955565b9350506020613b8a86828701613955565b9250506040613b9b868287016138a0565b9150509250925092565b600060208284031215613bbb57613bba613708565b5b6000613bc984828501613955565b91505092915050565b600080600060608486031215613beb57613bea613708565b5b600084013567ffffffffffffffff811115613c0957613c0861370d565b5b613c1586828701613adb565b935050602084013567ffffffffffffffff811115613c3657613c3561370d565b5b613c4286828701613adb565b925050604084013567ffffffffffffffff811115613c6357613c6261370d565b5b613c6f86828701613adb565b9150509250925092565b600067ffffffffffffffff821115613c9457613c936139de565b5b602082029050602081019050919050565b600080fd5b6000613cbd613cb884613c79565b613a3e565b90508083825260208201905060208402830185811115613ce057613cdf613ca5565b5b835b81811015613d095780613cf588826138a0565b845260208401935050602081019050613ce2565b5050509392505050565b600082601f830112613d2857613d276139d4565b5b8135613d38848260208601613caa565b91505092915050565b60008060408385031215613d5857613d57613708565b5b6000613d66858286016138a0565b925050602083013567ffffffffffffffff811115613d8757613d8661370d565b5b613d9385828601613d13565b9150509250929050565b6000606082019050613db260008301866139aa565b8181036020830152613dc48185613824565b9050613dd360408301846137a3565b949350505050565b60008060408385031215613df257613df1613708565b5b6000613e00858286016138a0565b925050602083013567ffffffffffffffff811115613e2157613e2061370d565b5b613e2d85828601613adb565b9150509250929050565b613e4081613797565b8114613e4b57600080fd5b50565b600081359050613e5d81613e37565b92915050565b60008060408385031215613e7a57613e79613708565b5b6000613e8885828601613955565b9250506020613e9985828601613e4e565b9150509250929050565b600067ffffffffffffffff821115613ebe57613ebd6139de565b5b613ec782613813565b9050602081019050919050565b6000613ee7613ee284613ea3565b613a3e565b905082815260208101848484011115613f0357613f026139d9565b5b613f0e848285613a8a565b509392505050565b600082601f830112613f2b57613f2a6139d4565b5b8135613f3b848260208601613ed4565b91505092915050565b60008060008060808587031215613f5e57613f5d613708565b5b6000613f6c87828801613955565b9450506020613f7d87828801613955565b9350506040613f8e878288016138a0565b925050606085013567ffffffffffffffff811115613faf57613fae61370d565b5b613fbb87828801613f16565b91505092959194509250565b60008060408385031215613fde57613fdd613708565b5b6000613fec858286016138a0565b9250506020613ffd85828601613955565b9150509250929050565b600060608201905061401c60008301866139aa565b6140296020830185613914565b818103604083015261403b8184613824565b9050949350505050565b6000806040838503121561405c5761405b613708565b5b600061406a85828601613955565b925050602061407b85828601613955565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140cc57607f821691505b6020821081036140df576140de614085565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006141416021836137d8565b915061414c826140e5565b604082019050919050565b6000602082019050818103600083015261417081614134565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006141d3603d836137d8565b91506141de82614177565b604082019050919050565b60006020820190508181036000830152614202816141c6565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261426b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261422e565b614275868361422e565b95508019841693508086168417925050509392505050565b6000819050919050565b60006142b26142ad6142a88461387f565b61428d565b61387f565b9050919050565b6000819050919050565b6142cc83614297565b6142e06142d8826142b9565b84845461423b565b825550505050565b600090565b6142f56142e8565b6143008184846142c3565b505050565b5b81811015614324576143196000826142ed565b600181019050614306565b5050565b601f8211156143695761433a81614209565b6143438461421e565b81016020851015614352578190505b61436661435e8561421e565b830182614305565b50505b505050565b600082821c905092915050565b600061438c6000198460080261436e565b1980831691505092915050565b60006143a5838361437b565b9150826002028217905092915050565b6143be826137cd565b67ffffffffffffffff8111156143d7576143d66139de565b5b6143e182546140b4565b6143ec828285614328565b600060209050601f83116001811461441f576000841561440d578287015190505b6144178582614399565b86555061447f565b601f19841661442d86614209565b60005b8281101561445557848901518255600182019150602085019450602081019050614430565b86831015614472578489015161446e601f89168261437b565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006144e3602d836137d8565b91506144ee82614487565b604082019050919050565b60006020820190508181036000830152614512816144d6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145756026836137d8565b915061458082614519565b604082019050919050565b600060208201905081810360008301526145a481614568565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614607602b836137d8565b9150614612826145ab565b604082019050919050565b60006020820190508181036000830152614636816145fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146778261387f565b91506146828361387f565b925082820190508082111561469a5761469961463d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006146da8261387f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361470c5761470b61463d565b5b600182019050919050565b7f546865206e756d626572206f6620546f6b656e2049447320666f72204e46547360008201527f20646f6573206e6f74206d6174636820746865206e756d626572206f66204e4660208201527f5473000000000000000000000000000000000000000000000000000000000000604082015250565b60006147996042836137d8565b91506147a482614717565b606082019050919050565b600060208201905081810360008301526147c88161478c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6148048161387f565b82525050565b600061481683836147fb565b60208301905092915050565b6000602082019050919050565b600061483a826147cf565b61484481856147da565b935061484f836147eb565b8060005b83811015614880578151614867888261480a565b975061487283614822565b925050600181019050614853565b5085935050505092915050565b600060208201905081810360008301526148a7818461482f565b905092915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061490b602c836137d8565b9150614916826148af565b604082019050919050565b6000602082019050818103600083015261493a816148fe565b9050919050565b7f5472656173757275204164647265737320697320746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061499d6024836137d8565b91506149a882614941565b604082019050919050565b600060208201905081810360008301526149cc81614990565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614a096018836137d8565b9150614a14826149d3565b602082019050919050565b60006020820190508181036000830152614a38816149fc565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614a9b6029836137d8565b9150614aa682614a3f565b604082019050919050565b60006020820190508181036000830152614aca81614a8e565b9050919050565b7f546f6b656e20494420646f6573206e6f74206578697374210000000000000000600082015250565b6000614b076018836137d8565b9150614b1282614ad1565b602082019050919050565b60006020820190508181036000830152614b3681614afa565b9050919050565b7f546f6b656e20494420616c726561647920657869737473210000000000000000600082015250565b6000614b736018836137d8565b9150614b7e82614b3d565b602082019050919050565b60006020820190508181036000830152614ba281614b66565b9050919050565b6000604082019050614bbe6000830185613914565b614bcb60208301846139aa565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614c086020836137d8565b9150614c1382614bd2565b602082019050919050565b60006020820190508181036000830152614c3781614bfb565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c9a6025836137d8565b9150614ca582614c3e565b604082019050919050565b60006020820190508181036000830152614cc981614c8d565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d2c6024836137d8565b9150614d3782614cd0565b604082019050919050565b60006020820190508181036000830152614d5b81614d1f565b9050919050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000614dbe602e836137d8565b9150614dc982614d62565b604082019050919050565b60006020820190508181036000830152614ded81614db1565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614e2a6019836137d8565b9150614e3582614df4565b602082019050919050565b60006020820190508181036000830152614e5981614e1d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614ebc6032836137d8565b9150614ec782614e60565b604082019050919050565b60006020820190508181036000830152614eeb81614eaf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614f576014836137d8565b9150614f6282614f21565b602082019050919050565b60006020820190508181036000830152614f8681614f4a565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614fc36010836137d8565b9150614fce82614f8d565b602082019050919050565b60006020820190508181036000830152614ff281614fb6565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061502082614ff9565b61502a8185615004565b935061503a8185602086016137e9565b61504381613813565b840191505092915050565b60006080820190506150636000830187613914565b6150706020830186613914565b61507d60408301856139aa565b818103606083015261508f8184615015565b905095945050505050565b6000815190506150a98161373e565b92915050565b6000602082840312156150c5576150c4613708565b5b60006150d38482850161509a565b91505092915050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b60006151386035836137d8565b9150615143826150dc565b604082019050919050565b600060208201905081810360008301526151678161512b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006151a46020836137d8565b91506151af8261516e565b602082019050919050565b600060208201905081810360008301526151d381615197565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615210601c836137d8565b915061521b826151da565b602082019050919050565b6000602082019050818103600083015261523f81615203565b9050919050565b60006152518261387f565b915061525c8361387f565b92508282039050818111156152745761527361463d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220a4165bf1407d4f7545a88afb8506e9fe6453b142ef9983856d7c0cfbee34f2af64736f6c63430008110033

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

0000000000000000000000004fdc1e2132fc95e92c6daf31bce68bae65bf45b40000000000000000000000002a398c735a7061b04dbc3588e17f9bb206bf8a08

-----Decoded View---------------
Arg [0] : _treasuryWallet (address): 0x4fDc1E2132Fc95E92c6daF31bce68Bae65bf45b4
Arg [1] : _admin (address): 0x2A398C735A7061B04dBc3588e17F9bB206Bf8a08

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004fdc1e2132fc95e92c6daf31bce68bae65bf45b4
Arg [1] : 0000000000000000000000002a398c735a7061b04dbc3588e17f9bb206bf8a08


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.