ETH Price: $2,401.69 (-3.24%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...210204752024-10-22 10:18:5913 days ago1729592339IN
WanghaiVillage: WHV Token
0 ETH0.000382358.17987296
Safe Transfer Fr...209616662024-10-14 5:16:3521 days ago1728882995IN
WanghaiVillage: WHV Token
0 ETH0.000778919.96555494
Set Approval For...206563392024-09-01 14:32:5964 days ago1725201179IN
WanghaiVillage: WHV Token
0 ETH0.000085841.83656259
Set Approval For...205568252024-08-18 16:51:3578 days ago1723999895IN
WanghaiVillage: WHV Token
0 ETH0.000126612.70868189
Set Approval For...205568212024-08-18 16:50:4778 days ago1723999847IN
WanghaiVillage: WHV Token
0 ETH0.000127882.74087371
Set Approval For...205498382024-08-17 17:28:5979 days ago1723915739IN
WanghaiVillage: WHV Token
0 ETH0.000096322.06069186
Set Approval For...202246682024-07-03 8:03:35124 days ago1719993815IN
WanghaiVillage: WHV Token
0 ETH0.000178733.82363329
Set Approval For...199511472024-05-26 2:44:11163 days ago1716691451IN
WanghaiVillage: WHV Token
0 ETH0.000175813.76792626
Set Approval For...199340462024-05-23 17:23:11165 days ago1716484991IN
WanghaiVillage: WHV Token
0 ETH0.0006343913.59603874
Set Approval For...198952332024-05-18 7:05:59170 days ago1716015959IN
WanghaiVillage: WHV Token
0 ETH0.000180963.87140373
Set Approval For...197718562024-05-01 0:59:35188 days ago1714525175IN
WanghaiVillage: WHV Token
0 ETH0.000146195.90738819
Set Approval For...197718472024-05-01 0:57:47188 days ago1714525067IN
WanghaiVillage: WHV Token
0 ETH0.000165166.66737562
Set Approval For...197718322024-05-01 0:54:47188 days ago1714524887IN
WanghaiVillage: WHV Token
0 ETH0.000155876.29854815
Set Approval For...197718282024-05-01 0:53:59188 days ago1714524839IN
WanghaiVillage: WHV Token
0 ETH0.00014835.98691199
Set Approval For...197294602024-04-25 2:40:11194 days ago1714012811IN
WanghaiVillage: WHV Token
0 ETH0.000372817.97573022
Set Approval For...197294592024-04-25 2:39:59194 days ago1714012799IN
WanghaiVillage: WHV Token
0 ETH0.00037438.022
Set Approval For...196597592024-04-15 8:35:23203 days ago1713170123IN
WanghaiVillage: WHV Token
0 ETH0.0005587111.95261082
Set Approval For...196453522024-04-13 8:05:35205 days ago1712995535IN
WanghaiVillage: WHV Token
0 ETH0.0005412111.57834105
Set Approval For...196368412024-04-12 3:27:35206 days ago1712892455IN
WanghaiVillage: WHV Token
0 ETH0.0005937212.7245953
Set Approval For...196219122024-04-10 1:19:59209 days ago1712711999IN
WanghaiVillage: WHV Token
0 ETH0.0005968312.76824113
Set Approval For...195242312024-03-27 7:36:47222 days ago1711525007IN
WanghaiVillage: WHV Token
0 ETH0.0012243826.19331022
Set Approval For...195103902024-03-25 8:43:47224 days ago1711356227IN
WanghaiVillage: WHV Token
0 ETH0.0008334817.83093043
Set Approval For...195084652024-03-25 2:12:11225 days ago1711332731IN
WanghaiVillage: WHV Token
0 ETH0.000803717.19810315
Set Approval For...194802002024-03-21 2:53:23229 days ago1710989603IN
WanghaiVillage: WHV Token
0 ETH0.0014728731.51754343
Set Approval For...194487722024-03-16 16:55:35233 days ago1710608135IN
WanghaiVillage: WHV Token
0 ETH0.0016375635.03261613
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
160458382022-11-25 8:34:47710 days ago1669365287
WanghaiVillage: WHV Token
30.8 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WangHaiVillage

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {DefaultOperatorFilterer} from "./DefaultOperatorFilterer.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract WangHaiVillage is Ownable, ERC721A, ReentrancyGuard, DefaultOperatorFilterer {
    uint256 public maxPerAddress;
    bytes32 public merkleRoot;
    bool public flipped;
    using SafeMath for uint256;
    struct SaleConfig {
        uint32 whitelsitSaleStartTime;
        uint32 whitelistSaleDuration;
        uint32 publicSaleStartTime;
        uint32 publicSaleDuration;
        uint64 whitelsitPrice;
        uint64 publicPrice;
    }

    SaleConfig public saleConfig;

    constructor(
        uint256 maxPerAddress_,
        uint256 collectionSize_,
        string memory name_,
        string memory symbol_
    ) ERC721A(name_, symbol_, maxPerAddress_, collectionSize_) {
        maxPerAddress = maxPerAddress_;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    function whitelistMint(uint256 quantity, bytes32[] memory _proof)
        external
        payable
        callerIsUser
    {
        MerkleProof.verify(
            _proof,
            merkleRoot,
            keccak256(abi.encodePacked(msg.sender))
        );
        uint256 price = uint256(saleConfig.whitelsitPrice);
        require(
            block.timestamp >= saleConfig.whitelsitSaleStartTime,
            "whitelist sale has not begun yet"
        );
        require(
            saleConfig.whitelsitSaleStartTime +
                saleConfig.whitelistSaleDuration >=
                block.timestamp,
            "whitelist sale has ended"
        );
        require(
            numberMinted(msg.sender) + quantity <= maxPerAddress,
            "can not mint this many"
        );
        require(
            totalSupply() + quantity <= collectionSize,
            "reached max supply"
        );
        _safeMint(msg.sender, quantity);
        refundIfOver(price * quantity);
    }

    function publicSaleMint(uint256 quantity) external payable callerIsUser {
        SaleConfig memory config = saleConfig;
        uint256 publicPrice = uint256(config.publicPrice);
        require(
            block.timestamp >= saleConfig.publicSaleStartTime,
            "public sale has not begun yet"
        );
        require(
            saleConfig.publicSaleStartTime + saleConfig.publicSaleDuration >=
                block.timestamp,
            "public sale has ended"
        );
        require(
            totalSupply() + quantity <= collectionSize,
            "reached max supply"
        );
        require(
            numberMinted(msg.sender) + quantity <= maxPerAddress,
            "can not mint this many"
        );
        _safeMint(msg.sender, quantity);
        refundIfOver(publicPrice * quantity);
    }

    function refundIfOver(uint256 price) private {
        require(msg.value >= price, "Need to send more ETH.");
        if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    function configSaleInfo(
        uint32 whitelsitSaleStartTime,
        uint32 whitelistSaleDuration,
        uint32 publicSaleStartTime,
        uint32 publicSaleDuration,
        uint64 whitelsitPrice,
        uint64 publicPrice
    ) external onlyOwner {
        saleConfig = SaleConfig(
            whitelsitSaleStartTime,
            whitelistSaleDuration,
            publicSaleStartTime,
            publicSaleDuration,
            whitelsitPrice,
            publicPrice
        );
    }

    function setwhitelsitSaleStartTime(uint32 timestamp) external onlyOwner {
        saleConfig.whitelsitSaleStartTime = timestamp;
    }

    function setpublicSaleStartTime(uint32 timestamp) external onlyOwner {
        saleConfig.publicSaleStartTime = timestamp;
    }

    function setwhitelistSaleDuration(uint32 duration_) external onlyOwner {
        saleConfig.whitelistSaleDuration = duration_;
    }

    function setpublicSaleDuration(uint32 duration_) external onlyOwner {
        saleConfig.publicSaleDuration = duration_;
    }

    function setMerkleProof(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function setMaxPerAddress(uint256 _maxPerAddress) public onlyOwner {
        maxPerAddress = _maxPerAddress;
    }

    // For marketing etc.
    function devMint(uint256 quantity) external onlyOwner {
        _safeMint(msg.sender, quantity);
    }

    // metadata URI
    string private _baseTokenURI;

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

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function withdraw() public onlyOwner {
        uint256 _balance = address(this).balance;
        require(_balance > 0, "No ETH to withdraw");

        require(payable(msg.sender).send(_balance));
    }

    function numberMinted(address owner) public view returns (uint256) {
        return _numberMinted(owner);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override
        onlyAllowedOperator
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        if (flipped) {
            return super.tokenURI(tokenId);
        } else {
            return _baseTokenURI;
        }
    }

    function flip() public onlyOwner {
        flipped = !flipped;
    }

    function getOwnershipData(uint256 tokenId)
        external
        view
        returns (TokenOwnership memory)
    {
        return ownershipOf(tokenId);
    }
}

File 2 of 19 : 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);
    }
}

