ETH Price: $3,672.75 (+0.90%)

Muppeth (MPTH)
 

Overview

TokenID

6923

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

We are building the worst community on the internet.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Muppeth

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Muppeth.sol
// SPDX-License-Identifier: MIT

//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%((///#&@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@&.     ,%@@@&      *@@@&,     (@@&*     (@@%,         .*%@@@@#.         ./%@@@@(           #&.            /@#.    .%@@&,     /@@@@@@#(((###((((/*//&@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@(       *&@@.       &@@&.     (@@%,     /@@#.             ,@@#              *@@/           (&             *@(     .%@@&.     /@@@@#///(#((((/**/////(@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@,        (@,        (@@&,     (@@%,     (@@#.     (&#.     (@#      %&(.     %@/     ,@@@@@@@***,      ***#@(      (##(.     /@@@#/((/((((///(((/(/***@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@#.    .    /    .    .@@&.     (@@%,     /@@#.     ,*.      #@#      ,*.      &@/          ,&@@@@#      @@@@@(                /@@@//(((((///(//((((((//#@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@*     (*       //     #@&,     (@@%,     (@@#.             %@@#             .&@@/          *&@@@@#      @@@@@(                /@&&(####(//(((((///((//*@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@%.    .&%,     *@#     ,@&/      ..       &@@#.     (&&&&@@@@@@#      #&&&@@@@@@@/      ,,,,,#@@@@#      @@@@@(     .%@@&.     /@&%@(((/((/((((/////***&@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@/     ,@@#.   .@@%.     %@@(.           *&@@@#.     #@@@@@@@@@@#      %@@@@@@@@@@/           (@@@@#      @@@@@(     .%@@&.     /@@%&@&(/((//(#/(/(///%@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@%#####&@@@%###&@@@%#####&@@@@@%(/////#@@@@@@@&%#####&@@@@@@@@@@&######@@@@@@@@@@@&###########&@@@@&######@@@@@&%####%&@@@%#####&@@&%@@@@&%#((/#((#&@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@       @   @@   *@      #@@@@@*  ,@&      ,@@@   @@@,      @@.      &@@@@@@.    /@@      .@@@   *@&   @       @,      (@@@    #@@@@     (       @@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@   &@@   @@   *@   ,##@@@@@@*  ,@&   @@   &@   @&   @@@   #@@.  #@@@@@@%   @@@@&   @@@   &@     &   @@@   %@@,  (@   @@.  *  %@#   @@@@@@   &@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@   &@@   ##.  *@   *@@@@@@@@*  ,@&   @@   &@   &@    #.   &@@.  #@@@@@@&   .#,/@   .#.   @@   @     @@@   %@@,      @@*       &&   .#.(@@   &@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@   @@@   @@   *@      (@@@@@/  ,@&      @@@@   @@@@,    &@@@@.  #@@@@@@@@&    (@@@.    @@@@   @@#   @@@   %@@,  (@   ,   @@&   @@&    #@@   %@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";     

error WithrawMissMatch();
error SoldOut();
error MaxMinted();
error CannotSetZeroAddress();
error NotWhitelisted();
error MissingProof();
error PriceNotMet();
error AlreadyMinted();
error AlreadyFreeMinted();
error AlreadyReveled();
error ExccedsMaxFreemint();
error MintZeroQuantity();
error NonExistentToken();
error PercentageOutOfBound();
error PercentageMissMatch();

/** 
  * Muppeth aims to bring together the world of fashion and web3.
  * Basically the biggest assholes on the internet.
  */

