ETH Price: $3,400.12 (+1.64%)

Token

metaSKINZ Packz (PACKZ)
 

Overview

Max Total Supply

138 PACKZ

Holders

56

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 PACKZ
0xa442ddf27063320789b59a8fdca5b849cd2cdeac
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

DO NOT buy these Packz. The project has moved to Polygon.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Packz

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

import "./ITraitz.sol";

// ███    ███ ███████ ████████  █████  ███████ ██   ██ ██ █████████ ███████
// ████  ████ ██         ██    ██   ██ ██      ██  ██  ██ ██     ██    ███
// ██ ████ ██ █████      ██    ███████ ███████ █████   ██ ██     ██   ███
// ██  ██  ██ ██         ██    ██   ██      ██ ██  ██  ██ ██     ██  ███
// ██      ██ ███████    ██    ██   ██ ███████ ██   ██ ██ ██     ██ ███████
// 🥯 bagelface
// 🐦 @bagelface_
// 🎮 bagelface#2027
// 📬 [email protected]

contract Packz is ERC721, ERC721Enumerable, Ownable, PaymentSplitter {
  using Address for address;

  uint256 public EDITION = 0;
  uint256 public MAX_MINT = 10;
  uint256 public MAX_SUPPLY = 10_000;
  uint256 public MAX_RESERVED = 111;
  uint256 public MINT_PRICE = 0.0555 ether;
  uint256 public TRAITZ_PER_PACK = 12;

  ITraitz private _traitz;
  address[] private _payees;
  uint256 private _tokenIds;
  uint256 private _reserved;
  string private _packzURI;
  string private _contractURI;
  bool private _saleActive;

  constructor(
    string memory packzURI,
    address traitzAddress,
    address[] memory payees,
    uint256[] memory shares
  )
    PaymentSplitter(payees, shares)
    ERC721("metaSKINZ Packz", "PACKZ")
  {
    _traitz = ITraitz(traitzAddress);
    _packzURI = packzURI;
    _payees = payees;
  }

  function tokenIds() public view returns (uint256) {
    return _tokenIds;
  }

  function saleActive() public view returns (bool) {
    return _saleActive;
  }

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

    return _packzURI;
  }

  function contractURI() public view returns (string memory) {
    return _contractURI;
  }

  function flipSaleActive() public onlyOwner {
    _saleActive = !_saleActive;
  }

  function setPackzURI(string memory URI) public onlyOwner {
    _packzURI = URI;
  }

  function setPackzContractURI(string memory URI) public onlyOwner {
    _contractURI = URI;
  }

  function setTraitzMetadataURI(string memory URI) public onlyOwner {
    _traitz.setMetadataURI(URI);
  }

  function setTraitzContractURI(string memory URI) public onlyOwner {
    _traitz.setContractURI(URI);
  }

  function setTraitzBaseURI(string memory URI) public onlyOwner {
    _traitz.setBaseTokenURI(URI);
  }

  function setTraitzPrivateSeed(bytes32 privateSeed) public onlyOwner {
    _traitz.setPrivateSeed(privateSeed);
  }

  function reserve(uint256 amount, address to) public onlyOwner {
    require(_reserved < MAX_RESERVED, "Exceeds maximum number of reserved tokens");

    _mintAmount(amount, to);
    _reserved += 1;
  }

  function mint(uint256 amount) public payable {
    require(amount <= MAX_MINT,               "Exceeds the maximum amount to mint at once");
    require(msg.value >= MINT_PRICE * amount, "Invalid Ether amount sent");
    require(_saleActive,                      "Sale is not active");

    _mintAmount(amount, msg.sender);
  }

  function _mintAmount(uint256 amount, address to) private {
    require(_tokenIds + amount < MAX_SUPPLY, "Exceeds maximum number of tokens");

    for (uint256 i = 0; i < amount; i++) {
      _safeMint(to, _tokenIds);
      _tokenIds += 1;
    }
  }

  function open(uint256 tokenId) public {
    require(ownerOf(tokenId) == msg.sender, "Caller is not the owner of this token");

    _traitz.mint(TRAITZ_PER_PACK, msg.sender);
    _burn(tokenId);
  }

  function openMultiple(uint256[] calldata tokenIds) public {
    require(tokenIds.length <= MAX_MINT, "Exceeds the maximum amount to open at once");

    for (uint256 i = 0; i < tokenIds.length; i++) {
      require(ownerOf(tokenIds[i]) == msg.sender, "Caller is not the owner of this token");
    }

    _traitz.mint(TRAITZ_PER_PACK * tokenIds.length, msg.sender);

    for (uint256 i = 0; i < tokenIds.length; i++) {
      _burn(tokenIds[i]);
    }
  }

  function withdrawAll() public onlyOwner {
    for (uint256 i = 0; i < _payees.length; i++) {
      release(payable(_payees[i]));
    }
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 2 of 16 : ITraitz.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// ███    ███ ███████ ████████  █████  ███████ ██   ██ ██ █████████ ███████
// ████  ████ ██         ██    ██   ██ ██      ██  ██  ██ ██     ██    ███
// ██ ████ ██ █████      ██    ███████ ███████ █████   ██ ██     ██   ███
// ██  ██  ██ ██         ██    ██   ██      ██ ██  ██  ██ ██     ██  ███
// ██      ██ ███████    ██    ██   ██ ███████ ██   ██ ██ ██     ██ ███████
// 🥯 bagelface
// 🐦 @bagelface_
// 🎮 bagelface#2027
// 📬 [email protected]

interface ITraitz {
  function mint(uint256 tokenId, address to) external;
  function setMetadataURI(string memory URI) external;
  function setContractURI(string memory URI) external;
  function setBaseTokenURI(string memory URI) external;
  function setPrivateSeed(bytes32 seed) external;
}

File 3 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 16 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/math/SafeMath.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 5 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 6 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 8 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

    /**
     * @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 10 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 12 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 13 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

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 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

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 16 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"packzURI","type":"string"},{"internalType":"address","name":"traitzAddress","type":"address"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":"EDITION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAITZ_PER_PACK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"openMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setPackzContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setPackzURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setTraitzBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setTraitzContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setTraitzMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"privateSeed","type":"bytes32"}],"name":"setTraitzPrivateSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIds","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":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000601055600a601155612710601255606f60135566c52cf4b908c000601455600c6015553480156200003657600080fd5b50604051620063193803806200631983398181016040528101906200005c91906200090e565b81816040518060400160405280600f81526020017f6d657461534b494e5a205061636b7a00000000000000000000000000000000008152506040518060400160405280600581526020017f5041434b5a0000000000000000000000000000000000000000000000000000008152508160009080519060200190620000e2929190620005eb565b508060019080519060200190620000fb929190620005eb565b5050506200011e62000112620002e360201b60201c565b620002eb60201b60201c565b805182511462000165576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200015c9062000bf2565b60405180910390fd5b6000825111620001ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001a39062000c36565b60405180910390fd5b60005b825181101562000263576200024d838281518110620001f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015183838151811062000239577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151620003b160201b60201c565b80806200025a9062000e57565b915050620001af565b50505082601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083601a9080519060200190620002bf929190620005eb565b508160179080519060200190620002d89291906200067c565b505050505062000f66565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000424576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200041b9062000bd0565b60405180910390fd5b600081116200046a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004619062000c58565b60405180910390fd5b6000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414620004ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004e69062000c14565b60405180910390fd5b600f829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600b54620005a6919062000d50565b600b819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac8282604051620005df92919062000ba3565b60405180910390a15050565b828054620005f99062000e21565b90600052602060002090601f0160209004810192826200061d576000855562000669565b82601f106200063857805160ff191683800117855562000669565b8280016001018555821562000669579182015b82811115620006685782518255916020019190600101906200064b565b5b5090506200067891906200070b565b5090565b828054828255906000526020600020908101928215620006f8579160200282015b82811115620006f75782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906200069d565b5b5090506200070791906200070b565b5090565b5b80821115620007265760008160009055506001016200070c565b5090565b6000620007416200073b8462000cae565b62000c7a565b905080838252602082019050828560208602820111156200076157600080fd5b60005b858110156200079557816200077a888262000859565b84526020840193506020830192505060018101905062000764565b5050509392505050565b6000620007b6620007b08462000cdd565b62000c7a565b90508083825260208201905082856020860282011115620007d657600080fd5b60005b858110156200080a5781620007ef8882620008f7565b845260208401935060208301925050600181019050620007d9565b5050509392505050565b60006200082b620008258462000d0c565b62000c7a565b9050828152602081018484840111156200084457600080fd5b6200085184828562000deb565b509392505050565b6000815190506200086a8162000f32565b92915050565b600082601f8301126200088257600080fd5b8151620008948482602086016200072a565b91505092915050565b600082601f830112620008af57600080fd5b8151620008c18482602086016200079f565b91505092915050565b600082601f830112620008dc57600080fd5b8151620008ee84826020860162000814565b91505092915050565b600081519050620009088162000f4c565b92915050565b600080600080608085870312156200092557600080fd5b600085015167ffffffffffffffff8111156200094057600080fd5b6200094e87828801620008ca565b9450506020620009618782880162000859565b935050604085015167ffffffffffffffff8111156200097f57600080fd5b6200098d8782880162000870565b925050606085015167ffffffffffffffff811115620009ab57600080fd5b620009b9878288016200089d565b91505092959194509250565b620009d08162000dad565b82525050565b6000620009e5602c8362000d3f565b91507f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008301527f7a65726f206164647265737300000000000000000000000000000000000000006020830152604082019050919050565b600062000a4d60328362000d3f565b91507f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008301527f6573206c656e677468206d69736d6174636800000000000000000000000000006020830152604082019050919050565b600062000ab5602b8362000d3f565b91507f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008301527f20686173207368617265730000000000000000000000000000000000000000006020830152604082019050919050565b600062000b1d601a8362000d3f565b91507f5061796d656e7453706c69747465723a206e6f207061796565730000000000006000830152602082019050919050565b600062000b5f601d8362000d3f565b91507f5061796d656e7453706c69747465723a207368617265732061726520300000006000830152602082019050919050565b62000b9d8162000de1565b82525050565b600060408201905062000bba6000830185620009c5565b62000bc9602083018462000b92565b9392505050565b6000602082019050818103600083015262000beb81620009d6565b9050919050565b6000602082019050818103600083015262000c0d8162000a3e565b9050919050565b6000602082019050818103600083015262000c2f8162000aa6565b9050919050565b6000602082019050818103600083015262000c518162000b0e565b9050919050565b6000602082019050818103600083015262000c738162000b50565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171562000ca45762000ca362000f03565b5b8060405250919050565b600067ffffffffffffffff82111562000ccc5762000ccb62000f03565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000cfb5762000cfa62000f03565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000d2a5762000d2962000f03565b5b601f19601f8301169050602081019050919050565b600082825260208201905092915050565b600062000d5d8262000de1565b915062000d6a8362000de1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000da25762000da162000ea5565b5b828201905092915050565b600062000dba8262000dc1565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000e0b57808201518184015260208101905062000dee565b8381111562000e1b576000848401525b50505050565b6000600282049050600182168062000e3a57607f821691505b6020821081141562000e515762000e5062000ed4565b5b50919050565b600062000e648262000de1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000e9a5762000e9962000ea5565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000f3d8162000dad565b811462000f4957600080fd5b50565b62000f578162000de1565b811462000f6357600080fd5b50565b6153a38062000f766000396000f3fe6080604052600436106102815760003560e01c806370a082311161014f578063a2d45bb3116100c1578063de8b51e11161007a578063de8b51e1146109e4578063e33b7de3146109fb578063e8a3d48514610a26578063e985e9c514610a51578063f0292a0314610a8e578063f2fde38b14610ab9576102c8565b8063a2d45bb3146108c4578063b88d4fde146108ed578063c002d23d14610916578063c5b8426214610941578063c87b56dd1461096a578063ce7c2ac2146109a7576102c8565b80638b83209b116101135780638b83209b146107af5780638da5cb5b146107ec57806395d89b41146108175780639852595c14610842578063a0712d681461087f578063a22cb4651461089b576102c8565b806370a08231146106f0578063714cff561461072d578063715018a6146107585780637fd6a22b1461076f578063853828b614610798576102c8565b806332fac36f116101f35780635df9115e116101ac5780635df9115e146105de5780635f74da5c146106095780636352211e1461063457806368428a1b14610671578063690e7c091461069c5780636ba90c6e146106c5576102c8565b806332fac36f146104d257806335d09022146104fb5780633a98ef391461052457806342842e0e1461054f578063429ad0e9146105785780634f6ccce7146105a1576102c8565b806318160ddd1161024557806318160ddd146103c457806319165587146103ef57806323b872dd146104185780632cd83669146104415780632f745c591461046a57806332cb6b0c146104a7576102c8565b806301ffc9a7146102cd57806303339bcb1461030a57806306fdde0314610333578063081812fc1461035e578063095ea7b31461039b576102c8565b366102c8577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102af610ae2565b346040516102be929190614a45565b60405180910390a1005b600080fd5b3480156102d957600080fd5b506102f460048036038101906102ef9190613d73565b610aea565b6040516103019190614a6e565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c9190613e2f565b610afc565b005b34801561033f57600080fd5b50610348610be6565b6040516103559190614aa4565b60405180910390f35b34801561036a57600080fd5b5061038560048036038101906103809190613e06565b610c78565b60405161039291906149b5565b60405180910390f35b3480156103a757600080fd5b506103c260048036038101906103bd9190613cc9565b610cfd565b005b3480156103d057600080fd5b506103d9610e15565b6040516103e69190614e66565b60405180910390f35b3480156103fb57600080fd5b5061041660048036038101906104119190613b5e565b610e22565b005b34801561042457600080fd5b5061043f600480360381019061043a9190613bc3565b61108a565b005b34801561044d57600080fd5b5061046860048036038101906104639190613dc5565b6110ea565b005b34801561047657600080fd5b50610491600480360381019061048c9190613cc9565b6111f6565b60405161049e9190614e66565b60405180910390f35b3480156104b357600080fd5b506104bc61129b565b6040516104c99190614e66565b60405180910390f35b3480156104de57600080fd5b506104f960048036038101906104f49190613dc5565b6112a1565b005b34801561050757600080fd5b50610522600480360381019061051d9190613dc5565b6113ad565b005b34801561053057600080fd5b50610539611443565b6040516105469190614e66565b60405180910390f35b34801561055b57600080fd5b5061057660048036038101906105719190613bc3565b61144d565b005b34801561058457600080fd5b5061059f600480360381019061059a9190613d4a565b61146d565b005b3480156105ad57600080fd5b506105c860048036038101906105c39190613e06565b611579565b6040516105d59190614e66565b60405180910390f35b3480156105ea57600080fd5b506105f3611610565b6040516106009190614e66565b60405180910390f35b34801561061557600080fd5b5061061e611616565b60405161062b9190614e66565b60405180910390f35b34801561064057600080fd5b5061065b60048036038101906106569190613e06565b61161c565b60405161066891906149b5565b60405180910390f35b34801561067d57600080fd5b506106866116ce565b6040516106939190614a6e565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190613e06565b6116e5565b005b3480156106d157600080fd5b506106da6117f8565b6040516106e79190614e66565b60405180910390f35b3480156106fc57600080fd5b5061071760048036038101906107129190613b35565b6117fe565b6040516107249190614e66565b60405180910390f35b34801561073957600080fd5b506107426118b6565b60405161074f9190614e66565b60405180910390f35b34801561076457600080fd5b5061076d6118c0565b005b34801561077b57600080fd5b5061079660048036038101906107919190613dc5565b611948565b005b3480156107a457600080fd5b506107ad6119de565b005b3480156107bb57600080fd5b506107d660048036038101906107d19190613e06565b611aed565b6040516107e391906149b5565b60405180910390f35b3480156107f857600080fd5b50610801611b5b565b60405161080e91906149b5565b60405180910390f35b34801561082357600080fd5b5061082c611b85565b6040516108399190614aa4565b60405180910390f35b34801561084e57600080fd5b5061086960048036038101906108649190613b35565b611c17565b6040516108769190614e66565b60405180910390f35b61089960048036038101906108949190613e06565b611c60565b005b3480156108a757600080fd5b506108c260048036038101906108bd9190613c8d565b611d51565b005b3480156108d057600080fd5b506108eb60048036038101906108e69190613d05565b611ed2565b005b3480156108f957600080fd5b50610914600480360381019061090f9190613c12565b6120fe565b005b34801561092257600080fd5b5061092b612160565b6040516109389190614e66565b60405180910390f35b34801561094d57600080fd5b5061096860048036038101906109639190613dc5565b612166565b005b34801561097657600080fd5b50610991600480360381019061098c9190613e06565b612272565b60405161099e9190614aa4565b60405180910390f35b3480156109b357600080fd5b506109ce60048036038101906109c99190613b35565b61234e565b6040516109db9190614e66565b60405180910390f35b3480156109f057600080fd5b506109f9612397565b005b348015610a0757600080fd5b50610a1061243f565b604051610a1d9190614e66565b60405180910390f35b348015610a3257600080fd5b50610a3b612449565b604051610a489190614aa4565b60405180910390f35b348015610a5d57600080fd5b50610a786004803603810190610a739190613b87565b6124db565b604051610a859190614a6e565b60405180910390f35b348015610a9a57600080fd5b50610aa361256f565b604051610ab09190614e66565b60405180910390f35b348015610ac557600080fd5b50610ae06004803603810190610adb9190613b35565b612575565b005b600033905090565b6000610af58261266d565b9050919050565b610b04610ae2565b73ffffffffffffffffffffffffffffffffffffffff16610b22611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614610b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6f90614d86565b60405180910390fd5b60135460195410610bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb590614cc6565b60405180910390fd5b610bc882826126e7565b600160196000828254610bdb9190614f7e565b925050819055505050565b606060008054610bf59061519b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c219061519b565b8015610c6e5780601f10610c4357610100808354040283529160200191610c6e565b820191906000526020600020905b815481529060010190602001808311610c5157829003601f168201915b5050505050905090565b6000610c8382612781565b610cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb990614d66565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d088261161c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7090614de6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d98610ae2565b73ffffffffffffffffffffffffffffffffffffffff161480610dc75750610dc681610dc1610ae2565b6124db565b5b610e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfd90614ce6565b60405180910390fd5b610e1083836127ed565b505050565b6000600880549050905090565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b90614ba6565b60405180910390fd5b6000600c5447610eb49190614f7e565b90506000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b54600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610f469190615005565b610f509190614fd4565b610f5a919061505f565b90506000811415610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790614ca6565b60405180910390fd5b80600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610feb9190614f7e565b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600c5461103c9190614f7e565b600c8190555061104c83826128a6565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056838260405161107d9291906149d0565b60405180910390a1505050565b61109b611095610ae2565b8261299a565b6110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d190614e06565b60405180910390fd5b6110e5838383612a78565b505050565b6110f2610ae2565b73ffffffffffffffffffffffffffffffffffffffff16611110611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614611166576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115d90614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663938e3d7b826040518263ffffffff1660e01b81526004016111c19190614aa4565b600060405180830381600087803b1580156111db57600080fd5b505af11580156111ef573d6000803e3d6000fd5b5050505050565b6000611201836117fe565b8210611242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123990614ac6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60125481565b6112a9610ae2565b73ffffffffffffffffffffffffffffffffffffffff166112c7611b5b565b73ffffffffffffffffffffffffffffffffffffffff161461131d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131490614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166330176e13826040518263ffffffff1660e01b81526004016113789190614aa4565b600060405180830381600087803b15801561139257600080fd5b505af11580156113a6573d6000803e3d6000fd5b5050505050565b6113b5610ae2565b73ffffffffffffffffffffffffffffffffffffffff166113d3611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614611429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142090614d86565b60405180910390fd5b80601b908051906020019061143f9291906138e5565b5050565b6000600b54905090565b611468838383604051806020016040528060008152506120fe565b505050565b611475610ae2565b73ffffffffffffffffffffffffffffffffffffffff16611493611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146114e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e090614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3e00f31826040518263ffffffff1660e01b81526004016115449190614a89565b600060405180830381600087803b15801561155e57600080fd5b505af1158015611572573d6000803e3d6000fd5b5050505050565b6000611583610e15565b82106115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb90614e26565b60405180910390fd5b600882815481106115fe577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60105481565b60155481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bc90614d26565b60405180910390fd5b80915050919050565b6000601c60009054906101000a900460ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff166117058261161c565b73ffffffffffffffffffffffffffffffffffffffff161461175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290614e46565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d601554336040518363ffffffff1660e01b81526004016117ba929190614e81565b600060405180830381600087803b1580156117d457600080fd5b505af11580156117e8573d6000803e3d6000fd5b505050506117f581612cd4565b50565b60135481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561186f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186690614d06565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601854905090565b6118c8610ae2565b73ffffffffffffffffffffffffffffffffffffffff166118e6611b5b565b73ffffffffffffffffffffffffffffffffffffffff161461193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390614d86565b60405180910390fd5b6119466000612de5565b565b611950610ae2565b73ffffffffffffffffffffffffffffffffffffffff1661196e611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146119c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bb90614d86565b60405180910390fd5b80601a90805190602001906119da9291906138e5565b5050565b6119e6610ae2565b73ffffffffffffffffffffffffffffffffffffffff16611a04611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614611a5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5190614d86565b60405180910390fd5b60005b601780549050811015611aea57611ad760178281548110611aa7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610e22565b8080611ae2906151cd565b915050611a5d565b50565b6000600f8281548110611b29577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611b949061519b565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc09061519b565b8015611c0d5780601f10611be257610100808354040283529160200191611c0d565b820191906000526020600020905b815481529060010190602001808311611bf057829003601f168201915b5050505050905090565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601154811115611ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9c90614b86565b60405180910390fd5b80601454611cb39190615005565b341015611cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cec90614b66565b60405180910390fd5b601c60009054906101000a900460ff16611d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3b90614c26565b60405180910390fd5b611d4e81336126e7565b50565b611d59610ae2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbe90614c06565b60405180910390fd5b8060056000611dd4610ae2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e81610ae2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ec69190614a6e565b60405180910390a35050565b601154828290501115611f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1190614be6565b60405180910390fd5b60005b82829050811015611ff0573373ffffffffffffffffffffffffffffffffffffffff16611f87848484818110611f7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561161c565b73ffffffffffffffffffffffffffffffffffffffff1614611fdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd490614e46565b60405180910390fd5b8080611fe8906151cd565b915050611f1d565b50601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d838390506015546120409190615005565b336040518363ffffffff1660e01b815260040161205e929190614e81565b600060405180830381600087803b15801561207857600080fd5b505af115801561208c573d6000803e3d6000fd5b5050505060005b828290508110156120f9576120e68383838181106120da577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612cd4565b80806120f1906151cd565b915050612093565b505050565b61210f612109610ae2565b8361299a565b61214e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214590614e06565b60405180910390fd5b61215a84848484612eab565b50505050565b60145481565b61216e610ae2565b73ffffffffffffffffffffffffffffffffffffffff1661218c611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146121e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d990614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663750521f5826040518263ffffffff1660e01b815260040161223d9190614aa4565b600060405180830381600087803b15801561225757600080fd5b505af115801561226b573d6000803e3d6000fd5b5050505050565b606061227d82612781565b6122bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b390614dc6565b60405180910390fd5b601a80546122c99061519b565b80601f01602080910402602001604051908101604052809291908181526020018280546122f59061519b565b80156123425780601f1061231757610100808354040283529160200191612342565b820191906000526020600020905b81548152906001019060200180831161232557829003601f168201915b50505050509050919050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61239f610ae2565b73ffffffffffffffffffffffffffffffffffffffff166123bd611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614612413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240a90614d86565b60405180910390fd5b601c60009054906101000a900460ff1615601c60006101000a81548160ff021916908315150217905550565b6000600c54905090565b6060601b80546124589061519b565b80601f01602080910402602001604051908101604052809291908181526020018280546124849061519b565b80156124d15780601f106124a6576101008083540402835291602001916124d1565b820191906000526020600020905b8154815290600101906020018083116124b457829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60115481565b61257d610ae2565b73ffffffffffffffffffffffffffffffffffffffff1661259b611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e890614d86565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612661576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265890614b06565b60405180910390fd5b61266a81612de5565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126e057506126df82612f07565b5b9050919050565b601254826018546126f89190614f7e565b10612738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272f90614b46565b60405180910390fd5b60005b8281101561277c5761274f82601854612fe9565b6001601860008282546127629190614f7e565b925050819055508080612774906151cd565b91505061273b565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128608361161c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156128e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e090614c66565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161290f906149a0565b60006040518083038185875af1925050503d806000811461294c576040519150601f19603f3d011682016040523d82523d6000602084013e612951565b606091505b5050905080612995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298c90614c46565b60405180910390fd5b505050565b60006129a582612781565b6129e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129db90614c86565b60405180910390fd5b60006129ef8361161c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a5e57508373ffffffffffffffffffffffffffffffffffffffff16612a4684610c78565b73ffffffffffffffffffffffffffffffffffffffff16145b80612a6f5750612a6e81856124db565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612a988261161c565b73ffffffffffffffffffffffffffffffffffffffff1614612aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae590614da6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5590614bc6565b60405180910390fd5b612b69838383613007565b612b746000826127ed565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bc4919061505f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c1b9190614f7e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612cdf8261161c565b9050612ced81600084613007565b612cf86000836127ed565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d48919061505f565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612eb6848484612a78565b612ec284848484613017565b612f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef890614ae6565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612fd257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612fe25750612fe1826131ae565b5b9050919050565b613003828260405180602001604052806000815250613218565b5050565b613012838383613273565b505050565b60006130388473ffffffffffffffffffffffffffffffffffffffff16613387565b156131a1578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613061610ae2565b8786866040518563ffffffff1660e01b815260040161308394939291906149f9565b602060405180830381600087803b15801561309d57600080fd5b505af19250505080156130ce57506040513d601f19601f820116820180604052508101906130cb9190613d9c565b60015b613151573d80600081146130fe576040519150601f19603f3d011682016040523d82523d6000602084013e613103565b606091505b50600081511415613149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314090614ae6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131a6565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613222838361339a565b61322f6000848484613017565b61326e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326590614ae6565b60405180910390fd5b505050565b61327e838383613568565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132c1576132bc8161356d565b613300565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132ff576132fe83826135b6565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133435761333e81613723565b613382565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613381576133808282613866565b5b5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561340a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340190614d46565b60405180910390fd5b61341381612781565b15613453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344a90614b26565b60405180910390fd5b61345f60008383613007565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134af9190614f7e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016135c3846117fe565b6135cd919061505f565b90506000600760008481526020019081526020016000205490508181146136b2576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613737919061505f565b905060006009600084815260200190815260200160002054905060006008838154811061378d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106137d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061384a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613871836117fe565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546138f19061519b565b90600052602060002090601f016020900481019282613913576000855561395a565b82601f1061392c57805160ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395957825182559160200191906001019061393e565b5b509050613967919061396b565b5090565b5b8082111561398457600081600090555060010161396c565b5090565b600061399b61399684614edb565b614eaa565b9050828152602081018484840111156139b357600080fd5b6139be848285615159565b509392505050565b60006139d96139d484614f0b565b614eaa565b9050828152602081018484840111156139f157600080fd5b6139fc848285615159565b509392505050565b600081359050613a13816152e3565b92915050565b600081359050613a28816152fa565b92915050565b60008083601f840112613a4057600080fd5b8235905067ffffffffffffffff811115613a5957600080fd5b602083019150836020820283011115613a7157600080fd5b9250929050565b600081359050613a8781615311565b92915050565b600081359050613a9c81615328565b92915050565b600081359050613ab18161533f565b92915050565b600081519050613ac68161533f565b92915050565b600082601f830112613add57600080fd5b8135613aed848260208601613988565b91505092915050565b600082601f830112613b0757600080fd5b8135613b178482602086016139c6565b91505092915050565b600081359050613b2f81615356565b92915050565b600060208284031215613b4757600080fd5b6000613b5584828501613a04565b91505092915050565b600060208284031215613b7057600080fd5b6000613b7e84828501613a19565b91505092915050565b60008060408385031215613b9a57600080fd5b6000613ba885828601613a04565b9250506020613bb985828601613a04565b9150509250929050565b600080600060608486031215613bd857600080fd5b6000613be686828701613a04565b9350506020613bf786828701613a04565b9250506040613c0886828701613b20565b9150509250925092565b60008060008060808587031215613c2857600080fd5b6000613c3687828801613a04565b9450506020613c4787828801613a04565b9350506040613c5887828801613b20565b925050606085013567ffffffffffffffff811115613c7557600080fd5b613c8187828801613acc565b91505092959194509250565b60008060408385031215613ca057600080fd5b6000613cae85828601613a04565b9250506020613cbf85828601613a78565b9150509250929050565b60008060408385031215613cdc57600080fd5b6000613cea85828601613a04565b9250506020613cfb85828601613b20565b9150509250929050565b60008060208385031215613d1857600080fd5b600083013567ffffffffffffffff811115613d3257600080fd5b613d3e85828601613a2e565b92509250509250929050565b600060208284031215613d5c57600080fd5b6000613d6a84828501613a8d565b91505092915050565b600060208284031215613d8557600080fd5b6000613d9384828501613aa2565b91505092915050565b600060208284031215613dae57600080fd5b6000613dbc84828501613ab7565b91505092915050565b600060208284031215613dd757600080fd5b600082013567ffffffffffffffff811115613df157600080fd5b613dfd84828501613af6565b91505092915050565b600060208284031215613e1857600080fd5b6000613e2684828501613b20565b91505092915050565b60008060408385031215613e4257600080fd5b6000613e5085828601613b20565b9250506020613e6185828601613a04565b9150509250929050565b613e7481615123565b82525050565b613e8381615093565b82525050565b613e92816150b7565b82525050565b613ea1816150c3565b82525050565b6000613eb282614f3b565b613ebc8185614f51565b9350613ecc818560208601615168565b613ed5816152d2565b840191505092915050565b6000613eeb82614f46565b613ef58185614f6d565b9350613f05818560208601615168565b613f0e816152d2565b840191505092915050565b6000613f26602b83614f6d565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613f8c603283614f6d565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613ff2602683614f6d565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614058601c83614f6d565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614098602083614f6d565b91507f45786365656473206d6178696d756d206e756d626572206f6620746f6b656e736000830152602082019050919050565b60006140d8601983614f6d565b91507f496e76616c696420457468657220616d6f756e742073656e74000000000000006000830152602082019050919050565b6000614118602a83614f6d565b91507f4578636565647320746865206d6178696d756d20616d6f756e7420746f206d6960008301527f6e74206174206f6e6365000000000000000000000000000000000000000000006020830152604082019050919050565b600061417e602683614f6d565b91507f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008301527f73686172657300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141e4602483614f6d565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061424a602a83614f6d565b91507f4578636565647320746865206d6178696d756d20616d6f756e7420746f206f7060008301527f656e206174206f6e6365000000000000000000000000000000000000000000006020830152604082019050919050565b60006142b0601983614f6d565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006142f0601283614f6d565b91507f53616c65206973206e6f742061637469766500000000000000000000000000006000830152602082019050919050565b6000614330603a83614f6d565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000614396601d83614f6d565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006143d6602c83614f6d565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061443c602b83614f6d565b91507f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008301527f647565207061796d656e740000000000000000000000000000000000000000006020830152604082019050919050565b60006144a2602983614f6d565b91507f45786365656473206d6178696d756d206e756d626572206f662072657365727660008301527f656420746f6b656e7300000000000000000000000000000000000000000000006020830152604082019050919050565b6000614508603883614f6d565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b600061456e602a83614f6d565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006145d4602983614f6d565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061463a602083614f6d565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b600061467a602c83614f6d565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006146e0602083614f6d565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614720602983614f6d565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614786602f83614f6d565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006147ec602183614f6d565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614852600083614f62565b9150600082019050919050565b600061486c603183614f6d565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006148d2602c83614f6d565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614938602583614f6d565b91507f43616c6c6572206973206e6f7420746865206f776e6572206f6620746869732060008301527f746f6b656e0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b61499a81615119565b82525050565b60006149ab82614845565b9150819050919050565b60006020820190506149ca6000830184613e7a565b92915050565b60006040820190506149e56000830185613e6b565b6149f26020830184614991565b9392505050565b6000608082019050614a0e6000830187613e7a565b614a1b6020830186613e7a565b614a286040830185614991565b8181036060830152614a3a8184613ea7565b905095945050505050565b6000604082019050614a5a6000830185613e7a565b614a676020830184614991565b9392505050565b6000602082019050614a836000830184613e89565b92915050565b6000602082019050614a9e6000830184613e98565b92915050565b60006020820190508181036000830152614abe8184613ee0565b905092915050565b60006020820190508181036000830152614adf81613f19565b9050919050565b60006020820190508181036000830152614aff81613f7f565b9050919050565b60006020820190508181036000830152614b1f81613fe5565b9050919050565b60006020820190508181036000830152614b3f8161404b565b9050919050565b60006020820190508181036000830152614b5f8161408b565b9050919050565b60006020820190508181036000830152614b7f816140cb565b9050919050565b60006020820190508181036000830152614b9f8161410b565b9050919050565b60006020820190508181036000830152614bbf81614171565b9050919050565b60006020820190508181036000830152614bdf816141d7565b9050919050565b60006020820190508181036000830152614bff8161423d565b9050919050565b60006020820190508181036000830152614c1f816142a3565b9050919050565b60006020820190508181036000830152614c3f816142e3565b9050919050565b60006020820190508181036000830152614c5f81614323565b9050919050565b60006020820190508181036000830152614c7f81614389565b9050919050565b60006020820190508181036000830152614c9f816143c9565b9050919050565b60006020820190508181036000830152614cbf8161442f565b9050919050565b60006020820190508181036000830152614cdf81614495565b9050919050565b60006020820190508181036000830152614cff816144fb565b9050919050565b60006020820190508181036000830152614d1f81614561565b9050919050565b60006020820190508181036000830152614d3f816145c7565b9050919050565b60006020820190508181036000830152614d5f8161462d565b9050919050565b60006020820190508181036000830152614d7f8161466d565b9050919050565b60006020820190508181036000830152614d9f816146d3565b9050919050565b60006020820190508181036000830152614dbf81614713565b9050919050565b60006020820190508181036000830152614ddf81614779565b9050919050565b60006020820190508181036000830152614dff816147df565b9050919050565b60006020820190508181036000830152614e1f8161485f565b9050919050565b60006020820190508181036000830152614e3f816148c5565b9050919050565b60006020820190508181036000830152614e5f8161492b565b9050919050565b6000602082019050614e7b6000830184614991565b92915050565b6000604082019050614e966000830185614991565b614ea36020830184613e7a565b9392505050565b6000604051905081810181811067ffffffffffffffff82111715614ed157614ed06152a3565b5b8060405250919050565b600067ffffffffffffffff821115614ef657614ef56152a3565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115614f2657614f256152a3565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000614f8982615119565b9150614f9483615119565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fc957614fc8615216565b5b828201905092915050565b6000614fdf82615119565b9150614fea83615119565b925082614ffa57614ff9615245565b5b828204905092915050565b600061501082615119565b915061501b83615119565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561505457615053615216565b5b828202905092915050565b600061506a82615119565b915061507583615119565b92508282101561508857615087615216565b5b828203905092915050565b600061509e826150f9565b9050919050565b60006150b0826150f9565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061512e82615135565b9050919050565b600061514082615147565b9050919050565b6000615152826150f9565b9050919050565b82818337600083830152505050565b60005b8381101561518657808201518184015260208101905061516b565b83811115615195576000848401525b50505050565b600060028204905060018216806151b357607f821691505b602082108114156151c7576151c6615274565b5b50919050565b60006151d882615119565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561520b5761520a615216565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6152ec81615093565b81146152f757600080fd5b50565b615303816150a5565b811461530e57600080fd5b50565b61531a816150b7565b811461532557600080fd5b50565b615331816150c3565b811461533c57600080fd5b50565b615348816150cd565b811461535357600080fd5b50565b61535f81615119565b811461536a57600080fd5b5056fea2646970667358221220565e921e61fc7379ff64624151007cc9781684fa1109e030f38bb976e9a4fcdc64736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000089a0c9e75f929c5c5958ae5873a992a06a071dc4000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6d657461736b696e7a2e6d7970696e6174612e636c6f75642f697066732f516d507737544a4275797933795376363859795137397550663531694c575435457a473361675a6a51396153437600000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000008530e5b5621119cb3e3ae324e6a6e63014a6ad870000000000000000000000001704eec36042e868bfb9bf70658877b1e2243be000000000000000000000000018dcc4115c4ed560de550fd421b37372f5528133000000000000000000000000ba6e1c26be2f8b46d9e7ab7573b99921ee81acf5000000000000000000000000a3b52f43db89218ed2e0f448a623f038e4c544ff00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x6080604052600436106102815760003560e01c806370a082311161014f578063a2d45bb3116100c1578063de8b51e11161007a578063de8b51e1146109e4578063e33b7de3146109fb578063e8a3d48514610a26578063e985e9c514610a51578063f0292a0314610a8e578063f2fde38b14610ab9576102c8565b8063a2d45bb3146108c4578063b88d4fde146108ed578063c002d23d14610916578063c5b8426214610941578063c87b56dd1461096a578063ce7c2ac2146109a7576102c8565b80638b83209b116101135780638b83209b146107af5780638da5cb5b146107ec57806395d89b41146108175780639852595c14610842578063a0712d681461087f578063a22cb4651461089b576102c8565b806370a08231146106f0578063714cff561461072d578063715018a6146107585780637fd6a22b1461076f578063853828b614610798576102c8565b806332fac36f116101f35780635df9115e116101ac5780635df9115e146105de5780635f74da5c146106095780636352211e1461063457806368428a1b14610671578063690e7c091461069c5780636ba90c6e146106c5576102c8565b806332fac36f146104d257806335d09022146104fb5780633a98ef391461052457806342842e0e1461054f578063429ad0e9146105785780634f6ccce7146105a1576102c8565b806318160ddd1161024557806318160ddd146103c457806319165587146103ef57806323b872dd146104185780632cd83669146104415780632f745c591461046a57806332cb6b0c146104a7576102c8565b806301ffc9a7146102cd57806303339bcb1461030a57806306fdde0314610333578063081812fc1461035e578063095ea7b31461039b576102c8565b366102c8577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102af610ae2565b346040516102be929190614a45565b60405180910390a1005b600080fd5b3480156102d957600080fd5b506102f460048036038101906102ef9190613d73565b610aea565b6040516103019190614a6e565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c9190613e2f565b610afc565b005b34801561033f57600080fd5b50610348610be6565b6040516103559190614aa4565b60405180910390f35b34801561036a57600080fd5b5061038560048036038101906103809190613e06565b610c78565b60405161039291906149b5565b60405180910390f35b3480156103a757600080fd5b506103c260048036038101906103bd9190613cc9565b610cfd565b005b3480156103d057600080fd5b506103d9610e15565b6040516103e69190614e66565b60405180910390f35b3480156103fb57600080fd5b5061041660048036038101906104119190613b5e565b610e22565b005b34801561042457600080fd5b5061043f600480360381019061043a9190613bc3565b61108a565b005b34801561044d57600080fd5b5061046860048036038101906104639190613dc5565b6110ea565b005b34801561047657600080fd5b50610491600480360381019061048c9190613cc9565b6111f6565b60405161049e9190614e66565b60405180910390f35b3480156104b357600080fd5b506104bc61129b565b6040516104c99190614e66565b60405180910390f35b3480156104de57600080fd5b506104f960048036038101906104f49190613dc5565b6112a1565b005b34801561050757600080fd5b50610522600480360381019061051d9190613dc5565b6113ad565b005b34801561053057600080fd5b50610539611443565b6040516105469190614e66565b60405180910390f35b34801561055b57600080fd5b5061057660048036038101906105719190613bc3565b61144d565b005b34801561058457600080fd5b5061059f600480360381019061059a9190613d4a565b61146d565b005b3480156105ad57600080fd5b506105c860048036038101906105c39190613e06565b611579565b6040516105d59190614e66565b60405180910390f35b3480156105ea57600080fd5b506105f3611610565b6040516106009190614e66565b60405180910390f35b34801561061557600080fd5b5061061e611616565b60405161062b9190614e66565b60405180910390f35b34801561064057600080fd5b5061065b60048036038101906106569190613e06565b61161c565b60405161066891906149b5565b60405180910390f35b34801561067d57600080fd5b506106866116ce565b6040516106939190614a6e565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190613e06565b6116e5565b005b3480156106d157600080fd5b506106da6117f8565b6040516106e79190614e66565b60405180910390f35b3480156106fc57600080fd5b5061071760048036038101906107129190613b35565b6117fe565b6040516107249190614e66565b60405180910390f35b34801561073957600080fd5b506107426118b6565b60405161074f9190614e66565b60405180910390f35b34801561076457600080fd5b5061076d6118c0565b005b34801561077b57600080fd5b5061079660048036038101906107919190613dc5565b611948565b005b3480156107a457600080fd5b506107ad6119de565b005b3480156107bb57600080fd5b506107d660048036038101906107d19190613e06565b611aed565b6040516107e391906149b5565b60405180910390f35b3480156107f857600080fd5b50610801611b5b565b60405161080e91906149b5565b60405180910390f35b34801561082357600080fd5b5061082c611b85565b6040516108399190614aa4565b60405180910390f35b34801561084e57600080fd5b5061086960048036038101906108649190613b35565b611c17565b6040516108769190614e66565b60405180910390f35b61089960048036038101906108949190613e06565b611c60565b005b3480156108a757600080fd5b506108c260048036038101906108bd9190613c8d565b611d51565b005b3480156108d057600080fd5b506108eb60048036038101906108e69190613d05565b611ed2565b005b3480156108f957600080fd5b50610914600480360381019061090f9190613c12565b6120fe565b005b34801561092257600080fd5b5061092b612160565b6040516109389190614e66565b60405180910390f35b34801561094d57600080fd5b5061096860048036038101906109639190613dc5565b612166565b005b34801561097657600080fd5b50610991600480360381019061098c9190613e06565b612272565b60405161099e9190614aa4565b60405180910390f35b3480156109b357600080fd5b506109ce60048036038101906109c99190613b35565b61234e565b6040516109db9190614e66565b60405180910390f35b3480156109f057600080fd5b506109f9612397565b005b348015610a0757600080fd5b50610a1061243f565b604051610a1d9190614e66565b60405180910390f35b348015610a3257600080fd5b50610a3b612449565b604051610a489190614aa4565b60405180910390f35b348015610a5d57600080fd5b50610a786004803603810190610a739190613b87565b6124db565b604051610a859190614a6e565b60405180910390f35b348015610a9a57600080fd5b50610aa361256f565b604051610ab09190614e66565b60405180910390f35b348015610ac557600080fd5b50610ae06004803603810190610adb9190613b35565b612575565b005b600033905090565b6000610af58261266d565b9050919050565b610b04610ae2565b73ffffffffffffffffffffffffffffffffffffffff16610b22611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614610b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6f90614d86565b60405180910390fd5b60135460195410610bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb590614cc6565b60405180910390fd5b610bc882826126e7565b600160196000828254610bdb9190614f7e565b925050819055505050565b606060008054610bf59061519b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c219061519b565b8015610c6e5780601f10610c4357610100808354040283529160200191610c6e565b820191906000526020600020905b815481529060010190602001808311610c5157829003601f168201915b5050505050905090565b6000610c8382612781565b610cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb990614d66565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d088261161c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7090614de6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d98610ae2565b73ffffffffffffffffffffffffffffffffffffffff161480610dc75750610dc681610dc1610ae2565b6124db565b5b610e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfd90614ce6565b60405180910390fd5b610e1083836127ed565b505050565b6000600880549050905090565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b90614ba6565b60405180910390fd5b6000600c5447610eb49190614f7e565b90506000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b54600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610f469190615005565b610f509190614fd4565b610f5a919061505f565b90506000811415610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790614ca6565b60405180910390fd5b80600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610feb9190614f7e565b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600c5461103c9190614f7e565b600c8190555061104c83826128a6565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056838260405161107d9291906149d0565b60405180910390a1505050565b61109b611095610ae2565b8261299a565b6110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d190614e06565b60405180910390fd5b6110e5838383612a78565b505050565b6110f2610ae2565b73ffffffffffffffffffffffffffffffffffffffff16611110611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614611166576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115d90614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663938e3d7b826040518263ffffffff1660e01b81526004016111c19190614aa4565b600060405180830381600087803b1580156111db57600080fd5b505af11580156111ef573d6000803e3d6000fd5b5050505050565b6000611201836117fe565b8210611242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123990614ac6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60125481565b6112a9610ae2565b73ffffffffffffffffffffffffffffffffffffffff166112c7611b5b565b73ffffffffffffffffffffffffffffffffffffffff161461131d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131490614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166330176e13826040518263ffffffff1660e01b81526004016113789190614aa4565b600060405180830381600087803b15801561139257600080fd5b505af11580156113a6573d6000803e3d6000fd5b5050505050565b6113b5610ae2565b73ffffffffffffffffffffffffffffffffffffffff166113d3611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614611429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142090614d86565b60405180910390fd5b80601b908051906020019061143f9291906138e5565b5050565b6000600b54905090565b611468838383604051806020016040528060008152506120fe565b505050565b611475610ae2565b73ffffffffffffffffffffffffffffffffffffffff16611493611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146114e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e090614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3e00f31826040518263ffffffff1660e01b81526004016115449190614a89565b600060405180830381600087803b15801561155e57600080fd5b505af1158015611572573d6000803e3d6000fd5b5050505050565b6000611583610e15565b82106115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb90614e26565b60405180910390fd5b600882815481106115fe577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60105481565b60155481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bc90614d26565b60405180910390fd5b80915050919050565b6000601c60009054906101000a900460ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff166117058261161c565b73ffffffffffffffffffffffffffffffffffffffff161461175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290614e46565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d601554336040518363ffffffff1660e01b81526004016117ba929190614e81565b600060405180830381600087803b1580156117d457600080fd5b505af11580156117e8573d6000803e3d6000fd5b505050506117f581612cd4565b50565b60135481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561186f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186690614d06565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601854905090565b6118c8610ae2565b73ffffffffffffffffffffffffffffffffffffffff166118e6611b5b565b73ffffffffffffffffffffffffffffffffffffffff161461193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390614d86565b60405180910390fd5b6119466000612de5565b565b611950610ae2565b73ffffffffffffffffffffffffffffffffffffffff1661196e611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146119c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bb90614d86565b60405180910390fd5b80601a90805190602001906119da9291906138e5565b5050565b6119e6610ae2565b73ffffffffffffffffffffffffffffffffffffffff16611a04611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614611a5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5190614d86565b60405180910390fd5b60005b601780549050811015611aea57611ad760178281548110611aa7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610e22565b8080611ae2906151cd565b915050611a5d565b50565b6000600f8281548110611b29577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611b949061519b565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc09061519b565b8015611c0d5780601f10611be257610100808354040283529160200191611c0d565b820191906000526020600020905b815481529060010190602001808311611bf057829003601f168201915b5050505050905090565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601154811115611ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9c90614b86565b60405180910390fd5b80601454611cb39190615005565b341015611cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cec90614b66565b60405180910390fd5b601c60009054906101000a900460ff16611d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3b90614c26565b60405180910390fd5b611d4e81336126e7565b50565b611d59610ae2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbe90614c06565b60405180910390fd5b8060056000611dd4610ae2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e81610ae2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ec69190614a6e565b60405180910390a35050565b601154828290501115611f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1190614be6565b60405180910390fd5b60005b82829050811015611ff0573373ffffffffffffffffffffffffffffffffffffffff16611f87848484818110611f7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561161c565b73ffffffffffffffffffffffffffffffffffffffff1614611fdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd490614e46565b60405180910390fd5b8080611fe8906151cd565b915050611f1d565b50601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d838390506015546120409190615005565b336040518363ffffffff1660e01b815260040161205e929190614e81565b600060405180830381600087803b15801561207857600080fd5b505af115801561208c573d6000803e3d6000fd5b5050505060005b828290508110156120f9576120e68383838181106120da577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612cd4565b80806120f1906151cd565b915050612093565b505050565b61210f612109610ae2565b8361299a565b61214e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214590614e06565b60405180910390fd5b61215a84848484612eab565b50505050565b60145481565b61216e610ae2565b73ffffffffffffffffffffffffffffffffffffffff1661218c611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146121e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d990614d86565b60405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663750521f5826040518263ffffffff1660e01b815260040161223d9190614aa4565b600060405180830381600087803b15801561225757600080fd5b505af115801561226b573d6000803e3d6000fd5b5050505050565b606061227d82612781565b6122bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b390614dc6565b60405180910390fd5b601a80546122c99061519b565b80601f01602080910402602001604051908101604052809291908181526020018280546122f59061519b565b80156123425780601f1061231757610100808354040283529160200191612342565b820191906000526020600020905b81548152906001019060200180831161232557829003601f168201915b50505050509050919050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61239f610ae2565b73ffffffffffffffffffffffffffffffffffffffff166123bd611b5b565b73ffffffffffffffffffffffffffffffffffffffff1614612413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240a90614d86565b60405180910390fd5b601c60009054906101000a900460ff1615601c60006101000a81548160ff021916908315150217905550565b6000600c54905090565b6060601b80546124589061519b565b80601f01602080910402602001604051908101604052809291908181526020018280546124849061519b565b80156124d15780601f106124a6576101008083540402835291602001916124d1565b820191906000526020600020905b8154815290600101906020018083116124b457829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60115481565b61257d610ae2565b73ffffffffffffffffffffffffffffffffffffffff1661259b611b5b565b73ffffffffffffffffffffffffffffffffffffffff16146125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e890614d86565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612661576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265890614b06565b60405180910390fd5b61266a81612de5565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126e057506126df82612f07565b5b9050919050565b601254826018546126f89190614f7e565b10612738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272f90614b46565b60405180910390fd5b60005b8281101561277c5761274f82601854612fe9565b6001601860008282546127629190614f7e565b925050819055508080612774906151cd565b91505061273b565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128608361161c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156128e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e090614c66565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161290f906149a0565b60006040518083038185875af1925050503d806000811461294c576040519150601f19603f3d011682016040523d82523d6000602084013e612951565b606091505b5050905080612995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298c90614c46565b60405180910390fd5b505050565b60006129a582612781565b6129e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129db90614c86565b60405180910390fd5b60006129ef8361161c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a5e57508373ffffffffffffffffffffffffffffffffffffffff16612a4684610c78565b73ffffffffffffffffffffffffffffffffffffffff16145b80612a6f5750612a6e81856124db565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612a988261161c565b73ffffffffffffffffffffffffffffffffffffffff1614612aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae590614da6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5590614bc6565b60405180910390fd5b612b69838383613007565b612b746000826127ed565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bc4919061505f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c1b9190614f7e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612cdf8261161c565b9050612ced81600084613007565b612cf86000836127ed565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d48919061505f565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612eb6848484612a78565b612ec284848484613017565b612f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef890614ae6565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612fd257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612fe25750612fe1826131ae565b5b9050919050565b613003828260405180602001604052806000815250613218565b5050565b613012838383613273565b505050565b60006130388473ffffffffffffffffffffffffffffffffffffffff16613387565b156131a1578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613061610ae2565b8786866040518563ffffffff1660e01b815260040161308394939291906149f9565b602060405180830381600087803b15801561309d57600080fd5b505af19250505080156130ce57506040513d601f19601f820116820180604052508101906130cb9190613d9c565b60015b613151573d80600081146130fe576040519150601f19603f3d011682016040523d82523d6000602084013e613103565b606091505b50600081511415613149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314090614ae6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131a6565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613222838361339a565b61322f6000848484613017565b61326e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326590614ae6565b60405180910390fd5b505050565b61327e838383613568565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132c1576132bc8161356d565b613300565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132ff576132fe83826135b6565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133435761333e81613723565b613382565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613381576133808282613866565b5b5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561340a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340190614d46565b60405180910390fd5b61341381612781565b15613453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344a90614b26565b60405180910390fd5b61345f60008383613007565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134af9190614f7e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016135c3846117fe565b6135cd919061505f565b90506000600760008481526020019081526020016000205490508181146136b2576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613737919061505f565b905060006009600084815260200190815260200160002054905060006008838154811061378d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106137d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061384a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613871836117fe565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546138f19061519b565b90600052602060002090601f016020900481019282613913576000855561395a565b82601f1061392c57805160ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395957825182559160200191906001019061393e565b5b509050613967919061396b565b5090565b5b8082111561398457600081600090555060010161396c565b5090565b600061399b61399684614edb565b614eaa565b9050828152602081018484840111156139b357600080fd5b6139be848285615159565b509392505050565b60006139d96139d484614f0b565b614eaa565b9050828152602081018484840111156139f157600080fd5b6139fc848285615159565b509392505050565b600081359050613a13816152e3565b92915050565b600081359050613a28816152fa565b92915050565b60008083601f840112613a4057600080fd5b8235905067ffffffffffffffff811115613a5957600080fd5b602083019150836020820283011115613a7157600080fd5b9250929050565b600081359050613a8781615311565b92915050565b600081359050613a9c81615328565b92915050565b600081359050613ab18161533f565b92915050565b600081519050613ac68161533f565b92915050565b600082601f830112613add57600080fd5b8135613aed848260208601613988565b91505092915050565b600082601f830112613b0757600080fd5b8135613b178482602086016139c6565b91505092915050565b600081359050613b2f81615356565b92915050565b600060208284031215613b4757600080fd5b6000613b5584828501613a04565b91505092915050565b600060208284031215613b7057600080fd5b6000613b7e84828501613a19565b91505092915050565b60008060408385031215613b9a57600080fd5b6000613ba885828601613a04565b9250506020613bb985828601613a04565b9150509250929050565b600080600060608486031215613bd857600080fd5b6000613be686828701613a04565b9350506020613bf786828701613a04565b9250506040613c0886828701613b20565b9150509250925092565b60008060008060808587031215613c2857600080fd5b6000613c3687828801613a04565b9450506020613c4787828801613a04565b9350506040613c5887828801613b20565b925050606085013567ffffffffffffffff811115613c7557600080fd5b613c8187828801613acc565b91505092959194509250565b60008060408385031215613ca057600080fd5b6000613cae85828601613a04565b9250506020613cbf85828601613a78565b9150509250929050565b60008060408385031215613cdc57600080fd5b6000613cea85828601613a04565b9250506020613cfb85828601613b20565b9150509250929050565b60008060208385031215613d1857600080fd5b600083013567ffffffffffffffff811115613d3257600080fd5b613d3e85828601613a2e565b92509250509250929050565b600060208284031215613d5c57600080fd5b6000613d6a84828501613a8d565b91505092915050565b600060208284031215613d8557600080fd5b6000613d9384828501613aa2565b91505092915050565b600060208284031215613dae57600080fd5b6000613dbc84828501613ab7565b91505092915050565b600060208284031215613dd757600080fd5b600082013567ffffffffffffffff811115613df157600080fd5b613dfd84828501613af6565b91505092915050565b600060208284031215613e1857600080fd5b6000613e2684828501613b20565b91505092915050565b60008060408385031215613e4257600080fd5b6000613e5085828601613b20565b9250506020613e6185828601613a04565b9150509250929050565b613e7481615123565b82525050565b613e8381615093565b82525050565b613e92816150b7565b82525050565b613ea1816150c3565b82525050565b6000613eb282614f3b565b613ebc8185614f51565b9350613ecc818560208601615168565b613ed5816152d2565b840191505092915050565b6000613eeb82614f46565b613ef58185614f6d565b9350613f05818560208601615168565b613f0e816152d2565b840191505092915050565b6000613f26602b83614f6d565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613f8c603283614f6d565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613ff2602683614f6d565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614058601c83614f6d565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614098602083614f6d565b91507f45786365656473206d6178696d756d206e756d626572206f6620746f6b656e736000830152602082019050919050565b60006140d8601983614f6d565b91507f496e76616c696420457468657220616d6f756e742073656e74000000000000006000830152602082019050919050565b6000614118602a83614f6d565b91507f4578636565647320746865206d6178696d756d20616d6f756e7420746f206d6960008301527f6e74206174206f6e6365000000000000000000000000000000000000000000006020830152604082019050919050565b600061417e602683614f6d565b91507f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008301527f73686172657300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141e4602483614f6d565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061424a602a83614f6d565b91507f4578636565647320746865206d6178696d756d20616d6f756e7420746f206f7060008301527f656e206174206f6e6365000000000000000000000000000000000000000000006020830152604082019050919050565b60006142b0601983614f6d565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006142f0601283614f6d565b91507f53616c65206973206e6f742061637469766500000000000000000000000000006000830152602082019050919050565b6000614330603a83614f6d565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000614396601d83614f6d565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006143d6602c83614f6d565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061443c602b83614f6d565b91507f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008301527f647565207061796d656e740000000000000000000000000000000000000000006020830152604082019050919050565b60006144a2602983614f6d565b91507f45786365656473206d6178696d756d206e756d626572206f662072657365727660008301527f656420746f6b656e7300000000000000000000000000000000000000000000006020830152604082019050919050565b6000614508603883614f6d565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b600061456e602a83614f6d565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006145d4602983614f6d565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061463a602083614f6d565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b600061467a602c83614f6d565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006146e0602083614f6d565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614720602983614f6d565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614786602f83614f6d565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006147ec602183614f6d565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614852600083614f62565b9150600082019050919050565b600061486c603183614f6d565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006148d2602c83614f6d565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614938602583614f6d565b91507f43616c6c6572206973206e6f7420746865206f776e6572206f6620746869732060008301527f746f6b656e0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b61499a81615119565b82525050565b60006149ab82614845565b9150819050919050565b60006020820190506149ca6000830184613e7a565b92915050565b60006040820190506149e56000830185613e6b565b6149f26020830184614991565b9392505050565b6000608082019050614a0e6000830187613e7a565b614a1b6020830186613e7a565b614a286040830185614991565b8181036060830152614a3a8184613ea7565b905095945050505050565b6000604082019050614a5a6000830185613e7a565b614a676020830184614991565b9392505050565b6000602082019050614a836000830184613e89565b92915050565b6000602082019050614a9e6000830184613e98565b92915050565b60006020820190508181036000830152614abe8184613ee0565b905092915050565b60006020820190508181036000830152614adf81613f19565b9050919050565b60006020820190508181036000830152614aff81613f7f565b9050919050565b60006020820190508181036000830152614b1f81613fe5565b9050919050565b60006020820190508181036000830152614b3f8161404b565b9050919050565b60006020820190508181036000830152614b5f8161408b565b9050919050565b60006020820190508181036000830152614b7f816140cb565b9050919050565b60006020820190508181036000830152614b9f8161410b565b9050919050565b60006020820190508181036000830152614bbf81614171565b9050919050565b60006020820190508181036000830152614bdf816141d7565b9050919050565b60006020820190508181036000830152614bff8161423d565b9050919050565b60006020820190508181036000830152614c1f816142a3565b9050919050565b60006020820190508181036000830152614c3f816142e3565b9050919050565b60006020820190508181036000830152614c5f81614323565b9050919050565b60006020820190508181036000830152614c7f81614389565b9050919050565b60006020820190508181036000830152614c9f816143c9565b9050919050565b60006020820190508181036000830152614cbf8161442f565b9050919050565b60006020820190508181036000830152614cdf81614495565b9050919050565b60006020820190508181036000830152614cff816144fb565b9050919050565b60006020820190508181036000830152614d1f81614561565b9050919050565b60006020820190508181036000830152614d3f816145c7565b9050919050565b60006020820190508181036000830152614d5f8161462d565b9050919050565b60006020820190508181036000830152614d7f8161466d565b9050919050565b60006020820190508181036000830152614d9f816146d3565b9050919050565b60006020820190508181036000830152614dbf81614713565b9050919050565b60006020820190508181036000830152614ddf81614779565b9050919050565b60006020820190508181036000830152614dff816147df565b9050919050565b60006020820190508181036000830152614e1f8161485f565b9050919050565b60006020820190508181036000830152614e3f816148c5565b9050919050565b60006020820190508181036000830152614e5f8161492b565b9050919050565b6000602082019050614e7b6000830184614991565b92915050565b6000604082019050614e966000830185614991565b614ea36020830184613e7a565b9392505050565b6000604051905081810181811067ffffffffffffffff82111715614ed157614ed06152a3565b5b8060405250919050565b600067ffffffffffffffff821115614ef657614ef56152a3565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115614f2657614f256152a3565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000614f8982615119565b9150614f9483615119565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fc957614fc8615216565b5b828201905092915050565b6000614fdf82615119565b9150614fea83615119565b925082614ffa57614ff9615245565b5b828204905092915050565b600061501082615119565b915061501b83615119565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561505457615053615216565b5b828202905092915050565b600061506a82615119565b915061507583615119565b92508282101561508857615087615216565b5b828203905092915050565b600061509e826150f9565b9050919050565b60006150b0826150f9565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061512e82615135565b9050919050565b600061514082615147565b9050919050565b6000615152826150f9565b9050919050565b82818337600083830152505050565b60005b8381101561518657808201518184015260208101905061516b565b83811115615195576000848401525b50505050565b600060028204905060018216806151b357607f821691505b602082108114156151c7576151c6615274565b5b50919050565b60006151d882615119565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561520b5761520a615216565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6152ec81615093565b81146152f757600080fd5b50565b615303816150a5565b811461530e57600080fd5b50565b61531a816150b7565b811461532557600080fd5b50565b615331816150c3565b811461533c57600080fd5b50565b615348816150cd565b811461535357600080fd5b50565b61535f81615119565b811461536a57600080fd5b5056fea2646970667358221220565e921e61fc7379ff64624151007cc9781684fa1109e030f38bb976e9a4fcdc64736f6c63430008000033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000089a0c9e75f929c5c5958ae5873a992a06a071dc4000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6d657461736b696e7a2e6d7970696e6174612e636c6f75642f697066732f516d507737544a4275797933795376363859795137397550663531694c575435457a473361675a6a51396153437600000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000008530e5b5621119cb3e3ae324e6a6e63014a6ad870000000000000000000000001704eec36042e868bfb9bf70658877b1e2243be000000000000000000000000018dcc4115c4ed560de550fd421b37372f5528133000000000000000000000000ba6e1c26be2f8b46d9e7ab7573b99921ee81acf5000000000000000000000000a3b52f43db89218ed2e0f448a623f038e4c544ff00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : packzURI (string): https://metaskinz.mypinata.cloud/ipfs/QmPw7TJBuyy3ySv68YyQ79uPf51iLWT5EzG3agZjQ9aSCv
Arg [1] : traitzAddress (address): 0x89A0c9e75F929c5c5958ae5873a992a06a071Dc4
Arg [2] : payees (address[]): 0x8530e5B5621119CB3e3Ae324e6A6e63014A6aD87,0x1704eeC36042E868BFB9bf70658877b1e2243Be0,0x18DCC4115c4ED560dE550Fd421b37372f5528133,0xbA6E1C26bE2F8b46D9e7ab7573b99921Ee81AcF5,0xA3b52F43Db89218Ed2E0F448a623f038E4c544Ff
Arg [3] : shares (uint256[]): 5,2,50,33,10

-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000089a0c9e75f929c5c5958ae5873a992a06a071dc4
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [5] : 68747470733a2f2f6d657461736b696e7a2e6d7970696e6174612e636c6f7564
Arg [6] : 2f697066732f516d507737544a42757979337953763638597951373975506635
Arg [7] : 31694c575435457a473361675a6a513961534376000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 0000000000000000000000008530e5b5621119cb3e3ae324e6a6e63014a6ad87
Arg [10] : 0000000000000000000000001704eec36042e868bfb9bf70658877b1e2243be0
Arg [11] : 00000000000000000000000018dcc4115c4ed560de550fd421b37372f5528133
Arg [12] : 000000000000000000000000ba6e1c26be2f8b46d9e7ab7573b99921ee81acf5
Arg [13] : 000000000000000000000000a3b52f43db89218ed2e0f448a623f038e4c544ff
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [19] : 000000000000000000000000000000000000000000000000000000000000000a


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.