ETH Price: $3,358.85 (+3.68%)

Contract

0x0055485fCa054D165fc0C7D836459722436544c1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...216244902025-01-14 18:22:2333 hrs ago1736878943IN
0x0055485f...2436544c1
0 ETH0.000277611.2
Set Approval For...215431372025-01-03 9:43:4712 days ago1735897427IN
0x0055485f...2436544c1
0 ETH0.0003186512.9
Set Approval For...215431372025-01-03 9:43:4712 days ago1735897427IN
0x0055485f...2436544c1
0 ETH0.0003197312.9
Set Approval For...215431372025-01-03 9:43:4712 days ago1735897427IN
0x0055485f...2436544c1
0 ETH0.0003291213.27873117
Set Approval For...214892572024-12-26 21:14:4720 days ago1735247687IN
0x0055485f...2436544c1
0 ETH0.000450899.67035916
Set Approval For...213449512024-12-06 17:28:5940 days ago1733506139IN
0x0055485f...2436544c1
0 ETH0.0013204228.27578479
Set Approval For...212899162024-11-29 0:56:4748 days ago1732841807IN
0x0055485f...2436544c1
0 ETH0.000169566.84097913
Set Approval For...211026632024-11-02 21:33:1174 days ago1730583191IN
0x0055485f...2436544c1
0 ETH0.00010414.2
Set Approval For...206682932024-09-03 6:35:23134 days ago1725345323IN
0x0055485f...2436544c1
0 ETH0.00002821.13809872
Set Approval For...205671372024-08-20 3:25:23149 days ago1724124323IN
0x0055485f...2436544c1
0 ETH0.000059482.4
Set Approval For...205669422024-08-20 2:46:11149 days ago1724121971IN
0x0055485f...2436544c1
0 ETH0.000117344.73426461
Set Approval For...205669402024-08-20 2:45:47149 days ago1724121947IN
0x0055485f...2436544c1
0 ETH0.000120824.87486018
Set Approval For...205559302024-08-18 13:51:59150 days ago1723989119IN
0x0055485f...2436544c1
0 ETH0.000034411.39339179
Set Approval For...205429522024-08-16 18:22:11152 days ago1723832531IN
0x0055485f...2436544c1
0 ETH0.000049041.98555829
Set Approval For...205429502024-08-16 18:21:47152 days ago1723832507IN
0x0055485f...2436544c1
0 ETH0.000053992.17845568
Set Approval For...204346532024-08-01 15:40:23167 days ago1722526823IN
0x0055485f...2436544c1
0 ETH0.0004997620.16317847
Set Approval For...204079432024-07-28 22:08:59171 days ago1722204539IN
0x0055485f...2436544c1
0 ETH0.000027261.1
Set Approval For...204079242024-07-28 22:05:11171 days ago1722204311IN
0x0055485f...2436544c1
0 ETH0.000037051.5
Set Approval For...203215542024-07-16 20:46:35183 days ago1721162795IN
0x0055485f...2436544c1
0 ETH0.000157726.36331134
Set Approval For...202461892024-07-06 8:10:47193 days ago1720253447IN
0x0055485f...2436544c1
0 ETH0.00004942
Set Approval For...202461572024-07-06 8:04:11193 days ago1720253051IN
0x0055485f...2436544c1
0 ETH0.000053572
Set Approval For...202461532024-07-06 8:03:23193 days ago1720253003IN
0x0055485f...2436544c1
0 ETH0.000049572
Set Approval For...202461252024-07-06 7:57:47193 days ago1720252667IN
0x0055485f...2436544c1
0 ETH0.000039811.61188295
Set Approval For...201398962024-06-21 11:47:59208 days ago1718970479IN
0x0055485f...2436544c1
0 ETH0.000235095.03447071
Set Approval For...200034522024-06-02 10:10:47227 days ago1717323047IN
0x0055485f...2436544c1
0 ETH0.000189367.63983179
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
178218862023-08-01 18:17:11533 days ago1690913831
0x0055485f...2436544c1
0.27 ETH
178218852023-08-01 18:16:59533 days ago1690913819
0x0055485f...2436544c1
0.27 ETH
178218852023-08-01 18:16:59533 days ago1690913819
0x0055485f...2436544c1
0.27 ETH
178218832023-08-01 18:16:35533 days ago1690913795
0x0055485f...2436544c1
0.27 ETH
178218832023-08-01 18:16:35533 days ago1690913795
0x0055485f...2436544c1
0.27 ETH
178218822023-08-01 18:16:23533 days ago1690913783
0x0055485f...2436544c1
0.27 ETH
178218822023-08-01 18:16:23533 days ago1690913783
0x0055485f...2436544c1
0.27 ETH
178218802023-08-01 18:15:59533 days ago1690913759
0x0055485f...2436544c1
0.27 ETH
178218762023-08-01 18:15:11533 days ago1690913711
0x0055485f...2436544c1
0.27 ETH
178218742023-08-01 18:14:47533 days ago1690913687
0x0055485f...2436544c1
0.27 ETH
178218732023-08-01 18:14:35533 days ago1690913675
0x0055485f...2436544c1
0.27 ETH
178218712023-08-01 18:14:11533 days ago1690913651
0x0055485f...2436544c1
0.27 ETH
178218692023-08-01 18:13:47533 days ago1690913627
0x0055485f...2436544c1
0.27 ETH
178218682023-08-01 18:13:35533 days ago1690913615
0x0055485f...2436544c1
0.27 ETH
178218662023-08-01 18:13:11533 days ago1690913591
0x0055485f...2436544c1
0.27 ETH
178218582023-08-01 18:11:35533 days ago1690913495
0x0055485f...2436544c1
0.27 ETH
178218552023-08-01 18:10:59533 days ago1690913459
0x0055485f...2436544c1
0.27 ETH
178218542023-08-01 18:10:47533 days ago1690913447
0x0055485f...2436544c1
0.27 ETH
178218522023-08-01 18:10:23533 days ago1690913423
0x0055485f...2436544c1
0.27 ETH
178218522023-08-01 18:10:23533 days ago1690913423
0x0055485f...2436544c1
0.27 ETH
178218482023-08-01 18:09:35533 days ago1690913375
0x0055485f...2436544c1
0.27 ETH
178218462023-08-01 18:09:11533 days ago1690913351
0x0055485f...2436544c1
0.27 ETH
178218452023-08-01 18:08:59533 days ago1690913339
0x0055485f...2436544c1
0.27 ETH
178218452023-08-01 18:08:59533 days ago1690913339
0x0055485f...2436544c1
0.27 ETH
178218432023-08-01 18:08:35533 days ago1690913315
0x0055485f...2436544c1
0.27 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TRIS

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : TRIS.sol
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import { ERC721Permit } from "./erc721/ERC721Permit.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";