contract Muppeth is ERC721Enumerable, ERC2981, Ownable {
  using Address for address;
  using Strings for uint256;
  using Counters for Counters.Counter;

  uint constant PRICE = 5 ether / 100; // 0.05 ETH
  uint256 public MAX_SUPPLY = 6969;
  uint constant MAX_MINT_PER_IDIOT = 3;
  string public baseURI;
  bool public PUBLIC_SALE;
  bool private REVEALED;
  bool private TEAM_MINT;

  // Sets Treasury Address for ERC2981 royaltyInfo
  address public treasuryAddress;

  // Withdraw params
  // FUCK YELLOW NAMES ! 
  address[] private _yellowNames;
  mapping(address => uint256) private _percentage;

  bytes32 public immutable root;
  bytes32 public immutable freeMintRoot;

  // Check freemints
  mapping(address => bool) public freemints;

  Counters.Counter private _tokenIdCounter;
      
  
  constructor(
      address defaultTreasury,
      bytes32 defaultRoot,
      bytes32 defaultFreeMintRoot,
      string memory defaultUri,
      address[] memory addresses_,
      uint256[] memory percentage_
  ) ERC721 ("Muppeth", "MPTH") {
      if(addresses_.length != percentage_.length) revert WithrawMissMatch();
      uint256 totalPercentage = 0;
      for (uint256 i = 0; i < addresses_.length; i++) {
        if (addresses_[i] == address(0x0)) revert CannotSetZeroAddress();
        if (percentage_[i] <= 0 || percentage_[i] > 10000) revert PercentageOutOfBound();
        _percentage[addresses_[i]] = percentage_[i];
        totalPercentage = totalPercentage + percentage_[i];
      }
      if (totalPercentage != 10000) revert PercentageMissMatch();
      _yellowNames = addresses_;

      setTreasuryAddress(payable(defaultTreasury));
      setRoyaltyInfo(500);
      setSale(false);
      baseURI = defaultUri;
      root = defaultRoot;
      freeMintRoot = defaultFreeMintRoot;
      _tokenIdCounter.increment();
      REVEALED = false;
      TEAM_MINT = false;
  }

  /**
    * @notice This function allows you to obtain your fucking NFTs.
    * 
    * @param quantity the quantity of tokens to mint
    * @param proof the Merkle proof for this claimer
    */
  function mint(uint256 quantity, bytes32[] calldata proof) external payable {
      if(!MerkleProof.verify(proof, freeMintRoot, keccak256(abi.encodePacked(msg.sender)))) {
        if(!PUBLIC_SALE) {
          if(proof.length == 0) revert MissingProof();
          if(!MerkleProof.verify(proof, root, keccak256(abi.encodePacked(msg.sender)))) revert NotWhitelisted();
        }
        if(msg.value < PRICE * quantity) revert PriceNotMet();
      } else {
        if(freemints[msg.sender]) revert AlreadyFreeMinted();
        if(quantity > 1) revert ExccedsMaxFreemint();
        freemints[msg.sender] = true;
      }

      if(totalSupply() + quantity > MAX_SUPPLY) revert SoldOut();
      if(balanceOf(msg.sender) + quantity > MAX_MINT_PER_IDIOT) revert MaxMinted();

      _batchMint(msg.sender, quantity);
  }
  
  /**
   * Mint Team supply
   */
  function mintTeam(address teamAddress_, uint256 teamSupply_) external notMinted {
    _batchMint(teamAddress_, teamSupply_);
  }

  // OWNER FUNCTIONS ---------
  /** 
    * @dev Update whitelist root
    */
  function setSale(bool sale) public onlyOwner {
      PUBLIC_SALE = sale;
  }
  /**
   * @dev Execute when team supply is minted to lock it
   */
  function setTeamMint() public onlyOwner {
      if (!TEAM_MINT)
        TEAM_MINT = true;
  }

  /**
    * @notice This function allows us to reveal why you paid 0.05 ETH.
    * 
    * @dev Update base URI
    */
  function reveal(string memory uri) public onlyOwner notRevealed {
      baseURI = uri;
      REVEALED = true;
  }
  
  /**
    * @dev Update the royalty percentage (500 = 5%)
    */
  function setRoyaltyInfo(uint96 newRoyaltyPercentage) public onlyOwner {
      _setDefaultRoyalty(treasuryAddress, newRoyaltyPercentage);
  }

  /**
    * @dev Update the royalty wallet address
    */
  function setTreasuryAddress(address payable newAddress) public onlyOwner {
      if (newAddress == address(0)) revert CannotSetZeroAddress();
      treasuryAddress = newAddress;
  }

  /**
    * @notice This function allows us to retrieve the money and launder it.
    * 
    * @dev Withdraw funds to _yellowNames
    */    
  function withdraw() external onlyOwner {
      uint256 balance = address(this).balance;
      for(uint256 i = 0; i < _yellowNames.length; i++) {
        Address.sendValue(payable(_yellowNames[i]), balance * _percentage[_yellowNames[i]] /  10000);  
      }
  }

  // OVERRIDES

  /**
    * @dev Batch mint
    */
  function _batchMint(address to, uint256 quantity) internal {
      if (quantity == 0) revert MintZeroQuantity();
      
      for (uint256 i = 0; i < quantity; ++i) { 
          uint256 tokenId = _tokenIdCounter.current();
          _tokenIdCounter.increment();
          _mint(to, tokenId);
      }
  }

  /**
    * @dev Variation of {ERC721Metadata-tokenURI}.
    */
  function tokenURI(uint256 tokenID) public view override returns (string memory) {
      if(!_exists(tokenID)) revert NonExistentToken();
      if (REVEALED)
        return string(abi.encodePacked(baseURI, tokenID.toString()));
      else
        return string(baseURI);
  }


  /**
    * @dev {ERC165-supportsInterface} Adding IERC2981 
    */
  function supportsInterface(bytes4 interfaceId)
      public
      view
      override(ERC721Enumerable, ERC2981)
      returns (bool)
  {
      return
          ERC2981.supportsInterface(interfaceId) ||
          super.supportsInterface(interfaceId);
  }

  // MODIFIERS
  modifier notRevealed() {
      if(REVEALED) revert AlreadyReveled();
        _;
  }

  modifier notMinted() {
      if (TEAM_MINT) revert AlreadyMinted();
        _;
  }
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

File 3 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 4 of 18 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 5 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.2) (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 6 of 18 : 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 7 of 18 : 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 8 of 18 : 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 9 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 10 of 18 : 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 11 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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 12 of 18 : 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 13 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 15 of 18 : 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 16 of 18 : 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 17 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.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 `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);
    }
}

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":"defaultTreasury","type":"address"},{"internalType":"bytes32","name":"defaultRoot","type":"bytes32"},{"internalType":"bytes32","name":"defaultFreeMintRoot","type":"bytes32"},{"internalType":"string","name":"defaultUri","type":"string"},{"internalType":"address[]","name":"addresses_","type":"address[]"},{"internalType":"uint256[]","name":"percentage_","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyFreeMinted","type":"error"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"AlreadyReveled","type":"error"},{"inputs":[],"name":"CannotSetZeroAddress","type":"error"},{"inputs":[],"name":"ExccedsMaxFreemint","type":"error"},{"inputs":[],"name":"MaxMinted","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MissingProof","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"PercentageMissMatch","type":"error"},{"inputs":[],"name":"PercentageOutOfBound","type":"error"},{"inputs":[],"name":"PriceNotMet","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"WithrawMissMatch","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freemints","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"teamAddress_","type":"address"},{"internalType":"uint256","name":"teamSupply_","type":"uint256"}],"name":"mintTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"uint96","name":"newRoyaltyPercentage","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"sale","type":"bool"}],"name":"setSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTeamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newAddress","type":"address"}],"name":"setTreasuryAddress","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":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052611b39600d553480156200001757600080fd5b5060405162005ef838038062005ef883398181016040528101906200003d919062000e05565b6040518060400160405280600781526020017f4d757070657468000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4d505448000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000c19291906200089d565b508060019080519060200190620000da9291906200089d565b505050620000fd620000f16200042060201b60201c565b6200042860201b60201c565b805182511462000139576040517f16cc07c200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b83518110156200031157600073ffffffffffffffffffffffffffffffffffffffff1684828151811062000175576200017462000efe565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415620001cc576040517f52d2cf3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838281518110620001e457620001e362000efe565b5b60200260200101511115806200021857506127108382815181106200020e576200020d62000efe565b5b6020026020010151115b1562000250576040517f3f3ec53200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82818151811062000266576200026562000efe565b5b60200260200101516011600086848151811062000288576200028762000efe565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550828181518110620002e457620002e362000efe565b5b602002602001015182620002f9919062000f5c565b91508080620003089062000fb9565b9150506200013d565b5061271081146200034e576040517fc37a8c1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260109080519060200190620003669291906200092e565b506200037887620004ee60201b60201c565b6200038b6101f4620005aa60201b60201c565b6200039d6000620005f160201b60201c565b83600e9080519060200190620003b59291906200089d565b5085608081815250508460a08181525050620003dd60136200061e60201b62001ac51760201c565b6000600f60016101000a81548160ff0219169083151502179055506000600f60026101000a81548160ff02191690831515021790555050505050505050620011f9565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004fe6200063460201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000566576040517f52d2cf3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f60036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620005ba6200063460201b60201c565b620005ee600f60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682620006c560201b60201c565b50565b620006016200063460201b60201c565b80600f60006101000a81548160ff02191690831515021790555050565b6001816000016000828254019250508190555050565b620006446200042060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200066a6200086960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620006c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006ba9062001068565b60405180910390fd5b565b620006d56200089360201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000736576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200072d9062001100565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620007a9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007a09062001172565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000612710905090565b828054620008ab90620011c3565b90600052602060002090601f016020900481019282620008cf57600085556200091b565b82601f10620008ea57805160ff19168380011785556200091b565b828001600101855582156200091b579182015b828111156200091a578251825591602001919060010190620008fd565b5b5090506200092a9190620009bd565b5090565b828054828255906000526020600020908101928215620009aa579160200282015b82811115620009a95782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906200094f565b5b509050620009b99190620009bd565b5090565b5b80821115620009d8576000816000905550600101620009be565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a1d82620009f0565b9050919050565b62000a2f8162000a10565b811462000a3b57600080fd5b50565b60008151905062000a4f8162000a24565b92915050565b6000819050919050565b62000a6a8162000a55565b811462000a7657600080fd5b50565b60008151905062000a8a8162000a5f565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000ae58262000a9a565b810181811067ffffffffffffffff8211171562000b075762000b0662000aab565b5b80604052505050565b600062000b1c620009dc565b905062000b2a828262000ada565b919050565b600067ffffffffffffffff82111562000b4d5762000b4c62000aab565b5b62000b588262000a9a565b9050602081019050919050565b60005b8381101562000b8557808201518184015260208101905062000b68565b8381111562000b95576000848401525b50505050565b600062000bb262000bac8462000b2f565b62000b10565b90508281526020810184848401111562000bd15762000bd062000a95565b5b62000bde84828562000b65565b509392505050565b600082601f83011262000bfe5762000bfd62000a90565b5b815162000c1084826020860162000b9b565b91505092915050565b600067ffffffffffffffff82111562000c375762000c3662000aab565b5b602082029050602081019050919050565b600080fd5b600062000c6462000c5e8462000c19565b62000b10565b9050808382526020820190506020840283018581111562000c8a5762000c8962000c48565b5b835b8181101562000cb7578062000ca2888262000a3e565b84526020840193505060208101905062000c8c565b5050509392505050565b600082601f83011262000cd95762000cd862000a90565b5b815162000ceb84826020860162000c4d565b91505092915050565b600067ffffffffffffffff82111562000d125762000d1162000aab565b5b602082029050602081019050919050565b6000819050919050565b62000d388162000d23565b811462000d4457600080fd5b50565b60008151905062000d588162000d2d565b92915050565b600062000d7562000d6f8462000cf4565b62000b10565b9050808382526020820190506020840283018581111562000d9b5762000d9a62000c48565b5b835b8181101562000dc8578062000db3888262000d47565b84526020840193505060208101905062000d9d565b5050509392505050565b600082601f83011262000dea5762000de962000a90565b5b815162000dfc84826020860162000d5e565b91505092915050565b60008060008060008060c0878903121562000e255762000e24620009e6565b5b600062000e3589828a0162000a3e565b965050602062000e4889828a0162000a79565b955050604062000e5b89828a0162000a79565b945050606087015167ffffffffffffffff81111562000e7f5762000e7e620009eb565b5b62000e8d89828a0162000be6565b935050608087015167ffffffffffffffff81111562000eb15762000eb0620009eb565b5b62000ebf89828a0162000cc1565b92505060a087015167ffffffffffffffff81111562000ee35762000ee2620009eb565b5b62000ef189828a0162000dd2565b9150509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000f698262000d23565b915062000f768362000d23565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000fae5762000fad62000f2d565b5b828201905092915050565b600062000fc68262000d23565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000ffc5762000ffb62000f2d565b5b600182019050919050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200105060208362001007565b91506200105d8262001018565b602082019050919050565b60006020820190508181036000830152620010838162001041565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620010e8602a8362001007565b9150620010f5826200108a565b604082019050919050565b600060208201905081810360008301526200111b81620010d9565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200115a60198362001007565b9150620011678262001122565b602082019050919050565b600060208201905081810360008301526200118d816200114b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620011dc57607f821691505b60208210811415620011f357620011f262001194565b5b50919050565b60805160a051614ccb6200122d600039600081816113df01526114aa0152600081816115920152611a1f0152614ccb6000f3fe6080604052600436106102045760003560e01c80636352211e11610118578063a886c377116100a0578063c5f956af1161006f578063c5f956af14610745578063c87b56dd14610770578063e985e9c5146107ad578063ebf0c717146107ea578063f2fde38b1461081557610204565b8063a886c37714610698578063b88d4fde146106c3578063ba41b0c6146106ec578063bfacda061461070857610204565b8063715018a6116100e7578063715018a6146105d95780638da5cb5b146105f057806393f84cfe1461061b57806395d89b4114610644578063a22cb4651461066f57610204565b80636352211e1461050b5780636605bfda146105485780636c0360eb1461057157806370a082311461059c57610204565b80632a55205a1161019b57806342842e0e1161016a57806342842e0e146104285780634af9345e146104515780634c2612471461047a5780634f6ccce7146104a35780635f89584e146104e057610204565b80632a55205a1461036b5780632f745c59146103a957806332cb6b0c146103e65780633ccfd60b1461041157610204565b8063095ea7b3116101d7578063095ea7b3146102c557806318160ddd146102ee5780631d2e5a3a1461031957806323b872dd1461034257610204565b806301ffc9a7146102095780630337ee0b1461024657806306fdde031461025d578063081812fc14610288575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613495565b61083e565b60405161023d91906134dd565b60405180910390f35b34801561025257600080fd5b5061025b610860565b005b34801561026957600080fd5b5061027261089a565b60405161027f9190613591565b60405180910390f35b34801561029457600080fd5b506102af60048036038101906102aa91906135e9565b61092c565b6040516102bc9190613657565b60405180910390f35b3480156102d157600080fd5b506102ec60048036038101906102e7919061369e565b610972565b005b3480156102fa57600080fd5b50610303610a8a565b60405161031091906136ed565b60405180910390f35b34801561032557600080fd5b50610340600480360381019061033b9190613734565b610a97565b005b34801561034e57600080fd5b5061036960048036038101906103649190613761565b610abc565b005b34801561037757600080fd5b50610392600480360381019061038d91906137b4565b610b1c565b6040516103a09291906137f4565b60405180910390f35b3480156103b557600080fd5b506103d060048036038101906103cb919061369e565b610d07565b6040516103dd91906136ed565b60405180910390f35b3480156103f257600080fd5b506103fb610dac565b60405161040891906136ed565b60405180910390f35b34801561041d57600080fd5b50610426610db2565b005b34801561043457600080fd5b5061044f600480360381019061044a9190613761565b610ec3565b005b34801561045d57600080fd5b5061047860048036038101906104739190613861565b610ee3565b005b34801561048657600080fd5b506104a1600480360381019061049c91906139c3565b610f1a565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906135e9565b610f9e565b6040516104d791906136ed565b60405180910390f35b3480156104ec57600080fd5b506104f561100f565b60405161050291906134dd565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d91906135e9565b611022565b60405161053f9190613657565b60405180910390f35b34801561055457600080fd5b5061056f600480360381019061056a9190613a4a565b6110a9565b005b34801561057d57600080fd5b5061058661115c565b6040516105939190613591565b60405180910390f35b3480156105a857600080fd5b506105c360048036038101906105be9190613a77565b6111ea565b6040516105d091906136ed565b60405180910390f35b3480156105e557600080fd5b506105ee6112a2565b005b3480156105fc57600080fd5b506106056112b6565b6040516106129190613657565b60405180910390f35b34801561062757600080fd5b50610642600480360381019061063d919061369e565b6112e0565b005b34801561065057600080fd5b50610659611335565b6040516106669190613591565b60405180910390f35b34801561067b57600080fd5b5061069660048036038101906106919190613aa4565b6113c7565b005b3480156106a457600080fd5b506106ad6113dd565b6040516106ba9190613afd565b60405180910390f35b3480156106cf57600080fd5b506106ea60048036038101906106e59190613bb9565b611401565b005b61070660048036038101906107019190613c9c565b611463565b005b34801561071457600080fd5b5061072f600480360381019061072a9190613a77565b611828565b60405161073c91906134dd565b60405180910390f35b34801561075157600080fd5b5061075a611848565b6040516107679190613657565b60405180910390f35b34801561077c57600080fd5b50610797600480360381019061079291906135e9565b61186e565b6040516107a49190613591565b60405180910390f35b3480156107b957600080fd5b506107d460048036038101906107cf9190613cfc565b611989565b6040516107e191906134dd565b60405180910390f35b3480156107f657600080fd5b506107ff611a1d565b60405161080c9190613afd565b60405180910390f35b34801561082157600080fd5b5061083c60048036038101906108379190613a77565b611a41565b005b600061084982611adb565b80610859575061085882611adb565b5b9050919050565b610868611b55565b600f60029054906101000a900460ff16610898576001600f60026101000a81548160ff0219169083151502179055505b565b6060600080546108a990613d6b565b80601f01602080910402602001604051908101604052809291908181526020018280546108d590613d6b565b80156109225780601f106108f757610100808354040283529160200191610922565b820191906000526020600020905b81548152906001019060200180831161090557829003601f168201915b5050505050905090565b600061093782611bd3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097d82611022565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e590613e0f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a0d611c1e565b73ffffffffffffffffffffffffffffffffffffffff161480610a3c5750610a3b81610a36611c1e565b611989565b5b610a7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7290613ea1565b60405180910390fd5b610a858383611c26565b505050565b6000600880549050905090565b610a9f611b55565b80600f60006101000a81548160ff02191690831515021790555050565b610acd610ac7611c1e565b82611cdf565b610b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0390613f33565b60405180910390fd5b610b17838383611d74565b505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610cb257600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cbc61206e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ce89190613f82565b610cf2919061400b565b90508160000151819350935050509250929050565b6000610d12836111ea565b8210610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a906140ae565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600d5481565b610dba611b55565b600047905060005b601080549050811015610ebf57610eac60108281548110610de657610de56140ce565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106011600060108681548110610e2c57610e2b6140ce565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485610e9d9190613f82565b610ea7919061400b565b612078565b8080610eb7906140fd565b915050610dc2565b5050565b610ede83838360405180602001604052806000815250611401565b505050565b610eeb611b55565b610f17600f60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261216c565b50565b610f22611b55565b600f60019054906101000a900460ff1615610f69576040517f4e9739fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e9080519060200190610f7f929190613386565b506001600f60016101000a81548160ff02191690831515021790555050565b6000610fa8610a8a565b8210610fe9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe0906141b8565b60405180910390fd5b60088281548110610ffd57610ffc6140ce565b5b90600052602060002001549050919050565b600f60009054906101000a900460ff1681565b60008061102e83612302565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109790614224565b60405180910390fd5b80915050919050565b6110b1611b55565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611118576040517f52d2cf3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f60036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e805461116990613d6b565b80601f016020809104026020016040519081016040528092919081815260200182805461119590613d6b565b80156111e25780601f106111b7576101008083540402835291602001916111e2565b820191906000526020600020905b8154815290600101906020018083116111c557829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561125b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611252906142b6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112aa611b55565b6112b4600061233f565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f60029054906101000a900460ff1615611327576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113318282612405565b5050565b60606001805461134490613d6b565b80601f016020809104026020016040519081016040528092919081815260200182805461137090613d6b565b80156113bd5780601f10611392576101008083540402835291602001916113bd565b820191906000526020600020905b8154815290600101906020018083116113a057829003601f168201915b5050505050905090565b6113d96113d2611c1e565b8383612484565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61141261140c611c1e565b83611cdf565b611451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144890613f33565b60405180910390fd5b61145d848484846125f1565b50505050565b6114f5828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f0000000000000000000000000000000000000000000000000000000000000000336040516020016114da919061431e565b6040516020818303038152906040528051906020012061264d565b61166557600f60009054906101000a900460ff1661161457600082829050141561154b576040517ff657dea100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115dd828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f0000000000000000000000000000000000000000000000000000000000000000336040516020016115c2919061431e565b6040516020818303038152906040528051906020012061264d565b611613576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8266b1a2bc2ec500006116279190613f82565b341015611660576040517fa2c2d5c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61177d565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116e9576040517f98bdb27b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001831115611724576040517fa386771400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b600d5483611789610a8a565b6117939190614339565b11156117cb576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003836117d7336111ea565b6117e19190614339565b1115611819576040517fc109f51100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118233384612405565b505050565b60126020528060005260406000206000915054906101000a900460ff1681565b600f60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606061187982612664565b6118af576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f60019054906101000a900460ff16156118f657600e6118cf836126a5565b6040516020016118e092919061445f565b6040516020818303038152906040529050611984565b600e805461190390613d6b565b80601f016020809104026020016040519081016040528092919081815260200182805461192f90613d6b565b801561197c5780601f106119515761010080835404028352916020019161197c565b820191906000526020600020905b81548152906001019060200180831161195f57829003601f168201915b505050505090505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611a49611b55565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ab9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab0906144f5565b60405180910390fd5b611ac28161233f565b50565b6001816000016000828254019250508190555050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b4e5750611b4d8261277d565b5b9050919050565b611b5d611c1e565b73ffffffffffffffffffffffffffffffffffffffff16611b7b6112b6565b73ffffffffffffffffffffffffffffffffffffffff1614611bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc890614561565b60405180910390fd5b565b611bdc81612664565b611c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1290614224565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c9983611022565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ceb83611022565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d2d5750611d2c8185611989565b5b80611d6b57508373ffffffffffffffffffffffffffffffffffffffff16611d538461092c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d9482611022565b73ffffffffffffffffffffffffffffffffffffffff1614611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de1906145f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5190614685565b60405180910390fd5b611e6783838360016127f7565b8273ffffffffffffffffffffffffffffffffffffffff16611e8782611022565b73ffffffffffffffffffffffffffffffffffffffff1614611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed4906145f3565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120698383836001612957565b505050565b6000612710905090565b804710156120bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b2906146f1565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120e190614742565b60006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b5050905080612167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215e906147c9565b60405180910390fd5b505050565b61217461206e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156121d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c99061485b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612242576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612239906148c7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000811415612440576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561247f576000612457601361295d565b90506124636013611ac5565b61246d848261296b565b5080612478906140fd565b9050612443565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156124f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ea90614933565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125e491906134dd565b60405180910390a3505050565b6125fc848484611d74565b61260884848484612b89565b612647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263e906149c5565b60405180910390fd5b50505050565b60008261265a8584612d20565b1490509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661268683612302565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600060016126b484612d76565b01905060008167ffffffffffffffff8111156126d3576126d2613898565b5b6040519080825280601f01601f1916602001820160405280156127055781602001600182028036833780820191505090505b509050600082602001820190505b600115612772578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161275c5761275b613fdc565b5b049450600085141561276d57612772565b612713565b819350505050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127f057506127ef82612ec9565b5b9050919050565b61280384848484612fab565b6001811115612847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283e90614a57565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561288f5761288a81612fb1565b6128ce565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146128cd576128cc8582612ffa565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156129115761290c81613167565b612950565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461294f5761294e8482613238565b5b5b5050505050565b50505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d290614ac3565b60405180910390fd5b6129e481612664565b15612a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1b90614b2f565b60405180910390fd5b612a326000838360016127f7565b612a3b81612664565b15612a7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7290614b2f565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b85600083836001612957565b5050565b6000612baa8473ffffffffffffffffffffffffffffffffffffffff166132b7565b15612d13578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bd3611c1e565b8786866040518563ffffffff1660e01b8152600401612bf59493929190614ba4565b602060405180830381600087803b158015612c0f57600080fd5b505af1925050508015612c4057506040513d601f19601f82011682018060405250810190612c3d9190614c05565b60015b612cc3573d8060008114612c70576040519150601f19603f3d011682016040523d82523d6000602084013e612c75565b606091505b50600081511415612cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb2906149c5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d18565b600190505b949350505050565b60008082905060005b8451811015612d6b57612d5682868381518110612d4957612d486140ce565b5b60200260200101516132da565b91508080612d63906140fd565b915050612d29565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612dd4577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612dca57612dc9613fdc565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612e11576d04ee2d6d415b85acef81000000008381612e0757612e06613fdc565b5b0492506020810190505b662386f26fc100008310612e4057662386f26fc100008381612e3657612e35613fdc565b5b0492506010810190505b6305f5e1008310612e69576305f5e1008381612e5f57612e5e613fdc565b5b0492506008810190505b6127108310612e8e576127108381612e8457612e83613fdc565b5b0492506004810190505b60648310612eb15760648381612ea757612ea6613fdc565b5b0492506002810190505b600a8310612ec0576001810190505b80915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f9457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612fa45750612fa382613305565b5b9050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613007846111ea565b6130119190614c32565b90506000600760008481526020019081526020016000205490508181146130f6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061317b9190614c32565b90506000600960008481526020019081526020016000205490506000600883815481106131ab576131aa6140ce565b5b9060005260206000200154905080600883815481106131cd576131cc6140ce565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061321c5761321b614c66565b5b6001900381819060005260206000200160009055905550505050565b6000613243836111ea565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106132f2576132ed828461336f565b6132fd565b6132fc838361336f565b5b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600082600052816020526040600020905092915050565b82805461339290613d6b565b90600052602060002090601f0160209004810192826133b457600085556133fb565b82601f106133cd57805160ff19168380011785556133fb565b828001600101855582156133fb579182015b828111156133fa5782518255916020019190600101906133df565b5b509050613408919061340c565b5090565b5b8082111561342557600081600090555060010161340d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134728161343d565b811461347d57600080fd5b50565b60008135905061348f81613469565b92915050565b6000602082840312156134ab576134aa613433565b5b60006134b984828501613480565b91505092915050565b60008115159050919050565b6134d7816134c2565b82525050565b60006020820190506134f260008301846134ce565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613532578082015181840152602081019050613517565b83811115613541576000848401525b50505050565b6000601f19601f8301169050919050565b6000613563826134f8565b61356d8185613503565b935061357d818560208601613514565b61358681613547565b840191505092915050565b600060208201905081810360008301526135ab8184613558565b905092915050565b6000819050919050565b6135c6816135b3565b81146135d157600080fd5b50565b6000813590506135e3816135bd565b92915050565b6000602082840312156135ff576135fe613433565b5b600061360d848285016135d4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061364182613616565b9050919050565b61365181613636565b82525050565b600060208201905061366c6000830184613648565b92915050565b61367b81613636565b811461368657600080fd5b50565b60008135905061369881613672565b92915050565b600080604083850312156136b5576136b4613433565b5b60006136c385828601613689565b92505060206136d4858286016135d4565b9150509250929050565b6136e7816135b3565b82525050565b600060208201905061370260008301846136de565b92915050565b613711816134c2565b811461371c57600080fd5b50565b60008135905061372e81613708565b92915050565b60006020828403121561374a57613749613433565b5b60006137588482850161371f565b91505092915050565b60008060006060848603121561377a57613779613433565b5b600061378886828701613689565b935050602061379986828701613689565b92505060406137aa868287016135d4565b9150509250925092565b600080604083850312156137cb576137ca613433565b5b60006137d9858286016135d4565b92505060206137ea858286016135d4565b9150509250929050565b60006040820190506138096000830185613648565b61381660208301846136de565b9392505050565b60006bffffffffffffffffffffffff82169050919050565b61383e8161381d565b811461384957600080fd5b50565b60008135905061385b81613835565b92915050565b60006020828403121561387757613876613433565b5b60006138858482850161384c565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6138d082613547565b810181811067ffffffffffffffff821117156138ef576138ee613898565b5b80604052505050565b6000613902613429565b905061390e82826138c7565b919050565b600067ffffffffffffffff82111561392e5761392d613898565b5b61393782613547565b9050602081019050919050565b82818337600083830152505050565b600061396661396184613913565b6138f8565b90508281526020810184848401111561398257613981613893565b5b61398d848285613944565b509392505050565b600082601f8301126139aa576139a961388e565b5b81356139ba848260208601613953565b91505092915050565b6000602082840312156139d9576139d8613433565b5b600082013567ffffffffffffffff8111156139f7576139f6613438565b5b613a0384828501613995565b91505092915050565b6000613a1782613616565b9050919050565b613a2781613a0c565b8114613a3257600080fd5b50565b600081359050613a4481613a1e565b92915050565b600060208284031215613a6057613a5f613433565b5b6000613a6e84828501613a35565b91505092915050565b600060208284031215613a8d57613a8c613433565b5b6000613a9b84828501613689565b91505092915050565b60008060408385031215613abb57613aba613433565b5b6000613ac985828601613689565b9250506020613ada8582860161371f565b9150509250929050565b6000819050919050565b613af781613ae4565b82525050565b6000602082019050613b126000830184613aee565b92915050565b600067ffffffffffffffff821115613b3357613b32613898565b5b613b3c82613547565b9050602081019050919050565b6000613b5c613b5784613b18565b6138f8565b905082815260208101848484011115613b7857613b77613893565b5b613b83848285613944565b509392505050565b600082601f830112613ba057613b9f61388e565b5b8135613bb0848260208601613b49565b91505092915050565b60008060008060808587031215613bd357613bd2613433565b5b6000613be187828801613689565b9450506020613bf287828801613689565b9350506040613c03878288016135d4565b925050606085013567ffffffffffffffff811115613c2457613c23613438565b5b613c3087828801613b8b565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613c5c57613c5b61388e565b5b8235905067ffffffffffffffff811115613c7957613c78613c3c565b5b602083019150836020820283011115613c9557613c94613c41565b5b9250929050565b600080600060408486031215613cb557613cb4613433565b5b6000613cc3868287016135d4565b935050602084013567ffffffffffffffff811115613ce457613ce3613438565b5b613cf086828701613c46565b92509250509250925092565b60008060408385031215613d1357613d12613433565b5b6000613d2185828601613689565b9250506020613d3285828601613689565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d8357607f821691505b60208210811415613d9757613d96613d3c565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613df9602183613503565b9150613e0482613d9d565b604082019050919050565b60006020820190508181036000830152613e2881613dec565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613e8b603d83613503565b9150613e9682613e2f565b604082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613f1d602d83613503565b9150613f2882613ec1565b604082019050919050565b60006020820190508181036000830152613f4c81613f10565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f8d826135b3565b9150613f98836135b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613fd157613fd0613f53565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614016826135b3565b9150614021836135b3565b92508261403157614030613fdc565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614098602b83613503565b91506140a38261403c565b604082019050919050565b600060208201905081810360008301526140c78161408b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614108826135b3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561413b5761413a613f53565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006141a2602c83613503565b91506141ad82614146565b604082019050919050565b600060208201905081810360008301526141d181614195565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061420e601883613503565b9150614219826141d8565b602082019050919050565b6000602082019050818103600083015261423d81614201565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006142a0602983613503565b91506142ab82614244565b604082019050919050565b600060208201905081810360008301526142cf81614293565b9050919050565b60008160601b9050919050565b60006142ee826142d6565b9050919050565b6000614300826142e3565b9050919050565b61431861431382613636565b6142f5565b82525050565b600061432a8284614307565b60148201915081905092915050565b6000614344826135b3565b915061434f836135b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561438457614383613f53565b5b828201905092915050565b600081905092915050565b60008190508160005260206000209050919050565b600081546143bc81613d6b565b6143c6818661438f565b945060018216600081146143e157600181146143f257614425565b60ff19831686528186019350614425565b6143fb8561439a565b60005b8381101561441d578154818901526001820191506020810190506143fe565b838801955050505b50505092915050565b6000614439826134f8565b614443818561438f565b9350614453818560208601613514565b80840191505092915050565b600061446b82856143af565b9150614477828461442e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006144df602683613503565b91506144ea82614483565b604082019050919050565b6000602082019050818103600083015261450e816144d2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061454b602083613503565b915061455682614515565b602082019050919050565b6000602082019050818103600083015261457a8161453e565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006145dd602583613503565b91506145e882614581565b604082019050919050565b6000602082019050818103600083015261460c816145d0565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061466f602483613503565b915061467a82614613565b604082019050919050565b6000602082019050818103600083015261469e81614662565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006146db601d83613503565b91506146e6826146a5565b602082019050919050565b6000602082019050818103600083015261470a816146ce565b9050919050565b600081905092915050565b50565b600061472c600083614711565b91506147378261471c565b600082019050919050565b600061474d8261471f565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006147b3603a83613503565b91506147be82614757565b604082019050919050565b600060208201905081810360008301526147e2816147a6565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614845602a83613503565b9150614850826147e9565b604082019050919050565b6000602082019050818103600083015261487481614838565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006148b1601983613503565b91506148bc8261487b565b602082019050919050565b600060208201905081810360008301526148e0816148a4565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061491d601983613503565b9150614928826148e7565b602082019050919050565b6000602082019050818103600083015261494c81614910565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006149af603283613503565b91506149ba82614953565b604082019050919050565b600060208201905081810360008301526149de816149a2565b9050919050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b6000614a41603583613503565b9150614a4c826149e5565b604082019050919050565b60006020820190508181036000830152614a7081614a34565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614aad602083613503565b9150614ab882614a77565b602082019050919050565b60006020820190508181036000830152614adc81614aa0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614b19601c83613503565b9150614b2482614ae3565b602082019050919050565b60006020820190508181036000830152614b4881614b0c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614b7682614b4f565b614b808185614b5a565b9350614b90818560208601613514565b614b9981613547565b840191505092915050565b6000608082019050614bb96000830187613648565b614bc66020830186613648565b614bd360408301856136de565b8181036060830152614be58184614b6b565b905095945050505050565b600081519050614bff81613469565b92915050565b600060208284031215614c1b57614c1a613433565b5b6000614c2984828501614bf0565b91505092915050565b6000614c3d826135b3565b9150614c48836135b3565b925082821015614c5b57614c5a613f53565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122021b2694e679a6e8b5b8e9f3bfd3400980ac4e67ee89da40342649894e8044c1064736f6c6343000809003300000000000000000000000053fdc83d596377702c580606ebb1eea1a12a84977df8dc308693bf9cfb32f9b17bf5b2cb6e91c474cce889a29b49e2c9b0f0de90353612d3307b260a2ec47260c599cc9b8ad8e022d8f2283a2473793cd8a6e18800000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961796a3266736169626261787233326f62616b696f7037696a6e6e746b65676f616636756a3461647a7673617237636a773665750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000ebb26416262969f5f2f628c3f3910d8700053dce000000000000000000000000bb2d215d317c2da2c153487b6969cb6e153caea8000000000000000000000000775f28f0b480b14a485ef9dbfca8562a62886a8f000000000000000000000000abd179a3e9df7287e1d129a32974e4092633611a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000013ec0000000000000000000000000000000000000000000000000000000000000d4800000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001f4

Deployed Bytecode

0x6080604052600436106102045760003560e01c80636352211e11610118578063a886c377116100a0578063c5f956af1161006f578063c5f956af14610745578063c87b56dd14610770578063e985e9c5146107ad578063ebf0c717146107ea578063f2fde38b1461081557610204565b8063a886c37714610698578063b88d4fde146106c3578063ba41b0c6146106ec578063bfacda061461070857610204565b8063715018a6116100e7578063715018a6146105d95780638da5cb5b146105f057806393f84cfe1461061b57806395d89b4114610644578063a22cb4651461066f57610204565b80636352211e1461050b5780636605bfda146105485780636c0360eb1461057157806370a082311461059c57610204565b80632a55205a1161019b57806342842e0e1161016a57806342842e0e146104285780634af9345e146104515780634c2612471461047a5780634f6ccce7146104a35780635f89584e146104e057610204565b80632a55205a1461036b5780632f745c59146103a957806332cb6b0c146103e65780633ccfd60b1461041157610204565b8063095ea7b3116101d7578063095ea7b3146102c557806318160ddd146102ee5780631d2e5a3a1461031957806323b872dd1461034257610204565b806301ffc9a7146102095780630337ee0b1461024657806306fdde031461025d578063081812fc14610288575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613495565b61083e565b60405161023d91906134dd565b60405180910390f35b34801561025257600080fd5b5061025b610860565b005b34801561026957600080fd5b5061027261089a565b60405161027f9190613591565b60405180910390f35b34801561029457600080fd5b506102af60048036038101906102aa91906135e9565b61092c565b6040516102bc9190613657565b60405180910390f35b3480156102d157600080fd5b506102ec60048036038101906102e7919061369e565b610972565b005b3480156102fa57600080fd5b50610303610a8a565b60405161031091906136ed565b60405180910390f35b34801561032557600080fd5b50610340600480360381019061033b9190613734565b610a97565b005b34801561034e57600080fd5b5061036960048036038101906103649190613761565b610abc565b005b34801561037757600080fd5b50610392600480360381019061038d91906137b4565b610b1c565b6040516103a09291906137f4565b60405180910390f35b3480156103b557600080fd5b506103d060048036038101906103cb919061369e565b610d07565b6040516103dd91906136ed565b60405180910390f35b3480156103f257600080fd5b506103fb610dac565b60405161040891906136ed565b60405180910390f35b34801561041d57600080fd5b50610426610db2565b005b34801561043457600080fd5b5061044f600480360381019061044a9190613761565b610ec3565b005b34801561045d57600080fd5b5061047860048036038101906104739190613861565b610ee3565b005b34801561048657600080fd5b506104a1600480360381019061049c91906139c3565b610f1a565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906135e9565b610f9e565b6040516104d791906136ed565b60405180910390f35b3480156104ec57600080fd5b506104f561100f565b60405161050291906134dd565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d91906135e9565b611022565b60405161053f9190613657565b60405180910390f35b34801561055457600080fd5b5061056f600480360381019061056a9190613a4a565b6110a9565b005b34801561057d57600080fd5b5061058661115c565b6040516105939190613591565b60405180910390f35b3480156105a857600080fd5b506105c360048036038101906105be9190613a77565b6111ea565b6040516105d091906136ed565b60405180910390f35b3480156105e557600080fd5b506105ee6112a2565b005b3480156105fc57600080fd5b506106056112b6565b6040516106129190613657565b60405180910390f35b34801561062757600080fd5b50610642600480360381019061063d919061369e565b6112e0565b005b34801561065057600080fd5b50610659611335565b6040516106669190613591565b60405180910390f35b34801561067b57600080fd5b5061069660048036038101906106919190613aa4565b6113c7565b005b3480156106a457600080fd5b506106ad6113dd565b6040516106ba9190613afd565b60405180910390f35b3480156106cf57600080fd5b506106ea60048036038101906106e59190613bb9565b611401565b005b61070660048036038101906107019190613c9c565b611463565b005b34801561071457600080fd5b5061072f600480360381019061072a9190613a77565b611828565b60405161073c91906134dd565b60405180910390f35b34801561075157600080fd5b5061075a611848565b6040516107679190613657565b60405180910390f35b34801561077c57600080fd5b50610797600480360381019061079291906135e9565b61186e565b6040516107a49190613591565b60405180910390f35b3480156107b957600080fd5b506107d460048036038101906107cf9190613cfc565b611989565b6040516107e191906134dd565b60405180910390f35b3480156107f657600080fd5b506107ff611a1d565b60405161080c9190613afd565b60405180910390f35b34801561082157600080fd5b5061083c60048036038101906108379190613a77565b611a41565b005b600061084982611adb565b80610859575061085882611adb565b5b9050919050565b610868611b55565b600f60029054906101000a900460ff16610898576001600f60026101000a81548160ff0219169083151502179055505b565b6060600080546108a990613d6b565b80601f01602080910402602001604051908101604052809291908181526020018280546108d590613d6b565b80156109225780601f106108f757610100808354040283529160200191610922565b820191906000526020600020905b81548152906001019060200180831161090557829003601f168201915b5050505050905090565b600061093782611bd3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097d82611022565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e590613e0f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a0d611c1e565b73ffffffffffffffffffffffffffffffffffffffff161480610a3c5750610a3b81610a36611c1e565b611989565b5b610a7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7290613ea1565b60405180910390fd5b610a858383611c26565b505050565b6000600880549050905090565b610a9f611b55565b80600f60006101000a81548160ff02191690831515021790555050565b610acd610ac7611c1e565b82611cdf565b610b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0390613f33565b60405180910390fd5b610b17838383611d74565b505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610cb257600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cbc61206e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ce89190613f82565b610cf2919061400b565b90508160000151819350935050509250929050565b6000610d12836111ea565b8210610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a906140ae565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600d5481565b610dba611b55565b600047905060005b601080549050811015610ebf57610eac60108281548110610de657610de56140ce565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106011600060108681548110610e2c57610e2b6140ce565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485610e9d9190613f82565b610ea7919061400b565b612078565b8080610eb7906140fd565b915050610dc2565b5050565b610ede83838360405180602001604052806000815250611401565b505050565b610eeb611b55565b610f17600f60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261216c565b50565b610f22611b55565b600f60019054906101000a900460ff1615610f69576040517f4e9739fd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e9080519060200190610f7f929190613386565b506001600f60016101000a81548160ff02191690831515021790555050565b6000610fa8610a8a565b8210610fe9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe0906141b8565b60405180910390fd5b60088281548110610ffd57610ffc6140ce565b5b90600052602060002001549050919050565b600f60009054906101000a900460ff1681565b60008061102e83612302565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109790614224565b60405180910390fd5b80915050919050565b6110b1611b55565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611118576040517f52d2cf3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f60036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e805461116990613d6b565b80601f016020809104026020016040519081016040528092919081815260200182805461119590613d6b565b80156111e25780601f106111b7576101008083540402835291602001916111e2565b820191906000526020600020905b8154815290600101906020018083116111c557829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561125b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611252906142b6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112aa611b55565b6112b4600061233f565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f60029054906101000a900460ff1615611327576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113318282612405565b5050565b60606001805461134490613d6b565b80601f016020809104026020016040519081016040528092919081815260200182805461137090613d6b565b80156113bd5780601f10611392576101008083540402835291602001916113bd565b820191906000526020600020905b8154815290600101906020018083116113a057829003601f168201915b5050505050905090565b6113d96113d2611c1e565b8383612484565b5050565b7f353612d3307b260a2ec47260c599cc9b8ad8e022d8f2283a2473793cd8a6e18881565b61141261140c611c1e565b83611cdf565b611451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144890613f33565b60405180910390fd5b61145d848484846125f1565b50505050565b6114f5828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f353612d3307b260a2ec47260c599cc9b8ad8e022d8f2283a2473793cd8a6e188336040516020016114da919061431e565b6040516020818303038152906040528051906020012061264d565b61166557600f60009054906101000a900460ff1661161457600082829050141561154b576040517ff657dea100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115dd828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f7df8dc308693bf9cfb32f9b17bf5b2cb6e91c474cce889a29b49e2c9b0f0de90336040516020016115c2919061431e565b6040516020818303038152906040528051906020012061264d565b611613576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8266b1a2bc2ec500006116279190613f82565b341015611660576040517fa2c2d5c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61177d565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116e9576040517f98bdb27b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001831115611724576040517fa386771400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b600d5483611789610a8a565b6117939190614339565b11156117cb576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003836117d7336111ea565b6117e19190614339565b1115611819576040517fc109f51100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118233384612405565b505050565b60126020528060005260406000206000915054906101000a900460ff1681565b600f60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606061187982612664565b6118af576040517f9430a17e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f60019054906101000a900460ff16156118f657600e6118cf836126a5565b6040516020016118e092919061445f565b6040516020818303038152906040529050611984565b600e805461190390613d6b565b80601f016020809104026020016040519081016040528092919081815260200182805461192f90613d6b565b801561197c5780601f106119515761010080835404028352916020019161197c565b820191906000526020600020905b81548152906001019060200180831161195f57829003601f168201915b505050505090505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f7df8dc308693bf9cfb32f9b17bf5b2cb6e91c474cce889a29b49e2c9b0f0de9081565b611a49611b55565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ab9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab0906144f5565b60405180910390fd5b611ac28161233f565b50565b6001816000016000828254019250508190555050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b4e5750611b4d8261277d565b5b9050919050565b611b5d611c1e565b73ffffffffffffffffffffffffffffffffffffffff16611b7b6112b6565b73ffffffffffffffffffffffffffffffffffffffff1614611bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc890614561565b60405180910390fd5b565b611bdc81612664565b611c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1290614224565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c9983611022565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ceb83611022565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d2d5750611d2c8185611989565b5b80611d6b57508373ffffffffffffffffffffffffffffffffffffffff16611d538461092c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d9482611022565b73ffffffffffffffffffffffffffffffffffffffff1614611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de1906145f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5190614685565b60405180910390fd5b611e6783838360016127f7565b8273ffffffffffffffffffffffffffffffffffffffff16611e8782611022565b73ffffffffffffffffffffffffffffffffffffffff1614611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed4906145f3565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120698383836001612957565b505050565b6000612710905090565b804710156120bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b2906146f1565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120e190614742565b60006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b5050905080612167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215e906147c9565b60405180910390fd5b505050565b61217461206e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156121d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c99061485b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612242576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612239906148c7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000811415612440576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561247f576000612457601361295d565b90506124636013611ac5565b61246d848261296b565b5080612478906140fd565b9050612443565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156124f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ea90614933565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125e491906134dd565b60405180910390a3505050565b6125fc848484611d74565b61260884848484612b89565b612647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263e906149c5565b60405180910390fd5b50505050565b60008261265a8584612d20565b1490509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661268683612302565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600060016126b484612d76565b01905060008167ffffffffffffffff8111156126d3576126d2613898565b5b6040519080825280601f01601f1916602001820160405280156127055781602001600182028036833780820191505090505b509050600082602001820190505b600115612772578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161275c5761275b613fdc565b5b049450600085141561276d57612772565b612713565b819350505050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127f057506127ef82612ec9565b5b9050919050565b61280384848484612fab565b6001811115612847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283e90614a57565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561288f5761288a81612fb1565b6128ce565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146128cd576128cc8582612ffa565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156129115761290c81613167565b612950565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461294f5761294e8482613238565b5b5b5050505050565b50505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d290614ac3565b60405180910390fd5b6129e481612664565b15612a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1b90614b2f565b60405180910390fd5b612a326000838360016127f7565b612a3b81612664565b15612a7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7290614b2f565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b85600083836001612957565b5050565b6000612baa8473ffffffffffffffffffffffffffffffffffffffff166132b7565b15612d13578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bd3611c1e565b8786866040518563ffffffff1660e01b8152600401612bf59493929190614ba4565b602060405180830381600087803b158015612c0f57600080fd5b505af1925050508015612c4057506040513d601f19601f82011682018060405250810190612c3d9190614c05565b60015b612cc3573d8060008114612c70576040519150601f19603f3d011682016040523d82523d6000602084013e612c75565b606091505b50600081511415612cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb2906149c5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d18565b600190505b949350505050565b60008082905060005b8451811015612d6b57612d5682868381518110612d4957612d486140ce565b5b60200260200101516132da565b91508080612d63906140fd565b915050612d29565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612dd4577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612dca57612dc9613fdc565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612e11576d04ee2d6d415b85acef81000000008381612e0757612e06613fdc565b5b0492506020810190505b662386f26fc100008310612e4057662386f26fc100008381612e3657612e35613fdc565b5b0492506010810190505b6305f5e1008310612e69576305f5e1008381612e5f57612e5e613fdc565b5b0492506008810190505b6127108310612e8e576127108381612e8457612e83613fdc565b5b0492506004810190505b60648310612eb15760648381612ea757612ea6613fdc565b5b0492506002810190505b600a8310612ec0576001810190505b80915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f9457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612fa45750612fa382613305565b5b9050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613007846111ea565b6130119190614c32565b90506000600760008481526020019081526020016000205490508181146130f6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061317b9190614c32565b90506000600960008481526020019081526020016000205490506000600883815481106131ab576131aa6140ce565b5b9060005260206000200154905080600883815481106131cd576131cc6140ce565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061321c5761321b614c66565b5b6001900381819060005260206000200160009055905550505050565b6000613243836111ea565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106132f2576132ed828461336f565b6132fd565b6132fc838361336f565b5b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600082600052816020526040600020905092915050565b82805461339290613d6b565b90600052602060002090601f0160209004810192826133b457600085556133fb565b82601f106133cd57805160ff19168380011785556133fb565b828001600101855582156133fb579182015b828111156133fa5782518255916020019190600101906133df565b5b509050613408919061340c565b5090565b5b8082111561342557600081600090555060010161340d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134728161343d565b811461347d57600080fd5b50565b60008135905061348f81613469565b92915050565b6000602082840312156134ab576134aa613433565b5b60006134b984828501613480565b91505092915050565b60008115159050919050565b6134d7816134c2565b82525050565b60006020820190506134f260008301846134ce565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613532578082015181840152602081019050613517565b83811115613541576000848401525b50505050565b6000601f19601f8301169050919050565b6000613563826134f8565b61356d8185613503565b935061357d818560208601613514565b61358681613547565b840191505092915050565b600060208201905081810360008301526135ab8184613558565b905092915050565b6000819050919050565b6135c6816135b3565b81146135d157600080fd5b50565b6000813590506135e3816135bd565b92915050565b6000602082840312156135ff576135fe613433565b5b600061360d848285016135d4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061364182613616565b9050919050565b61365181613636565b82525050565b600060208201905061366c6000830184613648565b92915050565b61367b81613636565b811461368657600080fd5b50565b60008135905061369881613672565b92915050565b600080604083850312156136b5576136b4613433565b5b60006136c385828601613689565b92505060206136d4858286016135d4565b9150509250929050565b6136e7816135b3565b82525050565b600060208201905061370260008301846136de565b92915050565b613711816134c2565b811461371c57600080fd5b50565b60008135905061372e81613708565b92915050565b60006020828403121561374a57613749613433565b5b60006137588482850161371f565b91505092915050565b60008060006060848603121561377a57613779613433565b5b600061378886828701613689565b935050602061379986828701613689565b92505060406137aa868287016135d4565b9150509250925092565b600080604083850312156137cb576137ca613433565b5b60006137d9858286016135d4565b92505060206137ea858286016135d4565b9150509250929050565b60006040820190506138096000830185613648565b61381660208301846136de565b9392505050565b60006bffffffffffffffffffffffff82169050919050565b61383e8161381d565b811461384957600080fd5b50565b60008135905061385b81613835565b92915050565b60006020828403121561387757613876613433565b5b60006138858482850161384c565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6138d082613547565b810181811067ffffffffffffffff821117156138ef576138ee613898565b5b80604052505050565b6000613902613429565b905061390e82826138c7565b919050565b600067ffffffffffffffff82111561392e5761392d613898565b5b61393782613547565b9050602081019050919050565b82818337600083830152505050565b600061396661396184613913565b6138f8565b90508281526020810184848401111561398257613981613893565b5b61398d848285613944565b509392505050565b600082601f8301126139aa576139a961388e565b5b81356139ba848260208601613953565b91505092915050565b6000602082840312156139d9576139d8613433565b5b600082013567ffffffffffffffff8111156139f7576139f6613438565b5b613a0384828501613995565b91505092915050565b6000613a1782613616565b9050919050565b613a2781613a0c565b8114613a3257600080fd5b50565b600081359050613a4481613a1e565b92915050565b600060208284031215613a6057613a5f613433565b5b6000613a6e84828501613a35565b91505092915050565b600060208284031215613a8d57613a8c613433565b5b6000613a9b84828501613689565b91505092915050565b60008060408385031215613abb57613aba613433565b5b6000613ac985828601613689565b9250506020613ada8582860161371f565b9150509250929050565b6000819050919050565b613af781613ae4565b82525050565b6000602082019050613b126000830184613aee565b92915050565b600067ffffffffffffffff821115613b3357613b32613898565b5b613b3c82613547565b9050602081019050919050565b6000613b5c613b5784613b18565b6138f8565b905082815260208101848484011115613b7857613b77613893565b5b613b83848285613944565b509392505050565b600082601f830112613ba057613b9f61388e565b5b8135613bb0848260208601613b49565b91505092915050565b60008060008060808587031215613bd357613bd2613433565b5b6000613be187828801613689565b9450506020613bf287828801613689565b9350506040613c03878288016135d4565b925050606085013567ffffffffffffffff811115613c2457613c23613438565b5b613c3087828801613b8b565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613c5c57613c5b61388e565b5b8235905067ffffffffffffffff811115613c7957613c78613c3c565b5b602083019150836020820283011115613c9557613c94613c41565b5b9250929050565b600080600060408486031215613cb557613cb4613433565b5b6000613cc3868287016135d4565b935050602084013567ffffffffffffffff811115613ce457613ce3613438565b5b613cf086828701613c46565b92509250509250925092565b60008060408385031215613d1357613d12613433565b5b6000613d2185828601613689565b9250506020613d3285828601613689565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d8357607f821691505b60208210811415613d9757613d96613d3c565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613df9602183613503565b9150613e0482613d9d565b604082019050919050565b60006020820190508181036000830152613e2881613dec565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613e8b603d83613503565b9150613e9682613e2f565b604082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613f1d602d83613503565b9150613f2882613ec1565b604082019050919050565b60006020820190508181036000830152613f4c81613f10565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f8d826135b3565b9150613f98836135b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613fd157613fd0613f53565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614016826135b3565b9150614021836135b3565b92508261403157614030613fdc565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614098602b83613503565b91506140a38261403c565b604082019050919050565b600060208201905081810360008301526140c78161408b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614108826135b3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561413b5761413a613f53565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006141a2602c83613503565b91506141ad82614146565b604082019050919050565b600060208201905081810360008301526141d181614195565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061420e601883613503565b9150614219826141d8565b602082019050919050565b6000602082019050818103600083015261423d81614201565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006142a0602983613503565b91506142ab82614244565b604082019050919050565b600060208201905081810360008301526142cf81614293565b9050919050565b60008160601b9050919050565b60006142ee826142d6565b9050919050565b6000614300826142e3565b9050919050565b61431861431382613636565b6142f5565b82525050565b600061432a8284614307565b60148201915081905092915050565b6000614344826135b3565b915061434f836135b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561438457614383613f53565b5b828201905092915050565b600081905092915050565b60008190508160005260206000209050919050565b600081546143bc81613d6b565b6143c6818661438f565b945060018216600081146143e157600181146143f257614425565b60ff19831686528186019350614425565b6143fb8561439a565b60005b8381101561441d578154818901526001820191506020810190506143fe565b838801955050505b50505092915050565b6000614439826134f8565b614443818561438f565b9350614453818560208601613514565b80840191505092915050565b600061446b82856143af565b9150614477828461442e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006144df602683613503565b91506144ea82614483565b604082019050919050565b6000602082019050818103600083015261450e816144d2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061454b602083613503565b915061455682614515565b602082019050919050565b6000602082019050818103600083015261457a8161453e565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006145dd602583613503565b91506145e882614581565b604082019050919050565b6000602082019050818103600083015261460c816145d0565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061466f602483613503565b915061467a82614613565b604082019050919050565b6000602082019050818103600083015261469e81614662565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006146db601d83613503565b91506146e6826146a5565b602082019050919050565b6000602082019050818103600083015261470a816146ce565b9050919050565b600081905092915050565b50565b600061472c600083614711565b91506147378261471c565b600082019050919050565b600061474d8261471f565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006147b3603a83613503565b91506147be82614757565b604082019050919050565b600060208201905081810360008301526147e2816147a6565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614845602a83613503565b9150614850826147e9565b604082019050919050565b6000602082019050818103600083015261487481614838565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006148b1601983613503565b91506148bc8261487b565b602082019050919050565b600060208201905081810360008301526148e0816148a4565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061491d601983613503565b9150614928826148e7565b602082019050919050565b6000602082019050818103600083015261494c81614910565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006149af603283613503565b91506149ba82614953565b604082019050919050565b600060208201905081810360008301526149de816149a2565b9050919050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b6000614a41603583613503565b9150614a4c826149e5565b604082019050919050565b60006020820190508181036000830152614a7081614a34565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614aad602083613503565b9150614ab882614a77565b602082019050919050565b60006020820190508181036000830152614adc81614aa0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614b19601c83613503565b9150614b2482614ae3565b602082019050919050565b60006020820190508181036000830152614b4881614b0c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614b7682614b4f565b614b808185614b5a565b9350614b90818560208601613514565b614b9981613547565b840191505092915050565b6000608082019050614bb96000830187613648565b614bc66020830186613648565b614bd360408301856136de565b8181036060830152614be58184614b6b565b905095945050505050565b600081519050614bff81613469565b92915050565b600060208284031215614c1b57614c1a613433565b5b6000614c2984828501614bf0565b91505092915050565b6000614c3d826135b3565b9150614c48836135b3565b925082821015614c5b57614c5a613f53565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122021b2694e679a6e8b5b8e9f3bfd3400980ac4e67ee89da40342649894e8044c1064736f6c63430008090033

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

00000000000000000000000053fdc83d596377702c580606ebb1eea1a12a84977df8dc308693bf9cfb32f9b17bf5b2cb6e91c474cce889a29b49e2c9b0f0de90353612d3307b260a2ec47260c599cc9b8ad8e022d8f2283a2473793cd8a6e18800000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961796a3266736169626261787233326f62616b696f7037696a6e6e746b65676f616636756a3461647a7673617237636a773665750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000ebb26416262969f5f2f628c3f3910d8700053dce000000000000000000000000bb2d215d317c2da2c153487b6969cb6e153caea8000000000000000000000000775f28f0b480b14a485ef9dbfca8562a62886a8f000000000000000000000000abd179a3e9df7287e1d129a32974e4092633611a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000013ec0000000000000000000000000000000000000000000000000000000000000d4800000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001f4

-----Decoded View---------------
Arg [0] : defaultTreasury (address): 0x53fDC83D596377702C580606ebB1Eea1a12A8497
Arg [1] : defaultRoot (bytes32): 0x7df8dc308693bf9cfb32f9b17bf5b2cb6e91c474cce889a29b49e2c9b0f0de90
Arg [2] : defaultFreeMintRoot (bytes32): 0x353612d3307b260a2ec47260c599cc9b8ad8e022d8f2283a2473793cd8a6e188
Arg [3] : defaultUri (string): ipfs://bafkreiayj2fsaibbaxr32obakiop7ijnntkegoaf6uj4adzvsar7cjw6eu
Arg [4] : addresses_ (address[]): 0xebB26416262969f5F2f628c3f3910d8700053dcE,0xBb2D215d317c2da2C153487B6969cB6E153CaEA8,0x775F28f0B480B14a485Ef9dBFCa8562a62886a8F,0xabd179A3E9df7287e1d129a32974E4092633611a
Arg [5] : percentage_ (uint256[]): 5100,3400,1000,500

-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 00000000000000000000000053fdc83d596377702c580606ebb1eea1a12a8497
Arg [1] : 7df8dc308693bf9cfb32f9b17bf5b2cb6e91c474cce889a29b49e2c9b0f0de90
Arg [2] : 353612d3307b260a2ec47260c599cc9b8ad8e022d8f2283a2473793cd8a6e188
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [7] : 697066733a2f2f6261666b72656961796a3266736169626261787233326f6261
Arg [8] : 6b696f7037696a6e6e746b65676f616636756a3461647a7673617237636a7736
Arg [9] : 6575000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 000000000000000000000000ebb26416262969f5f2f628c3f3910d8700053dce
Arg [12] : 000000000000000000000000bb2d215d317c2da2c153487b6969cb6e153caea8
Arg [13] : 000000000000000000000000775f28f0b480b14a485ef9dbfca8562a62886a8f
Arg [14] : 000000000000000000000000abd179a3e9df7287e1d129a32974e4092633611a
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [16] : 00000000000000000000000000000000000000000000000000000000000013ec
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000d48
Arg [18] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [19] : 00000000000000000000000000000000000000000000000000000000000001f4


Loading...
Loading
Loading...
Loading
[ 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.