File 3 of 19 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  uint256 private currentIndex = 0;

  uint256 internal immutable collectionSize;
  uint256 internal immutable maxBatchSize;

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

  // Mapping from token ID to ownership details
  // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
  mapping(uint256 => TokenOwnership) private _ownerships;

  // Mapping owner address to address data
  mapping(address => AddressData) private _addressData;

  // 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
   * `maxBatchSize` refers to how much a minter can mint at a time.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

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

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

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i < numMintedSoFar; i++) {
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

  /**
   * @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 ||
      interfaceId == type(IERC721Enumerable).interfaceId ||
      super.supportsInterface(interfaceId);
  }

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

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

  /**
   * @dev See {IERC721-ownerOf}.
   */
  function ownerOf(uint256 tokenId) public view override returns (address) {
    return ownershipOf(tokenId).addr;
  }

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

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

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

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

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

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

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

    _approve(to, tokenId, owner);
  }

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

    return _tokenApprovals[tokenId];
  }

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

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

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

  /**
   * @dev See {IERC721-transferFrom}.
   */
  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public virtual override {
    _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 {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

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

  function _safeMint(address to, uint256 quantity) internal {
    _safeMint(to, quantity, "");
  }

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

    _beforeTokenTransfers(address(0), to, startTokenId, quantity);

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

    currentIndex = updatedIndex;
    _afterTokenTransfers(address(0), to, startTokenId, quantity);
  }

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
   *
   * 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
  ) private {
    TokenOwnership memory prevOwnership = ownershipOf(tokenId);

    bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
      getApproved(tokenId) == _msgSender() ||
      isApprovedForAll(prevOwnership.addr, _msgSender()));

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

    // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
    // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
    uint256 nextTokenId = tokenId + 1;
    if (_ownerships[nextTokenId].addr == address(0)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

    emit Transfer(from, to, tokenId);
    _afterTokenTransfers(from, to, tokenId, 1);
  }

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

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > collectionSize - 1) {
      endIndex = collectionSize - 1;
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

  /**
   * @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(to).onERC721Received.selector;
      } catch (bytes memory reason) {
        if (reason.length == 0) {
          revert("ERC721A: transfer to non ERC721Receiver implementer");
        } else {
          assembly {
            revert(add(32, reason), mload(reason))
          }
        }
      }
    } else {
      return true;
    }
  }

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
   * transferred to `to`.
   * - When `from` is zero, `tokenId` will be minted for `to`.
   */
  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  /**
   * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
   * minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero.
   * - `from` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

File 4 of 19 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 5 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 19 : 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 7 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 19 : 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 9 of 19 : 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 10 of 19 : 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 11 of 19 : 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 19 : 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 13 of 19 : 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 14 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 15 of 19 : 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 16 of 19 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (subscribe) {
                operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    operatorFilterRegistry.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator() virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (!operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }
}

File 17 of 19 : 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 19 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"maxPerAddress_","type":"uint256"},{"internalType":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"whitelsitSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"whitelistSaleDuration","type":"uint32"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleDuration","type":"uint32"},{"internalType":"uint64","name":"whitelsitPrice","type":"uint64"},{"internalType":"uint64","name":"publicPrice","type":"uint64"}],"name":"configSaleInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipped","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":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"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":[],"name":"maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfig","outputs":[{"internalType":"uint32","name":"whitelsitSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"whitelistSaleDuration","type":"uint32"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleDuration","type":"uint32"},{"internalType":"uint64","name":"whitelsitPrice","type":"uint64"},{"internalType":"uint64","name":"publicPrice","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerAddress","type":"uint256"}],"name":"setMaxPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleProof","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"duration_","type":"uint32"}],"name":"setpublicSaleDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setpublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"duration_","type":"uint32"}],"name":"setwhitelistSaleDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setwhitelsitSaleStartTime","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":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600060015560006008553480156200001b57600080fd5b5060405162006256380380620062568339818101604052810190620000419190620006b2565b733cc6cdda760b79bafa08df41ecfa224f810dceb66001838387876200007c620000706200035e60201b60201c565b6200036660201b60201c565b60008111620000c2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000b990620007e9565b60405180910390fd5b6000821162000108576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000ff9062000881565b60405180910390fd5b8360029080519060200190620001209291906200042a565b508260039080519060200190620001399291906200042a565b508160a08181525050806080818152505050505050600160098190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200034b57801562000211576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001d7929190620008e8565b600060405180830381600087803b158015620001f257600080fd5b505af115801562000207573d6000803e3d6000fd5b505050506200034a565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002cb576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b815260040162000291929190620008e8565b600060405180830381600087803b158015620002ac57600080fd5b505af1158015620002c1573d6000803e3d6000fd5b5050505062000349565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000314919062000915565b600060405180830381600087803b1580156200032f57600080fd5b505af115801562000344573d6000803e3d6000fd5b505050505b5b5b505083600a819055505050505062000996565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620004389062000961565b90600052602060002090601f0160209004810192826200045c5760008555620004a8565b82601f106200047757805160ff1916838001178555620004a8565b82800160010185558215620004a8579182015b82811115620004a75782518255916020019190600101906200048a565b5b509050620004b79190620004bb565b5090565b5b80821115620004d6576000816000905550600101620004bc565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6200050381620004ee565b81146200050f57600080fd5b50565b6000815190506200052381620004f8565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200057e8262000533565b810181811067ffffffffffffffff82111715620005a0576200059f62000544565b5b80604052505050565b6000620005b5620004da565b9050620005c3828262000573565b919050565b600067ffffffffffffffff821115620005e657620005e562000544565b5b620005f18262000533565b9050602081019050919050565b60005b838110156200061e57808201518184015260208101905062000601565b838111156200062e576000848401525b50505050565b60006200064b6200064584620005c8565b620005a9565b9050828152602081018484840111156200066a57620006696200052e565b5b62000677848285620005fe565b509392505050565b600082601f83011262000697576200069662000529565b5b8151620006a984826020860162000634565b91505092915050565b60008060008060808587031215620006cf57620006ce620004e4565b5b6000620006df8782880162000512565b9450506020620006f28782880162000512565b935050604085015167ffffffffffffffff811115620007165762000715620004e9565b5b62000724878288016200067f565b925050606085015167ffffffffffffffff811115620007485762000747620004e9565b5b62000756878288016200067f565b91505092959194509250565b600082825260208201905092915050565b7f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060008201527f6e6f6e7a65726f20737570706c79000000000000000000000000000000000000602082015250565b6000620007d1602e8362000762565b9150620007de8262000773565b604082019050919050565b600060208201905081810360008301526200080481620007c2565b9050919050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b60006200086960278362000762565b915062000876826200080b565b604082019050919050565b600060208201905081810360008301526200089c816200085a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008d082620008a3565b9050919050565b620008e281620008c3565b82525050565b6000604082019050620008ff6000830185620008d7565b6200090e6020830184620008d7565b9392505050565b60006020820190506200092c6000830184620008d7565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200097a57607f821691505b60208210810362000990576200098f62000932565b5b50919050565b60805160a051615885620009d1600039600081816123be015281816123e70152612f4c015260008181611a190152611f7801526158856000f3fe6080604052600436106102305760003560e01c8063715018a61161012e578063b88d4fde116100ab578063d5acf0fe1161006f578063d5acf0fe1461080c578063d7224ba014610835578063dc33e68114610860578063e985e9c51461089d578063f2fde38b146108da57610230565b8063b88d4fde1461074a578063bd583f1214610773578063c87b56dd1461079c578063cde4efa9146107d9578063d2cab056146107f057610230565b80639231ab2a116100f25780639231ab2a1461067457806395d89b41146106b1578063a22cb465146106dc578063b072cb5c14610705578063b3ab66b01461072e57610230565b8063715018a6146105b05780637bddd65b146105c757806386758912146105f05780638da5cb5b1461061957806390aa0b0f1461064457610230565b80632f745c59116101bc578063552b78a311610180578063552b78a3146104b957806355f804b3146104e25780636352211e1461050b578063639814e01461054857806370a082311461057357610230565b80632f745c59146103d6578063375a069a146104135780633ccfd60b1461043c57806342842e0e146104535780634f6ccce71461047c57610230565b8063095ea7b311610203578063095ea7b3146103055780631440c9af1461032e57806318160ddd1461035757806323b872dd146103825780632eb4a7ab146103ab57610230565b806301ffc9a71461023557806306fdde03146102725780630710579e1461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906139b4565b610903565b60405161026991906139fc565b60405180910390f35b34801561027e57600080fd5b50610287610a4d565b6040516102949190613ab0565b60405180910390f35b3480156102a957600080fd5b506102b2610adf565b6040516102bf91906139fc565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190613b08565b610af2565b6040516102fc9190613b76565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190613bbd565b610b77565b005b34801561033a57600080fd5b5061035560048036038101906103509190613c79565b610c8f565b005b34801561036357600080fd5b5061036c610df7565b6040516103799190613d15565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190613d30565b610e01565b005b3480156103b757600080fd5b506103c0610f0b565b6040516103cd9190613d9c565b60405180910390f35b3480156103e257600080fd5b506103fd60048036038101906103f89190613bbd565b610f11565b60405161040a9190613d15565b60405180910390f35b34801561041f57600080fd5b5061043a60048036038101906104359190613b08565b61110d565b005b34801561044857600080fd5b50610451611122565b005b34801561045f57600080fd5b5061047a60048036038101906104759190613d30565b6111b3565b005b34801561048857600080fd5b506104a3600480360381019061049e9190613b08565b6112bd565b6040516104b09190613d15565b60405180910390f35b3480156104c557600080fd5b506104e060048036038101906104db9190613db7565b611310565b005b3480156104ee57600080fd5b5061050960048036038101906105049190613e49565b61133f565b005b34801561051757600080fd5b50610532600480360381019061052d9190613b08565b61135d565b60405161053f9190613b76565b60405180910390f35b34801561055457600080fd5b5061055d611373565b60405161056a9190613d15565b60405180910390f35b34801561057f57600080fd5b5061059a60048036038101906105959190613e96565b611379565b6040516105a79190613d15565b60405180910390f35b3480156105bc57600080fd5b506105c5611461565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190613b08565b611475565b005b3480156105fc57600080fd5b5061061760048036038101906106129190613eef565b611487565b005b34801561062557600080fd5b5061062e611499565b60405161063b9190613b76565b60405180910390f35b34801561065057600080fd5b506106596114c2565b60405161066b96959493929190613f3a565b60405180910390f35b34801561068057600080fd5b5061069b60048036038101906106969190613b08565b611554565b6040516106a89190613fe8565b60405180910390f35b3480156106bd57600080fd5b506106c661156c565b6040516106d39190613ab0565b60405180910390f35b3480156106e857600080fd5b5061070360048036038101906106fe919061402f565b6115fe565b005b34801561071157600080fd5b5061072c60048036038101906107279190613db7565b61177e565b005b61074860048036038101906107439190613b08565b6117ad565b005b34801561075657600080fd5b50610771600480360381019061076c919061419f565b611b07565b005b34801561077f57600080fd5b5061079a60048036038101906107959190613db7565b611c13565b005b3480156107a857600080fd5b506107c360048036038101906107be9190613b08565b611c42565b6040516107d09190613ab0565b60405180910390f35b3480156107e557600080fd5b506107ee611d44565b005b61080a600480360381019061080591906142e5565b611d78565b005b34801561081857600080fd5b50610833600480360381019061082e9190613db7565b61200e565b005b34801561084157600080fd5b5061084a61203d565b6040516108579190613d15565b60405180910390f35b34801561086c57600080fd5b5061088760048036038101906108829190613e96565b612043565b6040516108949190613d15565b60405180910390f35b3480156108a957600080fd5b506108c460048036038101906108bf9190614341565b612055565b6040516108d191906139fc565b60405180910390f35b3480156108e657600080fd5b5061090160048036038101906108fc9190613e96565b6120e9565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ce57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a3657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a465750610a458261216c565b5b9050919050565b606060028054610a5c906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a88906143b0565b8015610ad55780601f10610aaa57610100808354040283529160200191610ad5565b820191906000526020600020905b815481529060010190602001808311610ab857829003601f168201915b5050505050905090565b600c60009054906101000a900460ff1681565b6000610afd826121d6565b610b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3390614453565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b828261135d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be9906144e5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c116121e4565b73ffffffffffffffffffffffffffffffffffffffff161480610c405750610c3f81610c3a6121e4565b612055565b5b610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7690614577565b60405180910390fd5b610c8a8383836121ec565b505050565b610c9761229e565b6040518060c001604052808763ffffffff1681526020018663ffffffff1681526020018563ffffffff1681526020018463ffffffff1681526020018367ffffffffffffffff1681526020018267ffffffffffffffff16815250600d60008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160086101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001600c6101000a81548163ffffffff021916908363ffffffff16021790555060808201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060a08201518160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050505050505050565b6000600154905090565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610efb576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610e78929190614597565b602060405180830381865afa158015610e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb991906145d5565b610efa57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610ef19190613b76565b60405180910390fd5b5b610f0683838361231c565b505050565b600b5481565b6000610f1c83611379565b8210610f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5490614674565b60405180910390fd5b6000610f67610df7565b905060008060005b838110156110cb576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461106157806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110b7578684036110a8578195505050505050611107565b83806110b3906146c3565b9450505b5080806110c3906146c3565b915050610f6f565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fe9061477d565b60405180910390fd5b92915050565b61111561229e565b61111f338261232c565b50565b61112a61229e565b600047905060008111611172576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611169906147e9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050506111b057600080fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156112ad576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161122a929190614597565b602060405180830381865afa158015611247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126b91906145d5565b6112ac57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016112a39190613b76565b60405180910390fd5b5b6112b883838361234a565b505050565b60006112c7610df7565b8210611308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ff9061487b565b60405180910390fd5b819050919050565b61131861229e565b80600d600001600c6101000a81548163ffffffff021916908363ffffffff16021790555050565b61134761229e565b8181600e919061135892919061386b565b505050565b60006113688261236a565b600001519050919050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e09061490d565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61146961229e565b611473600061256d565b565b61147d61229e565b80600a8190555050565b61148f61229e565b80600b8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d8060000160009054906101000a900463ffffffff16908060000160049054906101000a900463ffffffff16908060000160089054906101000a900463ffffffff169080600001600c9054906101000a900463ffffffff16908060000160109054906101000a900467ffffffffffffffff16908060000160189054906101000a900467ffffffffffffffff16905086565b61155c6138f1565b6115658261236a565b9050919050565b60606003805461157b906143b0565b80601f01602080910402602001604051908101604052809291908181526020018280546115a7906143b0565b80156115f45780601f106115c9576101008083540402835291602001916115f4565b820191906000526020600020905b8154815290600101906020018083116115d757829003601f168201915b5050505050905090565b6116066121e4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166a90614979565b60405180910390fd5b80600760006116806121e4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661172d6121e4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161177291906139fc565b60405180910390a35050565b61178661229e565b80600d60000160006101000a81548163ffffffff021916908363ffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461181b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611812906149e5565b60405180910390fd5b6000600d6040518060c00160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201600c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681525050905060008160a0015167ffffffffffffffff169050600d60000160089054906101000a900463ffffffff1663ffffffff16421015611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090614a51565b60405180910390fd5b42600d600001600c9054906101000a900463ffffffff16600d60000160089054906101000a900463ffffffff166119d09190614a71565b63ffffffff161015611a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0e90614af7565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000083611a41610df7565b611a4b9190614b17565b1115611a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8390614bb9565b60405180910390fd5b600a5483611a9933612043565b611aa39190614b17565b1115611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb90614c25565b60405180910390fd5b611aee338461232c565b611b028382611afd9190614c45565b612631565b505050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611c01576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611b7e929190614597565b602060405180830381865afa158015611b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbf91906145d5565b611c0057336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611bf79190613b76565b60405180910390fd5b5b611c0d848484846126d2565b50505050565b611c1b61229e565b80600d60000160086101000a81548163ffffffff021916908363ffffffff16021790555050565b6060611c4d826121d6565b611c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8390614d11565b60405180910390fd5b600c60009054906101000a900460ff1615611cb157611caa8261272e565b9050611d3f565b600e8054611cbe906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611cea906143b0565b8015611d375780601f10611d0c57610100808354040283529160200191611d37565b820191906000526020600020905b815481529060010190602001808311611d1a57829003601f168201915b505050505090505b919050565b611d4c61229e565b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddd906149e5565b60405180910390fd5b611e1981600b5433604051602001611dfe9190614d79565b604051602081830303815290604052805190602001206127d5565b506000600d60000160109054906101000a900467ffffffffffffffff1667ffffffffffffffff169050600d60000160009054906101000a900463ffffffff1663ffffffff16421015611ea0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9790614de0565b60405180910390fd5b42600d60000160049054906101000a900463ffffffff16600d60000160009054906101000a900463ffffffff16611ed79190614a71565b63ffffffff161015611f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1590614e4c565b60405180910390fd5b600a5483611f2b33612043565b611f359190614b17565b1115611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d90614c25565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000083611fa0610df7565b611faa9190614b17565b1115611feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe290614bb9565b60405180910390fd5b611ff5338461232c565b61200983826120049190614c45565b612631565b505050565b61201661229e565b80600d60000160046101000a81548163ffffffff021916908363ffffffff16021790555050565b60085481565b600061204e826127ec565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120f161229e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215790614ede565b60405180910390fd5b6121698161256d565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6122a66121e4565b73ffffffffffffffffffffffffffffffffffffffff166122c4611499565b73ffffffffffffffffffffffffffffffffffffffff161461231a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231190614f4a565b60405180910390fd5b565b6123278383836128d4565b505050565b612346828260405180602001604052806000815250612e8b565b5050565b61236583838360405180602001604052806000815250611b07565b505050565b6123726138f1565b61237b826121d6565b6123ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b190614fdc565b60405180910390fd5b60007f0000000000000000000000000000000000000000000000000000000000000000831061241e5760017f0000000000000000000000000000000000000000000000000000000000000000846124119190614ffc565b61241b9190614b17565b90505b60008390505b81811061252c576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461251857809350505050612568565b50808061252490615030565b915050612424565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255f906150cb565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80341015612674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266b90615137565b60405180910390fd5b803411156126cf573373ffffffffffffffffffffffffffffffffffffffff166108fc82346126a29190614ffc565b9081150290604051600060405180830381858888f193505050501580156126cd573d6000803e3d6000fd5b505b50565b6126dd8484846128d4565b6126e98484848461336a565b612728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271f906151c9565b60405180910390fd5b50505050565b6060612739826121d6565b612778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276f90614d11565b60405180910390fd5b60006127826134f1565b905060008151116127a257604051806020016040528060008152506127cd565b806127ac84613583565b6040516020016127bd929190615271565b6040516020818303038152906040525b915050919050565b6000826127e28584613651565b1490509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361285c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285390615312565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b60006128df8261236a565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166129066121e4565b73ffffffffffffffffffffffffffffffffffffffff161480612962575061292b6121e4565b73ffffffffffffffffffffffffffffffffffffffff1661294a84610af2565b73ffffffffffffffffffffffffffffffffffffffff16145b8061297e575061297d82600001516129786121e4565b612055565b5b9050806129c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b7906153a4565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2990615436565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a98906154c8565b60405180910390fd5b612aae85858560016136a7565b612abe60008484600001516121ec565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612b2c9190615504565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612bd09190615538565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612cd69190614b17565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612e1b57612d4b816121d6565b15612e1a576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e8386868660016136ad565b505050505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef8906155f0565b60405180910390fd5b612f0a816121d6565b15612f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f419061565c565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000831115612fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa4906156ee565b60405180910390fd5b612fba60008583866136a7565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516130b79190615538565b6fffffffffffffffffffffffffffffffff1681526020018583602001516130de9190615538565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b8581101561334d57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132ed600088848861336a565b61332c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613323906151c9565b60405180910390fd5b8180613337906146c3565b9250508080613345906146c3565b91505061327c565b508060018190555061336260008785886136ad565b505050505050565b600061338b8473ffffffffffffffffffffffffffffffffffffffff166136b3565b156134e4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133b46121e4565b8786866040518563ffffffff1660e01b81526004016133d69493929190615763565b6020604051808303816000875af192505050801561341257506040513d601f19601f8201168201806040525081019061340f91906157c4565b60015b613494573d8060008114613442576040519150601f19603f3d011682016040523d82523d6000602084013e613447565b606091505b50600081510361348c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613483906151c9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134e9565b600190505b949350505050565b6060600e8054613500906143b0565b80601f016020809104026020016040519081016040528092919081815260200182805461352c906143b0565b80156135795780601f1061354e57610100808354040283529160200191613579565b820191906000526020600020905b81548152906001019060200180831161355c57829003601f168201915b5050505050905090565b606060006001613592846136d6565b01905060008167ffffffffffffffff8111156135b1576135b0614074565b5b6040519080825280601f01601f1916602001820160405280156135e35781602001600182028036833780820191505090505b509050600082602001820190505b600115613646578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161363a576136396157f1565b5b049450600085036135f1575b819350505050919050565b60008082905060005b845181101561369c576136878286838151811061367a57613679615820565b5b6020026020010151613829565b91508080613694906146c3565b91505061365a565b508091505092915050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613734577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161372a576137296157f1565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613771576d04ee2d6d415b85acef81000000008381613767576137666157f1565b5b0492506020810190505b662386f26fc1000083106137a057662386f26fc100008381613796576137956157f1565b5b0492506010810190505b6305f5e10083106137c9576305f5e10083816137bf576137be6157f1565b5b0492506008810190505b61271083106137ee5761271083816137e4576137e36157f1565b5b0492506004810190505b606483106138115760648381613807576138066157f1565b5b0492506002810190505b600a8310613820576001810190505b80915050919050565b60008183106138415761383c8284613854565b61384c565b61384b8383613854565b5b905092915050565b600082600052816020526040600020905092915050565b828054613877906143b0565b90600052602060002090601f01602090048101928261389957600085556138e0565b82601f106138b257803560ff19168380011785556138e0565b828001600101855582156138e0579182015b828111156138df5782358255916020019190600101906138c4565b5b5090506138ed919061392b565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561394457600081600090555060010161392c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139918161395c565b811461399c57600080fd5b50565b6000813590506139ae81613988565b92915050565b6000602082840312156139ca576139c9613952565b5b60006139d88482850161399f565b91505092915050565b60008115159050919050565b6139f6816139e1565b82525050565b6000602082019050613a1160008301846139ed565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a51578082015181840152602081019050613a36565b83811115613a60576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a8282613a17565b613a8c8185613a22565b9350613a9c818560208601613a33565b613aa581613a66565b840191505092915050565b60006020820190508181036000830152613aca8184613a77565b905092915050565b6000819050919050565b613ae581613ad2565b8114613af057600080fd5b50565b600081359050613b0281613adc565b92915050565b600060208284031215613b1e57613b1d613952565b5b6000613b2c84828501613af3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b6082613b35565b9050919050565b613b7081613b55565b82525050565b6000602082019050613b8b6000830184613b67565b92915050565b613b9a81613b55565b8114613ba557600080fd5b50565b600081359050613bb781613b91565b92915050565b60008060408385031215613bd457613bd3613952565b5b6000613be285828601613ba8565b9250506020613bf385828601613af3565b9150509250929050565b600063ffffffff82169050919050565b613c1681613bfd565b8114613c2157600080fd5b50565b600081359050613c3381613c0d565b92915050565b600067ffffffffffffffff82169050919050565b613c5681613c39565b8114613c6157600080fd5b50565b600081359050613c7381613c4d565b92915050565b60008060008060008060c08789031215613c9657613c95613952565b5b6000613ca489828a01613c24565b9650506020613cb589828a01613c24565b9550506040613cc689828a01613c24565b9450506060613cd789828a01613c24565b9350506080613ce889828a01613c64565b92505060a0613cf989828a01613c64565b9150509295509295509295565b613d0f81613ad2565b82525050565b6000602082019050613d2a6000830184613d06565b92915050565b600080600060608486031215613d4957613d48613952565b5b6000613d5786828701613ba8565b9350506020613d6886828701613ba8565b9250506040613d7986828701613af3565b9150509250925092565b6000819050919050565b613d9681613d83565b82525050565b6000602082019050613db16000830184613d8d565b92915050565b600060208284031215613dcd57613dcc613952565b5b6000613ddb84828501613c24565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613e0957613e08613de4565b5b8235905067ffffffffffffffff811115613e2657613e25613de9565b5b602083019150836001820283011115613e4257613e41613dee565b5b9250929050565b60008060208385031215613e6057613e5f613952565b5b600083013567ffffffffffffffff811115613e7e57613e7d613957565b5b613e8a85828601613df3565b92509250509250929050565b600060208284031215613eac57613eab613952565b5b6000613eba84828501613ba8565b91505092915050565b613ecc81613d83565b8114613ed757600080fd5b50565b600081359050613ee981613ec3565b92915050565b600060208284031215613f0557613f04613952565b5b6000613f1384828501613eda565b91505092915050565b613f2581613bfd565b82525050565b613f3481613c39565b82525050565b600060c082019050613f4f6000830189613f1c565b613f5c6020830188613f1c565b613f696040830187613f1c565b613f766060830186613f1c565b613f836080830185613f2b565b613f9060a0830184613f2b565b979650505050505050565b613fa481613b55565b82525050565b613fb381613c39565b82525050565b604082016000820151613fcf6000850182613f9b565b506020820151613fe26020850182613faa565b50505050565b6000604082019050613ffd6000830184613fb9565b92915050565b61400c816139e1565b811461401757600080fd5b50565b60008135905061402981614003565b92915050565b6000806040838503121561404657614045613952565b5b600061405485828601613ba8565b92505060206140658582860161401a565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6140ac82613a66565b810181811067ffffffffffffffff821117156140cb576140ca614074565b5b80604052505050565b60006140de613948565b90506140ea82826140a3565b919050565b600067ffffffffffffffff82111561410a57614109614074565b5b61411382613a66565b9050602081019050919050565b82818337600083830152505050565b600061414261413d846140ef565b6140d4565b90508281526020810184848401111561415e5761415d61406f565b5b614169848285614120565b509392505050565b600082601f83011261418657614185613de4565b5b813561419684826020860161412f565b91505092915050565b600080600080608085870312156141b9576141b8613952565b5b60006141c787828801613ba8565b94505060206141d887828801613ba8565b93505060406141e987828801613af3565b925050606085013567ffffffffffffffff81111561420a57614209613957565b5b61421687828801614171565b91505092959194509250565b600067ffffffffffffffff82111561423d5761423c614074565b5b602082029050602081019050919050565b600061426161425c84614222565b6140d4565b9050808382526020820190506020840283018581111561428457614283613dee565b5b835b818110156142ad57806142998882613eda565b845260208401935050602081019050614286565b5050509392505050565b600082601f8301126142cc576142cb613de4565b5b81356142dc84826020860161424e565b91505092915050565b600080604083850312156142fc576142fb613952565b5b600061430a85828601613af3565b925050602083013567ffffffffffffffff81111561432b5761432a613957565b5b614337858286016142b7565b9150509250929050565b6000806040838503121561435857614357613952565b5b600061436685828601613ba8565b925050602061437785828601613ba8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806143c857607f821691505b6020821081036143db576143da614381565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b600061443d602d83613a22565b9150614448826143e1565b604082019050919050565b6000602082019050818103600083015261446c81614430565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006144cf602283613a22565b91506144da82614473565b604082019050919050565b600060208201905081810360008301526144fe816144c2565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000614561603983613a22565b915061456c82614505565b604082019050919050565b6000602082019050818103600083015261459081614554565b9050919050565b60006040820190506145ac6000830185613b67565b6145b96020830184613b67565b9392505050565b6000815190506145cf81614003565b92915050565b6000602082840312156145eb576145ea613952565b5b60006145f9848285016145c0565b91505092915050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b600061465e602283613a22565b915061466982614602565b604082019050919050565b6000602082019050818103600083015261468d81614651565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146ce82613ad2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614700576146ff614694565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614767602e83613a22565b91506147728261470b565b604082019050919050565b600060208201905081810360008301526147968161475a565b9050919050565b7f4e6f2045544820746f2077697468647261770000000000000000000000000000600082015250565b60006147d3601283613a22565b91506147de8261479d565b602082019050919050565b60006020820190508181036000830152614802816147c6565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614865602383613a22565b915061487082614809565b604082019050919050565b6000602082019050818103600083015261489481614858565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006148f7602b83613a22565b91506149028261489b565b604082019050919050565b60006020820190508181036000830152614926816148ea565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614963601a83613a22565b915061496e8261492d565b602082019050919050565b6000602082019050818103600083015261499281614956565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b60006149cf601e83613a22565b91506149da82614999565b602082019050919050565b600060208201905081810360008301526149fe816149c2565b9050919050565b7f7075626c69632073616c6520686173206e6f7420626567756e20796574000000600082015250565b6000614a3b601d83613a22565b9150614a4682614a05565b602082019050919050565b60006020820190508181036000830152614a6a81614a2e565b9050919050565b6000614a7c82613bfd565b9150614a8783613bfd565b92508263ffffffff03821115614aa057614a9f614694565b5b828201905092915050565b7f7075626c69632073616c652068617320656e6465640000000000000000000000600082015250565b6000614ae1601583613a22565b9150614aec82614aab565b602082019050919050565b60006020820190508181036000830152614b1081614ad4565b9050919050565b6000614b2282613ad2565b9150614b2d83613ad2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b6257614b61614694565b5b828201905092915050565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b6000614ba3601283613a22565b9150614bae82614b6d565b602082019050919050565b60006020820190508181036000830152614bd281614b96565b9050919050565b7f63616e206e6f74206d696e742074686973206d616e7900000000000000000000600082015250565b6000614c0f601683613a22565b9150614c1a82614bd9565b602082019050919050565b60006020820190508181036000830152614c3e81614c02565b9050919050565b6000614c5082613ad2565b9150614c5b83613ad2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c9457614c93614694565b5b828202905092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614cfb602f83613a22565b9150614d0682614c9f565b604082019050919050565b60006020820190508181036000830152614d2a81614cee565b9050919050565b60008160601b9050919050565b6000614d4982614d31565b9050919050565b6000614d5b82614d3e565b9050919050565b614d73614d6e82613b55565b614d50565b82525050565b6000614d858284614d62565b60148201915081905092915050565b7f77686974656c6973742073616c6520686173206e6f7420626567756e20796574600082015250565b6000614dca602083613a22565b9150614dd582614d94565b602082019050919050565b60006020820190508181036000830152614df981614dbd565b9050919050565b7f77686974656c6973742073616c652068617320656e6465640000000000000000600082015250565b6000614e36601883613a22565b9150614e4182614e00565b602082019050919050565b60006020820190508181036000830152614e6581614e29565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ec8602683613a22565b9150614ed382614e6c565b604082019050919050565b60006020820190508181036000830152614ef781614ebb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614f34602083613a22565b9150614f3f82614efe565b602082019050919050565b60006020820190508181036000830152614f6381614f27565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000614fc6602a83613a22565b9150614fd182614f6a565b604082019050919050565b60006020820190508181036000830152614ff581614fb9565b9050919050565b600061500782613ad2565b915061501283613ad2565b92508282101561502557615024614694565b5b828203905092915050565b600061503b82613ad2565b91506000820361504e5761504d614694565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b60006150b5602f83613a22565b91506150c082615059565b604082019050919050565b600060208201905081810360008301526150e4816150a8565b9050919050565b7f4e65656420746f2073656e64206d6f7265204554482e00000000000000000000600082015250565b6000615121601683613a22565b915061512c826150eb565b602082019050919050565b6000602082019050818103600083015261515081615114565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b60006151b3603383613a22565b91506151be82615157565b604082019050919050565b600060208201905081810360008301526151e2816151a6565b9050919050565b600081905092915050565b60006151ff82613a17565b61520981856151e9565b9350615219818560208601613a33565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061525b6005836151e9565b915061526682615225565b600582019050919050565b600061527d82856151f4565b915061528982846151f4565b91506152948261524e565b91508190509392505050565b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b60006152fc603183613a22565b9150615307826152a0565b604082019050919050565b6000602082019050818103600083015261532b816152ef565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b600061538e603283613a22565b915061539982615332565b604082019050919050565b600060208201905081810360008301526153bd81615381565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000615420602683613a22565b915061542b826153c4565b604082019050919050565b6000602082019050818103600083015261544f81615413565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006154b2602583613a22565b91506154bd82615456565b604082019050919050565b600060208201905081810360008301526154e1816154a5565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061550f826154e8565b915061551a836154e8565b92508282101561552d5761552c614694565b5b828203905092915050565b6000615543826154e8565b915061554e836154e8565b9250826fffffffffffffffffffffffffffffffff0382111561557357615572614694565b5b828201905092915050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006155da602183613a22565b91506155e58261557e565b604082019050919050565b60006020820190508181036000830152615609816155cd565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615646601d83613a22565b915061565182615610565b602082019050919050565b6000602082019050818103600083015261567581615639565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006156d8602283613a22565b91506156e38261567c565b604082019050919050565b60006020820190508181036000830152615707816156cb565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157358261570e565b61573f8185615719565b935061574f818560208601613a33565b61575881613a66565b840191505092915050565b60006080820190506157786000830187613b67565b6157856020830186613b67565b6157926040830185613d06565b81810360608301526157a4818461572a565b905095945050505050565b6000815190506157be81613988565b92915050565b6000602082840312156157da576157d9613952565b5b60006157e8848285016157af565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212206c300bde8e525ff25b19ce133c684761c7c96c0cd7620ee31a63d7ca299f130e64736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000e57616e6768616956696c6c61676500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035748560000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102305760003560e01c8063715018a61161012e578063b88d4fde116100ab578063d5acf0fe1161006f578063d5acf0fe1461080c578063d7224ba014610835578063dc33e68114610860578063e985e9c51461089d578063f2fde38b146108da57610230565b8063b88d4fde1461074a578063bd583f1214610773578063c87b56dd1461079c578063cde4efa9146107d9578063d2cab056146107f057610230565b80639231ab2a116100f25780639231ab2a1461067457806395d89b41146106b1578063a22cb465146106dc578063b072cb5c14610705578063b3ab66b01461072e57610230565b8063715018a6146105b05780637bddd65b146105c757806386758912146105f05780638da5cb5b1461061957806390aa0b0f1461064457610230565b80632f745c59116101bc578063552b78a311610180578063552b78a3146104b957806355f804b3146104e25780636352211e1461050b578063639814e01461054857806370a082311461057357610230565b80632f745c59146103d6578063375a069a146104135780633ccfd60b1461043c57806342842e0e146104535780634f6ccce71461047c57610230565b8063095ea7b311610203578063095ea7b3146103055780631440c9af1461032e57806318160ddd1461035757806323b872dd146103825780632eb4a7ab146103ab57610230565b806301ffc9a71461023557806306fdde03146102725780630710579e1461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906139b4565b610903565b60405161026991906139fc565b60405180910390f35b34801561027e57600080fd5b50610287610a4d565b6040516102949190613ab0565b60405180910390f35b3480156102a957600080fd5b506102b2610adf565b6040516102bf91906139fc565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190613b08565b610af2565b6040516102fc9190613b76565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190613bbd565b610b77565b005b34801561033a57600080fd5b5061035560048036038101906103509190613c79565b610c8f565b005b34801561036357600080fd5b5061036c610df7565b6040516103799190613d15565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190613d30565b610e01565b005b3480156103b757600080fd5b506103c0610f0b565b6040516103cd9190613d9c565b60405180910390f35b3480156103e257600080fd5b506103fd60048036038101906103f89190613bbd565b610f11565b60405161040a9190613d15565b60405180910390f35b34801561041f57600080fd5b5061043a60048036038101906104359190613b08565b61110d565b005b34801561044857600080fd5b50610451611122565b005b34801561045f57600080fd5b5061047a60048036038101906104759190613d30565b6111b3565b005b34801561048857600080fd5b506104a3600480360381019061049e9190613b08565b6112bd565b6040516104b09190613d15565b60405180910390f35b3480156104c557600080fd5b506104e060048036038101906104db9190613db7565b611310565b005b3480156104ee57600080fd5b5061050960048036038101906105049190613e49565b61133f565b005b34801561051757600080fd5b50610532600480360381019061052d9190613b08565b61135d565b60405161053f9190613b76565b60405180910390f35b34801561055457600080fd5b5061055d611373565b60405161056a9190613d15565b60405180910390f35b34801561057f57600080fd5b5061059a60048036038101906105959190613e96565b611379565b6040516105a79190613d15565b60405180910390f35b3480156105bc57600080fd5b506105c5611461565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190613b08565b611475565b005b3480156105fc57600080fd5b5061061760048036038101906106129190613eef565b611487565b005b34801561062557600080fd5b5061062e611499565b60405161063b9190613b76565b60405180910390f35b34801561065057600080fd5b506106596114c2565b60405161066b96959493929190613f3a565b60405180910390f35b34801561068057600080fd5b5061069b60048036038101906106969190613b08565b611554565b6040516106a89190613fe8565b60405180910390f35b3480156106bd57600080fd5b506106c661156c565b6040516106d39190613ab0565b60405180910390f35b3480156106e857600080fd5b5061070360048036038101906106fe919061402f565b6115fe565b005b34801561071157600080fd5b5061072c60048036038101906107279190613db7565b61177e565b005b61074860048036038101906107439190613b08565b6117ad565b005b34801561075657600080fd5b50610771600480360381019061076c919061419f565b611b07565b005b34801561077f57600080fd5b5061079a60048036038101906107959190613db7565b611c13565b005b3480156107a857600080fd5b506107c360048036038101906107be9190613b08565b611c42565b6040516107d09190613ab0565b60405180910390f35b3480156107e557600080fd5b506107ee611d44565b005b61080a600480360381019061080591906142e5565b611d78565b005b34801561081857600080fd5b50610833600480360381019061082e9190613db7565b61200e565b005b34801561084157600080fd5b5061084a61203d565b6040516108579190613d15565b60405180910390f35b34801561086c57600080fd5b5061088760048036038101906108829190613e96565b612043565b6040516108949190613d15565b60405180910390f35b3480156108a957600080fd5b506108c460048036038101906108bf9190614341565b612055565b6040516108d191906139fc565b60405180910390f35b3480156108e657600080fd5b5061090160048036038101906108fc9190613e96565b6120e9565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ce57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a3657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a465750610a458261216c565b5b9050919050565b606060028054610a5c906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a88906143b0565b8015610ad55780601f10610aaa57610100808354040283529160200191610ad5565b820191906000526020600020905b815481529060010190602001808311610ab857829003601f168201915b5050505050905090565b600c60009054906101000a900460ff1681565b6000610afd826121d6565b610b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3390614453565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b828261135d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be9906144e5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c116121e4565b73ffffffffffffffffffffffffffffffffffffffff161480610c405750610c3f81610c3a6121e4565b612055565b5b610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7690614577565b60405180910390fd5b610c8a8383836121ec565b505050565b610c9761229e565b6040518060c001604052808763ffffffff1681526020018663ffffffff1681526020018563ffffffff1681526020018463ffffffff1681526020018367ffffffffffffffff1681526020018267ffffffffffffffff16815250600d60008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160086101000a81548163ffffffff021916908363ffffffff160217905550606082015181600001600c6101000a81548163ffffffff021916908363ffffffff16021790555060808201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060a08201518160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050505050505050565b6000600154905090565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610efb576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610e78929190614597565b602060405180830381865afa158015610e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb991906145d5565b610efa57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610ef19190613b76565b60405180910390fd5b5b610f0683838361231c565b505050565b600b5481565b6000610f1c83611379565b8210610f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5490614674565b60405180910390fd5b6000610f67610df7565b905060008060005b838110156110cb576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461106157806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110b7578684036110a8578195505050505050611107565b83806110b3906146c3565b9450505b5080806110c3906146c3565b915050610f6f565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fe9061477d565b60405180910390fd5b92915050565b61111561229e565b61111f338261232c565b50565b61112a61229e565b600047905060008111611172576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611169906147e9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050506111b057600080fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156112ad576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161122a929190614597565b602060405180830381865afa158015611247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126b91906145d5565b6112ac57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016112a39190613b76565b60405180910390fd5b5b6112b883838361234a565b505050565b60006112c7610df7565b8210611308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ff9061487b565b60405180910390fd5b819050919050565b61131861229e565b80600d600001600c6101000a81548163ffffffff021916908363ffffffff16021790555050565b61134761229e565b8181600e919061135892919061386b565b505050565b60006113688261236a565b600001519050919050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e09061490d565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61146961229e565b611473600061256d565b565b61147d61229e565b80600a8190555050565b61148f61229e565b80600b8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d8060000160009054906101000a900463ffffffff16908060000160049054906101000a900463ffffffff16908060000160089054906101000a900463ffffffff169080600001600c9054906101000a900463ffffffff16908060000160109054906101000a900467ffffffffffffffff16908060000160189054906101000a900467ffffffffffffffff16905086565b61155c6138f1565b6115658261236a565b9050919050565b60606003805461157b906143b0565b80601f01602080910402602001604051908101604052809291908181526020018280546115a7906143b0565b80156115f45780601f106115c9576101008083540402835291602001916115f4565b820191906000526020600020905b8154815290600101906020018083116115d757829003601f168201915b5050505050905090565b6116066121e4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166a90614979565b60405180910390fd5b80600760006116806121e4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661172d6121e4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161177291906139fc565b60405180910390a35050565b61178661229e565b80600d60000160006101000a81548163ffffffff021916908363ffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461181b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611812906149e5565b60405180910390fd5b6000600d6040518060c00160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160008201600c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681525050905060008160a0015167ffffffffffffffff169050600d60000160089054906101000a900463ffffffff1663ffffffff16421015611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090614a51565b60405180910390fd5b42600d600001600c9054906101000a900463ffffffff16600d60000160089054906101000a900463ffffffff166119d09190614a71565b63ffffffff161015611a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0e90614af7565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000003e883611a41610df7565b611a4b9190614b17565b1115611a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8390614bb9565b60405180910390fd5b600a5483611a9933612043565b611aa39190614b17565b1115611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb90614c25565b60405180910390fd5b611aee338461232c565b611b028382611afd9190614c45565b612631565b505050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611c01576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611b7e929190614597565b602060405180830381865afa158015611b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbf91906145d5565b611c0057336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611bf79190613b76565b60405180910390fd5b5b611c0d848484846126d2565b50505050565b611c1b61229e565b80600d60000160086101000a81548163ffffffff021916908363ffffffff16021790555050565b6060611c4d826121d6565b611c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8390614d11565b60405180910390fd5b600c60009054906101000a900460ff1615611cb157611caa8261272e565b9050611d3f565b600e8054611cbe906143b0565b80601f0160208091040260200160405190810160405280929190818152602001828054611cea906143b0565b8015611d375780601f10611d0c57610100808354040283529160200191611d37565b820191906000526020600020905b815481529060010190602001808311611d1a57829003601f168201915b505050505090505b919050565b611d4c61229e565b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddd906149e5565b60405180910390fd5b611e1981600b5433604051602001611dfe9190614d79565b604051602081830303815290604052805190602001206127d5565b506000600d60000160109054906101000a900467ffffffffffffffff1667ffffffffffffffff169050600d60000160009054906101000a900463ffffffff1663ffffffff16421015611ea0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9790614de0565b60405180910390fd5b42600d60000160049054906101000a900463ffffffff16600d60000160009054906101000a900463ffffffff16611ed79190614a71565b63ffffffff161015611f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1590614e4c565b60405180910390fd5b600a5483611f2b33612043565b611f359190614b17565b1115611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d90614c25565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000003e883611fa0610df7565b611faa9190614b17565b1115611feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe290614bb9565b60405180910390fd5b611ff5338461232c565b61200983826120049190614c45565b612631565b505050565b61201661229e565b80600d60000160046101000a81548163ffffffff021916908363ffffffff16021790555050565b60085481565b600061204e826127ec565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120f161229e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215790614ede565b60405180910390fd5b6121698161256d565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6122a66121e4565b73ffffffffffffffffffffffffffffffffffffffff166122c4611499565b73ffffffffffffffffffffffffffffffffffffffff161461231a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231190614f4a565b60405180910390fd5b565b6123278383836128d4565b505050565b612346828260405180602001604052806000815250612e8b565b5050565b61236583838360405180602001604052806000815250611b07565b505050565b6123726138f1565b61237b826121d6565b6123ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b190614fdc565b60405180910390fd5b60007f0000000000000000000000000000000000000000000000000000000000000001831061241e5760017f0000000000000000000000000000000000000000000000000000000000000001846124119190614ffc565b61241b9190614b17565b90505b60008390505b81811061252c576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461251857809350505050612568565b50808061252490615030565b915050612424565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255f906150cb565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80341015612674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266b90615137565b60405180910390fd5b803411156126cf573373ffffffffffffffffffffffffffffffffffffffff166108fc82346126a29190614ffc565b9081150290604051600060405180830381858888f193505050501580156126cd573d6000803e3d6000fd5b505b50565b6126dd8484846128d4565b6126e98484848461336a565b612728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271f906151c9565b60405180910390fd5b50505050565b6060612739826121d6565b612778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276f90614d11565b60405180910390fd5b60006127826134f1565b905060008151116127a257604051806020016040528060008152506127cd565b806127ac84613583565b6040516020016127bd929190615271565b6040516020818303038152906040525b915050919050565b6000826127e28584613651565b1490509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361285c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285390615312565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b60006128df8261236a565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166129066121e4565b73ffffffffffffffffffffffffffffffffffffffff161480612962575061292b6121e4565b73ffffffffffffffffffffffffffffffffffffffff1661294a84610af2565b73ffffffffffffffffffffffffffffffffffffffff16145b8061297e575061297d82600001516129786121e4565b612055565b5b9050806129c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b7906153a4565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2990615436565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a98906154c8565b60405180910390fd5b612aae85858560016136a7565b612abe60008484600001516121ec565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612b2c9190615504565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612bd09190615538565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612cd69190614b17565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612e1b57612d4b816121d6565b15612e1a576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e8386868660016136ad565b505050505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef8906155f0565b60405180910390fd5b612f0a816121d6565b15612f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f419061565c565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000001831115612fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa4906156ee565b60405180910390fd5b612fba60008583866136a7565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516130b79190615538565b6fffffffffffffffffffffffffffffffff1681526020018583602001516130de9190615538565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b8581101561334d57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132ed600088848861336a565b61332c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613323906151c9565b60405180910390fd5b8180613337906146c3565b9250508080613345906146c3565b91505061327c565b508060018190555061336260008785886136ad565b505050505050565b600061338b8473ffffffffffffffffffffffffffffffffffffffff166136b3565b156134e4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133b46121e4565b8786866040518563ffffffff1660e01b81526004016133d69493929190615763565b6020604051808303816000875af192505050801561341257506040513d601f19601f8201168201806040525081019061340f91906157c4565b60015b613494573d8060008114613442576040519150601f19603f3d011682016040523d82523d6000602084013e613447565b606091505b50600081510361348c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613483906151c9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134e9565b600190505b949350505050565b6060600e8054613500906143b0565b80601f016020809104026020016040519081016040528092919081815260200182805461352c906143b0565b80156135795780601f1061354e57610100808354040283529160200191613579565b820191906000526020600020905b81548152906001019060200180831161355c57829003601f168201915b5050505050905090565b606060006001613592846136d6565b01905060008167ffffffffffffffff8111156135b1576135b0614074565b5b6040519080825280601f01601f1916602001820160405280156135e35781602001600182028036833780820191505090505b509050600082602001820190505b600115613646578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161363a576136396157f1565b5b049450600085036135f1575b819350505050919050565b60008082905060005b845181101561369c576136878286838151811061367a57613679615820565b5b6020026020010151613829565b91508080613694906146c3565b91505061365a565b508091505092915050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613734577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161372a576137296157f1565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613771576d04ee2d6d415b85acef81000000008381613767576137666157f1565b5b0492506020810190505b662386f26fc1000083106137a057662386f26fc100008381613796576137956157f1565b5b0492506010810190505b6305f5e10083106137c9576305f5e10083816137bf576137be6157f1565b5b0492506008810190505b61271083106137ee5761271083816137e4576137e36157f1565b5b0492506004810190505b606483106138115760648381613807576138066157f1565b5b0492506002810190505b600a8310613820576001810190505b80915050919050565b60008183106138415761383c8284613854565b61384c565b61384b8383613854565b5b905092915050565b600082600052816020526040600020905092915050565b828054613877906143b0565b90600052602060002090601f01602090048101928261389957600085556138e0565b82601f106138b257803560ff19168380011785556138e0565b828001600101855582156138e0579182015b828111156138df5782358255916020019190600101906138c4565b5b5090506138ed919061392b565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561394457600081600090555060010161392c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139918161395c565b811461399c57600080fd5b50565b6000813590506139ae81613988565b92915050565b6000602082840312156139ca576139c9613952565b5b60006139d88482850161399f565b91505092915050565b60008115159050919050565b6139f6816139e1565b82525050565b6000602082019050613a1160008301846139ed565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a51578082015181840152602081019050613a36565b83811115613a60576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a8282613a17565b613a8c8185613a22565b9350613a9c818560208601613a33565b613aa581613a66565b840191505092915050565b60006020820190508181036000830152613aca8184613a77565b905092915050565b6000819050919050565b613ae581613ad2565b8114613af057600080fd5b50565b600081359050613b0281613adc565b92915050565b600060208284031215613b1e57613b1d613952565b5b6000613b2c84828501613af3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b6082613b35565b9050919050565b613b7081613b55565b82525050565b6000602082019050613b8b6000830184613b67565b92915050565b613b9a81613b55565b8114613ba557600080fd5b50565b600081359050613bb781613b91565b92915050565b60008060408385031215613bd457613bd3613952565b5b6000613be285828601613ba8565b9250506020613bf385828601613af3565b9150509250929050565b600063ffffffff82169050919050565b613c1681613bfd565b8114613c2157600080fd5b50565b600081359050613c3381613c0d565b92915050565b600067ffffffffffffffff82169050919050565b613c5681613c39565b8114613c6157600080fd5b50565b600081359050613c7381613c4d565b92915050565b60008060008060008060c08789031215613c9657613c95613952565b5b6000613ca489828a01613c24565b9650506020613cb589828a01613c24565b9550506040613cc689828a01613c24565b9450506060613cd789828a01613c24565b9350506080613ce889828a01613c64565b92505060a0613cf989828a01613c64565b9150509295509295509295565b613d0f81613ad2565b82525050565b6000602082019050613d2a6000830184613d06565b92915050565b600080600060608486031215613d4957613d48613952565b5b6000613d5786828701613ba8565b9350506020613d6886828701613ba8565b9250506040613d7986828701613af3565b9150509250925092565b6000819050919050565b613d9681613d83565b82525050565b6000602082019050613db16000830184613d8d565b92915050565b600060208284031215613dcd57613dcc613952565b5b6000613ddb84828501613c24565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613e0957613e08613de4565b5b8235905067ffffffffffffffff811115613e2657613e25613de9565b5b602083019150836001820283011115613e4257613e41613dee565b5b9250929050565b60008060208385031215613e6057613e5f613952565b5b600083013567ffffffffffffffff811115613e7e57613e7d613957565b5b613e8a85828601613df3565b92509250509250929050565b600060208284031215613eac57613eab613952565b5b6000613eba84828501613ba8565b91505092915050565b613ecc81613d83565b8114613ed757600080fd5b50565b600081359050613ee981613ec3565b92915050565b600060208284031215613f0557613f04613952565b5b6000613f1384828501613eda565b91505092915050565b613f2581613bfd565b82525050565b613f3481613c39565b82525050565b600060c082019050613f4f6000830189613f1c565b613f5c6020830188613f1c565b613f696040830187613f1c565b613f766060830186613f1c565b613f836080830185613f2b565b613f9060a0830184613f2b565b979650505050505050565b613fa481613b55565b82525050565b613fb381613c39565b82525050565b604082016000820151613fcf6000850182613f9b565b506020820151613fe26020850182613faa565b50505050565b6000604082019050613ffd6000830184613fb9565b92915050565b61400c816139e1565b811461401757600080fd5b50565b60008135905061402981614003565b92915050565b6000806040838503121561404657614045613952565b5b600061405485828601613ba8565b92505060206140658582860161401a565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6140ac82613a66565b810181811067ffffffffffffffff821117156140cb576140ca614074565b5b80604052505050565b60006140de613948565b90506140ea82826140a3565b919050565b600067ffffffffffffffff82111561410a57614109614074565b5b61411382613a66565b9050602081019050919050565b82818337600083830152505050565b600061414261413d846140ef565b6140d4565b90508281526020810184848401111561415e5761415d61406f565b5b614169848285614120565b509392505050565b600082601f83011261418657614185613de4565b5b813561419684826020860161412f565b91505092915050565b600080600080608085870312156141b9576141b8613952565b5b60006141c787828801613ba8565b94505060206141d887828801613ba8565b93505060406141e987828801613af3565b925050606085013567ffffffffffffffff81111561420a57614209613957565b5b61421687828801614171565b91505092959194509250565b600067ffffffffffffffff82111561423d5761423c614074565b5b602082029050602081019050919050565b600061426161425c84614222565b6140d4565b9050808382526020820190506020840283018581111561428457614283613dee565b5b835b818110156142ad57806142998882613eda565b845260208401935050602081019050614286565b5050509392505050565b600082601f8301126142cc576142cb613de4565b5b81356142dc84826020860161424e565b91505092915050565b600080604083850312156142fc576142fb613952565b5b600061430a85828601613af3565b925050602083013567ffffffffffffffff81111561432b5761432a613957565b5b614337858286016142b7565b9150509250929050565b6000806040838503121561435857614357613952565b5b600061436685828601613ba8565b925050602061437785828601613ba8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806143c857607f821691505b6020821081036143db576143da614381565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b600061443d602d83613a22565b9150614448826143e1565b604082019050919050565b6000602082019050818103600083015261446c81614430565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006144cf602283613a22565b91506144da82614473565b604082019050919050565b600060208201905081810360008301526144fe816144c2565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000614561603983613a22565b915061456c82614505565b604082019050919050565b6000602082019050818103600083015261459081614554565b9050919050565b60006040820190506145ac6000830185613b67565b6145b96020830184613b67565b9392505050565b6000815190506145cf81614003565b92915050565b6000602082840312156145eb576145ea613952565b5b60006145f9848285016145c0565b91505092915050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b600061465e602283613a22565b915061466982614602565b604082019050919050565b6000602082019050818103600083015261468d81614651565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146ce82613ad2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614700576146ff614694565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614767602e83613a22565b91506147728261470b565b604082019050919050565b600060208201905081810360008301526147968161475a565b9050919050565b7f4e6f2045544820746f2077697468647261770000000000000000000000000000600082015250565b60006147d3601283613a22565b91506147de8261479d565b602082019050919050565b60006020820190508181036000830152614802816147c6565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614865602383613a22565b915061487082614809565b604082019050919050565b6000602082019050818103600083015261489481614858565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006148f7602b83613a22565b91506149028261489b565b604082019050919050565b60006020820190508181036000830152614926816148ea565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614963601a83613a22565b915061496e8261492d565b602082019050919050565b6000602082019050818103600083015261499281614956565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b60006149cf601e83613a22565b91506149da82614999565b602082019050919050565b600060208201905081810360008301526149fe816149c2565b9050919050565b7f7075626c69632073616c6520686173206e6f7420626567756e20796574000000600082015250565b6000614a3b601d83613a22565b9150614a4682614a05565b602082019050919050565b60006020820190508181036000830152614a6a81614a2e565b9050919050565b6000614a7c82613bfd565b9150614a8783613bfd565b92508263ffffffff03821115614aa057614a9f614694565b5b828201905092915050565b7f7075626c69632073616c652068617320656e6465640000000000000000000000600082015250565b6000614ae1601583613a22565b9150614aec82614aab565b602082019050919050565b60006020820190508181036000830152614b1081614ad4565b9050919050565b6000614b2282613ad2565b9150614b2d83613ad2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b6257614b61614694565b5b828201905092915050565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b6000614ba3601283613a22565b9150614bae82614b6d565b602082019050919050565b60006020820190508181036000830152614bd281614b96565b9050919050565b7f63616e206e6f74206d696e742074686973206d616e7900000000000000000000600082015250565b6000614c0f601683613a22565b9150614c1a82614bd9565b602082019050919050565b60006020820190508181036000830152614c3e81614c02565b9050919050565b6000614c5082613ad2565b9150614c5b83613ad2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c9457614c93614694565b5b828202905092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614cfb602f83613a22565b9150614d0682614c9f565b604082019050919050565b60006020820190508181036000830152614d2a81614cee565b9050919050565b60008160601b9050919050565b6000614d4982614d31565b9050919050565b6000614d5b82614d3e565b9050919050565b614d73614d6e82613b55565b614d50565b82525050565b6000614d858284614d62565b60148201915081905092915050565b7f77686974656c6973742073616c6520686173206e6f7420626567756e20796574600082015250565b6000614dca602083613a22565b9150614dd582614d94565b602082019050919050565b60006020820190508181036000830152614df981614dbd565b9050919050565b7f77686974656c6973742073616c652068617320656e6465640000000000000000600082015250565b6000614e36601883613a22565b9150614e4182614e00565b602082019050919050565b60006020820190508181036000830152614e6581614e29565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ec8602683613a22565b9150614ed382614e6c565b604082019050919050565b60006020820190508181036000830152614ef781614ebb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614f34602083613a22565b9150614f3f82614efe565b602082019050919050565b60006020820190508181036000830152614f6381614f27565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000614fc6602a83613a22565b9150614fd182614f6a565b604082019050919050565b60006020820190508181036000830152614ff581614fb9565b9050919050565b600061500782613ad2565b915061501283613ad2565b92508282101561502557615024614694565b5b828203905092915050565b600061503b82613ad2565b91506000820361504e5761504d614694565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b60006150b5602f83613a22565b91506150c082615059565b604082019050919050565b600060208201905081810360008301526150e4816150a8565b9050919050565b7f4e65656420746f2073656e64206d6f7265204554482e00000000000000000000600082015250565b6000615121601683613a22565b915061512c826150eb565b602082019050919050565b6000602082019050818103600083015261515081615114565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b60006151b3603383613a22565b91506151be82615157565b604082019050919050565b600060208201905081810360008301526151e2816151a6565b9050919050565b600081905092915050565b60006151ff82613a17565b61520981856151e9565b9350615219818560208601613a33565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061525b6005836151e9565b915061526682615225565b600582019050919050565b600061527d82856151f4565b915061528982846151f4565b91506152948261524e565b91508190509392505050565b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b60006152fc603183613a22565b9150615307826152a0565b604082019050919050565b6000602082019050818103600083015261532b816152ef565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b600061538e603283613a22565b915061539982615332565b604082019050919050565b600060208201905081810360008301526153bd81615381565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000615420602683613a22565b915061542b826153c4565b604082019050919050565b6000602082019050818103600083015261544f81615413565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006154b2602583613a22565b91506154bd82615456565b604082019050919050565b600060208201905081810360008301526154e1816154a5565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061550f826154e8565b915061551a836154e8565b92508282101561552d5761552c614694565b5b828203905092915050565b6000615543826154e8565b915061554e836154e8565b9250826fffffffffffffffffffffffffffffffff0382111561557357615572614694565b5b828201905092915050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006155da602183613a22565b91506155e58261557e565b604082019050919050565b60006020820190508181036000830152615609816155cd565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615646601d83613a22565b915061565182615610565b602082019050919050565b6000602082019050818103600083015261567581615639565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006156d8602283613a22565b91506156e38261567c565b604082019050919050565b60006020820190508181036000830152615707816156cb565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157358261570e565b61573f8185615719565b935061574f818560208601613a33565b61575881613a66565b840191505092915050565b60006080820190506157786000830187613b67565b6157856020830186613b67565b6157926040830185613d06565b81810360608301526157a4818461572a565b905095945050505050565b6000815190506157be81613988565b92915050565b6000602082840312156157da576157d9613952565b5b60006157e8848285016157af565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212206c300bde8e525ff25b19ce133c684761c7c96c0cd7620ee31a63d7ca299f130e64736f6c634300080d0033

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

000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000e57616e6768616956696c6c61676500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035748560000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : maxPerAddress_ (uint256): 1
Arg [1] : collectionSize_ (uint256): 1000
Arg [2] : name_ (string): WanghaiVillage
Arg [3] : symbol_ (string): WHV

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [5] : 57616e6768616956696c6c616765000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 5748560000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

We are a story-oriented NFT series with anime style art. It is an anime collection of 617 Wanghai Village Guardians

Validator Index Block Amount
View All Withdrawals

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

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