contract TRIS is ERC721Permit, Ownable {
  address constant treasury = 0xEC3de41D5eAD4cebFfD656f7FC9d1a8d8Ff0f8c0;
  bytes32 immutable public merkleRoot;
  uint256 public nextTokenId;
  string public __baseURI;

  mapping(address => bool) public claimed;
  mapping (uint256 => uint256) public nonces;

  bool public isMintingEnabled = false;
  bool public isPublicMint = false;
  uint16 constant MAX_SUPPLY = 1000; 
  uint256 private PRICE = 0.27 ether; 

  constructor(bytes32 _merkleRoot) ERC721Permit("TRIS", "TRIS", "1") Ownable() {
    merkleRoot = _merkleRoot;
    _setBaseURI("ipfs://bafybeienialkdrppvdfdanzuiwnt45m4hhckayxrvvhktrrvmowwkwr45a/");
  }

  function version() public pure returns (string memory) { return "1"; }

  // URI
  function setBaseURI(string memory _uri) public onlyOwner {
    _setBaseURI(_uri);
  }
  function _setBaseURI(string memory _uri) internal {
    __baseURI = _uri;
  }
  function _baseURI() internal override view returns (string memory _uri) {
    _uri = __baseURI;
  }

  // Admin
  function startPublicMint() public onlyOwner {
    require(isPublicMint == false, "Public mint is already enabled");
    isPublicMint = true;
  }

  function startMinting() public onlyOwner {
    require(isMintingEnabled == false, "Minting is already enabled");
    isMintingEnabled = true;
  }

  // Mint
  function mintingEnabled() public view returns (bool) { return isMintingEnabled; }

  function publicMint() public view returns (bool) { return isPublicMint; }

  function mint(bytes32[] calldata merkleProof) public payable {
    require(isMintingEnabled, "Minting is not enabled");
    require(msg.value >= PRICE, "Not enough ETH sent");
    require(nextTokenId < MAX_SUPPLY, "Exceeds token supply");
    require(claimed[msg.sender] == false, "User already claimed");
    if(!isPublicMint) {
      require(MerkleProof.verify(merkleProof, merkleRoot, toBytes32(msg.sender)) == true, "Invalid merkle proof");
    }
    claimed[msg.sender] = true;
    nextTokenId++;
    _mint(msg.sender, nextTokenId);
    (bool success, ) = treasury.call{ value: msg.value, gas: gasleft() }("");
    require(success, "Failed to forward ETH");
  }

  function adminMint(address _to, uint256 _tokenId) public onlyOwner {
    _mint(_to, _tokenId);
  }

  // Helpers
  function toBytes32(address addr) pure internal returns (bytes32) {
    return bytes32(uint256(uint160(addr)));
  }

  function _getAndIncrementNonce(uint256 _tokenId) internal override virtual returns (uint256) {
    uint256 nonce = nonces[_tokenId];
    nonces[_tokenId]++;
    return nonce;
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

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

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

        _owners[tokenId] = to;

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

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

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

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

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

        // Clear approvals
        delete _tokenApprovals[tokenId];

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

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

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

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

        emit Transfer(from, to, tokenId);

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

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

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

File 4 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

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

        uint256 tokenId = firstTokenId;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 7 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

File 8 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 11 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 rebuilds 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 from 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) {
            unchecked {
                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 rebuilds 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 from 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) {
            unchecked {
                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 12 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 17 of 21 : BlockTimestamp.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

/// @title Function for getting block timestamp
/// @dev Base contract that is overridden for tests
abstract contract BlockTimestamp {
    /// @dev Method that exists purely to be overridden for tests
    /// @return The current block timestamp
    function _blockTimestamp() internal view virtual returns (uint256) {
        return block.timestamp;
    }
}

File 18 of 21 : ERC721Permit.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';

import './libraries/ChainId.sol';
import './interfaces/external/IERC1271.sol';
import './interfaces/IERC721Permit.sol';
import './BlockTimestamp.sol';

/// @title ERC721 with permit
/// @notice Nonfungible tokens that support an approve via signature, i.e. permit
abstract contract ERC721Permit is BlockTimestamp, ERC721Enumerable, IERC721Permit {
    /// @dev Gets the current nonce for a token ID and then increments it, returning the original value
    function _getAndIncrementNonce(uint256 tokenId) internal virtual returns (uint256);

    /// @dev The hash of the name used in the permit signature verification
    bytes32 private immutable nameHash;

    /// @dev The hash of the version string used in the permit signature verification
    bytes32 private immutable versionHash;

    /// @notice Computes the nameHash and versionHash
    constructor(
        string memory name_,
        string memory symbol_,
        string memory version_
    ) ERC721(name_, symbol_) {
        nameHash = keccak256(bytes(name_));
        versionHash = keccak256(bytes(version_));
    }

    /// @inheritdoc IERC721Permit
    function DOMAIN_SEPARATOR() public view override returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    // keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)')
                    0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f,
                    nameHash,
                    versionHash,
                    ChainId.get(),
                    address(this)
                )
            );
    }

    /// @inheritdoc IERC721Permit
    /// @dev Value is equal to keccak256("Permit(address spender,uint256 tokenId,uint256 nonce,uint256 deadline)");
    bytes32 public constant override PERMIT_TYPEHASH =
        0x49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad;

    /// @inheritdoc IERC721Permit
    function permit(
        address spender,
        uint256 tokenId,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable override {
        require(_blockTimestamp() <= deadline, 'Permit expired');

        bytes32 digest =
            keccak256(
                abi.encodePacked(
                    '\x19\x01',
                    DOMAIN_SEPARATOR(),
                    keccak256(abi.encode(PERMIT_TYPEHASH, spender, tokenId, _getAndIncrementNonce(tokenId), deadline))
                )
            );
        address owner = ownerOf(tokenId);
        require(spender != owner, 'ERC721Permit: approval to current owner');

        if (Address.isContract(owner)) {
            require(IERC1271(owner).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e, 'Unauthorized');
        } else {
            address recoveredAddress = ecrecover(digest, v, r, s);
            require(recoveredAddress != address(0), 'Invalid signature');
            require(recoveredAddress == owner, 'Unauthorized');
        }

        _approve(spender, tokenId);
    }
}

File 19 of 21 : IERC1271.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Interface for verifying contract-based account signatures
/// @notice Interface that verifies provided signature for the data
/// @dev Interface defined by EIP-1271
interface IERC1271 {
    /// @notice Returns whether the provided signature is valid for the provided data
    /// @dev MUST return the bytes4 magic value 0x1626ba7e when function passes.
    /// MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5).
    /// MUST allow external calls.
    /// @param hash Hash of the data to be signed
    /// @param signature Signature byte array associated with _data
    /// @return magicValue The bytes4 magic value 0x1626ba7e
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 20 of 21 : IERC721Permit.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';

/// @title ERC721 with permit
/// @notice Extension to ERC721 that includes a permit function for signature based approvals
interface IERC721Permit is IERC721 {
    /// @notice The permit typehash used in the permit signature
    /// @return The typehash for the permit
    function PERMIT_TYPEHASH() external pure returns (bytes32);

    /// @notice The domain separator used in the permit signature
    /// @return The domain seperator used in encoding of permit signature
    function DOMAIN_SEPARATOR() external view returns (bytes32);

    /// @notice Approve of a specific token ID for spending by spender via signature
    /// @param spender The account that is being approved
    /// @param tokenId The ID of the token that is being approved for spending
    /// @param deadline The deadline timestamp by which the call must be mined for the approve to work
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function permit(
        address spender,
        uint256 tokenId,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;
}

File 21 of 21 : ChainId.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.0;

/// @title Function for getting the current chain ID
library ChainId {
    /// @dev Gets the current chain ID
    /// @return chainId The current chain ID
    function get() internal view returns (uint256 chainId) {
        assembly {
            chainId := chainid()
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"__baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonces","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":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]

60e06040525f600f5f6101000a81548160ff0219169083151502179055505f600f60016101000a81548160ff0219169083151502179055506703bf3b91c95b00006010553480156200004f575f80fd5b506040516200540e3803806200540e8339818101604052810190620000759190620002d3565b6040518060400160405280600481526020017f54524953000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f54524953000000000000000000000000000000000000000000000000000000008152506040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508282815f908162000129919062000567565b5080600190816200013b919062000567565b505050828051906020012060808181525050808051906020012060a081815250505050506200017f62000173620001b860201b60201c565b620001bf60201b60201c565b8060c08181525050620001b1604051806080016040528060438152602001620053cb604391396200028260201b60201c565b506200064b565b5f33905090565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600c908162000293919062000567565b5050565b5f80fd5b5f819050919050565b620002af816200029b565b8114620002ba575f80fd5b50565b5f81519050620002cd81620002a4565b92915050565b5f60208284031215620002eb57620002ea62000297565b5b5f620002fa84828501620002bd565b91505092915050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200037f57607f821691505b6020821081036200039557620003946200033a565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620003f97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620003bc565b620004058683620003bc565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6200044f6200044962000443846200041d565b62000426565b6200041d565b9050919050565b5f819050919050565b6200046a836200042f565b62000482620004798262000456565b848454620003c8565b825550505050565b5f90565b620004986200048a565b620004a58184846200045f565b505050565b5b81811015620004cc57620004c05f826200048e565b600181019050620004ab565b5050565b601f8211156200051b57620004e5816200039b565b620004f084620003ad565b8101602085101562000500578190505b620005186200050f85620003ad565b830182620004aa565b50505b505050565b5f82821c905092915050565b5f6200053d5f198460080262000520565b1980831691505092915050565b5f6200055783836200052c565b9150826002028217905092915050565b620005728262000303565b67ffffffffffffffff8111156200058e576200058d6200030d565b5b6200059a825462000367565b620005a7828285620004d0565b5f60209050601f831160018114620005dd575f8415620005c8578287015190505b620005d485826200054a565b86555062000643565b601f198416620005ed866200039b565b5f5b828110156200061657848901518255600182019150602085019450602081019050620005ef565b8683101562000636578489015162000632601f8916826200052c565b8355505b6001600288020188555050505b505050505050565b60805160a05160c051614d4e6200067d5f395f8181610b74015261171e01525f610cb401525f610c930152614d4e5ff3fe608060405260043610610219575f3560e01c80636352211e116101225780639a65ea26116100aa578063c87b56dd1161006e578063c87b56dd14610777578063c884ef83146107b3578063e58306f9146107ef578063e985e9c514610817578063f2fde38b1461085357610219565b80639a65ea26146106cb5780639fd6db12146106e1578063a22cb4651461070b578063b77a147b14610733578063b88d4fde1461074f57610219565b806375794a3c116100f157806375794a3c1461061b57806376c64c62146106455780637ac2ff7b1461065b5780638da5cb5b1461067757806395d89b41146106a157610219565b80636352211e146105635780636e34a4821461059f57806370a08231146105c9578063715018a61461060557610219565b80632f745c59116101a557806342842e0e1161017457806342842e0e146104835780634f6ccce7146104ab57806354fd4d50146104e757806355c7ba141461051157806355f804b31461053b57610219565b80632f745c59146103c95780633057931f1461040557806330adf81f1461042f5780633644e5151461045957610219565b8063141a468c116101ec578063141a468c146102e757806318160ddd1461032357806323b872dd1461034d57806326092b83146103755780632eb4a7ab1461039f57610219565b806301ffc9a71461021d57806306fdde0314610259578063081812fc14610283578063095ea7b3146102bf575b5f80fd5b348015610228575f80fd5b50610243600480360381019061023e9190613053565b61087b565b6040516102509190613098565b60405180910390f35b348015610264575f80fd5b5061026d6108f4565b60405161027a919061313b565b60405180910390f35b34801561028e575f80fd5b506102a960048036038101906102a4919061318e565b610983565b6040516102b691906131f8565b60405180910390f35b3480156102ca575f80fd5b506102e560048036038101906102e0919061323b565b6109c5565b005b3480156102f2575f80fd5b5061030d6004803603810190610308919061318e565b610adb565b60405161031a9190613288565b60405180910390f35b34801561032e575f80fd5b50610337610af0565b6040516103449190613288565b60405180910390f35b348015610358575f80fd5b50610373600480360381019061036e91906132a1565b610afc565b005b348015610380575f80fd5b50610389610b5c565b6040516103969190613098565b60405180910390f35b3480156103aa575f80fd5b506103b3610b72565b6040516103c09190613309565b60405180910390f35b3480156103d4575f80fd5b506103ef60048036038101906103ea919061323b565b610b96565b6040516103fc9190613288565b60405180910390f35b348015610410575f80fd5b50610419610c36565b6040516104269190613098565b60405180910390f35b34801561043a575f80fd5b50610443610c49565b6040516104509190613309565b60405180910390f35b348015610464575f80fd5b5061046d610c6f565b60405161047a9190613309565b60405180910390f35b34801561048e575f80fd5b506104a960048036038101906104a491906132a1565b610d0b565b005b3480156104b6575f80fd5b506104d160048036038101906104cc919061318e565b610d2a565b6040516104de9190613288565b60405180910390f35b3480156104f2575f80fd5b506104fb610d98565b604051610508919061313b565b60405180910390f35b34801561051c575f80fd5b50610525610dd5565b6040516105329190613098565b60405180910390f35b348015610546575f80fd5b50610561600480360381019061055c919061344e565b610de7565b005b34801561056e575f80fd5b506105896004803603810190610584919061318e565b610dfb565b60405161059691906131f8565b60405180910390f35b3480156105aa575f80fd5b506105b3610e7f565b6040516105c0919061313b565b60405180910390f35b3480156105d4575f80fd5b506105ef60048036038101906105ea9190613495565b610f0b565b6040516105fc9190613288565b60405180910390f35b348015610610575f80fd5b50610619610fbf565b005b348015610626575f80fd5b5061062f610fd2565b60405161063c9190613288565b60405180910390f35b348015610650575f80fd5b50610659610fd8565b005b61067560048036038101906106709190613520565b611052565b005b348015610682575f80fd5b5061068b6113f9565b60405161069891906131f8565b60405180910390f35b3480156106ac575f80fd5b506106b5611421565b6040516106c2919061313b565b60405180910390f35b3480156106d6575f80fd5b506106df6114b1565b005b3480156106ec575f80fd5b506106f5611529565b6040516107029190613098565b60405180910390f35b348015610716575f80fd5b50610731600480360381019061072c91906135d3565b61153e565b005b61074d6004803603810190610748919061366e565b611554565b005b34801561075a575f80fd5b5061077560048036038101906107709190613757565b6118ca565b005b348015610782575f80fd5b5061079d6004803603810190610798919061318e565b61192c565b6040516107aa919061313b565b60405180910390f35b3480156107be575f80fd5b506107d960048036038101906107d49190613495565b611991565b6040516107e69190613098565b60405180910390f35b3480156107fa575f80fd5b506108156004803603810190610810919061323b565b6119ae565b005b348015610822575f80fd5b5061083d600480360381019061083891906137d7565b6119c4565b60405161084a9190613098565b60405180910390f35b34801561085e575f80fd5b5061087960048036038101906108749190613495565b611a52565b005b5f7f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108ed57506108ec82611ad4565b5b9050919050565b60605f805461090290613842565b80601f016020809104026020016040519081016040528092919081815260200182805461092e90613842565b80156109795780601f1061095057610100808354040283529160200191610979565b820191905f5260205f20905b81548152906001019060200180831161095c57829003601f168201915b5050505050905090565b5f61098d82611bb5565b60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6109cf82610dfb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a36906138e2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a5e611c00565b73ffffffffffffffffffffffffffffffffffffffff161480610a8d5750610a8c81610a87611c00565b6119c4565b5b610acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac390613970565b60405180910390fd5b610ad68383611c07565b505050565b600e602052805f5260405f205f915090505481565b5f600880549050905090565b610b0d610b07611c00565b82611cbd565b610b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b43906139fe565b60405180910390fd5b610b57838383611d51565b505050565b5f600f60019054906101000a900460ff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610ba083610f0b565b8210610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd890613a8c565b60405180910390fd5b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2054905092915050565b600f60019054906101000a900460ff1681565b7f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad5f1b81565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610cdb61203d565b30604051602001610cf0959493929190613aec565b60405160208183030381529060405280519060200120905090565b610d2583838360405180602001604052805f8152506118ca565b505050565b5f610d33610af0565b8210610d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6b90613bad565b60405180910390fd5b60088281548110610d8857610d87613bcb565b5b905f5260205f2001549050919050565b60606040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250905090565b600f5f9054906101000a900460ff1681565b610def612044565b610df8816120c2565b50565b5f80610e06836120d5565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6d90613c42565b60405180910390fd5b80915050919050565b600c8054610e8c90613842565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb890613842565b8015610f035780601f10610eda57610100808354040283529160200191610f03565b820191905f5260205f20905b815481529060010190602001808311610ee657829003601f168201915b505050505081565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190613cd0565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610fc7612044565b610fd05f61210e565b565b600b5481565b610fe0612044565b5f1515600f60019054906101000a900460ff16151514611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102c90613d38565b60405180910390fd5b6001600f60016101000a81548160ff021916908315150217905550565b8361105b6121d1565b111561109c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109390613da0565b60405180910390fd5b5f6110a5610c6f565b7f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad5f1b88886110d38a6121d8565b896040516020016110e8959493929190613dbe565b6040516020818303038152906040528051906020012060405160200161110f929190613e83565b6040516020818303038152906040528051906020012090505f61113187610dfb565b90508073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16036111a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119890613f29565b60405180910390fd5b6111aa8161221d565b156112b857631626ba7e60e01b8173ffffffffffffffffffffffffffffffffffffffff16631626ba7e8487878a6040516020016111e993929190613f7b565b6040516020818303038152906040526040518363ffffffff1660e01b8152600401611215929190614009565b602060405180830381865afa158015611230573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611254919061404b565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146112b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112aa906140c0565b60405180910390fd5b6113e5565b5f6001838787876040515f81526020016040526040516112db94939291906140ed565b6020604051602081039080840390855afa1580156112fb573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611375576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136c9061417a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113da906140c0565b60405180910390fd5b505b6113ef8888611c07565b5050505050505050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461143090613842565b80601f016020809104026020016040519081016040528092919081815260200182805461145c90613842565b80156114a75780601f1061147e576101008083540402835291602001916114a7565b820191905f5260205f20905b81548152906001019060200180831161148a57829003601f168201915b5050505050905090565b6114b9612044565b5f1515600f5f9054906101000a900460ff1615151461150d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611504906141e2565b60405180910390fd5b6001600f5f6101000a81548160ff021916908315150217905550565b5f600f5f9054906101000a900460ff16905090565b611550611549611c00565b838361223f565b5050565b600f5f9054906101000a900460ff166115a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115999061424a565b60405180910390fd5b6010543410156115e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115de906142b2565b60405180910390fd5b6103e861ffff16600b5410611631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116289061431a565b60405180910390fd5b5f1515600d5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161515146116c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b790614382565b60405180910390fd5b600f60019054906101000a900460ff1661178e576001151561174b8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050507f0000000000000000000000000000000000000000000000000000000000000000611746336123a6565b6123c7565b15151461178d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611784906143ea565b60405180910390fd5b5b6001600d5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600b5f8154809291906117f590614435565b919050555061180633600b546123dd565b5f73ec3de41d5ead4cebffd656f7fc9d1a8d8ff0f8c073ffffffffffffffffffffffffffffffffffffffff16345a90604051611841906144a9565b5f60405180830381858888f193505050503d805f811461187c576040519150601f19603f3d011682016040523d82523d5f602084013e611881565b606091505b50509050806118c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bc90614507565b60405180910390fd5b505050565b6118db6118d5611c00565b83611cbd565b61191a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611911906139fe565b60405180910390fd5b611926848484846125f0565b50505050565b606061193782611bb5565b5f61194061264c565b90505f81511161195e5760405180602001604052805f815250611989565b80611968846126dc565b604051602001611979929190614555565b6040516020818303038152906040525b915050919050565b600d602052805f5260405f205f915054906101000a900460ff1681565b6119b6612044565b6119c082826123dd565b5050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611a5a612044565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abf906145e8565b60405180910390fd5b611ad18161210e565b50565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b9e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611bae5750611bad826127a6565b5b9050919050565b611bbe8161280f565b611bfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf490613c42565b60405180910390fd5b50565b5f33905090565b8160045f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c7783610dfb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f80611cc883610dfb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d0a5750611d0981856119c4565b5b80611d4857508373ffffffffffffffffffffffffffffffffffffffff16611d3084610983565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d7182610dfb565b73ffffffffffffffffffffffffffffffffffffffff1614611dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbe90614676565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2c90614704565b60405180910390fd5b611e42838383600161284f565b8273ffffffffffffffffffffffffffffffffffffffff16611e6282610dfb565b73ffffffffffffffffffffffffffffffffffffffff1614611eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eaf90614676565b60405180910390fd5b60045f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540392505081905550600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461203883838360016129aa565b505050565b5f46905090565b61204c611c00565b73ffffffffffffffffffffffffffffffffffffffff1661206a6113f9565b73ffffffffffffffffffffffffffffffffffffffff16146120c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b79061476c565b60405180910390fd5b565b80600c90816120d1919061491e565b5050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f42905090565b5f80600e5f8481526020019081526020015f20549050600e5f8481526020019081526020015f205f81548092919061220f90614435565b919050555080915050919050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036122ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a490614a37565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123999190613098565b60405180910390a3505050565b5f8173ffffffffffffffffffffffffffffffffffffffff165f1b9050919050565b5f826123d385846129b0565b1490509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361244b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244290614a9f565b60405180910390fd5b6124548161280f565b15612494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248b90614b07565b60405180910390fd5b6124a15f8383600161284f565b6124aa8161280f565b156124ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e190614b07565b60405180910390fd5b600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125ec5f838360016129aa565b5050565b6125fb848484611d51565b61260784848484612a04565b612646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263d90614b95565b60405180910390fd5b50505050565b6060600c805461265b90613842565b80601f016020809104026020016040519081016040528092919081815260200182805461268790613842565b80156126d25780601f106126a9576101008083540402835291602001916126d2565b820191905f5260205f20905b8154815290600101906020018083116126b557829003601f168201915b5050505050905090565b60605f60016126ea84612b86565b0190505f8167ffffffffffffffff8111156127085761270761332a565b5b6040519080825280601f01601f19166020018201604052801561273a5781602001600182028036833780820191505090505b5090505f82602001820190505b60011561279b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816127905761278f614bb3565b5b0494505f8503612747575b819350505050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff16612830836120d5565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61285b84848484612cd7565b600181111561289f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289690614c50565b60405180910390fd5b5f8290505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036128e4576128df81612cdd565b612923565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612922576129218582612d21565b5b5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129645761295f81612e77565b6129a3565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146129a2576129a18482612f37565b5b5b5050505050565b50505050565b5f808290505f5b84518110156129f9576129e4828683815181106129d7576129d6613bcb565b5b6020026020010151612faf565b915080806129f190614435565b9150506129b7565b508091505092915050565b5f612a248473ffffffffffffffffffffffffffffffffffffffff1661221d565b15612b79578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a4d611c00565b8786866040518563ffffffff1660e01b8152600401612a6f9493929190614c6e565b6020604051808303815f875af1925050508015612aaa57506040513d601f19601f82011682018060405250810190612aa7919061404b565b60015b612b29573d805f8114612ad8576040519150601f19603f3d011682016040523d82523d5f602084013e612add565b606091505b505f815103612b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1890614b95565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612b7e565b600190505b949350505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612be2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612bd857612bd7614bb3565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c1f576d04ee2d6d415b85acef81000000008381612c1557612c14614bb3565b5b0492506020810190505b662386f26fc100008310612c4e57662386f26fc100008381612c4457612c43614bb3565b5b0492506010810190505b6305f5e1008310612c77576305f5e1008381612c6d57612c6c614bb3565b5b0492506008810190505b6127108310612c9c576127108381612c9257612c91614bb3565b5b0492506004810190505b60648310612cbf5760648381612cb557612cb4614bb3565b5b0492506002810190505b600a8310612cce576001810190505b80915050919050565b50505050565b60088054905060095f8381526020019081526020015f2081905550600881908060018154018082558091505060019003905f5260205f20015f909190919091505550565b5f6001612d2d84610f0b565b612d379190614cb8565b90505f60075f8481526020019081526020015f20549050818114612e0e575f60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205490508060065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20819055508160075f8381526020019081526020015f2081905550505b60075f8481526020019081526020015f205f905560065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f905550505050565b5f6001600880549050612e8a9190614cb8565b90505f60095f8481526020019081526020015f205490505f60088381548110612eb657612eb5613bcb565b5b905f5260205f20015490508060088381548110612ed657612ed5613bcb565b5b905f5260205f2001819055508160095f8381526020019081526020015f208190555060095f8581526020019081526020015f205f90556008805480612f1e57612f1d614ceb565b5b600190038181905f5260205f20015f9055905550505050565b5f612f4183610f0b565b90508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f20819055508060075f8481526020019081526020015f2081905550505050565b5f818310612fc657612fc18284612fd9565b612fd1565b612fd08383612fd9565b5b905092915050565b5f825f528160205260405f20905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61303281612ffe565b811461303c575f80fd5b50565b5f8135905061304d81613029565b92915050565b5f6020828403121561306857613067612ff6565b5b5f6130758482850161303f565b91505092915050565b5f8115159050919050565b6130928161307e565b82525050565b5f6020820190506130ab5f830184613089565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156130e85780820151818401526020810190506130cd565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61310d826130b1565b61311781856130bb565b93506131278185602086016130cb565b613130816130f3565b840191505092915050565b5f6020820190508181035f8301526131538184613103565b905092915050565b5f819050919050565b61316d8161315b565b8114613177575f80fd5b50565b5f8135905061318881613164565b92915050565b5f602082840312156131a3576131a2612ff6565b5b5f6131b08482850161317a565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6131e2826131b9565b9050919050565b6131f2816131d8565b82525050565b5f60208201905061320b5f8301846131e9565b92915050565b61321a816131d8565b8114613224575f80fd5b50565b5f8135905061323581613211565b92915050565b5f806040838503121561325157613250612ff6565b5b5f61325e85828601613227565b925050602061326f8582860161317a565b9150509250929050565b6132828161315b565b82525050565b5f60208201905061329b5f830184613279565b92915050565b5f805f606084860312156132b8576132b7612ff6565b5b5f6132c586828701613227565b93505060206132d686828701613227565b92505060406132e78682870161317a565b9150509250925092565b5f819050919050565b613303816132f1565b82525050565b5f60208201905061331c5f8301846132fa565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b613360826130f3565b810181811067ffffffffffffffff8211171561337f5761337e61332a565b5b80604052505050565b5f613391612fed565b905061339d8282613357565b919050565b5f67ffffffffffffffff8211156133bc576133bb61332a565b5b6133c5826130f3565b9050602081019050919050565b828183375f83830152505050565b5f6133f26133ed846133a2565b613388565b90508281526020810184848401111561340e5761340d613326565b5b6134198482856133d2565b509392505050565b5f82601f83011261343557613434613322565b5b81356134458482602086016133e0565b91505092915050565b5f6020828403121561346357613462612ff6565b5b5f82013567ffffffffffffffff8111156134805761347f612ffa565b5b61348c84828501613421565b91505092915050565b5f602082840312156134aa576134a9612ff6565b5b5f6134b784828501613227565b91505092915050565b5f60ff82169050919050565b6134d5816134c0565b81146134df575f80fd5b50565b5f813590506134f0816134cc565b92915050565b6134ff816132f1565b8114613509575f80fd5b50565b5f8135905061351a816134f6565b92915050565b5f805f805f8060c0878903121561353a57613539612ff6565b5b5f61354789828a01613227565b965050602061355889828a0161317a565b955050604061356989828a0161317a565b945050606061357a89828a016134e2565b935050608061358b89828a0161350c565b92505060a061359c89828a0161350c565b9150509295509295509295565b6135b28161307e565b81146135bc575f80fd5b50565b5f813590506135cd816135a9565b92915050565b5f80604083850312156135e9576135e8612ff6565b5b5f6135f685828601613227565b9250506020613607858286016135bf565b9150509250929050565b5f80fd5b5f80fd5b5f8083601f84011261362e5761362d613322565b5b8235905067ffffffffffffffff81111561364b5761364a613611565b5b60208301915083602082028301111561366757613666613615565b5b9250929050565b5f806020838503121561368457613683612ff6565b5b5f83013567ffffffffffffffff8111156136a1576136a0612ffa565b5b6136ad85828601613619565b92509250509250929050565b5f67ffffffffffffffff8211156136d3576136d261332a565b5b6136dc826130f3565b9050602081019050919050565b5f6136fb6136f6846136b9565b613388565b90508281526020810184848401111561371757613716613326565b5b6137228482856133d2565b509392505050565b5f82601f83011261373e5761373d613322565b5b813561374e8482602086016136e9565b91505092915050565b5f805f806080858703121561376f5761376e612ff6565b5b5f61377c87828801613227565b945050602061378d87828801613227565b935050604061379e8782880161317a565b925050606085013567ffffffffffffffff8111156137bf576137be612ffa565b5b6137cb8782880161372a565b91505092959194509250565b5f80604083850312156137ed576137ec612ff6565b5b5f6137fa85828601613227565b925050602061380b85828601613227565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061385957607f821691505b60208210810361386c5761386b613815565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e655f8201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b5f6138cc6021836130bb565b91506138d782613872565b604082019050919050565b5f6020820190508181035f8301526138f9816138c0565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f5f8201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b5f61395a603d836130bb565b915061396582613900565b604082019050919050565b5f6020820190508181035f8301526139878161394e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e655f8201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b5f6139e8602d836130bb565b91506139f38261398e565b604082019050919050565b5f6020820190508181035f830152613a15816139dc565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f755f8201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b5f613a76602b836130bb565b9150613a8182613a1c565b604082019050919050565b5f6020820190508181035f830152613aa381613a6a565b9050919050565b5f819050919050565b5f819050919050565b5f613ad6613ad1613acc84613aaa565b613ab3565b61315b565b9050919050565b613ae681613abc565b82525050565b5f60a082019050613aff5f830188613add565b613b0c60208301876132fa565b613b1960408301866132fa565b613b266060830185613279565b613b3360808301846131e9565b9695505050505050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f5f8201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b5f613b97602c836130bb565b9150613ba282613b3d565b604082019050919050565b5f6020820190508181035f830152613bc481613b8b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4552433732313a20696e76616c696420746f6b656e20494400000000000000005f82015250565b5f613c2c6018836130bb565b9150613c3782613bf8565b602082019050919050565b5f6020820190508181035f830152613c5981613c20565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f7420612076615f8201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b5f613cba6029836130bb565b9150613cc582613c60565b604082019050919050565b5f6020820190508181035f830152613ce781613cae565b9050919050565b7f5075626c6963206d696e7420697320616c726561647920656e61626c656400005f82015250565b5f613d22601e836130bb565b9150613d2d82613cee565b602082019050919050565b5f6020820190508181035f830152613d4f81613d16565b9050919050565b7f5065726d697420657870697265640000000000000000000000000000000000005f82015250565b5f613d8a600e836130bb565b9150613d9582613d56565b602082019050919050565b5f6020820190508181035f830152613db781613d7e565b9050919050565b5f60a082019050613dd15f8301886132fa565b613dde60208301876131e9565b613deb6040830186613279565b613df86060830185613279565b613e056080830184613279565b9695505050505050565b5f81905092915050565b7f19010000000000000000000000000000000000000000000000000000000000005f82015250565b5f613e4d600283613e0f565b9150613e5882613e19565b600282019050919050565b5f819050919050565b613e7d613e78826132f1565b613e63565b82525050565b5f613e8d82613e41565b9150613e998285613e6c565b602082019150613ea98284613e6c565b6020820191508190509392505050565b7f4552433732315065726d69743a20617070726f76616c20746f2063757272656e5f8201527f74206f776e657200000000000000000000000000000000000000000000000000602082015250565b5f613f136027836130bb565b9150613f1e82613eb9565b604082019050919050565b5f6020820190508181035f830152613f4081613f07565b9050919050565b5f8160f81b9050919050565b5f613f5d82613f47565b9050919050565b613f75613f70826134c0565b613f53565b82525050565b5f613f868286613e6c565b602082019150613f968285613e6c565b602082019150613fa68284613f64565b600182019150819050949350505050565b5f81519050919050565b5f82825260208201905092915050565b5f613fdb82613fb7565b613fe58185613fc1565b9350613ff58185602086016130cb565b613ffe816130f3565b840191505092915050565b5f60408201905061401c5f8301856132fa565b818103602083015261402e8184613fd1565b90509392505050565b5f8151905061404581613029565b92915050565b5f602082840312156140605761405f612ff6565b5b5f61406d84828501614037565b91505092915050565b7f556e617574686f72697a656400000000000000000000000000000000000000005f82015250565b5f6140aa600c836130bb565b91506140b582614076565b602082019050919050565b5f6020820190508181035f8301526140d78161409e565b9050919050565b6140e7816134c0565b82525050565b5f6080820190506141005f8301876132fa565b61410d60208301866140de565b61411a60408301856132fa565b61412760608301846132fa565b95945050505050565b7f496e76616c6964207369676e61747572650000000000000000000000000000005f82015250565b5f6141646011836130bb565b915061416f82614130565b602082019050919050565b5f6020820190508181035f83015261419181614158565b9050919050565b7f4d696e74696e6720697320616c726561647920656e61626c65640000000000005f82015250565b5f6141cc601a836130bb565b91506141d782614198565b602082019050919050565b5f6020820190508181035f8301526141f9816141c0565b9050919050565b7f4d696e74696e67206973206e6f7420656e61626c6564000000000000000000005f82015250565b5f6142346016836130bb565b915061423f82614200565b602082019050919050565b5f6020820190508181035f83015261426181614228565b9050919050565b7f4e6f7420656e6f756768204554482073656e74000000000000000000000000005f82015250565b5f61429c6013836130bb565b91506142a782614268565b602082019050919050565b5f6020820190508181035f8301526142c981614290565b9050919050565b7f4578636565647320746f6b656e20737570706c790000000000000000000000005f82015250565b5f6143046014836130bb565b915061430f826142d0565b602082019050919050565b5f6020820190508181035f830152614331816142f8565b9050919050565b7f5573657220616c726561647920636c61696d65640000000000000000000000005f82015250565b5f61436c6014836130bb565b915061437782614338565b602082019050919050565b5f6020820190508181035f83015261439981614360565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f660000000000000000000000005f82015250565b5f6143d46014836130bb565b91506143df826143a0565b602082019050919050565b5f6020820190508181035f830152614401816143c8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61443f8261315b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361447157614470614408565b5b600182019050919050565b5f81905092915050565b50565b5f6144945f8361447c565b915061449f82614486565b5f82019050919050565b5f6144b382614489565b9150819050919050565b7f4661696c656420746f20666f72776172642045544800000000000000000000005f82015250565b5f6144f16015836130bb565b91506144fc826144bd565b602082019050919050565b5f6020820190508181035f83015261451e816144e5565b9050919050565b5f61452f826130b1565b6145398185613e0f565b93506145498185602086016130cb565b80840191505092915050565b5f6145608285614525565b915061456c8284614525565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6145d26026836130bb565b91506145dd82614578565b604082019050919050565b5f6020820190508181035f8301526145ff816145c6565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f7272656374205f8201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b5f6146606025836130bb565b915061466b82614606565b604082019050919050565b5f6020820190508181035f83015261468d81614654565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6146ee6024836130bb565b91506146f982614694565b604082019050919050565b5f6020820190508181035f83015261471b816146e2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6147566020836130bb565b915061476182614722565b602082019050919050565b5f6020820190508181035f8301526147838161474a565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026147e67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826147ab565b6147f086836147ab565b95508019841693508086168417925050509392505050565b5f61482261481d6148188461315b565b613ab3565b61315b565b9050919050565b5f819050919050565b61483b83614808565b61484f61484782614829565b8484546147b7565b825550505050565b5f90565b614863614857565b61486e818484614832565b505050565b5b81811015614891576148865f8261485b565b600181019050614874565b5050565b601f8211156148d6576148a78161478a565b6148b08461479c565b810160208510156148bf578190505b6148d36148cb8561479c565b830182614873565b50505b505050565b5f82821c905092915050565b5f6148f65f19846008026148db565b1980831691505092915050565b5f61490e83836148e7565b9150826002028217905092915050565b614927826130b1565b67ffffffffffffffff8111156149405761493f61332a565b5b61494a8254613842565b614955828285614895565b5f60209050601f831160018114614986575f8415614974578287015190505b61497e8582614903565b8655506149e5565b601f1984166149948661478a565b5f5b828110156149bb57848901518255600182019150602085019450602081019050614996565b868310156149d857848901516149d4601f8916826148e7565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20617070726f766520746f2063616c6c6572000000000000005f82015250565b5f614a216019836130bb565b9150614a2c826149ed565b602082019050919050565b5f6020820190508181035f830152614a4e81614a15565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f20616464726573735f82015250565b5f614a896020836130bb565b9150614a9482614a55565b602082019050919050565b5f6020820190508181035f830152614ab681614a7d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e746564000000005f82015250565b5f614af1601c836130bb565b9150614afc82614abd565b602082019050919050565b5f6020820190508181035f830152614b1e81614ae5565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e2045524337323152655f8201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b5f614b7f6032836130bb565b9150614b8a82614b25565b604082019050919050565b5f6020820190508181035f830152614bac81614b73565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f455243373231456e756d657261626c653a20636f6e73656375746976652074725f8201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b5f614c3a6035836130bb565b9150614c4582614be0565b604082019050919050565b5f6020820190508181035f830152614c6781614c2e565b9050919050565b5f608082019050614c815f8301876131e9565b614c8e60208301866131e9565b614c9b6040830185613279565b8181036060830152614cad8184613fd1565b905095945050505050565b5f614cc28261315b565b9150614ccd8361315b565b9250828203905081811115614ce557614ce4614408565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212203811bfff0a098ca9acc2a702a101d4b251ed32550eed4501dc670edaa8d2e9c964736f6c63430008140033697066733a2f2f62616679626569656e69616c6b6472707076646664616e7a7569776e7434356d346868636b617978727676686b747272766d6f77776b77723435612f8c58dcb058b3057074e11d2de10762537db4a427aaa50fc3f72a9c2eb9ebbbd5

Deployed Bytecode

0x608060405260043610610219575f3560e01c80636352211e116101225780639a65ea26116100aa578063c87b56dd1161006e578063c87b56dd14610777578063c884ef83146107b3578063e58306f9146107ef578063e985e9c514610817578063f2fde38b1461085357610219565b80639a65ea26146106cb5780639fd6db12146106e1578063a22cb4651461070b578063b77a147b14610733578063b88d4fde1461074f57610219565b806375794a3c116100f157806375794a3c1461061b57806376c64c62146106455780637ac2ff7b1461065b5780638da5cb5b1461067757806395d89b41146106a157610219565b80636352211e146105635780636e34a4821461059f57806370a08231146105c9578063715018a61461060557610219565b80632f745c59116101a557806342842e0e1161017457806342842e0e146104835780634f6ccce7146104ab57806354fd4d50146104e757806355c7ba141461051157806355f804b31461053b57610219565b80632f745c59146103c95780633057931f1461040557806330adf81f1461042f5780633644e5151461045957610219565b8063141a468c116101ec578063141a468c146102e757806318160ddd1461032357806323b872dd1461034d57806326092b83146103755780632eb4a7ab1461039f57610219565b806301ffc9a71461021d57806306fdde0314610259578063081812fc14610283578063095ea7b3146102bf575b5f80fd5b348015610228575f80fd5b50610243600480360381019061023e9190613053565b61087b565b6040516102509190613098565b60405180910390f35b348015610264575f80fd5b5061026d6108f4565b60405161027a919061313b565b60405180910390f35b34801561028e575f80fd5b506102a960048036038101906102a4919061318e565b610983565b6040516102b691906131f8565b60405180910390f35b3480156102ca575f80fd5b506102e560048036038101906102e0919061323b565b6109c5565b005b3480156102f2575f80fd5b5061030d6004803603810190610308919061318e565b610adb565b60405161031a9190613288565b60405180910390f35b34801561032e575f80fd5b50610337610af0565b6040516103449190613288565b60405180910390f35b348015610358575f80fd5b50610373600480360381019061036e91906132a1565b610afc565b005b348015610380575f80fd5b50610389610b5c565b6040516103969190613098565b60405180910390f35b3480156103aa575f80fd5b506103b3610b72565b6040516103c09190613309565b60405180910390f35b3480156103d4575f80fd5b506103ef60048036038101906103ea919061323b565b610b96565b6040516103fc9190613288565b60405180910390f35b348015610410575f80fd5b50610419610c36565b6040516104269190613098565b60405180910390f35b34801561043a575f80fd5b50610443610c49565b6040516104509190613309565b60405180910390f35b348015610464575f80fd5b5061046d610c6f565b60405161047a9190613309565b60405180910390f35b34801561048e575f80fd5b506104a960048036038101906104a491906132a1565b610d0b565b005b3480156104b6575f80fd5b506104d160048036038101906104cc919061318e565b610d2a565b6040516104de9190613288565b60405180910390f35b3480156104f2575f80fd5b506104fb610d98565b604051610508919061313b565b60405180910390f35b34801561051c575f80fd5b50610525610dd5565b6040516105329190613098565b60405180910390f35b348015610546575f80fd5b50610561600480360381019061055c919061344e565b610de7565b005b34801561056e575f80fd5b506105896004803603810190610584919061318e565b610dfb565b60405161059691906131f8565b60405180910390f35b3480156105aa575f80fd5b506105b3610e7f565b6040516105c0919061313b565b60405180910390f35b3480156105d4575f80fd5b506105ef60048036038101906105ea9190613495565b610f0b565b6040516105fc9190613288565b60405180910390f35b348015610610575f80fd5b50610619610fbf565b005b348015610626575f80fd5b5061062f610fd2565b60405161063c9190613288565b60405180910390f35b348015610650575f80fd5b50610659610fd8565b005b61067560048036038101906106709190613520565b611052565b005b348015610682575f80fd5b5061068b6113f9565b60405161069891906131f8565b60405180910390f35b3480156106ac575f80fd5b506106b5611421565b6040516106c2919061313b565b60405180910390f35b3480156106d6575f80fd5b506106df6114b1565b005b3480156106ec575f80fd5b506106f5611529565b6040516107029190613098565b60405180910390f35b348015610716575f80fd5b50610731600480360381019061072c91906135d3565b61153e565b005b61074d6004803603810190610748919061366e565b611554565b005b34801561075a575f80fd5b5061077560048036038101906107709190613757565b6118ca565b005b348015610782575f80fd5b5061079d6004803603810190610798919061318e565b61192c565b6040516107aa919061313b565b60405180910390f35b3480156107be575f80fd5b506107d960048036038101906107d49190613495565b611991565b6040516107e69190613098565b60405180910390f35b3480156107fa575f80fd5b506108156004803603810190610810919061323b565b6119ae565b005b348015610822575f80fd5b5061083d600480360381019061083891906137d7565b6119c4565b60405161084a9190613098565b60405180910390f35b34801561085e575f80fd5b5061087960048036038101906108749190613495565b611a52565b005b5f7f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108ed57506108ec82611ad4565b5b9050919050565b60605f805461090290613842565b80601f016020809104026020016040519081016040528092919081815260200182805461092e90613842565b80156109795780601f1061095057610100808354040283529160200191610979565b820191905f5260205f20905b81548152906001019060200180831161095c57829003601f168201915b5050505050905090565b5f61098d82611bb5565b60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6109cf82610dfb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a36906138e2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a5e611c00565b73ffffffffffffffffffffffffffffffffffffffff161480610a8d5750610a8c81610a87611c00565b6119c4565b5b610acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac390613970565b60405180910390fd5b610ad68383611c07565b505050565b600e602052805f5260405f205f915090505481565b5f600880549050905090565b610b0d610b07611c00565b82611cbd565b610b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b43906139fe565b60405180910390fd5b610b57838383611d51565b505050565b5f600f60019054906101000a900460ff16905090565b7f8c58dcb058b3057074e11d2de10762537db4a427aaa50fc3f72a9c2eb9ebbbd581565b5f610ba083610f0b565b8210610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd890613a8c565b60405180910390fd5b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2054905092915050565b600f60019054906101000a900460ff1681565b7f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad5f1b81565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fb238909399769103619f90860ef05b2c98a66a4ebd94fd9479188836106a4c117fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6610cdb61203d565b30604051602001610cf0959493929190613aec565b60405160208183030381529060405280519060200120905090565b610d2583838360405180602001604052805f8152506118ca565b505050565b5f610d33610af0565b8210610d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6b90613bad565b60405180910390fd5b60088281548110610d8857610d87613bcb565b5b905f5260205f2001549050919050565b60606040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250905090565b600f5f9054906101000a900460ff1681565b610def612044565b610df8816120c2565b50565b5f80610e06836120d5565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6d90613c42565b60405180910390fd5b80915050919050565b600c8054610e8c90613842565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb890613842565b8015610f035780601f10610eda57610100808354040283529160200191610f03565b820191905f5260205f20905b815481529060010190602001808311610ee657829003601f168201915b505050505081565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190613cd0565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610fc7612044565b610fd05f61210e565b565b600b5481565b610fe0612044565b5f1515600f60019054906101000a900460ff16151514611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102c90613d38565b60405180910390fd5b6001600f60016101000a81548160ff021916908315150217905550565b8361105b6121d1565b111561109c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109390613da0565b60405180910390fd5b5f6110a5610c6f565b7f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad5f1b88886110d38a6121d8565b896040516020016110e8959493929190613dbe565b6040516020818303038152906040528051906020012060405160200161110f929190613e83565b6040516020818303038152906040528051906020012090505f61113187610dfb565b90508073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16036111a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119890613f29565b60405180910390fd5b6111aa8161221d565b156112b857631626ba7e60e01b8173ffffffffffffffffffffffffffffffffffffffff16631626ba7e8487878a6040516020016111e993929190613f7b565b6040516020818303038152906040526040518363ffffffff1660e01b8152600401611215929190614009565b602060405180830381865afa158015611230573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611254919061404b565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146112b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112aa906140c0565b60405180910390fd5b6113e5565b5f6001838787876040515f81526020016040526040516112db94939291906140ed565b6020604051602081039080840390855afa1580156112fb573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611375576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136c9061417a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113da906140c0565b60405180910390fd5b505b6113ef8888611c07565b5050505050505050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461143090613842565b80601f016020809104026020016040519081016040528092919081815260200182805461145c90613842565b80156114a75780601f1061147e576101008083540402835291602001916114a7565b820191905f5260205f20905b81548152906001019060200180831161148a57829003601f168201915b5050505050905090565b6114b9612044565b5f1515600f5f9054906101000a900460ff1615151461150d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611504906141e2565b60405180910390fd5b6001600f5f6101000a81548160ff021916908315150217905550565b5f600f5f9054906101000a900460ff16905090565b611550611549611c00565b838361223f565b5050565b600f5f9054906101000a900460ff166115a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115999061424a565b60405180910390fd5b6010543410156115e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115de906142b2565b60405180910390fd5b6103e861ffff16600b5410611631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116289061431a565b60405180910390fd5b5f1515600d5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161515146116c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b790614382565b60405180910390fd5b600f60019054906101000a900460ff1661178e576001151561174b8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050507f8c58dcb058b3057074e11d2de10762537db4a427aaa50fc3f72a9c2eb9ebbbd5611746336123a6565b6123c7565b15151461178d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611784906143ea565b60405180910390fd5b5b6001600d5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600b5f8154809291906117f590614435565b919050555061180633600b546123dd565b5f73ec3de41d5ead4cebffd656f7fc9d1a8d8ff0f8c073ffffffffffffffffffffffffffffffffffffffff16345a90604051611841906144a9565b5f60405180830381858888f193505050503d805f811461187c576040519150601f19603f3d011682016040523d82523d5f602084013e611881565b606091505b50509050806118c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bc90614507565b60405180910390fd5b505050565b6118db6118d5611c00565b83611cbd565b61191a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611911906139fe565b60405180910390fd5b611926848484846125f0565b50505050565b606061193782611bb5565b5f61194061264c565b90505f81511161195e5760405180602001604052805f815250611989565b80611968846126dc565b604051602001611979929190614555565b6040516020818303038152906040525b915050919050565b600d602052805f5260405f205f915054906101000a900460ff1681565b6119b6612044565b6119c082826123dd565b5050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611a5a612044565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abf906145e8565b60405180910390fd5b611ad18161210e565b50565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b9e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611bae5750611bad826127a6565b5b9050919050565b611bbe8161280f565b611bfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf490613c42565b60405180910390fd5b50565b5f33905090565b8160045f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c7783610dfb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f80611cc883610dfb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d0a5750611d0981856119c4565b5b80611d4857508373ffffffffffffffffffffffffffffffffffffffff16611d3084610983565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d7182610dfb565b73ffffffffffffffffffffffffffffffffffffffff1614611dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbe90614676565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2c90614704565b60405180910390fd5b611e42838383600161284f565b8273ffffffffffffffffffffffffffffffffffffffff16611e6282610dfb565b73ffffffffffffffffffffffffffffffffffffffff1614611eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eaf90614676565b60405180910390fd5b60045f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540392505081905550600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461203883838360016129aa565b505050565b5f46905090565b61204c611c00565b73ffffffffffffffffffffffffffffffffffffffff1661206a6113f9565b73ffffffffffffffffffffffffffffffffffffffff16146120c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b79061476c565b60405180910390fd5b565b80600c90816120d1919061491e565b5050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f42905090565b5f80600e5f8481526020019081526020015f20549050600e5f8481526020019081526020015f205f81548092919061220f90614435565b919050555080915050919050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036122ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a490614a37565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123999190613098565b60405180910390a3505050565b5f8173ffffffffffffffffffffffffffffffffffffffff165f1b9050919050565b5f826123d385846129b0565b1490509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361244b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244290614a9f565b60405180910390fd5b6124548161280f565b15612494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248b90614b07565b60405180910390fd5b6124a15f8383600161284f565b6124aa8161280f565b156124ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e190614b07565b60405180910390fd5b600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125ec5f838360016129aa565b5050565b6125fb848484611d51565b61260784848484612a04565b612646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263d90614b95565b60405180910390fd5b50505050565b6060600c805461265b90613842565b80601f016020809104026020016040519081016040528092919081815260200182805461268790613842565b80156126d25780601f106126a9576101008083540402835291602001916126d2565b820191905f5260205f20905b8154815290600101906020018083116126b557829003601f168201915b5050505050905090565b60605f60016126ea84612b86565b0190505f8167ffffffffffffffff8111156127085761270761332a565b5b6040519080825280601f01601f19166020018201604052801561273a5781602001600182028036833780820191505090505b5090505f82602001820190505b60011561279b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816127905761278f614bb3565b5b0494505f8503612747575b819350505050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff16612830836120d5565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61285b84848484612cd7565b600181111561289f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289690614c50565b60405180910390fd5b5f8290505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036128e4576128df81612cdd565b612923565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612922576129218582612d21565b5b5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129645761295f81612e77565b6129a3565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146129a2576129a18482612f37565b5b5b5050505050565b50505050565b5f808290505f5b84518110156129f9576129e4828683815181106129d7576129d6613bcb565b5b6020026020010151612faf565b915080806129f190614435565b9150506129b7565b508091505092915050565b5f612a248473ffffffffffffffffffffffffffffffffffffffff1661221d565b15612b79578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a4d611c00565b8786866040518563ffffffff1660e01b8152600401612a6f9493929190614c6e565b6020604051808303815f875af1925050508015612aaa57506040513d601f19601f82011682018060405250810190612aa7919061404b565b60015b612b29573d805f8114612ad8576040519150601f19603f3d011682016040523d82523d5f602084013e612add565b606091505b505f815103612b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1890614b95565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612b7e565b600190505b949350505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612be2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612bd857612bd7614bb3565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c1f576d04ee2d6d415b85acef81000000008381612c1557612c14614bb3565b5b0492506020810190505b662386f26fc100008310612c4e57662386f26fc100008381612c4457612c43614bb3565b5b0492506010810190505b6305f5e1008310612c77576305f5e1008381612c6d57612c6c614bb3565b5b0492506008810190505b6127108310612c9c576127108381612c9257612c91614bb3565b5b0492506004810190505b60648310612cbf5760648381612cb557612cb4614bb3565b5b0492506002810190505b600a8310612cce576001810190505b80915050919050565b50505050565b60088054905060095f8381526020019081526020015f2081905550600881908060018154018082558091505060019003905f5260205f20015f909190919091505550565b5f6001612d2d84610f0b565b612d379190614cb8565b90505f60075f8481526020019081526020015f20549050818114612e0e575f60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205490508060065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20819055508160075f8381526020019081526020015f2081905550505b60075f8481526020019081526020015f205f905560065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f905550505050565b5f6001600880549050612e8a9190614cb8565b90505f60095f8481526020019081526020015f205490505f60088381548110612eb657612eb5613bcb565b5b905f5260205f20015490508060088381548110612ed657612ed5613bcb565b5b905f5260205f2001819055508160095f8381526020019081526020015f208190555060095f8581526020019081526020015f205f90556008805480612f1e57612f1d614ceb565b5b600190038181905f5260205f20015f9055905550505050565b5f612f4183610f0b565b90508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f20819055508060075f8481526020019081526020015f2081905550505050565b5f818310612fc657612fc18284612fd9565b612fd1565b612fd08383612fd9565b5b905092915050565b5f825f528160205260405f20905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61303281612ffe565b811461303c575f80fd5b50565b5f8135905061304d81613029565b92915050565b5f6020828403121561306857613067612ff6565b5b5f6130758482850161303f565b91505092915050565b5f8115159050919050565b6130928161307e565b82525050565b5f6020820190506130ab5f830184613089565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156130e85780820151818401526020810190506130cd565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61310d826130b1565b61311781856130bb565b93506131278185602086016130cb565b613130816130f3565b840191505092915050565b5f6020820190508181035f8301526131538184613103565b905092915050565b5f819050919050565b61316d8161315b565b8114613177575f80fd5b50565b5f8135905061318881613164565b92915050565b5f602082840312156131a3576131a2612ff6565b5b5f6131b08482850161317a565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6131e2826131b9565b9050919050565b6131f2816131d8565b82525050565b5f60208201905061320b5f8301846131e9565b92915050565b61321a816131d8565b8114613224575f80fd5b50565b5f8135905061323581613211565b92915050565b5f806040838503121561325157613250612ff6565b5b5f61325e85828601613227565b925050602061326f8582860161317a565b9150509250929050565b6132828161315b565b82525050565b5f60208201905061329b5f830184613279565b92915050565b5f805f606084860312156132b8576132b7612ff6565b5b5f6132c586828701613227565b93505060206132d686828701613227565b92505060406132e78682870161317a565b9150509250925092565b5f819050919050565b613303816132f1565b82525050565b5f60208201905061331c5f8301846132fa565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b613360826130f3565b810181811067ffffffffffffffff8211171561337f5761337e61332a565b5b80604052505050565b5f613391612fed565b905061339d8282613357565b919050565b5f67ffffffffffffffff8211156133bc576133bb61332a565b5b6133c5826130f3565b9050602081019050919050565b828183375f83830152505050565b5f6133f26133ed846133a2565b613388565b90508281526020810184848401111561340e5761340d613326565b5b6134198482856133d2565b509392505050565b5f82601f83011261343557613434613322565b5b81356134458482602086016133e0565b91505092915050565b5f6020828403121561346357613462612ff6565b5b5f82013567ffffffffffffffff8111156134805761347f612ffa565b5b61348c84828501613421565b91505092915050565b5f602082840312156134aa576134a9612ff6565b5b5f6134b784828501613227565b91505092915050565b5f60ff82169050919050565b6134d5816134c0565b81146134df575f80fd5b50565b5f813590506134f0816134cc565b92915050565b6134ff816132f1565b8114613509575f80fd5b50565b5f8135905061351a816134f6565b92915050565b5f805f805f8060c0878903121561353a57613539612ff6565b5b5f61354789828a01613227565b965050602061355889828a0161317a565b955050604061356989828a0161317a565b945050606061357a89828a016134e2565b935050608061358b89828a0161350c565b92505060a061359c89828a0161350c565b9150509295509295509295565b6135b28161307e565b81146135bc575f80fd5b50565b5f813590506135cd816135a9565b92915050565b5f80604083850312156135e9576135e8612ff6565b5b5f6135f685828601613227565b9250506020613607858286016135bf565b9150509250929050565b5f80fd5b5f80fd5b5f8083601f84011261362e5761362d613322565b5b8235905067ffffffffffffffff81111561364b5761364a613611565b5b60208301915083602082028301111561366757613666613615565b5b9250929050565b5f806020838503121561368457613683612ff6565b5b5f83013567ffffffffffffffff8111156136a1576136a0612ffa565b5b6136ad85828601613619565b92509250509250929050565b5f67ffffffffffffffff8211156136d3576136d261332a565b5b6136dc826130f3565b9050602081019050919050565b5f6136fb6136f6846136b9565b613388565b90508281526020810184848401111561371757613716613326565b5b6137228482856133d2565b509392505050565b5f82601f83011261373e5761373d613322565b5b813561374e8482602086016136e9565b91505092915050565b5f805f806080858703121561376f5761376e612ff6565b5b5f61377c87828801613227565b945050602061378d87828801613227565b935050604061379e8782880161317a565b925050606085013567ffffffffffffffff8111156137bf576137be612ffa565b5b6137cb8782880161372a565b91505092959194509250565b5f80604083850312156137ed576137ec612ff6565b5b5f6137fa85828601613227565b925050602061380b85828601613227565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061385957607f821691505b60208210810361386c5761386b613815565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e655f8201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b5f6138cc6021836130bb565b91506138d782613872565b604082019050919050565b5f6020820190508181035f8301526138f9816138c0565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f5f8201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b5f61395a603d836130bb565b915061396582613900565b604082019050919050565b5f6020820190508181035f8301526139878161394e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e655f8201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b5f6139e8602d836130bb565b91506139f38261398e565b604082019050919050565b5f6020820190508181035f830152613a15816139dc565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f755f8201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b5f613a76602b836130bb565b9150613a8182613a1c565b604082019050919050565b5f6020820190508181035f830152613aa381613a6a565b9050919050565b5f819050919050565b5f819050919050565b5f613ad6613ad1613acc84613aaa565b613ab3565b61315b565b9050919050565b613ae681613abc565b82525050565b5f60a082019050613aff5f830188613add565b613b0c60208301876132fa565b613b1960408301866132fa565b613b266060830185613279565b613b3360808301846131e9565b9695505050505050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f5f8201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b5f613b97602c836130bb565b9150613ba282613b3d565b604082019050919050565b5f6020820190508181035f830152613bc481613b8b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4552433732313a20696e76616c696420746f6b656e20494400000000000000005f82015250565b5f613c2c6018836130bb565b9150613c3782613bf8565b602082019050919050565b5f6020820190508181035f830152613c5981613c20565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f7420612076615f8201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b5f613cba6029836130bb565b9150613cc582613c60565b604082019050919050565b5f6020820190508181035f830152613ce781613cae565b9050919050565b7f5075626c6963206d696e7420697320616c726561647920656e61626c656400005f82015250565b5f613d22601e836130bb565b9150613d2d82613cee565b602082019050919050565b5f6020820190508181035f830152613d4f81613d16565b9050919050565b7f5065726d697420657870697265640000000000000000000000000000000000005f82015250565b5f613d8a600e836130bb565b9150613d9582613d56565b602082019050919050565b5f6020820190508181035f830152613db781613d7e565b9050919050565b5f60a082019050613dd15f8301886132fa565b613dde60208301876131e9565b613deb6040830186613279565b613df86060830185613279565b613e056080830184613279565b9695505050505050565b5f81905092915050565b7f19010000000000000000000000000000000000000000000000000000000000005f82015250565b5f613e4d600283613e0f565b9150613e5882613e19565b600282019050919050565b5f819050919050565b613e7d613e78826132f1565b613e63565b82525050565b5f613e8d82613e41565b9150613e998285613e6c565b602082019150613ea98284613e6c565b6020820191508190509392505050565b7f4552433732315065726d69743a20617070726f76616c20746f2063757272656e5f8201527f74206f776e657200000000000000000000000000000000000000000000000000602082015250565b5f613f136027836130bb565b9150613f1e82613eb9565b604082019050919050565b5f6020820190508181035f830152613f4081613f07565b9050919050565b5f8160f81b9050919050565b5f613f5d82613f47565b9050919050565b613f75613f70826134c0565b613f53565b82525050565b5f613f868286613e6c565b602082019150613f968285613e6c565b602082019150613fa68284613f64565b600182019150819050949350505050565b5f81519050919050565b5f82825260208201905092915050565b5f613fdb82613fb7565b613fe58185613fc1565b9350613ff58185602086016130cb565b613ffe816130f3565b840191505092915050565b5f60408201905061401c5f8301856132fa565b818103602083015261402e8184613fd1565b90509392505050565b5f8151905061404581613029565b92915050565b5f602082840312156140605761405f612ff6565b5b5f61406d84828501614037565b91505092915050565b7f556e617574686f72697a656400000000000000000000000000000000000000005f82015250565b5f6140aa600c836130bb565b91506140b582614076565b602082019050919050565b5f6020820190508181035f8301526140d78161409e565b9050919050565b6140e7816134c0565b82525050565b5f6080820190506141005f8301876132fa565b61410d60208301866140de565b61411a60408301856132fa565b61412760608301846132fa565b95945050505050565b7f496e76616c6964207369676e61747572650000000000000000000000000000005f82015250565b5f6141646011836130bb565b915061416f82614130565b602082019050919050565b5f6020820190508181035f83015261419181614158565b9050919050565b7f4d696e74696e6720697320616c726561647920656e61626c65640000000000005f82015250565b5f6141cc601a836130bb565b91506141d782614198565b602082019050919050565b5f6020820190508181035f8301526141f9816141c0565b9050919050565b7f4d696e74696e67206973206e6f7420656e61626c6564000000000000000000005f82015250565b5f6142346016836130bb565b915061423f82614200565b602082019050919050565b5f6020820190508181035f83015261426181614228565b9050919050565b7f4e6f7420656e6f756768204554482073656e74000000000000000000000000005f82015250565b5f61429c6013836130bb565b91506142a782614268565b602082019050919050565b5f6020820190508181035f8301526142c981614290565b9050919050565b7f4578636565647320746f6b656e20737570706c790000000000000000000000005f82015250565b5f6143046014836130bb565b915061430f826142d0565b602082019050919050565b5f6020820190508181035f830152614331816142f8565b9050919050565b7f5573657220616c726561647920636c61696d65640000000000000000000000005f82015250565b5f61436c6014836130bb565b915061437782614338565b602082019050919050565b5f6020820190508181035f83015261439981614360565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f660000000000000000000000005f82015250565b5f6143d46014836130bb565b91506143df826143a0565b602082019050919050565b5f6020820190508181035f830152614401816143c8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61443f8261315b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361447157614470614408565b5b600182019050919050565b5f81905092915050565b50565b5f6144945f8361447c565b915061449f82614486565b5f82019050919050565b5f6144b382614489565b9150819050919050565b7f4661696c656420746f20666f72776172642045544800000000000000000000005f82015250565b5f6144f16015836130bb565b91506144fc826144bd565b602082019050919050565b5f6020820190508181035f83015261451e816144e5565b9050919050565b5f61452f826130b1565b6145398185613e0f565b93506145498185602086016130cb565b80840191505092915050565b5f6145608285614525565b915061456c8284614525565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6145d26026836130bb565b91506145dd82614578565b604082019050919050565b5f6020820190508181035f8301526145ff816145c6565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f7272656374205f8201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b5f6146606025836130bb565b915061466b82614606565b604082019050919050565b5f6020820190508181035f83015261468d81614654565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6146ee6024836130bb565b91506146f982614694565b604082019050919050565b5f6020820190508181035f83015261471b816146e2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6147566020836130bb565b915061476182614722565b602082019050919050565b5f6020820190508181035f8301526147838161474a565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026147e67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826147ab565b6147f086836147ab565b95508019841693508086168417925050509392505050565b5f61482261481d6148188461315b565b613ab3565b61315b565b9050919050565b5f819050919050565b61483b83614808565b61484f61484782614829565b8484546147b7565b825550505050565b5f90565b614863614857565b61486e818484614832565b505050565b5b81811015614891576148865f8261485b565b600181019050614874565b5050565b601f8211156148d6576148a78161478a565b6148b08461479c565b810160208510156148bf578190505b6148d36148cb8561479c565b830182614873565b50505b505050565b5f82821c905092915050565b5f6148f65f19846008026148db565b1980831691505092915050565b5f61490e83836148e7565b9150826002028217905092915050565b614927826130b1565b67ffffffffffffffff8111156149405761493f61332a565b5b61494a8254613842565b614955828285614895565b5f60209050601f831160018114614986575f8415614974578287015190505b61497e8582614903565b8655506149e5565b601f1984166149948661478a565b5f5b828110156149bb57848901518255600182019150602085019450602081019050614996565b868310156149d857848901516149d4601f8916826148e7565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20617070726f766520746f2063616c6c6572000000000000005f82015250565b5f614a216019836130bb565b9150614a2c826149ed565b602082019050919050565b5f6020820190508181035f830152614a4e81614a15565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f20616464726573735f82015250565b5f614a896020836130bb565b9150614a9482614a55565b602082019050919050565b5f6020820190508181035f830152614ab681614a7d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e746564000000005f82015250565b5f614af1601c836130bb565b9150614afc82614abd565b602082019050919050565b5f6020820190508181035f830152614b1e81614ae5565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e2045524337323152655f8201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b5f614b7f6032836130bb565b9150614b8a82614b25565b604082019050919050565b5f6020820190508181035f830152614bac81614b73565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f455243373231456e756d657261626c653a20636f6e73656375746976652074725f8201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b5f614c3a6035836130bb565b9150614c4582614be0565b604082019050919050565b5f6020820190508181035f830152614c6781614c2e565b9050919050565b5f608082019050614c815f8301876131e9565b614c8e60208301866131e9565b614c9b6040830185613279565b8181036060830152614cad8184613fd1565b905095945050505050565b5f614cc28261315b565b9150614ccd8361315b565b9250828203905081811115614ce557614ce4614408565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212203811bfff0a098ca9acc2a702a101d4b251ed32550eed4501dc670edaa8d2e9c964736f6c63430008140033

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

8c58dcb058b3057074e11d2de10762537db4a427aaa50fc3f72a9c2eb9ebbbd5

-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x8c58dcb058b3057074e11d2de10762537db4a427aaa50fc3f72a9c2eb9ebbbd5

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 8c58dcb058b3057074e11d2de10762537db4a427aaa50fc3f72a9c2eb9ebbbd5


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

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.