Contract 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 3

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x86e99bf74674b4e788aef8291dedc8edcb1542167f77ada6d830ab3aeb9ff178Renounce Ownersh...179152672022-07-18 12:50:45140 days 9 hrs ago0xec1557a67d4980c948cd473075293204f4d280fd IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000083357159 ETH
0x2496957638ab3bfd16a49bf9fba807102cc4e9c00853ad381fe61ed1f6b6ac27Set Royalty168914722022-07-03 10:42:38155 days 11 hrs ago0x71aab3e43c47c52e46e61614f1ebe74dd0d99c04 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.00008225337 ETH
0x6cf707f8f70bec1088b503d99aa1e009ae4b8be7fe688e5e9453b139a2fcaaf9Fill Sell Order168231752022-07-02 13:32:32156 days 8 hrs ago0xf8fc7788bc1d181ad83a006ebea212b3202e1938 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0059 ETH0.00013917697 ETH
0xa16633b9c0a30941842f02fb20f82f24cb870bfe3bf87091caf91feebfb2ddf9Fill Sell Order168230572022-07-02 13:31:02156 days 8 hrs ago0xf8fc7788bc1d181ad83a006ebea212b3202e1938 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0059 ETH0.000146270654 ETH
0xe9d332c3b51004be0587fee163a6ccf9a3203d412a1886884ceb91769c337755Cancel Previous ...168083902022-07-02 10:11:54156 days 12 hrs ago0xfdfbb2558612c64c976aae82b81fc51bfa09b9ad IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000122279539 ETH
0x557ef7d31237d1c5b84ddcc556727b596f347214bf8676c2d36ee1ec62b8c3c3Fill Sell Order167955302022-07-02 7:54:24156 days 14 hrs ago0x2e5745f3136e1023b7db402f2f20d59ece802f4a IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.016 ETH0.000187959955 ETH
0xf66f1dea4e6570a565df768b5143789e3d79a4e52509fb68a8cb062da1fc05c8Fill Sell Order167894202022-07-02 6:46:17156 days 15 hrs ago0xf42dd6ce8d959f7c1036d0d319ed1ff85aea4dd3 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0008 ETH0.000202296997 ETH
0xb374cd3a5d4fd9de2cc52daa0396d0b9e5b933603743f8c3f150329960a5e73dFill Sell Order167887752022-07-02 6:38:23156 days 15 hrs ago0xf42dd6ce8d959f7c1036d0d319ed1ff85aea4dd3 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.00139898 ETH0.000203943352 ETH
0xd5c5912daff214d5dd9d979651c0573dc3708f9497220651efca2963c6a4f299Fill Sell Order167886482022-07-02 6:35:40156 days 15 hrs ago0xf42dd6ce8d959f7c1036d0d319ed1ff85aea4dd3 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.00139898 ETH0.000203943352 ETH
0x7b035f3701ca8d2a4e2c839b6ef98c5c400fea21f5a3b20ea411d4b2c8560680Cancel Previous ...167787072022-07-02 3:56:24156 days 18 hrs ago0xabfb99642c03cf81e0fd5c9310679cbe7b3249e1 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000163124701 ETH
0x2f38bb34235920683fdf4ff655500bb18ed0502fc653605c902be8b9926beaeaCancel Previous ...167786592022-07-02 3:54:40156 days 18 hrs ago0xabfb99642c03cf81e0fd5c9310679cbe7b3249e1 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000162734583 ETH
0x82b99447ce2e29f089bd600db337bc382f083216e08b0c38e1d3887c752d5f6dCancel Previous ...167786202022-07-02 3:54:40156 days 18 hrs ago0xabfb99642c03cf81e0fd5c9310679cbe7b3249e1 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000163127262 ETH
0x8f8baf84814e48d6e4339f240d5f907b510b8611a9b6ce2694837f19448c2256Cancel Buy Order167778572022-07-02 3:42:29156 days 18 hrs ago0x339ff09680b65fcd81d38a11be4e75f34c8966fc IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000245236803 ETH
0x6d00f41b28ac1f5875ac5773abc6642804130c6ad539930078fc2e0ef9459839Cancel Previous ...167541192022-07-01 21:08:17157 days 1 hr ago0xc5391c1c497ba5315b9a3fe10c43f246f6dbdefd IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000215573495 ETH
0x3b6cac4f3daeffa0bec86839316f4544db515dd3d7b5912d137959dcf012b683Cancel Previous ...167503592022-07-01 20:04:03157 days 2 hrs ago0x8c7cf0a0f4aa67c4b2bdaa73a82af3e25abc7cc9 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000197326954 ETH
0x020ab4fb2df01b94e6f467d94cc9e5fa14f83e8e5b49188ae541abe46114e8ecCancel Previous ...167502162022-07-01 20:00:53157 days 2 hrs ago0xcab9ecb3ca5d92d045b615e1b63e04320d46d99f IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000216254187 ETH
0x8713cfc0f611929b0cc556333d5329369d21661671c7812c31b4107581b403cbCancel Previous ...167489122022-07-01 19:44:18157 days 2 hrs ago0x1d59b35904b6e94cbc20de0d74fbf6d4cc1acba3 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000216776035 ETH
0xabebd7ce8a25169fbd8544507bf9592afba9c7b73c12c22e3250799d062de1adCancel Previous ...167488842022-07-01 19:43:10157 days 2 hrs ago0x1d59b35904b6e94cbc20de0d74fbf6d4cc1acba3 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000216775657 ETH
0x967318ba79dd400a9fc8c98c0a41d4d621d07bf535e513bbd65647ee7087c363Fill Sell Order167359462022-07-01 16:37:26157 days 5 hrs ago0x17b877d1f03c57afdf96fc472b2b25bf318be658 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0148 ETH0.0003200141 ETH
0x71563cb87700b55249773e9a8e899eb09985e251cea8ba38f460f82b53c5eb5dFill Sell Order167358132022-07-01 16:35:28157 days 5 hrs ago0x17b877d1f03c57afdf96fc472b2b25bf318be658 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0148 ETH0.0003200141 ETH
0x9414d456a84e197f53351adb0eeba70aac7166c3546020ddacb6c3b0b3d198a6Fill Sell Order167356592022-07-01 16:32:49157 days 5 hrs ago0x17b877d1f03c57afdf96fc472b2b25bf318be658 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0148 ETH0.000320535841 ETH
0xe34c39e5fca1ca2ef29e4a6dd4b9a78b92ecf2c28d4ad26f56648deb4fd866a7Fill Sell Order167321312022-07-01 15:34:20157 days 6 hrs ago0x1663b6a10e7747cd22ccb6353e3d52c5feb49493 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0032 ETH0.00022473963 ETH
0x71d0809311b066f85fca5a50dd652535bc5b532fb668301065e7fe4c74de728eCancel Previous ...167080052022-07-01 10:17:44157 days 12 hrs ago0xa4dfad80a6134e4a551a0cf9b146f23c05080614 IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.000195287181 ETH
0x88134c63246ff88f8e770932d2c09f53fbffe3a0f414713b87f89f30aed26bc7Fill Sell Order166914152022-07-01 7:05:45157 days 15 hrs ago0x8b169ad78b81dd7ec6f055025acce278f89d50bc IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0.0032 ETH0.000337230273 ETH
0xb8d39ab47d1116b01edaeec4a112b9a86c13286383730d3b3846f256d07148b0Pause166907712022-07-01 6:59:09157 days 15 hrs ago0xec1557a67d4980c948cd473075293204f4d280fd IN  0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0 ETH0.00016692634 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x2496957638ab3bfd16a49bf9fba807102cc4e9c00853ad381fe61ed1f6b6ac27168914722022-07-03 10:42:38155 days 11 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x67dca28ff5fb4d94a2dc71590fc29d2125ad86d50 ETH
0x2496957638ab3bfd16a49bf9fba807102cc4e9c00853ad381fe61ed1f6b6ac27168914722022-07-03 10:42:38155 days 11 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x27d373d74bb43eebd0fbd9f8424fbbdca31228e10 ETH
0x2496957638ab3bfd16a49bf9fba807102cc4e9c00853ad381fe61ed1f6b6ac27168914722022-07-03 10:42:38155 days 11 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x27d373d74bb43eebd0fbd9f8424fbbdca31228e10 ETH
0x2496957638ab3bfd16a49bf9fba807102cc4e9c00853ad381fe61ed1f6b6ac27168914722022-07-03 10:42:38155 days 11 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x27d373d74bb43eebd0fbd9f8424fbbdca31228e10 ETH
0x2496957638ab3bfd16a49bf9fba807102cc4e9c00853ad381fe61ed1f6b6ac27168914722022-07-03 10:42:38155 days 11 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x27d373d74bb43eebd0fbd9f8424fbbdca31228e10 ETH
0xe9d332c3b51004be0587fee163a6ccf9a3203d412a1886884ceb91769c337755168083902022-07-02 10:11:54156 days 12 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x7b035f3701ca8d2a4e2c839b6ef98c5c400fea21f5a3b20ea411d4b2c8560680167787072022-07-02 3:56:24156 days 18 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x2f38bb34235920683fdf4ff655500bb18ed0502fc653605c902be8b9926beaea167786592022-07-02 3:54:40156 days 18 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x82b99447ce2e29f089bd600db337bc382f083216e08b0c38e1d3887c752d5f6d167786202022-07-02 3:54:40156 days 18 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x8f8baf84814e48d6e4339f240d5f907b510b8611a9b6ce2694837f19448c2256167778572022-07-02 3:42:29156 days 18 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x8f8baf84814e48d6e4339f240d5f907b510b8611a9b6ce2694837f19448c2256167778572022-07-02 3:42:29156 days 18 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0x00000000000000000000000000000000000000010 ETH
0x6d00f41b28ac1f5875ac5773abc6642804130c6ad539930078fc2e0ef9459839167541192022-07-01 21:08:17157 days 1 hr ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x3b6cac4f3daeffa0bec86839316f4544db515dd3d7b5912d137959dcf012b683167503592022-07-01 20:04:03157 days 2 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x020ab4fb2df01b94e6f467d94cc9e5fa14f83e8e5b49188ae541abe46114e8ec167502162022-07-01 20:00:53157 days 2 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x8713cfc0f611929b0cc556333d5329369d21661671c7812c31b4107581b403cb167489122022-07-01 19:44:18157 days 2 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0xabebd7ce8a25169fbd8544507bf9592afba9c7b73c12c22e3250799d062de1ad167488842022-07-01 19:43:10157 days 2 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x71d0809311b066f85fca5a50dd652535bc5b532fb668301065e7fe4c74de728e167080052022-07-01 10:17:44157 days 12 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x0ceae206f543e361f5c4428da80d1e77d3d826980 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0xfe4ae1df7bcd3a79705824fbf61c73595b96f2680.0034125 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c0xec1557a67d4980c948cd473075293204f4d280fd0.0000875 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0x67dca28ff5fb4d94a2dc71590fc29d2125ad86d50 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0xb5e89dc549b070cdd51fc18f1072ae9ec6e7a7c20 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0xb5e89dc549b070cdd51fc18f1072ae9ec6e7a7c20 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0xb5e89dc549b070cdd51fc18f1072ae9ec6e7a7c20 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0xb5e89dc549b070cdd51fc18f1072ae9ec6e7a7c20 ETH
0x15d9e169de43ed5e798520ff3c6c9098fc1f19f0d4a2f482e39220a827daacbd166906602022-07-01 6:57:36157 days 15 hrs ago 0xe5c7b4865d7f2b08faadf3f6d392e6d6fa7b903c 0xb5e89dc549b070cdd51fc18f1072ae9ec6e7a7c20 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ExchangeV4

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan on 2022-05-27
*/

// Sources flattened with hardhat v2.7.1 https://hardhat.org

// File contracts/IRoyaltyRegistry.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IRoyaltyRegistry {
    function addRegistrant(address registrant) external;

    function removeRegistrant(address registrant) external;

    function setRoyalty(address _erc721address, address payable _payoutAddress, uint256 _payoutPerMille) external;

    function getRoyaltyPayoutAddress(address _erc721address) external view returns (address payable);

    function getRoyaltyPayoutRate(address _erc721address) external view returns (uint256);
}


// File contracts/ICancellationRegistry.sol


pragma solidity ^0.8.0;

interface ICancellationRegistry {
    function addRegistrant(address registrant) external;

    function removeRegistrant(address registrant) external;

    function cancelOrder(bytes memory signature) external;

    function isOrderCancelled(bytes memory signature) external view returns (bool);

    function cancelPreviousSellOrders(address seller, address tokenAddr, uint256 tokenId) external;

    function getSellOrderCancellationBlockNumber(address addr, address tokenAddr, uint256 tokenId) external view returns (uint256);
}


// File contracts/IPaymentERC20Registry.sol


pragma solidity ^0.8.0;

interface IPaymentERC20Registry {  
  function isApprovedERC20(address _token) external view returns (bool);

  function addApprovedERC20(address _token) external;

  function removeApprovedERC20(address _token) external;
}


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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


// File @openzeppelin/contracts/access/[email protected]


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev 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 {
        _transferOwnership(address(0));
    }

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

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


// File @openzeppelin/contracts/utils/introspection/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/interfaces/[email protected]


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;


// File @openzeppelin/contracts/token/ERC1155/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}


// File @openzeppelin/contracts/interfaces/[email protected]


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155.sol)

pragma solidity ^0.8.0;


// File @openzeppelin/contracts/token/ERC20/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// File @openzeppelin/contracts/interfaces/[email protected]


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;


// File @openzeppelin/contracts/utils/introspection/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Checker.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)
        internal
        view
        returns (bool[] memory)
    {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);
        (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams);
        if (result.length < 32) return false;
        return success && abi.decode(result, (bool));
    }
}


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

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 @openzeppelin/contracts/utils/cryptography/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // 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 @openzeppelin/contracts/security/[email protected]


// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

    bool private _paused;

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

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

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

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

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

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


// File @openzeppelin/contracts/security/[email protected]


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;


/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/ExchangeV4.sol


pragma solidity ^0.8.0;

/* Interfaces */



/* Libraries */










contract ExchangeV4 is Ownable, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using ERC165Checker for address;

    bytes4 private InterfaceId_ERC721 = 0x80ac58cd;  // The ERC-165 identifier for 721
    bytes4 private InterfaceId_ERC1155 = 0xd9b67a26; // The ERC-165 identifier for 1155

    address payable _makerWallet;
    uint256 private _makerFeePerMille = 25;
    uint256 private _maxRoyaltyPerMille = 150;

    bytes32 private EIP712_DOMAIN_TYPE_HASH = keccak256("EIP712Domain(string name,string version)");
    bytes32 private DOMAIN_SEPARATOR = keccak256(abi.encode(
            EIP712_DOMAIN_TYPE_HASH,
            keccak256(bytes("Quixotic")),
            keccak256(bytes("4"))
        ));

    IRoyaltyRegistry royaltyRegistry;
    ICancellationRegistry cancellationRegistry;
    IPaymentERC20Registry paymentERC20Registry;

    event SellOrderFilled(address indexed seller, address payable buyer, address indexed contractAddress, uint256 indexed tokenId, uint256 price);
    event BuyOrderFilled(address indexed seller, address payable buyer, address indexed contractAddress, uint256 indexed tokenId, uint256 price);
    event DutchAuctionFilled(address indexed seller, address payable buyer, address indexed contractAddress, uint256 indexed tokenId, uint256 price);


    /* This contains all data of the SellOrder */
    struct SellOrder {

        /* Seller of the NFT */
        address payable seller;

        /* Contract address of NFT */
        address contractAddress;

        /* Token id of NFT to sell */
        uint256 tokenId;

        /* Start time in unix timestamp */
        uint256 startTime;

        /* Expiration in unix timestamp */
        uint256 expiration;

        /* Price in wei */
        uint256 price;

        /* Number of tokens to transfer; should be 1 for ERC721 */
        uint256 quantity;

        /* Block number that this order was created at */
        uint256 createdAtBlockNumber;

        /* Address of the ERC20 token for the payment. Will be the zero-address for payments in native ETH. */
        address paymentERC20;
    }

    /* This contains all data of the BuyOrder */
    struct BuyOrder {

        /* Seller of the NFT */
        address payable buyer;

        /* Contract address of NFT */
        address contractAddress;

        /* Token id of NFT to sell */
        uint256 tokenId;

        /* Start time in unix timestamp */
        uint256 startTime;

        /* Expiration in unix timestamp */
        uint256 expiration;

        /* Price in wei */
        uint256 price;

        /* Number of tokens to transfer; should be 1 for ERC721 */
        uint256 quantity;

        /* Address of the ERC20 token for the payment. */
        address paymentERC20;
    }

    struct DutchAuctionOrder {

        /* Seller of the NFT */
        address payable seller;

        /* Contract address of NFT */
        address contractAddress;

        /* Token id of NFT to sell */
        uint256 tokenId;

        /* Start time in unix timestamp */
        uint256 startTime;

        /* End time in unix timestamp */
        uint256 endTime;

        /* Price in wei */
        uint256 startPrice;

        /* Price in wei */
        uint256 endPrice;

        /* Number of tokens to transfer; should be 1 for ERC721 */
        uint256 quantity;

        /* Block number that this order was created at */
        uint256 createdAtBlockNumber;

        /* Address of the ERC20 token for the payment. */
        address paymentERC20;
    }

    /********************
     * Public Functions *
     ********************/

    /*
    * @dev External trade function. This accepts the details of the sell order and signed sell
    * order (the signature) as a meta-transaction.
    *
    * Emits a {SellOrderFilled} event via `_fillSellOrder`.
    */
    function fillSellOrder(
        address payable seller,
        address contractAddress,
        uint256 tokenId,
        uint256 startTime,
        uint256 expiration,
        uint256 price,
        uint256 quantity,
        uint256 createdAtBlockNumber,
        address paymentERC20,
        bytes memory signature,
        address payable buyer
    ) external payable whenNotPaused nonReentrant {
        // If the payment ERC20 is the zero address, we check that enough native ETH has been sent
        // with the transaction. Otherwise, we use the supplied ERC20 payment token.
        if (paymentERC20 == address(0)) {
            require(msg.value >= price, "Transaction doesn't have the required ETH amount.");
        } else {
            _checkValidERC20Payment(buyer, price, paymentERC20);
        }

        SellOrder memory sellOrder = SellOrder(
            seller,
            contractAddress,
            tokenId,
            startTime,
            expiration,
            price,
            quantity,
            createdAtBlockNumber,
            paymentERC20
        );

        /* Make sure the order is not cancelled */
        require(
            cancellationRegistry.getSellOrderCancellationBlockNumber(seller, contractAddress, tokenId) < createdAtBlockNumber,
            "This order has been cancelled."
        );

        /* Check signature */
        require(_validateSellerSignature(sellOrder, signature), "Signature is not valid for SellOrder.");

        // Check has started
        require((block.timestamp > startTime), "SellOrder start time is in the future.");

        // Check not expired
        require((block.timestamp < expiration), "This sell order has expired.");

        _fillSellOrder(sellOrder, buyer);
    }

    /*
    * @dev Executes a trade given a buy order.
    *
    * Emits a {BuyOrderFilled} event.
    */
    function fillBuyOrder(
        address payable buyer,
        address contractAddress,
        uint256 tokenId,
        uint256 startTime,
        uint256 expiration,
        uint256 price,
        uint256 quantity,
        address paymentERC20,
        bytes memory signature,
        address payable seller
    ) external payable whenNotPaused nonReentrant {
        _checkValidERC20Payment(buyer, price, paymentERC20);

        /* Make sure the order is not cancelled */
        require(!isOrderCancelled(signature), "This order has been cancelled.");

        BuyOrder memory buyOrder = BuyOrder(
            buyer,
            contractAddress,
            tokenId,
            startTime,
            expiration,
            price,
            quantity,
            paymentERC20
        );

        /* First check signature */
        require(_validateBuyerSignature(buyOrder, signature), "Signature is not valid for BuyOrder.");

        /* Check has started */
        require((block.timestamp > buyOrder.startTime), "This buy order's start time is in the future.");

        /* Check not expired */
        require((block.timestamp < buyOrder.expiration), "This buy order has expired.");
        
        _fillBuyOrder(buyOrder, signature, seller);
    }

    /*
    * @dev External trade function. This accepts the details of the dutch auction order and signed dutch auction
    * order (the signature) as a meta-transaction.
    *
    * Emits a {DutchAuctionOrderFilled} event via `_fillDutchAuctionOrder`.
    */
    function fillDutchAuctionOrder(
        DutchAuctionOrder memory dutchAuctionOrder,
        bytes memory signature,
        address payable buyer
    ) external payable whenNotPaused nonReentrant {
        /* Make sure the order is not cancelled */
        require(
            cancellationRegistry.getSellOrderCancellationBlockNumber(dutchAuctionOrder.seller, dutchAuctionOrder.contractAddress, dutchAuctionOrder.tokenId) < dutchAuctionOrder.createdAtBlockNumber,
            "This order has been cancelled."
        );

        /* First check signature */
        require(_validateDutchAuctionSignature(dutchAuctionOrder, signature), "Signature is not valid for DutchAuctionOrder.");

        // Check the dutch auction has started
        require((block.timestamp > dutchAuctionOrder.startTime), "This dutch auction order has not started yet.");

        // Check not expired
        require((block.timestamp < dutchAuctionOrder.endTime), "This dutch auction order has expired.");

        uint256 currentPrice = calculateCurrentPrice(
            dutchAuctionOrder.startTime, 
            dutchAuctionOrder.endTime, 
            dutchAuctionOrder.startPrice,
            dutchAuctionOrder.endPrice
        );
        // If the payment ERC20 is the zero address, we check that enough native ETH has been sent
        // with the transaction. Otherwise, we use the supplied ERC20 payment token.
        if (dutchAuctionOrder.paymentERC20 == address(0)) {
            require(msg.value >= currentPrice, "The current price is higher than the payment submitted.");
        } else {
            _checkValidERC20Payment(buyer, currentPrice, dutchAuctionOrder.paymentERC20);
        }

        _fillDutchAuction(dutchAuctionOrder, buyer, currentPrice);
    }

    /*
    * @dev Sets the royalty as an int out of 1000 that the creator should receive and the address to pay.
    */
    function setRoyalty(address contractAddress, address payable _payoutAddress, uint256 _payoutPerMille) external {
        require(_payoutPerMille <= _maxRoyaltyPerMille, "Royalty must be between 0 and 15%");
        require(contractAddress.supportsInterface(InterfaceId_ERC721) || contractAddress.supportsInterface(InterfaceId_ERC1155), "Is not ERC721 or ERC1155");

        Ownable ownableNFTContract = Ownable(contractAddress);
        require(_msgSender() == ownableNFTContract.owner());

        royaltyRegistry.setRoyalty(contractAddress, _payoutAddress, _payoutPerMille);
    }

    /*
    * @dev Cancels a buy order.
    */
    function cancelBuyOrder(
        address payable buyer,
        address contractAddress,
        uint256 tokenId,
        uint256 startTime,
        uint256 expiration,
        uint256 price,
        uint256 quantity,
        address paymentERC20,
        bytes memory signature
    ) external {
        require((buyer == _msgSender() || owner() == _msgSender()), "Caller must be Exchange Owner or Order Signer");

        BuyOrder memory buyOrder = BuyOrder(
            buyer,
            contractAddress,
            tokenId,
            startTime,
            expiration,
            price,
            quantity,
            paymentERC20
        );

        require(_validateBuyerSignature(buyOrder, signature), "Signature is not valid for BuyOrder.");

        cancellationRegistry.cancelOrder(signature);
    }

    /*
    * @dev Implements one-order-cancels-the-other (OCO) for a token
    */
    function cancelPreviousSellOrders(
        address addr,
        address tokenAddr,
        uint256 tokenId
    ) external {
        require((addr == _msgSender() || owner() == _msgSender()), "Caller must be Exchange Owner or Order Signer");
        cancellationRegistry.cancelPreviousSellOrders(addr, tokenAddr, tokenId);
    }

    function calculateCurrentPrice(uint256 startTime, uint256 endTime, uint256 startPrice, uint256 endPrice) public view returns (uint256) {
        uint256 auctionDuration = (endTime - startTime);
        uint256 timeRemaining = (endTime - block.timestamp);

        uint256 perMilleRemaining = (1000000000000000 / auctionDuration) / (1000000000000 / timeRemaining);

        uint256 variableAmount = startPrice - endPrice;
        uint256 variableAmountRemaining = (perMilleRemaining * variableAmount) / 1000;
        return endPrice + variableAmountRemaining;
    }

    /*
    * @dev Gets the royalty payout address.
    */
    function getRoyaltyPayoutAddress(address contractAddress) external view returns (address) {
        return royaltyRegistry.getRoyaltyPayoutAddress(contractAddress);
    }

    /*
    * @dev Gets the royalty as a int out of 1000 that the creator should receive.
    */
    function getRoyaltyPayoutRate(address contractAddress) external view returns (uint256) {
        return royaltyRegistry.getRoyaltyPayoutRate(contractAddress);
    }

    /*
    * @dev Check if an order has been cancelled.
    */
    function isOrderCancelled(bytes memory signature) public view returns (bool) {
        return cancellationRegistry.isOrderCancelled(signature);
    }
    
    /*******************
     * Admin Functions *
     *******************/

    /*
    * @dev Sets the wallet for the exchange.
    */
    function setMakerWallet(address payable _newMakerWallet) external onlyOwner {
        _makerWallet = _newMakerWallet;
    }

    /*
    * @dev Sets the registry contracts for the exchange.
    */
    function setRegistryContracts(
        address _royaltyRegistry,
        address _cancellationRegistry,
        address _paymentERC20Registry
    ) external onlyOwner {
        royaltyRegistry = IRoyaltyRegistry(_royaltyRegistry);
        cancellationRegistry = ICancellationRegistry(_cancellationRegistry);
        paymentERC20Registry = IPaymentERC20Registry(_paymentERC20Registry);
    }

    /*
    * @dev Pauses trading on the exchange. To be used for emergencies.
    */
    function pause() external onlyOwner {
        _pause();
    }

    /*
    * @dev Resumes trading on the exchange. To be used for emergencies.
    */
    function unpause() external onlyOwner {
        _unpause();
    }

    /*
    * Withdraw just in case Ether is accidentally sent to this contract.
    */
    function withdraw() external onlyOwner {
        uint balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    /**********************
     * Internal Functions *
     **********************/

    /*
    * @dev Executes a trade given a sell order.
    *
    * Emits a {SellOrderFilled} event.
    */
    function _fillSellOrder(SellOrder memory sellOrder, address payable buyer) internal {
        /////////////////
        ///  Finalize ///
        /////////////////
        cancellationRegistry.cancelPreviousSellOrders(sellOrder.seller, sellOrder.contractAddress, sellOrder.tokenId);
        emit SellOrderFilled(sellOrder.seller, buyer, sellOrder.contractAddress, sellOrder.tokenId, sellOrder.price);

        /////////////////
        ///  Transfer ///
        /////////////////
        _transferNFT(sellOrder.contractAddress, sellOrder.tokenId, sellOrder.seller, buyer, sellOrder.quantity);

        //////////////////////
        ///  Send Payment ///
        /////////////////////
        if (sellOrder.paymentERC20 == address(0)) {
            _sendETHPaymentsWithRoyalties(sellOrder.contractAddress, sellOrder.seller);
        } else if (sellOrder.price > 0) {
            _sendERC20PaymentsWithRoyalties(
                sellOrder.contractAddress,
                sellOrder.seller,
                buyer,
                sellOrder.price,
                sellOrder.paymentERC20
            );
        }
    }

    /*
    * @dev Sends out ETH payments to marketplace, royalty, and the final recipients
    */
    function _sendETHPaymentsWithRoyalties(address contractAddress, address payable finalRecipient) internal {
        uint256 royaltyPayout = (royaltyRegistry.getRoyaltyPayoutRate(contractAddress) * msg.value) / 1000;
        uint256 makerPayout = (_makerFeePerMille * msg.value) / 1000;
        uint256 remainingPayout = msg.value - royaltyPayout - makerPayout;

        if (royaltyPayout > 0) {
            Address.sendValue(royaltyRegistry.getRoyaltyPayoutAddress(contractAddress), royaltyPayout);
        }

        Address.sendValue(_makerWallet, makerPayout);
        Address.sendValue(finalRecipient, remainingPayout);
    }

    function _sendERC20PaymentsWithRoyalties(
        address contractAddress,
        address seller,
        address buyer,
        uint256 price,
        address paymentERC20
    ) internal {
        uint256 royaltyPayout = (royaltyRegistry.getRoyaltyPayoutRate(contractAddress) * price) / 1000;
        uint256 makerPayout = (_makerFeePerMille * price) / 1000;
        uint256 remainingPayout = price - royaltyPayout - makerPayout;

        if (royaltyPayout > 0) {
            IERC20(paymentERC20).safeTransferFrom(
                buyer,
                royaltyRegistry.getRoyaltyPayoutAddress(contractAddress),
                royaltyPayout
            );
        }

        IERC20(paymentERC20).safeTransferFrom(buyer, _makerWallet, makerPayout);
        IERC20(paymentERC20).safeTransferFrom(buyer, seller, remainingPayout);
    }

    /* Checks that the payment is being made with an approved ERC20, and that we are allowed to operate
     * a sufficient amount of it. */
    function _checkValidERC20Payment(address buyer, uint256 price, address paymentERC20) internal view {
        // Checks that the ERC20 payment token is approved in the registry.
        require(paymentERC20Registry.isApprovedERC20(paymentERC20), "Payment ERC20 is not approved.");

        // Checks that the buyer has sufficient funds.
        require(
            IERC20(paymentERC20).balanceOf(buyer) >= price,
            "Buyer has an insufficient balance of the ERC20."
        );

        // Checks that the Exchange contract has a sufficient allowance of the token.
        require(
            IERC20(paymentERC20).allowance(buyer, address(this)) >= price,
            "Exchange is not approved to handle a sufficient amount of the ERC20."
        );
    }

    /*
    * @dev Validate the sell order against the signature of the meta-transaction.
    */
    function _validateSellerSignature(SellOrder memory sellOrder, bytes memory signature) internal view returns (bool) {

        bytes32 SELLORDER_TYPEHASH = keccak256(
            "SellOrder(address seller,address contractAddress,uint256 tokenId,uint256 startTime,uint256 expiration,uint256 price,uint256 quantity,uint256 createdAtBlockNumber,address paymentERC20)"
        );

        bytes32 structHash = keccak256(abi.encode(
                SELLORDER_TYPEHASH,
                sellOrder.seller,
                sellOrder.contractAddress,
                sellOrder.tokenId,
                sellOrder.startTime,
                sellOrder.expiration,
                sellOrder.price,
                sellOrder.quantity,
                sellOrder.createdAtBlockNumber,
                sellOrder.paymentERC20
            ));

        bytes32 digest = ECDSA.toTypedDataHash(DOMAIN_SEPARATOR, structHash);

        address recoveredAddress = ECDSA.recover(digest, signature);
        return recoveredAddress == sellOrder.seller;
    }

    /*
    * @dev Validate the sell order against the signature of the meta-transaction.
    */
    function _validateBuyerSignature(BuyOrder memory buyOrder, bytes memory signature) internal view returns (bool) {

        bytes32 BUYORDER_TYPEHASH = keccak256(
            "BuyOrder(address buyer,address contractAddress,uint256 tokenId,uint256 startTime,uint256 expiration,uint256 price,uint256 quantity,address paymentERC20)"
        );

        bytes32 structHash = keccak256(abi.encode(
                BUYORDER_TYPEHASH,
                buyOrder.buyer,
                buyOrder.contractAddress,
                buyOrder.tokenId,
                buyOrder.startTime,
                buyOrder.expiration,
                buyOrder.price,
                buyOrder.quantity,
                buyOrder.paymentERC20
            ));

        bytes32 digest = ECDSA.toTypedDataHash(DOMAIN_SEPARATOR, structHash);

        address recoveredAddress = ECDSA.recover(digest, signature);

        return recoveredAddress == buyOrder.buyer;
    }

    function _fillBuyOrder(BuyOrder memory buyOrder, bytes memory signature, address payable seller) internal {
        /////////////////
        ///  Finalize ///
        /////////////////
        cancellationRegistry.cancelOrder(signature);
        emit BuyOrderFilled(seller, buyOrder.buyer, buyOrder.contractAddress, buyOrder.tokenId, buyOrder.price);

        /////////////////
        ///  Transfer ///
        /////////////////
        _transferNFT(buyOrder.contractAddress, buyOrder.tokenId, seller, buyOrder.buyer, buyOrder.quantity);

        //////////////////////
        ///  Send Payment ///
        /////////////////////
        if (buyOrder.price > 0) {
            _sendERC20PaymentsWithRoyalties(
                buyOrder.contractAddress,
                seller,
                buyOrder.buyer,
                buyOrder.price,
                buyOrder.paymentERC20
            );
        }
    }

    function _fillDutchAuction(
        DutchAuctionOrder memory dutchAuctionOrder,
        address payable buyer,
        uint256 currentPrice
    ) internal {
        /////////////////
        ///  Finalize ///
        /////////////////
        cancellationRegistry.cancelPreviousSellOrders(dutchAuctionOrder.seller, dutchAuctionOrder.contractAddress, dutchAuctionOrder.tokenId);
        uint256 amountPaid = dutchAuctionOrder.paymentERC20 == address(0) ? msg.value : currentPrice;
        emit DutchAuctionFilled(dutchAuctionOrder.seller, buyer, dutchAuctionOrder.contractAddress, dutchAuctionOrder.tokenId, amountPaid);

        /////////////////
        ///  Transfer ///
        /////////////////
        _transferNFT(dutchAuctionOrder.contractAddress, dutchAuctionOrder.tokenId, dutchAuctionOrder.seller, buyer, dutchAuctionOrder.quantity);

        //////////////////////
        ///  Send Payment ///
        /////////////////////
        if (dutchAuctionOrder.paymentERC20 == address(0)) {
            _sendETHPaymentsWithRoyalties(dutchAuctionOrder.contractAddress, dutchAuctionOrder.seller);
        } else if (currentPrice > 0) {
            _sendERC20PaymentsWithRoyalties(
                dutchAuctionOrder.contractAddress,
                dutchAuctionOrder.seller,
                buyer,
                currentPrice,
                dutchAuctionOrder.paymentERC20
            );
        }
    }

    function _validateDutchAuctionSignature(
        DutchAuctionOrder memory dutchAuctionOrder,
        bytes memory signature
    ) internal view returns (bool) {

        bytes32 DUTCHAUCTIONORDER_TYPEHASH = keccak256(
            "DutchAuctionOrder(address seller,address contractAddress,uint256 tokenId,uint256 startTime,uint256 endTime,uint256 startPrice,uint256 endPrice,uint256 quantity,uint256 createdAtBlockNumber,address paymentERC20)"
        );

        bytes32 structHash = keccak256(abi.encode(
                DUTCHAUCTIONORDER_TYPEHASH,
                dutchAuctionOrder.seller,
                dutchAuctionOrder.contractAddress,
                dutchAuctionOrder.tokenId,
                dutchAuctionOrder.startTime,
                dutchAuctionOrder.endTime,
                dutchAuctionOrder.startPrice,
                dutchAuctionOrder.endPrice,
                dutchAuctionOrder.quantity,
                dutchAuctionOrder.createdAtBlockNumber,
                dutchAuctionOrder.paymentERC20
            ));

        bytes32 digest = ECDSA.toTypedDataHash(DOMAIN_SEPARATOR, structHash);

        address recoveredAddress = ECDSA.recover(digest, signature);

        return recoveredAddress == dutchAuctionOrder.seller;
    }

    function _transferNFT(address contractAddress, uint256 tokenId, address seller, address buyer, uint256 quantity) internal {
        if (contractAddress.supportsInterface(InterfaceId_ERC721)) {
            IERC721 erc721 = IERC721(contractAddress);

            /* require is approved for all */
            require(erc721.isApprovedForAll(seller, address(this)), "The Exchange is not approved to operate this NFT");

            /////////////////
            ///  Transfer ///
            /////////////////
            erc721.transferFrom(seller, buyer, tokenId);

        } else if (contractAddress.supportsInterface(InterfaceId_ERC1155)) {
            IERC1155 erc1155 = IERC1155(contractAddress);

            /////////////////
            ///  Transfer ///
            /////////////////
            erc1155.safeTransferFrom(seller, buyer, tokenId, quantity, "");

        } else {
            revert("We don't recognize the NFT as either an ERC721 or ERC1155.");
        }
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address payable","name":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"BuyOrderFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address payable","name":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"DutchAuctionFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address payable","name":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"SellOrderFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"}],"name":"calculateCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"buyer","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"paymentERC20","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"cancelBuyOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"address","name":"tokenAddr","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cancelPreviousSellOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"buyer","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"paymentERC20","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address payable","name":"seller","type":"address"}],"name":"fillBuyOrder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"createdAtBlockNumber","type":"uint256"},{"internalType":"address","name":"paymentERC20","type":"address"}],"internalType":"struct ExchangeV4.DutchAuctionOrder","name":"dutchAuctionOrder","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address payable","name":"buyer","type":"address"}],"name":"fillDutchAuctionOrder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"createdAtBlockNumber","type":"uint256"},{"internalType":"address","name":"paymentERC20","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address payable","name":"buyer","type":"address"}],"name":"fillSellOrder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"getRoyaltyPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"getRoyaltyPayoutRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isOrderCancelled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newMakerWallet","type":"address"}],"name":"setMakerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyRegistry","type":"address"},{"internalType":"address","name":"_cancellationRegistry","type":"address"},{"internalType":"address","name":"_paymentERC20Registry","type":"address"}],"name":"setRegistryContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"address payable","name":"_payoutAddress","type":"address"},{"internalType":"uint256","name":"_payoutPerMille","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600280546001600160401b03191667d9b67a2680ac58cd179055601960035560966004557fb03948446334eb9b2196d5eb166f69b9d49403eb4a12f36de8d3f9f3cb8e15c36005819055600860805267517569786f74696360c01b60a052600160c052600d60fa1b60e052610120527f0c0e2cc566869b7ad10c505184e86eea935bae95cc2069419092b16720f49925610140527f13600b294191fc92924bb3ce4b969c1e7e2bab8f4c93c3fc6d0a51733df3c060610160526060610100526101806040527f1bd6422d0111b7e277f0760d099c99481f48a552a732dd041624aa5326862fc8600655348015620000f557600080fd5b50620001013362000118565b6000805460ff60a01b191690556001805562000168565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613da480620001786000396000f3fe6080604052600436106101445760003560e01c80635c975abb116100c0578063912d97fc11610074578063ec4210ff11610059578063ec4210ff1461034e578063f2fde38b1461036e578063f80560161461038e57600080fd5b8063912d97fc1461030d578063c3fbdb7c1461032057600080fd5b806375eeb98a116100a557806375eeb98a146102c75780638456cb59146102da5780638da5cb5b146102ef57600080fd5b80635c975abb14610282578063715018a6146102b257600080fd5b80633ccfd60b1161011757806347871465116100fc578063478714651461021257806355c338aa14610232578063563166a91461025257600080fd5b80633ccfd60b146101e85780633f4ba83a146101fd57600080fd5b8063083d089d146101495780630b83196e1461016b5780632b812a341461018b5780632df5cb23146101ab575b600080fd5b34801561015557600080fd5b5061016961016436600461364e565b6103a1565b005b34801561017757600080fd5b50610169610186366004613793565b6104c5565b34801561019757600080fd5b506101696101a6366004613839565b6106b3565b3480156101b757600080fd5b506101cb6101c6366004613839565b610753565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101f457600080fd5b506101696107f0565b34801561020957600080fd5b5061016961087d565b34801561021e57600080fd5b5061016961022d366004613856565b6108e1565b34801561023e57600080fd5b5061016961024d36600461364e565b610992565b34801561025e57600080fd5b5061027261026d3660046138a1565b610bb8565b60405190151581526020016101df565b34801561028e57600080fd5b5060005474010000000000000000000000000000000000000000900460ff16610272565b3480156102be57600080fd5b50610169610c52565b6101696102d53660046138d6565b610cb6565b3480156102e657600080fd5b506101696110bc565b3480156102fb57600080fd5b506000546001600160a01b03166101cb565b61016961031b3660046139bd565b61111e565b34801561032c57600080fd5b5061034061033b366004613a7e565b61150f565b6040519081526020016101df565b34801561035a57600080fd5b50610340610369366004613839565b61159b565b34801561037a57600080fd5b50610169610389366004613839565b611632565b61016961039c366004613ab0565b611714565b6001600160a01b0383163314806103c257506000546001600160a01b031633145b6104395760405162461bcd60e51b815260206004820152602d60248201527f43616c6c6572206d7573742062652045786368616e6765204f776e6572206f7260448201527f204f72646572205369676e65720000000000000000000000000000000000000060648201526084015b60405180910390fd5b6008546040517f083d089d0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152604482018490529091169063083d089d90606401600060405180830381600087803b1580156104a857600080fd5b505af11580156104bc573d6000803e3d6000fd5b50505050505050565b6001600160a01b0389163314806104e657506000546001600160a01b031633145b6105585760405162461bcd60e51b815260206004820152602d60248201527f43616c6c6572206d7573742062652045786368616e6765204f776e6572206f7260448201527f204f72646572205369676e6572000000000000000000000000000000000000006064820152608401610430565b60006040518061010001604052808b6001600160a01b031681526020018a6001600160a01b03168152602001898152602001888152602001878152602001868152602001858152602001846001600160a01b031681525090506105bb81836119f4565b61062c5760405162461bcd60e51b8152602060048201526024808201527f5369676e6174757265206973206e6f742076616c696420666f72204275794f7260448201527f6465722e000000000000000000000000000000000000000000000000000000006064820152608401610430565b6008546040517fb910b6640000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063b910b66490610675908590600401613be2565b600060405180830381600087803b15801561068f57600080fd5b505af11580156106a3573d6000803e3d6000fd5b5050505050505050505050505050565b6000546001600160a01b0316331461070d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610430565b600280546001600160a01b0390921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b6007546040517f2df5cb230000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000921690632df5cb239060240160206040518083038186803b1580156107b257600080fd5b505afa1580156107c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ea9190613bf5565b92915050565b6000546001600160a01b0316331461084a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610430565b6040514790339082156108fc029083906000818181858888f19350505050158015610879573d6000803e3d6000fd5b5050565b6000546001600160a01b031633146108d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610430565b6108df611b50565b565b6000546001600160a01b0316331461093b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610430565b600780546001600160a01b039485167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155600880549385169382169390931790925560098054919093169116179055565b600454811115610a0a5760405162461bcd60e51b815260206004820152602160248201527f526f79616c7479206d757374206265206265747765656e203020616e6420313560448201527f25000000000000000000000000000000000000000000000000000000000000006064820152608401610430565b600254610a24906001600160a01b0385169060e01b611c22565b80610a4c5750600254610a4c906001600160a01b03851690640100000000900460e01b611c22565b610a985760405162461bcd60e51b815260206004820152601860248201527f4973206e6f7420455243373231206f72204552433131353500000000000000006044820152606401610430565b6000839050806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ad657600080fd5b505afa158015610aea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0e9190613bf5565b6001600160a01b0316336001600160a01b031614610b2b57600080fd5b6007546040517f55c338aa0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152858116602483015260448201859052909116906355c338aa90606401600060405180830381600087803b158015610b9a57600080fd5b505af1158015610bae573d6000803e3d6000fd5b5050505050505050565b6008546040517f563166a90000000000000000000000000000000000000000000000000000000081526000916001600160a01b03169063563166a990610c02908590600401613be2565b60206040518083038186803b158015610c1a57600080fd5b505afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ea9190613c12565b6000546001600160a01b03163314610cac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610430565b6108df6000611c45565b60005474010000000000000000000000000000000000000000900460ff1615610d215760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610430565b60026001541415610d745760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610430565b60026001556101008301516008548451602086015160408088015190517fbc1389c80000000000000000000000000000000000000000000000000000000081526001600160a01b0393841660048201529183166024830152604482015291169063bc1389c89060640160206040518083038186803b158015610df557600080fd5b505afa158015610e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2d9190613c34565b10610e7a5760405162461bcd60e51b815260206004820152601e60248201527f54686973206f7264657220686173206265656e2063616e63656c6c65642e00006044820152606401610430565b610e848383611cad565b610ef65760405162461bcd60e51b815260206004820152602d60248201527f5369676e6174757265206973206e6f742076616c696420666f7220447574636860448201527f41756374696f6e4f726465722e000000000000000000000000000000000000006064820152608401610430565b82606001514211610f6f5760405162461bcd60e51b815260206004820152602d60248201527f546869732064757463682061756374696f6e206f7264657220686173206e6f7460448201527f2073746172746564207965742e000000000000000000000000000000000000006064820152608401610430565b82608001514210610fe85760405162461bcd60e51b815260206004820152602560248201527f546869732064757463682061756374696f6e206f72646572206861732065787060448201527f697265642e0000000000000000000000000000000000000000000000000000006064820152608401610430565b6000611006846060015185608001518660a001518760c0015161150f565b6101208501519091506001600160a01b031661109757803410156110925760405162461bcd60e51b815260206004820152603760248201527f5468652063757272656e7420707269636520697320686967686572207468616e60448201527f20746865207061796d656e74207375626d69747465642e0000000000000000006064820152608401610430565b6110a7565b6110a78282866101200151611d76565b6110b284838361209c565b5050600180555050565b6000546001600160a01b031633146111165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610430565b6108df612228565b60005474010000000000000000000000000000000000000000900460ff16156111895760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610430565b600260015414156111dc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610430565b60026001556001600160a01b03831661126a57853410156112655760405162461bcd60e51b815260206004820152603160248201527f5472616e73616374696f6e20646f65736e27742068617665207468652072657160448201527f75697265642045544820616d6f756e742e0000000000000000000000000000006064820152608401610430565b611275565b611275818785611d76565b60408051610120810182526001600160a01b03808e168083528d8216602084018190528385018e9052606084018d9052608084018c905260a084018b905260c084018a905260e0840189905287831661010085015260085494517fbc1389c800000000000000000000000000000000000000000000000000000000815260048101929092526024820152604481018d90529192879291169063bc1389c89060640160206040518083038186803b15801561132e57600080fd5b505afa158015611342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113669190613c34565b106113b35760405162461bcd60e51b815260206004820152601e60248201527f54686973206f7264657220686173206265656e2063616e63656c6c65642e00006044820152606401610430565b6113bd81846122fa565b61142f5760405162461bcd60e51b815260206004820152602560248201527f5369676e6174757265206973206e6f742076616c696420666f722053656c6c4f60448201527f726465722e0000000000000000000000000000000000000000000000000000006064820152608401610430565b8842116114a45760405162461bcd60e51b815260206004820152602660248201527f53656c6c4f726465722073746172742074696d6520697320696e20746865206660448201527f75747572652e00000000000000000000000000000000000000000000000000006064820152608401610430565b8742106114f35760405162461bcd60e51b815260206004820152601c60248201527f546869732073656c6c206f726465722068617320657870697265642e000000006044820152606401610430565b6114fd81836123b6565b50506001805550505050505050505050565b60008061151c8686613c7c565b9050600061152a4287613c7c565b9050600061153d8264e8d4a51000613c93565b61154e8466038d7ea4c68000613c93565b6115589190613c93565b905060006115668688613c7c565b905060006103e86115778385613cce565b6115819190613c93565b905061158d8188613d0b565b9a9950505050505050505050565b6007546040517fec4210ff0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600092169063ec4210ff9060240160206040518083038186803b1580156115fa57600080fd5b505afa15801561160e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ea9190613c34565b6000546001600160a01b0316331461168c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610430565b6001600160a01b0381166117085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610430565b61171181611c45565b50565b60005474010000000000000000000000000000000000000000900460ff161561177f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610430565b600260015414156117d25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610430565b60026001556117e28a8685611d76565b6117eb82610bb8565b156118385760405162461bcd60e51b815260206004820152601e60248201527f54686973206f7264657220686173206265656e2063616e63656c6c65642e00006044820152606401610430565b60006040518061010001604052808c6001600160a01b031681526020018b6001600160a01b031681526020018a8152602001898152602001888152602001878152602001868152602001856001600160a01b0316815250905061189b81846119f4565b61190c5760405162461bcd60e51b8152602060048201526024808201527f5369676e6174757265206973206e6f742076616c696420666f72204275794f7260448201527f6465722e000000000000000000000000000000000000000000000000000000006064820152608401610430565b806060015142116119855760405162461bcd60e51b815260206004820152602d60248201527f5468697320627579206f7264657227732073746172742074696d65206973206960448201527f6e20746865206675747572652e000000000000000000000000000000000000006064820152608401610430565b806080015142106119d85760405162461bcd60e51b815260206004820152601b60248201527f5468697320627579206f726465722068617320657870697265642e00000000006044820152606401610430565b6119e3818484612522565b505060018055505050505050505050565b6000807fff81746aac8591644855ed186f9c334212e81ed3ab34195262d55b821137a0139050600081856000015186602001518760400151886060015189608001518a60a001518b60c001518c60e00151604051602001611aa0999897969594939291909889526001600160a01b0397881660208a015295871660408901526060880194909452608087019290925260a086015260c085015260e0840152166101008201526101200190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206006547f1901000000000000000000000000000000000000000000000000000000000000858401526022850152604280850182905283518086039091018152606290940190925282519201919091209091506000611b34828761263b565b87516001600160a01b0391821691161494505050505092915050565b60005474010000000000000000000000000000000000000000900460ff16611bba5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610430565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611c2d8361265f565b8015611c3e5750611c3e83836126c3565b9392505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000807f3806e06ca5e191f4aea72344962d3f4104f7292b3ba610483f5070e4f9cd381d9050600081856000015186602001518760400151886060015189608001518a60a001518b60c001518c60e001518d61010001518e6101200151604051602001611aa09b9a999897969594939291909a8b526001600160a01b03998a1660208c015297891660408b015260608a0196909652608089019490945260a088019290925260c087015260e0860152610100850152610120840152166101408201526101600190565b6009546040517f1eb9bbd40000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631eb9bbd49060240160206040518083038186803b158015611dd457600080fd5b505afa158015611de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0c9190613c12565b611e585760405162461bcd60e51b815260206004820152601e60248201527f5061796d656e74204552433230206973206e6f7420617070726f7665642e00006044820152606401610430565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301528391908316906370a082319060240160206040518083038186803b158015611eb557600080fd5b505afa158015611ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eed9190613c34565b1015611f615760405162461bcd60e51b815260206004820152602f60248201527f42757965722068617320616e20696e73756666696369656e742062616c616e6360448201527f65206f66207468652045524332302e00000000000000000000000000000000006064820152608401610430565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015230602483015283919083169063dd62ed3e9060440160206040518083038186803b158015611fc457600080fd5b505afa158015611fd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ffc9190613c34565b10156120975760405162461bcd60e51b8152602060048201526044602482018190527f45786368616e6765206973206e6f7420617070726f76656420746f2068616e64908201527f6c6520612073756666696369656e7420616d6f756e74206f662074686520455260648201527f4332302e00000000000000000000000000000000000000000000000000000000608482015260a401610430565b505050565b6008548351602085015160408087015190517f083d089d0000000000000000000000000000000000000000000000000000000081526001600160a01b0393841660048201529183166024830152604482015291169063083d089d90606401600060405180830381600087803b15801561211457600080fd5b505af1158015612128573d6000803e3d6000fd5b505050610120840151600091506001600160a01b031615612149578161214b565b345b9050836040015184602001516001600160a01b031685600001516001600160a01b03167fcd2ac775eba6d68eb3bdbba5c500751ed102e5d2b7bf9c459b3e7b808d132cbd86856040516121b39291906001600160a01b03929092168252602082015260400190565b60405180910390a46121d8846020015185604001518660000151868860e001516127f2565b6101208401516001600160a01b0316612202576121fd84602001518560000151612ab2565b612222565b811561222257612222846020015185600001518585886101200151612c6f565b50505050565b60005474010000000000000000000000000000000000000000900460ff16156122935760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610430565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c053390565b6000807f64eb4af5450e5310cebd7bb2ff5d276bdea51574927b51bbad8df4c2626988cf9050600081856000015186602001518760400151886060015189608001518a60a001518b60c001518c60e001518d6101000151604051602001611aa09a99989796959493929190998a526001600160a01b0398891660208b015296881660408a01526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152166101208201526101400190565b6008548251602084015160408086015190517f083d089d0000000000000000000000000000000000000000000000000000000081526001600160a01b0393841660048201529183166024830152604482015291169063083d089d90606401600060405180830381600087803b15801561242e57600080fd5b505af1158015612442573d6000803e3d6000fd5b50505050816040015182602001516001600160a01b031683600001516001600160a01b03167f70ba0d31158674eea8365d0f7b9ac70e552cc28b8bb848664e4feb939c6578f8848660a001516040516124b09291906001600160a01b03929092168252602082015260400190565b60405180910390a46124d5826020015183604001518460000151848660c001516127f2565b6101008201516001600160a01b03166124fa5761087982602001518360000151612ab2565b60a0820151156108795761087982602001518360000151838560a00151866101000151612c6f565b6008546040517fb910b6640000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063b910b6649061256b908590600401613be2565b600060405180830381600087803b15801561258557600080fd5b505af1158015612599573d6000803e3d6000fd5b505050604080850151602080870151875160a089015185516001600160a01b03928316815293840152929450821692918516917fcb3cd529428badade171c8b0ef6c2f25d13bc69785143c43ec869d386ae34141910160405180910390a4612614836020015184604001518386600001518760c001516127f2565b60a0830151156120975761209783602001518285600001518660a001518760e00151612c6f565b600080600061264a8585612e4d565b9150915061265781612ebd565b509392505050565b600061268b827f01ffc9a7000000000000000000000000000000000000000000000000000000006126c3565b80156107ea57506126bc827fffffffff000000000000000000000000000000000000000000000000000000006126c3565b1592915050565b604080517fffffffff00000000000000000000000000000000000000000000000000000000831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f01ffc9a700000000000000000000000000000000000000000000000000000000179052905160009190829081906001600160a01b0387169061753090612770908690613d23565b6000604051808303818686fa925050503d80600081146127ac576040519150601f19603f3d011682016040523d82523d6000602084013e6127b1565b606091505b50915091506020815110156127cc57600093505050506107ea565b8180156127e85750808060200190518101906127e89190613c12565b9695505050505050565b60025461280c906001600160a01b0387169060e01b611c22565b156129a8576040517fe985e9c50000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015230602483015286919082169063e985e9c59060440160206040518083038186803b15801561287457600080fd5b505afa158015612888573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ac9190613c12565b61291e5760405162461bcd60e51b815260206004820152603060248201527f5468652045786368616e6765206973206e6f7420617070726f76656420746f2060448201527f6f7065726174652074686973204e4654000000000000000000000000000000006064820152608401610430565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152604482018790528216906323b872dd906064015b600060405180830381600087803b15801561298a57600080fd5b505af115801561299e573d6000803e3d6000fd5b5050505050612aab565b6002546129ca906001600160a01b03871690640100000000900460e01b611c22565b15612a3d576040517ff242432a0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301528381166024830152604482018690526064820183905260a06084830152600060a483015286919082169063f242432a9060c401612970565b60405162461bcd60e51b815260206004820152603a60248201527f576520646f6e2774207265636f676e697a6520746865204e465420617320656960448201527f7468657220616e20455243373231206f7220455243313135352e0000000000006064820152608401610430565b5050505050565b6007546040517fec4210ff0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526000926103e89234929091169063ec4210ff9060240160206040518083038186803b158015612b1957600080fd5b505afa158015612b2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b519190613c34565b612b5b9190613cce565b612b659190613c93565b905060006103e834600354612b7a9190613cce565b612b849190613c93565b9050600081612b938434613c7c565b612b9d9190613c7c565b90508215612c43576007546040517f2df5cb230000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152612c43921690632df5cb239060240160206040518083038186803b158015612c0557600080fd5b505afa158015612c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c3d9190613bf5565b846130ae565b600254612c65906801000000000000000090046001600160a01b0316836130ae565b612aab84826130ae565b6007546040517fec4210ff0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301526000926103e89286929091169063ec4210ff9060240160206040518083038186803b158015612cd657600080fd5b505afa158015612cea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d0e9190613c34565b612d189190613cce565b612d229190613c93565b905060006103e884600354612d379190613cce565b612d419190613c93565b9050600081612d508487613c7c565b612d5a9190613c7c565b90508215612e0f576007546040517f2df5cb230000000000000000000000000000000000000000000000000000000081526001600160a01b038a81166004830152612e0f928992911690632df5cb239060240160206040518083038186803b158015612dc557600080fd5b505afa158015612dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dfd9190613bf5565b6001600160a01b0387169190866131c7565b600254612e38906001600160a01b038681169189916801000000000000000090910416856131c7565b610bae6001600160a01b0385168789846131c7565b600080825160411415612e845760208301516040840151606085015160001a612e788782858561324f565b94509450505050612eb6565b825160401415612eae5760208301516040840151612ea386838361335a565b935093505050612eb6565b506000905060025b9250929050565b6000816004811115612ed157612ed1613d3f565b1415612eda5750565b6001816004811115612eee57612eee613d3f565b1415612f3c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610430565b6002816004811115612f5057612f50613d3f565b1415612f9e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610430565b6003816004811115612fb257612fb2613d3f565b14156130265760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610430565b600481600481111561303a5761303a613d3f565b14156117115760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610430565b804710156130fe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610430565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461314b576040519150601f19603f3d011682016040523d82523d6000602084013e613150565b606091505b50509050806120975760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610430565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526122229085906133ac565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132865750600090506003613351565b8460ff16601b1415801561329e57508460ff16601c14155b156132af5750600090506004613351565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613303573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b03811661334a57600060019250925050613351565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161339060ff86901c601b613d0b565b905061339e8782888561324f565b935093505050935093915050565b6000613401826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134919092919063ffffffff16565b805190915015612097578080602001905181019061341f9190613c12565b6120975760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610430565b60606134a084846000856134a8565b949350505050565b6060824710156135205760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610430565b6001600160a01b0385163b6135775760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610430565b600080866001600160a01b031685876040516135939190613d23565b60006040518083038185875af1925050503d80600081146135d0576040519150601f19603f3d011682016040523d82523d6000602084013e6135d5565b606091505b50915091506135e58282866135f0565b979650505050505050565b606083156135ff575081611c3e565b82511561360f5782518084602001fd5b8160405162461bcd60e51b81526004016104309190613be2565b6001600160a01b038116811461171157600080fd5b803561364981613629565b919050565b60008060006060848603121561366357600080fd5b833561366e81613629565b9250602084013561367e81613629565b929592945050506040919091013590565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610140810167ffffffffffffffff811182821017156136e2576136e261368f565b60405290565b600082601f8301126136f957600080fd5b813567ffffffffffffffff808211156137145761371461368f565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561375a5761375a61368f565b8160405283815286602085880101111561377357600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060008060006101208a8c0312156137b257600080fd5b89356137bd81613629565b985060208a01356137cd81613629565b975060408a0135965060608a0135955060808a0135945060a08a0135935060c08a0135925060e08a013561380081613629565b91506101008a013567ffffffffffffffff81111561381d57600080fd5b6138298c828d016136e8565b9150509295985092959850929598565b60006020828403121561384b57600080fd5b8135611c3e81613629565b60008060006060848603121561386b57600080fd5b833561387681613629565b9250602084013561388681613629565b9150604084013561389681613629565b809150509250925092565b6000602082840312156138b357600080fd5b813567ffffffffffffffff8111156138ca57600080fd5b6134a0848285016136e8565b60008060008385036101808112156138ed57600080fd5b610140808212156138fd57600080fd5b6139056136be565b91506139108661363e565b825261391e6020870161363e565b602083015260408601356040830152606086013560608301526080860135608083015260a086013560a083015260c086013560c083015260e086013560e083015261010080870135818401525061012061397981880161363e565b9083015290935084013567ffffffffffffffff81111561399857600080fd5b6139a4868287016136e8565b9250506139b4610160850161363e565b90509250925092565b60008060008060008060008060008060006101608c8e0312156139df57600080fd5b8b356139ea81613629565b9a5060208c01356139fa81613629565b995060408c0135985060608c0135975060808c0135965060a08c0135955060c08c0135945060e08c01359350613a336101008d0161363e565b92506101208c013567ffffffffffffffff811115613a5057600080fd5b613a5c8e828f016136e8565b925050613a6c6101408d0161363e565b90509295989b509295989b9093969950565b60008060008060808587031215613a9457600080fd5b5050823594602084013594506040840135936060013592509050565b6000806000806000806000806000806101408b8d031215613ad057600080fd5b8a35613adb81613629565b995060208b0135613aeb81613629565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b0135935060e08b0135613b1e81613629565b92506101008b013567ffffffffffffffff811115613b3b57600080fd5b613b478d828e016136e8565b9250506101208b0135613b5981613629565b809150509295989b9194979a5092959850565b60005b83811015613b87578181015183820152602001613b6f565b838111156122225750506000910152565b60008151808452613bb0816020860160208601613b6c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611c3e6020830184613b98565b600060208284031215613c0757600080fd5b8151611c3e81613629565b600060208284031215613c2457600080fd5b81518015158114611c3e57600080fd5b600060208284031215613c4657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613c8e57613c8e613c4d565b500390565b600082613cc9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d0657613d06613c4d565b500290565b60008219821115613d1e57613d1e613c4d565b500190565b60008251613d35818460208701613b6c565b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220a139b7ad35ffc547a78bf36f722abcecb18e2f07a73469fd7888b18f9570db0a64736f6c63430008090033

Deployed ByteCode Sourcemap

52502:24745:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63471:335;;;;;;;;;;-1:-1:-1;63471:335:0;;;;;:::i;:::-;;:::i;:::-;;62535:843;;;;;;;;;;-1:-1:-1;62535:843:0;;;;;:::i;:::-;;:::i;65281:125::-;;;;;;;;;;-1:-1:-1;65281:125:0;;;;;:::i;:::-;;:::i;64456:172::-;;;;;;;;;;-1:-1:-1;64456:172:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3771:55:1;;;3753:74;;3741:2;3726:18;64456:172:0;;;;;;;;66307:142;;;;;;;;;;;;;:::i;66142:67::-;;;;;;;;;;;;;:::i;65488:398::-;;;;;;;;;;-1:-1:-1;65488:398:0;;;;;:::i;:::-;;:::i;61888:590::-;;;;;;;;;;-1:-1:-1;61888:590:0;;;;;:::i;:::-;;:::i;64975:151::-;;;;;;;;;;-1:-1:-1;64975:151:0;;;;;:::i;:::-;;:::i;:::-;;;5331:14:1;;5324:22;5306:41;;5294:2;5279:18;64975:151:0;5166:187:1;44422:86:0;;;;;;;;;;-1:-1:-1;44469:4:0;44493:7;;;;;;44422:86;;4196:103;;;;;;;;;;;;;:::i;59968:1789::-;;;;;;:::i;:::-;;:::i;65982:63::-;;;;;;;;;;;;;:::i;3545:87::-;;;;;;;;;;-1:-1:-1;3591:7:0;3618:6;-1:-1:-1;;;;;3618:6:0;3545:87;;56471:1806;;;;;;:::i;:::-;;:::i;63814:573::-;;;;;;;;;;-1:-1:-1;63814:573:0;;;;;:::i;:::-;;:::i;:::-;;;8398:25:1;;;8386:2;8371:18;63814:573:0;8252:177:1;64735:166:0;;;;;;;;;;-1:-1:-1;64735:166:0;;;;;:::i;:::-;;:::i;4454:201::-;;;;;;;;;;-1:-1:-1;4454:201:0;;;;;:::i;:::-;;:::i;58395:1299::-;;;;;;:::i;:::-;;:::i;63471:335::-;-1:-1:-1;;;;;63618:20:0;;2343:10;63618:20;;:47;;-1:-1:-1;3591:7:0;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;63642:23;63618:47;63609:107;;;;-1:-1:-1;;;63609:107:0;;9882:2:1;63609:107:0;;;9864:21:1;9921:2;9901:18;;;9894:30;9960:34;9940:18;;;9933:62;10031:15;10011:18;;;10004:43;10064:19;;63609:107:0;;;;;;;;;63727:20;;:71;;;;;-1:-1:-1;;;;;10375:15:1;;;63727:71:0;;;10357:34:1;10427:15;;;10407:18;;;10400:43;10459:18;;;10452:34;;;63727:20:0;;;;:45;;10269:18:1;;63727:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63471:335;;;:::o;62535:843::-;-1:-1:-1;;;;;62859:21:0;;2343:10;62859:21;;:48;;-1:-1:-1;3591:7:0;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;62884:23;62859:48;62850:108;;;;-1:-1:-1;;;62850:108:0;;9882:2:1;62850:108:0;;;9864:21:1;9921:2;9901:18;;;9894:30;9960:34;9940:18;;;9933:62;10031:15;10011:18;;;10004:43;10064:19;;62850:108:0;9680:409:1;62850:108:0;62971:24;62998:210;;;;;;;;63021:5;-1:-1:-1;;;;;62998:210:0;;;;;63041:15;-1:-1:-1;;;;;62998:210:0;;;;;63071:7;62998:210;;;;63093:9;62998:210;;;;63117:10;62998:210;;;;63142:5;62998:210;;;;63162:8;62998:210;;;;63185:12;-1:-1:-1;;;;;62998:210:0;;;;62971:237;;63229:44;63253:8;63263:9;63229:23;:44::i;:::-;63221:93;;;;-1:-1:-1;;;63221:93:0;;10699:2:1;63221:93:0;;;10681:21:1;10738:2;10718:18;;;10711:30;10777:34;10757:18;;;10750:62;10848:6;10828:18;;;10821:34;10872:19;;63221:93:0;10497:400:1;63221:93:0;63327:20;;:43;;;;;-1:-1:-1;;;;;63327:20:0;;;;:32;;:43;;63360:9;;63327:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62839:539;62535:843;;;;;;;;;:::o;65281:125::-;3591:7;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;3765:23;3757:68;;;;-1:-1:-1;;;3757:68:0;;11910:2:1;3757:68:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;3757:68:0;11708:356:1;3757:68:0;65368:12:::1;:30:::0;;-1:-1:-1;;;;;65368:30:0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;65281:125::o;64456:172::-;64564:15;;:56;;;;;-1:-1:-1;;;;;3771:55:1;;;64564:56:0;;;3753:74:1;64537:7:0;;64564:15;;:39;;3726:18:1;;64564:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64557:63;64456:172;-1:-1:-1;;64456:172:0:o;66307:142::-;3591:7;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;3765:23;3757:68;;;;-1:-1:-1;;;3757:68:0;;11910:2:1;3757:68:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;3757:68:0;11708:356:1;3757:68:0;66404:37:::1;::::0;66372:21:::1;::::0;66412:10:::1;::::0;66404:37;::::1;;;::::0;66372:21;;66357:12:::1;66404:37:::0;66357:12;66404:37;66372:21;66412:10;66404:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;66346:103;66307:142::o:0;66142:67::-;3591:7;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;3765:23;3757:68;;;;-1:-1:-1;;;3757:68:0;;11910:2:1;3757:68:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;3757:68:0;11708:356:1;3757:68:0;66191:10:::1;:8;:10::i;:::-;66142:67::o:0;65488:398::-;3591:7;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;3765:23;3757:68;;;;-1:-1:-1;;;3757:68:0;;11910:2:1;3757:68:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;3757:68:0;11708:356:1;3757:68:0;65670:15:::1;:52:::0;;-1:-1:-1;;;;;65670:52:0;;::::1;::::0;;;::::1;;::::0;;;65733:20:::1;:67:::0;;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;65811:20:::1;:67:::0;;;;;::::1;::::0;::::1;;::::0;;65488:398::o;61888:590::-;62037:19;;62018:15;:38;;62010:84;;;;-1:-1:-1;;;62010:84:0;;12535:2:1;62010:84:0;;;12517:21:1;12574:2;12554:18;;;12547:30;12613:34;12593:18;;;12586:62;12684:3;12664:18;;;12657:31;12705:19;;62010:84:0;12333:397:1;62010:84:0;62147:18;;62113:53;;-1:-1:-1;;;;;62113:33:0;;;62147:18;;62113:33;:53::i;:::-;:111;;;-1:-1:-1;62204:19:0;;62170:54;;-1:-1:-1;;;;;62170:33:0;;;62204:19;;;;;62170:33;:54::i;:::-;62105:148;;;;-1:-1:-1;;;62105:148:0;;12937:2:1;62105:148:0;;;12919:21:1;12976:2;12956:18;;;12949:30;13015:26;12995:18;;;12988:54;13059:18;;62105:148:0;12735:348:1;62105:148:0;62266:26;62303:15;62266:53;;62354:18;-1:-1:-1;;;;;62354:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;62338:42:0;2343:10;-1:-1:-1;;;;;62338:42:0;;62330:51;;;;;;62394:15;;:76;;;;;-1:-1:-1;;;;;10375:15:1;;;62394:76:0;;;10357:34:1;10427:15;;;10407:18;;;10400:43;10459:18;;;10452:34;;;62394:15:0;;;;:26;;10269:18:1;;62394:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61999:479;61888:590;;;:::o;64975:151::-;65070:20;;:48;;;;;65046:4;;-1:-1:-1;;;;;65070:20:0;;:37;;:48;;65108:9;;65070:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;4196:103::-;3591:7;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;3765:23;3757:68;;;;-1:-1:-1;;;3757:68:0;;11910:2:1;3757:68:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;3757:68:0;11708:356:1;3757:68:0;4261:30:::1;4288:1;4261:18;:30::i;59968:1789::-:0;44469:4;44493:7;;;;;;44747:9;44739:38;;;;-1:-1:-1;;;44739:38:0;;14247:2:1;44739:38:0;;;14229:21:1;14286:2;14266:18;;;14259:30;14325:18;14305;;;14298:46;14361:18;;44739:38:0;14045:340:1;44739:38:0;47428:1:::1;48026:7;;:19;;48018:63;;;::::0;-1:-1:-1;;;48018:63:0;;14592:2:1;48018:63:0::1;::::0;::::1;14574:21:1::0;14631:2;14611:18;;;14604:30;14670:33;14650:18;;;14643:61;14721:18;;48018:63:0::1;14390:355:1::0;48018:63:0::1;47428:1;48159:7;:18:::0;60400:38:::2;::::0;::::2;::::0;60253:20:::2;::::0;60310:24;;60336:33:::2;::::0;::::2;::::0;60371:25:::2;::::0;;::::2;::::0;60253:144;;;;;-1:-1:-1;;;;;10375:15:1;;;60253:144:0::2;::::0;::::2;10357:34:1::0;10427:15;;;10407:18;;;10400:43;10459:18;;;10452:34;60253:20:0;::::2;::::0;:56:::2;::::0;10269:18:1;;60253:144:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:185;60231:265;;;::::0;-1:-1:-1;;;60231:265:0;;15552:2:1;60231:265:0::2;::::0;::::2;15534:21:1::0;15591:2;15571:18;;;15564:30;15630:32;15610:18;;;15603:60;15680:18;;60231:265:0::2;15350:354:1::0;60231:265:0::2;60554:60;60585:17;60604:9;60554:30;:60::i;:::-;60546:118;;;::::0;-1:-1:-1;;;60546:118:0;;15911:2:1;60546:118:0::2;::::0;::::2;15893:21:1::0;15950:2;15930:18;;;15923:30;15989:34;15969:18;;;15962:62;16060:15;16040:18;;;16033:43;16093:19;;60546:118:0::2;15709:409:1::0;60546:118:0::2;60752:17;:27;;;60734:15;:45;60725:105;;;::::0;-1:-1:-1;;;60725:105:0;;16325:2:1;60725:105:0::2;::::0;::::2;16307:21:1::0;16364:2;16344:18;;;16337:30;16403:34;16383:18;;;16376:62;16474:15;16454:18;;;16447:43;16507:19;;60725:105:0::2;16123:409:1::0;60725:105:0::2;60900:17;:25;;;60882:15;:43;60873:95;;;::::0;-1:-1:-1;;;60873:95:0;;16739:2:1;60873:95:0::2;::::0;::::2;16721:21:1::0;16778:2;16758:18;;;16751:30;16817:34;16797:18;;;16790:62;16888:7;16868:18;;;16861:35;16913:19;;60873:95:0::2;16537:401:1::0;60873:95:0::2;60981:20;61004:200;61040:17;:27;;;61083:17;:25;;;61124:17;:28;;;61167:17;:26;;;61004:21;:200::i;:::-;61405:30;::::0;::::2;::::0;60981:223;;-1:-1:-1;;;;;;61405:44:0::2;61401:279;;61487:12;61474:9;:25;;61466:93;;;::::0;-1:-1:-1;;;61466:93:0;;17145:2:1;61466:93:0::2;::::0;::::2;17127:21:1::0;17184:2;17164:18;;;17157:30;17223:34;17203:18;;;17196:62;17294:25;17274:18;;;17267:53;17337:19;;61466:93:0::2;16943:419:1::0;61466:93:0::2;61401:279;;;61592:76;61616:5;61623:12;61637:17;:30;;;61592:23;:76::i;:::-;61692:57;61710:17;61729:5;61736:12;61692:17;:57::i;:::-;-1:-1:-1::0;;47384:1:0::1;48338:22:::0;;-1:-1:-1;;59968:1789:0:o;65982:63::-;3591:7;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;3765:23;3757:68;;;;-1:-1:-1;;;3757:68:0;;11910:2:1;3757:68:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;3757:68:0;11708:356:1;3757:68:0;66029:8:::1;:6;:8::i;56471:1806::-:0;44469:4;44493:7;;;;;;44747:9;44739:38;;;;-1:-1:-1;;;44739:38:0;;14247:2:1;44739:38:0;;;14229:21:1;14286:2;14266:18;;;14259:30;14325:18;14305;;;14298:46;14361:18;;44739:38:0;14045:340:1;44739:38:0;47428:1:::1;48026:7;;:19;;48018:63;;;::::0;-1:-1:-1;;;48018:63:0;;14592:2:1;48018:63:0::1;::::0;::::1;14574:21:1::0;14631:2;14611:18;;;14604:30;14670:33;14650:18;;;14643:61;14721:18;;48018:63:0::1;14390:355:1::0;48018:63:0::1;47428:1;48159:7;:18:::0;-1:-1:-1;;;;;57082:26:0;::::2;57078:223;;57146:5;57133:9;:18;;57125:80;;;::::0;-1:-1:-1;;;57125:80:0;;17569:2:1;57125:80:0::2;::::0;::::2;17551:21:1::0;17608:2;17588:18;;;17581:30;17647:34;17627:18;;;17620:62;17718:19;17698:18;;;17691:47;17755:19;;57125:80:0::2;17367:413:1::0;57125:80:0::2;57078:223;;;57238:51;57262:5;57269;57276:12;57238:23;:51::i;:::-;57342:247;::::0;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;57342:247:0;;::::2;::::0;;;;;::::2;;::::0;::::2;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::2;::::0;;;;57676:20:::2;::::0;:90;;;;;::::2;::::0;::::2;10357:34:1::0;;;;10407:18;;;10400:43;10459:18;;;10452:34;;;57342:247:0;;57531:20;;57676;::::2;::::0;:56:::2;::::0;10269:18:1;;57676:90:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:113;57654:193;;;::::0;-1:-1:-1;;;57654:193:0;;15552:2:1;57654:193:0::2;::::0;::::2;15534:21:1::0;15591:2;15571:18;;;15564:30;15630:32;15610:18;;;15603:60;15680:18;;57654:193:0::2;15350:354:1::0;57654:193:0::2;57899:46;57924:9;57935;57899:24;:46::i;:::-;57891:96;;;::::0;-1:-1:-1;;;57891:96:0;;17987:2:1;57891:96:0::2;::::0;::::2;17969:21:1::0;18026:2;18006:18;;;17999:30;18065:34;18045:18;;;18038:62;18136:7;18116:18;;;18109:35;18161:19;;57891:96:0::2;17785:401:1::0;57891:96:0::2;58057:9;58039:15;:27;58030:80;;;::::0;-1:-1:-1;;;58030:80:0;;18393:2:1;58030:80:0::2;::::0;::::2;18375:21:1::0;18432:2;18412:18;;;18405:30;18471:34;18451:18;;;18444:62;18542:8;18522:18;;;18515:36;18568:19;;58030:80:0::2;18191:402:1::0;58030:80:0::2;58180:10;58162:15;:28;58153:71;;;::::0;-1:-1:-1;;;58153:71:0;;18800:2:1;58153:71:0::2;::::0;::::2;18782:21:1::0;18839:2;18819:18;;;18812:30;18878;18858:18;;;18851:58;18926:18;;58153:71:0::2;18598:352:1::0;58153:71:0::2;58237:32;58252:9;58263:5;58237:14;:32::i;:::-;-1:-1:-1::0;;47384:1:0::1;48338:22:::0;;-1:-1:-1;;;;;;;;;;56471:1806:0:o;63814:573::-;63940:7;;63987:19;63997:9;63987:7;:19;:::i;:::-;63960:47;-1:-1:-1;64018:21:0;64043:25;64053:15;64043:7;:25;:::i;:::-;64018:51;-1:-1:-1;64082:25:0;64150:29;64018:51;64150:13;:29;:::i;:::-;64111:34;64130:15;64111:16;:34;:::i;:::-;64110:70;;;;:::i;:::-;64082:98;-1:-1:-1;64193:22:0;64218:21;64231:8;64218:10;:21;:::i;:::-;64193:46;-1:-1:-1;64250:31:0;64323:4;64285:34;64193:46;64285:17;:34;:::i;:::-;64284:43;;;;:::i;:::-;64250:77;-1:-1:-1;64345:34:0;64250:77;64345:8;:34;:::i;:::-;64338:41;63814:573;-1:-1:-1;;;;;;;;;;63814:573:0:o;64735:166::-;64840:15;;:53;;;;;-1:-1:-1;;;;;3771:55:1;;;64840:53:0;;;3753:74:1;64813:7:0;;64840:15;;:36;;3726:18:1;;64840:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;4454:201::-;3591:7;3618:6;-1:-1:-1;;;;;3618:6:0;2343:10;3765:23;3757:68;;;;-1:-1:-1;;;3757:68:0;;11910:2:1;3757:68:0;;;11892:21:1;;;11929:18;;;11922:30;11988:34;11968:18;;;11961:62;12040:18;;3757:68:0;11708:356:1;3757:68:0;-1:-1:-1;;;;;4543:22:0;::::1;4535:73;;;::::0;-1:-1:-1;;;4535:73:0;;20121:2:1;4535:73:0::1;::::0;::::1;20103:21:1::0;20160:2;20140:18;;;20133:30;20199:34;20179:18;;;20172:62;20270:8;20250:18;;;20243:36;20296:19;;4535:73:0::1;19919:402:1::0;4535:73:0::1;4619:28;4638:8;4619:18;:28::i;:::-;4454:201:::0;:::o;58395:1299::-;44469:4;44493:7;;;;;;44747:9;44739:38;;;;-1:-1:-1;;;44739:38:0;;14247:2:1;44739:38:0;;;14229:21:1;14286:2;14266:18;;;14259:30;14325:18;14305;;;14298:46;14361:18;;44739:38:0;14045:340:1;44739:38:0;47428:1:::1;48026:7;;:19;;48018:63;;;::::0;-1:-1:-1;;;48018:63:0;;14592:2:1;48018:63:0::1;::::0;::::1;14574:21:1::0;14631:2;14611:18;;;14604:30;14670:33;14650:18;;;14643:61;14721:18;;48018:63:0::1;14390:355:1::0;48018:63:0::1;47428:1;48159:7;:18:::0;58776:51:::2;58800:5:::0;58807;58814:12;58776:23:::2;:51::i;:::-;58901:27;58918:9;58901:16;:27::i;:::-;58900:28;58892:71;;;::::0;-1:-1:-1;;;58892:71:0;;15552:2:1;58892:71:0::2;::::0;::::2;15534:21:1::0;15591:2;15571:18;;;15564:30;15630:32;15610:18;;;15603:60;15680:18;;58892:71:0::2;15350:354:1::0;58892:71:0::2;58976:24;59003:210;;;;;;;;59026:5;-1:-1:-1::0;;;;;59003:210:0::2;;;;;59046:15;-1:-1:-1::0;;;;;59003:210:0::2;;;;;59076:7;59003:210;;;;59098:9;59003:210;;;;59122:10;59003:210;;;;59147:5;59003:210;;;;59167:8;59003:210;;;;59190:12;-1:-1:-1::0;;;;;59003:210:0::2;;;::::0;58976:237:::2;;59271:44;59295:8;59305:9;59271:23;:44::i;:::-;59263:93;;;::::0;-1:-1:-1;;;59263:93:0;;10699:2:1;59263:93:0::2;::::0;::::2;10681:21:1::0;10738:2;10718:18;;;10711:30;10777:34;10757:18;;;10750:62;10848:6;10828:18;;;10821:34;10872:19;;59263:93:0::2;10497:400:1::0;59263:93:0::2;59429:8;:18;;;59411:15;:36;59402:96;;;::::0;-1:-1:-1;;;59402:96:0;;20528:2:1;59402:96:0::2;::::0;::::2;20510:21:1::0;20567:2;20547:18;;;20540:30;20606:34;20586:18;;;20579:62;20677:15;20657:18;;;20650:43;20710:19;;59402:96:0::2;20326:409:1::0;59402:96:0::2;59571:8;:19;;;59553:15;:37;59544:79;;;::::0;-1:-1:-1;;;59544:79:0;;20942:2:1;59544:79:0::2;::::0;::::2;20924:21:1::0;20981:2;20961:18;;;20954:30;21020:29;21000:18;;;20993:57;21067:18;;59544:79:0::2;20740:351:1::0;59544:79:0::2;59644:42;59658:8;59668:9;59679:6;59644:13;:42::i;:::-;-1:-1:-1::0;;47384:1:0::1;48338:22:::0;;-1:-1:-1;;;;;;;;;58395:1299:0:o;71607:958::-;71713:4;71732:25;71760:189;71732:217;;71962:18;72022:17;72058:8;:14;;;72091:8;:24;;;72134:8;:16;;;72169:8;:18;;;72206:8;:19;;;72244:8;:14;;;72277:8;:17;;;72313:8;:21;;;71993:356;;;;;;;;;;;;;;;21483:25:1;;;-1:-1:-1;;;;;21605:15:1;;;21600:2;21585:18;;21578:43;21657:15;;;21652:2;21637:18;;21630:43;21704:2;21689:18;;21682:34;;;;21747:3;21732:19;;21725:35;;;;21791:3;21776:19;;21769:35;21835:3;21820:19;;21813:35;21879:3;21864:19;;21857:35;21929:15;21923:3;21908:19;;21901:44;21470:3;21455:19;;21096:855;71993:356:0;;;;;;;;;;;;;;71983:367;;71993:356;71983:367;;;;72402:16;;26415:66:1;34700:57:0;;;26403:79:1;26498:11;;;26491:27;26534:12;;;;26527:28;;;34700:57:0;;;;;;;;;;26571:12:1;;;;34700:57:0;;;34690:68;;;;;;;;71983:367;;-1:-1:-1;72444:24:0;72471:32;72485:6;72493:9;72471:13;:32::i;:::-;72543:14;;-1:-1:-1;;;;;72523:34:0;;;;;;;-1:-1:-1;;;;;71607:958:0;;;;:::o;45481:120::-;44469:4;44493:7;;;;;;45017:41;;;;-1:-1:-1;;;45017:41:0;;22158:2:1;45017:41:0;;;22140:21:1;22197:2;22177:18;;;22170:30;22236:22;22216:18;;;22209:50;22276:18;;45017:41:0;21956:344:1;45017:41:0;45550:5:::1;45540:15:::0;;;::::1;::::0;;45571:22:::1;2343:10:::0;45580:12:::1;45571:22;::::0;-1:-1:-1;;;;;3771:55:1;;;3753:74;;3741:2;3726:18;45571:22:0::1;;;;;;;45481:120::o:0;19719:277::-;19806:4;19915:23;19930:7;19915:14;:23::i;:::-;:73;;;;;19942:46;19967:7;19976:11;19942:24;:46::i;:::-;19908:80;19719:277;-1:-1:-1;;;19719:277:0:o;4815:191::-;4889:16;4908:6;;-1:-1:-1;;;;;4925:17:0;;;;;;;;;;4958:40;;4908:6;;;;;;;4958:40;;4889:16;4958:40;4878:128;4815:191;:::o;74960:1271::-;75116:4;75135:34;75172:247;75135:284;;75432:18;75492:26;75537:17;:24;;;75580:17;:33;;;75632:17;:25;;;75676:17;:27;;;75722:17;:25;;;75766:17;:28;;;75813:17;:26;;;75858:17;:26;;;75903:17;:38;;;75960:17;:30;;;75463:542;;;;;;;;;;;;;;;;;22749:25:1;;;-1:-1:-1;;;;;22871:15:1;;;22866:2;22851:18;;22844:43;22923:15;;;22918:2;22903:18;;22896:43;22970:2;22955:18;;22948:34;;;;23013:3;22998:19;;22991:35;;;;23057:3;23042:19;;23035:35;;;;23101:3;23086:19;;23079:35;23145:3;23130:19;;23123:35;23189:3;23174:19;;23167:35;23233:3;23218:19;;23211:35;23283:16;23277:3;23262:19;;23255:45;22736:3;22721:19;;22305:1001;69562:779:0;69757:20;;:50;;;;;-1:-1:-1;;;;;3771:55:1;;;69757:50:0;;;3753:74:1;69757:20:0;;;;:36;;3726:18:1;;69757:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;69749:93;;;;-1:-1:-1;;;69749:93:0;;23513:2:1;69749:93:0;;;23495:21:1;23552:2;23532:18;;;23525:30;23591:32;23571:18;;;23564:60;23641:18;;69749:93:0;23311:354:1;69749:93:0;69933:37;;;;;-1:-1:-1;;;;;3771:55:1;;;69933:37:0;;;3753:74:1;69974:5:0;;69933:30;;;;;;3726:18:1;;69933:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;69911:143;;;;-1:-1:-1;;;69911:143:0;;23872:2:1;69911:143:0;;;23854:21:1;23911:2;23891:18;;;23884:30;23950:34;23930:18;;;23923:62;24021:17;24001:18;;;23994:45;24056:19;;69911:143:0;23670:411:1;69911:143:0;70176:52;;;;;-1:-1:-1;;;;;24339:15:1;;;70176:52:0;;;24321:34:1;70222:4:0;24371:18:1;;;24364:43;70232:5:0;;70176:30;;;;;;24233:18:1;;70176:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:61;;70154:179;;;;-1:-1:-1;;;70154:179:0;;24620:2:1;70154:179:0;;;24602:21:1;24659:2;24639:18;;;24632:30;;;24698:34;24678:18;;;24671:62;24769:34;24749:18;;;24742:62;24841:6;24820:19;;;24813:35;24865:19;;70154:179:0;24418:472:1;70154:179:0;69562:779;;;:::o;73514:1438::-;73765:20;;73811:24;;73837:33;;;;73872:25;;;;;73765:133;;;;;-1:-1:-1;;;;;10375:15:1;;;73765:133:0;;;10357:34:1;10427:15;;;10407:18;;;10400:43;10459:18;;;10452:34;73765:20:0;;;:45;;10269:18:1;;73765:133:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;73930:30:0;;;;73909:18;;-1:-1:-1;;;;;;73930:44:0;;:71;;73989:12;73930:71;;;73977:9;73930:71;73909:92;;74104:17;:25;;;74069:17;:33;;;-1:-1:-1;;;;;74017:125:0;74036:17;:24;;;-1:-1:-1;;;;;74017:125:0;;74062:5;74131:10;74017:125;;;;;;-1:-1:-1;;;;;25103:55:1;;;;25085:74;;25190:2;25175:18;;25168:34;25073:2;25058:18;;24895:313;74017:125:0;;;;;;;;74236:135;74249:17;:33;;;74284:17;:25;;;74311:17;:24;;;74337:5;74344:17;:26;;;74236:12;:135::i;:::-;74482:30;;;;-1:-1:-1;;;;;74482:44:0;74478:467;;74543:90;74573:17;:33;;;74608:17;:24;;;74543:29;:90::i;:::-;74478:467;;;74655:16;;74651:294;;74688:245;74738:17;:33;;;74790:17;:24;;;74833:5;74857:12;74888:17;:30;;;74688:31;:245::i;:::-;73673:1279;73514:1438;;;:::o;45222:118::-;44469:4;44493:7;;;;;;44747:9;44739:38;;;;-1:-1:-1;;;44739:38:0;;14247:2:1;44739:38:0;;;14229:21:1;14286:2;14266:18;;;14259:30;14325:18;14305;;;14298:46;14361:18;;44739:38:0;14045:340:1;44739:38:0;45282:7:::1;:14:::0;;;::::1;::::0;::::1;::::0;;45312:20:::1;45319:12;2343:10:::0;;2263:98;70448:1052;70557:4;70576:26;70605:220;70576:249;;70838:18;70898;70935:9;:16;;;70970:9;:25;;;71014:9;:17;;;71050:9;:19;;;71088:9;:20;;;71127:9;:15;;;71161:9;:18;;;71198:9;:30;;;71247:9;:22;;;70869:415;;;;;;;;;;;;;;;;25628:25:1;;;-1:-1:-1;;;;;25750:15:1;;;25745:2;25730:18;;25723:43;25802:15;;;25797:2;25782:18;;25775:43;25849:2;25834:18;;25827:34;;;;25892:3;25877:19;;25870:35;;;;25936:3;25921:19;;25914:35;;;;25980:3;25965:19;;25958:35;26024:3;26009:19;;26002:35;26068:3;26053:19;;26046:35;26118:15;26112:3;26097:19;;26090:44;25615:3;25600:19;;25213:927;66659:1140:0;66835:20;;66881:16;;66899:25;;;;66926:17;;;;;66835:109;;;;;-1:-1:-1;;;;;10375:15:1;;;66835:109:0;;;10357:34:1;10427:15;;;10407:18;;;10400:43;10459:18;;;10452:34;66835:20:0;;;:45;;10269:18:1;;66835:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67028:9;:17;;;67001:9;:25;;;-1:-1:-1;;;;;66960:103:0;66976:9;:16;;;-1:-1:-1;;;;;66960:103:0;;66994:5;67047:9;:15;;;66960:103;;;;;;-1:-1:-1;;;;;25103:55:1;;;;25085:74;;25190:2;25175:18;;25168:34;25073:2;25058:18;;24895:313;66960:103:0;;;;;;;;67157;67170:9;:25;;;67197:9;:17;;;67216:9;:16;;;67234:5;67241:9;:18;;;67157:12;:103::i;:::-;67371:22;;;;-1:-1:-1;;;;;67371:36:0;67367:425;;67424:74;67454:9;:25;;;67481:9;:16;;;67424:29;:74::i;67367:425::-;67520:15;;;;:19;67516:276;;67556:224;67606:9;:25;;;67650:9;:16;;;67685:5;67709:9;:15;;;67743:9;:22;;;67556:31;:224::i;72573:933::-;72771:20;;:43;;;;;-1:-1:-1;;;;;72771:20:0;;;;:32;;:43;;72804:9;;72771:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;72895:16:0;;;;;72869:24;;;;;72853:14;;72913;;;;72830:98;;-1:-1:-1;;;;;25103:55:1;;;25085:74;;25175:18;;;25168:34;72895:16:0;;-1:-1:-1;72830:98:0;;;;;;;;;25058:18:1;72830:98:0;;;;;;;73022:99;73035:8;:24;;;73061:8;:16;;;73079:6;73087:8;:14;;;73103:8;:17;;;73022:12;:99::i;:::-;73232:14;;;;:18;73228:271;;73267:220;73317:8;:24;;;73360:6;73385:8;:14;;;73418:8;:14;;;73451:8;:21;;;73267:31;:220::i;29656:231::-;29734:7;29755:17;29774:18;29796:27;29807:4;29813:9;29796:10;:27::i;:::-;29754:69;;;;29834:18;29846:5;29834:11;:18::i;:::-;-1:-1:-1;29870:9:0;29656:231;-1:-1:-1;;;29656:231:0:o;19076:417::-;19140:4;19351:60;19376:7;19385:25;19351:24;:60::i;:::-;:134;;;;-1:-1:-1;19429:56:0;19454:7;19463:21;19429:24;:56::i;:::-;19428:57;19331:154;19076:417;-1:-1:-1;;19076:417:0:o;22680:414::-;22819:71;;;26768:66:1;26756:79;;22819:71:0;;;;26738:98:1;;;;22819:71:0;;;;;;;;;;26711:18:1;;;;22819:71:0;;;;;;;;;22842:34;22819:71;;;22939:45;;22773:4;;22819:71;22773:4;;;;-1:-1:-1;;;;;22939:18:0;;;22963:5;;22939:45;;22819:71;;22939:45;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22901:83;;;;23015:2;22999:6;:13;:18;22995:36;;;23026:5;23019:12;;;;;;;22995:36;23049:7;:37;;;;;23071:6;23060:26;;;;;;;;;;;;:::i;:::-;23042:44;22680:414;-1:-1:-1;;;;;;22680:414:0:o;76239:1005::-;76410:18;;76376:53;;-1:-1:-1;;;;;76376:33:0;;;76410:18;;76376:33;:53::i;:::-;76372:865;;;76559:46;;;;;-1:-1:-1;;;;;24339:15:1;;;76559:46:0;;;24321:34:1;76599:4:0;24371:18:1;;;24364:43;76471:15:0;;76559:23;;;;;;24233:18:1;;76559:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;76551:107;;;;-1:-1:-1;;;76551:107:0;;27328:2:1;76551:107:0;;;27310:21:1;27367:2;27347:18;;;27340:30;27406:34;27386:18;;;27379:62;27477:18;27457;;;27450:46;27513:19;;76551:107:0;27126:412:1;76551:107:0;76768:43;;;;;-1:-1:-1;;;;;10375:15:1;;;76768:43:0;;;10357:34:1;10427:15;;;10407:18;;;10400:43;10459:18;;;10452:34;;;76768:19:0;;;;;10269:18:1;;76768:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76431:394;76372:865;;;76869:19;;76835:54;;-1:-1:-1;;;;;76835:33:0;;;76869:19;;;;;76835:33;:54::i;:::-;76831:406;;;77060:62;;;;;-1:-1:-1;;;;;27917:15:1;;;77060:62:0;;;27899:34:1;27969:15;;;27949:18;;;27942:43;28001:18;;;27994:34;;;28044:18;;;28037:34;;;28108:3;28087:19;;;28080:32;-1:-1:-1;28128:19:1;;;28121:30;76934:15:0;;77060:24;;;;;;28168:19:1;;77060:62:0;27543:650:1;76831:406:0;77157:68;;-1:-1:-1;;;77157:68:0;;28400:2:1;77157:68:0;;;28382:21:1;28439:2;28419:18;;;28412:30;28478:34;28458:18;;;28451:62;28549:28;28529:18;;;28522:56;28595:19;;77157:68:0;28198:422:1;76831:406:0;76239:1005;;;;;:::o;67908:639::-;68049:15;;:53;;;;;-1:-1:-1;;;;;3771:55:1;;;68049:53:0;;;3753:74:1;68024:21:0;;68118:4;;68105:9;;68049:15;;;;:36;;3726:18:1;;68049:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:65;;;;:::i;:::-;68048:74;;;;:::i;:::-;68024:98;;68133:19;68189:4;68176:9;68156:17;;:29;;;;:::i;:::-;68155:38;;;;:::i;:::-;68133:60;-1:-1:-1;68204:23:0;68133:60;68230:25;68242:13;68230:9;:25;:::i;:::-;:39;;;;:::i;:::-;68204:65;-1:-1:-1;68286:17:0;;68282:140;;68338:15;;:56;;;;;-1:-1:-1;;;;;3771:55:1;;;68338:56:0;;;3753:74:1;68320:90:0;;68338:15;;:39;;3726:18:1;;68338:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68396:13;68320:17;:90::i;:::-;68452:12;;68434:44;;68452:12;;;-1:-1:-1;;;;;68452:12:0;68466:11;68434:17;:44::i;:::-;68489:50;68507:14;68523:15;68489:17;:50::i;68555:856::-;68786:15;;:53;;;;;-1:-1:-1;;;;;3771:55:1;;;68786:53:0;;;3753:74:1;68761:21:0;;68851:4;;68842:5;;68786:15;;;;:36;;3726:18:1;;68786:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:61;;;;:::i;:::-;68785:70;;;;:::i;:::-;68761:94;;68866:19;68918:4;68909:5;68889:17;;:25;;;;:::i;:::-;68888:34;;;;:::i;:::-;68866:56;-1:-1:-1;68933:23:0;68866:56;68959:21;68967:13;68959:5;:21;:::i;:::-;:35;;;;:::i;:::-;68933:61;-1:-1:-1;69011:17:0;;69007:233;;69125:15;;:56;;;;;-1:-1:-1;;;;;3771:55:1;;;69125:56:0;;;3753:74:1;69045:183:0;;69101:5;;69125:15;;;:39;;3726:18:1;;69125:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;69045:37:0;;;:183;69200:13;69045:37;:183::i;:::-;69297:12;;69252:71;;-1:-1:-1;;;;;69252:37:0;;;;69290:5;;69297:12;;;;;69311:11;69252:37;:71::i;:::-;69334:69;-1:-1:-1;;;;;69334:37:0;;69372:5;69379:6;69387:15;69334:37;:69::i;27546:1308::-;27627:7;27636:12;27861:9;:16;27881:2;27861:22;27857:990;;;28157:4;28142:20;;28136:27;28207:4;28192:20;;28186:27;28265:4;28250:20;;28244:27;27900:9;28236:36;28308:25;28319:4;28236:36;28136:27;28186;28308:10;:25::i;:::-;28301:32;;;;;;;;;27857:990;28355:9;:16;28375:2;28355:22;28351:496;;;28630:4;28615:20;;28609:27;28681:4;28666:20;;28660:27;28723:23;28734:4;28609:27;28660;28723:10;:23::i;:::-;28716:30;;;;;;;;28351:496;-1:-1:-1;28795:1:0;;-1:-1:-1;28799:35:0;28351:496;27546:1308;;;;;:::o;25817:643::-;25895:20;25886:5;:29;;;;;;;;:::i;:::-;;25882:571;;;25817:643;:::o;25882:571::-;25993:29;25984:5;:38;;;;;;;;:::i;:::-;;25980:473;;;26039:34;;-1:-1:-1;;;26039:34:0;;29016:2:1;26039:34:0;;;28998:21:1;29055:2;29035:18;;;29028:30;29094:26;29074:18;;;29067:54;29138:18;;26039:34:0;28814:348:1;25980:473:0;26104:35;26095:5;:44;;;;;;;;:::i;:::-;;26091:362;;;26156:41;;-1:-1:-1;;;26156:41:0;;29369:2:1;26156:41:0;;;29351:21:1;29408:2;29388:18;;;29381:30;29447:33;29427:18;;;29420:61;29498:18;;26156:41:0;29167:355:1;26091:362:0;26228:30;26219:5;:39;;;;;;;;:::i;:::-;;26215:238;;;26275:44;;-1:-1:-1;;;26275:44:0;;29729:2:1;26275:44:0;;;29711:21:1;29768:2;29748:18;;;29741:30;29807:34;29787:18;;;29780:62;29878:4;29858:18;;;29851:32;29900:19;;26275:44:0;29527:398:1;26215:238:0;26350:30;26341:5;:39;;;;;;;;:::i;:::-;;26337:116;;;26397:44;;-1:-1:-1;;;26397:44:0;;30132:2:1;26397:44:0;;;30114:21:1;30171:2;30151:18;;;30144:30;30210:34;30190:18;;;30183:62;30281:4;30261:18;;;30254:32;30303:19;;26397:44:0;29930:398:1;37275:317:0;37390:6;37365:21;:31;;37357:73;;;;-1:-1:-1;;;37357:73:0;;30535:2:1;37357:73:0;;;30517:21:1;30574:2;30554:18;;;30547:30;30613:31;30593:18;;;30586:59;30662:18;;37357:73:0;30333:353:1;37357:73:0;37444:12;37462:9;-1:-1:-1;;;;;37462:14:0;37484:6;37462:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37443:52;;;37514:7;37506:78;;;;-1:-1:-1;;;37506:78:0;;31103:2:1;37506:78:0;;;31085:21:1;31142:2;31122:18;;;31115:30;31181:34;31161:18;;;31154:62;31252:28;31232:18;;;31225:56;31298:19;;37506:78:0;30901:422:1;49297:248:0;49468:68;;;-1:-1:-1;;;;;10375:15:1;;;49468:68:0;;;10357:34:1;10427:15;;10407:18;;;10400:43;10459:18;;;;10452:34;;;49468:68:0;;;;;;;;;;10269:18:1;;;;49468:68:0;;;;;;;;;;49491:27;49468:68;;;49441:96;;49461:5;;49441:19;:96::i;31108:1632::-;31239:7;;32173:66;32160:79;;32156:163;;;-1:-1:-1;32272:1:0;;-1:-1:-1;32276:30:0;32256:51;;32156:163;32333:1;:7;;32338:2;32333:7;;:18;;;;;32344:1;:7;;32349:2;32344:7;;32333:18;32329:102;;;-1:-1:-1;32384:1:0;;-1:-1:-1;32388:30:0;32368:51;;32329:102;32545:24;;;32528:14;32545:24;;;;;;;;;31555:25:1;;;31628:4;31616:17;;31596:18;;;31589:45;;;;31650:18;;;31643:34;;;31693:18;;;31686:34;;;32545:24:0;;31527:19:1;;32545:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;32545:24:0;;;;;;-1:-1:-1;;;;;;;32584:20:0;;32580:103;;32637:1;32641:29;32621:50;;;;;;;32580:103;32703:6;-1:-1:-1;32711:20:0;;-1:-1:-1;31108:1632:0;;;;;;;;:::o;30150:344::-;30264:7;;30323:66;30310:80;;30264:7;30417:25;30433:3;30418:18;;;30440:2;30417:25;:::i;:::-;30401:42;;30461:25;30472:4;30478:1;30481;30484;30461:10;:25::i;:::-;30454:32;;;;;;30150:344;;;;;;:::o;51651:716::-;52075:23;52101:69;52129:4;52101:69;;;;;;;;;;;;;;;;;52109:5;-1:-1:-1;;;;;52101:27:0;;;:69;;;;;:::i;:::-;52185:17;;52075:95;;-1:-1:-1;52185:21:0;52181:179;;52282:10;52271:30;;;;;;;;;;;;:::i;:::-;52263:85;;;;-1:-1:-1;;;52263:85:0;;31933:2:1;52263:85:0;;;31915:21:1;31972:2;31952:18;;;31945:30;32011:34;31991:18;;;31984:62;32082:12;32062:18;;;32055:40;32112:19;;52263:85:0;31731:406:1;38759:229:0;38896:12;38928:52;38950:6;38958:4;38964:1;38967:12;38928:21;:52::i;:::-;38921:59;38759:229;-1:-1:-1;;;;38759:229:0:o;39879:510::-;40049:12;40107:5;40082:21;:30;;40074:81;;;;-1:-1:-1;;;40074:81:0;;32344:2:1;40074:81:0;;;32326:21:1;32383:2;32363:18;;;32356:30;32422:34;32402:18;;;32395:62;32493:8;32473:18;;;32466:36;32519:19;;40074:81:0;32142:402:1;40074:81:0;-1:-1:-1;;;;;36309:19:0;;;40166:60;;;;-1:-1:-1;;;40166:60:0;;32751:2:1;40166:60:0;;;32733:21:1;32790:2;32770:18;;;32763:30;32829:31;32809:18;;;32802:59;32878:18;;40166:60:0;32549:353:1;40166:60:0;40240:12;40254:23;40281:6;-1:-1:-1;;;;;40281:11:0;40300:5;40307:4;40281:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40239:73;;;;40330:51;40347:7;40356:10;40368:12;40330:16;:51::i;:::-;40323:58;39879:510;-1:-1:-1;;;;;;;39879:510:0:o;42565:712::-;42715:12;42744:7;42740:530;;;-1:-1:-1;42775:10:0;42768:17;;42740:530;42889:17;;:21;42885:374;;43087:10;43081:17;43148:15;43135:10;43131:2;43127:19;43120:44;42885:374;43230:12;43223:20;;-1:-1:-1;;;43223:20:0;;;;;;;;:::i;14:154:1:-;-1:-1:-1;;;;;93:5:1;89:54;82:5;79:65;69:93;;158:1;155;148:12;173:134;241:20;;270:31;241:20;270:31;:::i;:::-;173:134;;;:::o;312:456::-;389:6;397;405;458:2;446:9;437:7;433:23;429:32;426:52;;;474:1;471;464:12;426:52;513:9;500:23;532:31;557:5;532:31;:::i;:::-;582:5;-1:-1:-1;639:2:1;624:18;;611:32;652:33;611:32;652:33;:::i;:::-;312:456;;704:7;;-1:-1:-1;;;758:2:1;743:18;;;;730:32;;312:456::o;773:184::-;825:77;822:1;815:88;922:4;919:1;912:15;946:4;943:1;936:15;962:250;1029:2;1023:9;1071:6;1059:19;;1108:18;1093:34;;1129:22;;;1090:62;1087:88;;;1155:18;;:::i;:::-;1191:2;1184:22;962:250;:::o;1217:777::-;1259:5;1312:3;1305:4;1297:6;1293:17;1289:27;1279:55;;1330:1;1327;1320:12;1279:55;1366:6;1353:20;1392:18;1429:2;1425;1422:10;1419:36;;;1435:18;;:::i;:::-;1569:2;1563:9;1631:4;1623:13;;1474:66;1619:22;;;1643:2;1615:31;1611:40;1599:53;;;1667:18;;;1687:22;;;1664:46;1661:72;;;1713:18;;:::i;:::-;1753:10;1749:2;1742:22;1788:2;1780:6;1773:18;1834:3;1827:4;1822:2;1814:6;1810:15;1806:26;1803:35;1800:55;;;1851:1;1848;1841:12;1800:55;1915:2;1908:4;1900:6;1896:17;1889:4;1881:6;1877:17;1864:54;1962:1;1955:4;1950:2;1942:6;1938:15;1934:26;1927:37;1982:6;1973:15;;;;;;1217:777;;;;:::o;1999:1091::-;2147:6;2155;2163;2171;2179;2187;2195;2203;2211;2264:3;2252:9;2243:7;2239:23;2235:33;2232:53;;;2281:1;2278;2271:12;2232:53;2320:9;2307:23;2339:31;2364:5;2339:31;:::i;:::-;2389:5;-1:-1:-1;2446:2:1;2431:18;;2418:32;2459:33;2418:32;2459:33;:::i;:::-;2511:7;-1:-1:-1;2565:2:1;2550:18;;2537:32;;-1:-1:-1;2616:2:1;2601:18;;2588:32;;-1:-1:-1;2667:3:1;2652:19;;2639:33;;-1:-1:-1;2719:3:1;2704:19;;2691:33;;-1:-1:-1;2771:3:1;2756:19;;2743:33;;-1:-1:-1;2828:3:1;2813:19;;2800:33;2842;2800;2842;:::i;:::-;2894:7;-1:-1:-1;2952:3:1;2937:19;;2924:33;2980:18;2969:30;;2966:50;;;3012:1;3009;3002:12;2966:50;3035:49;3076:7;3067:6;3056:9;3052:22;3035:49;:::i;:::-;3025:59;;;1999:1091;;;;;;;;;;;:::o;3095:255::-;3162:6;3215:2;3203:9;3194:7;3190:23;3186:32;3183:52;;;3231:1;3228;3221:12;3183:52;3270:9;3257:23;3289:31;3314:5;3289:31;:::i;3838:529::-;3915:6;3923;3931;3984:2;3972:9;3963:7;3959:23;3955:32;3952:52;;;4000:1;3997;3990:12;3952:52;4039:9;4026:23;4058:31;4083:5;4058:31;:::i;:::-;4108:5;-1:-1:-1;4165:2:1;4150:18;;4137:32;4178:33;4137:32;4178:33;:::i;:::-;4230:7;-1:-1:-1;4289:2:1;4274:18;;4261:32;4302:33;4261:32;4302:33;:::i;:::-;4354:7;4344:17;;;3838:529;;;;;:::o;4841:320::-;4909:6;4962:2;4950:9;4941:7;4937:23;4933:32;4930:52;;;4978:1;4975;4968:12;4930:52;5018:9;5005:23;5051:18;5043:6;5040:30;5037:50;;;5083:1;5080;5073:12;5037:50;5106:49;5147:7;5138:6;5127:9;5123:22;5106:49;:::i;5358:1316::-;5487:6;5495;5503;5547:9;5538:7;5534:23;5577:3;5573:2;5569:12;5566:32;;;5594:1;5591;5584:12;5566:32;5617:6;5643:2;5639;5635:11;5632:31;;;5659:1;5656;5649:12;5632:31;5685:17;;:::i;:::-;5672:30;;5725:29;5744:9;5725:29;:::i;:::-;5718:5;5711:44;5787:38;5821:2;5810:9;5806:18;5787:38;:::i;:::-;5782:2;5775:5;5771:14;5764:62;5886:2;5875:9;5871:18;5858:32;5853:2;5846:5;5842:14;5835:56;5951:2;5940:9;5936:18;5923:32;5918:2;5911:5;5907:14;5900:56;6017:3;6006:9;6002:19;5989:33;5983:3;5976:5;5972:15;5965:58;6084:3;6073:9;6069:19;6056:33;6050:3;6043:5;6039:15;6032:58;6151:3;6140:9;6136:19;6123:33;6117:3;6110:5;6106:15;6099:58;6218:3;6207:9;6203:19;6190:33;6184:3;6177:5;6173:15;6166:58;6243:3;6306:2;6295:9;6291:18;6278:32;6273:2;6266:5;6262:14;6255:56;;6330:3;6365:38;6399:2;6388:9;6384:18;6365:38;:::i;:::-;6349:14;;;6342:62;6353:5;;-1:-1:-1;6464:18:1;;6451:32;6506:18;6495:30;;6492:50;;;6538:1;6535;6528:12;6492:50;6561:49;6602:7;6593:6;6582:9;6578:22;6561:49;:::i;:::-;6551:59;;;6629:39;6663:3;6652:9;6648:19;6629:39;:::i;:::-;6619:49;;5358:1316;;;;;:::o;6679:1178::-;6853:6;6861;6869;6877;6885;6893;6901;6909;6917;6925;6933:7;6987:3;6975:9;6966:7;6962:23;6958:33;6955:53;;;7004:1;7001;6994:12;6955:53;7043:9;7030:23;7062:31;7087:5;7062:31;:::i;:::-;7112:5;-1:-1:-1;7169:2:1;7154:18;;7141:32;7182:33;7141:32;7182:33;:::i;:::-;7234:7;-1:-1:-1;7288:2:1;7273:18;;7260:32;;-1:-1:-1;7339:2:1;7324:18;;7311:32;;-1:-1:-1;7390:3:1;7375:19;;7362:33;;-1:-1:-1;7442:3:1;7427:19;;7414:33;;-1:-1:-1;7494:3:1;7479:19;;7466:33;;-1:-1:-1;7546:3:1;7531:19;;7518:33;;-1:-1:-1;7570:39:1;7604:3;7589:19;;7570:39;:::i;:::-;7560:49;;7660:3;7649:9;7645:19;7632:33;7688:18;7680:6;7677:30;7674:50;;;7720:1;7717;7710:12;7674:50;7743:49;7784:7;7775:6;7764:9;7760:22;7743:49;:::i;:::-;7733:59;;;7812:39;7846:3;7835:9;7831:19;7812:39;:::i;:::-;7801:50;;6679:1178;;;;;;;;;;;;;;:::o;7862:385::-;7948:6;7956;7964;7972;8025:3;8013:9;8004:7;8000:23;7996:33;7993:53;;;8042:1;8039;8032:12;7993:53;-1:-1:-1;;8065:23:1;;;8135:2;8120:18;;8107:32;;-1:-1:-1;8186:2:1;8171:18;;8158:32;;8237:2;8222:18;8209:32;;-1:-1:-1;7862:385:1;-1:-1:-1;7862:385:1:o;8434:1241::-;8599:6;8607;8615;8623;8631;8639;8647;8655;8663;8671;8724:3;8712:9;8703:7;8699:23;8695:33;8692:53;;;8741:1;8738;8731:12;8692:53;8780:9;8767:23;8799:31;8824:5;8799:31;:::i;:::-;8849:5;-1:-1:-1;8906:2:1;8891:18;;8878:32;8919:33;8878:32;8919:33;:::i;:::-;8971:7;-1:-1:-1;9025:2:1;9010:18;;8997:32;;-1:-1:-1;9076:2:1;9061:18;;9048:32;;-1:-1:-1;9127:3:1;9112:19;;9099:33;;-1:-1:-1;9179:3:1;9164:19;;9151:33;;-1:-1:-1;9231:3:1;9216:19;;9203:33;;-1:-1:-1;9288:3:1;9273:19;;9260:33;9302;9260;9302;:::i;:::-;9354:7;-1:-1:-1;9412:3:1;9397:19;;9384:33;9440:18;9429:30;;9426:50;;;9472:1;9469;9462:12;9426:50;9495:49;9536:7;9527:6;9516:9;9512:22;9495:49;:::i;:::-;9485:59;;;9596:3;9585:9;9581:19;9568:33;9610;9635:7;9610:33;:::i;:::-;9662:7;9652:17;;;8434:1241;;;;;;;;;;;;;:::o;10902:258::-;10974:1;10984:113;10998:6;10995:1;10992:13;10984:113;;;11074:11;;;11068:18;11055:11;;;11048:39;11020:2;11013:10;10984:113;;;11115:6;11112:1;11109:13;11106:48;;;-1:-1:-1;;11150:1:1;11132:16;;11125:27;10902:258::o;11165:316::-;11206:3;11244:5;11238:12;11271:6;11266:3;11259:19;11287:63;11343:6;11336:4;11331:3;11327:14;11320:4;11313:5;11309:16;11287:63;:::i;:::-;11395:2;11383:15;11400:66;11379:88;11370:98;;;;11470:4;11366:109;;11165:316;-1:-1:-1;;11165:316:1:o;11486:217::-;11633:2;11622:9;11615:21;11596:4;11653:44;11693:2;11682:9;11678:18;11670:6;11653:44;:::i;12069:259::-;12147:6;12200:2;12188:9;12179:7;12175:23;12171:32;12168:52;;;12216:1;12213;12206:12;12168:52;12248:9;12242:16;12267:31;12292:5;12267:31;:::i;13763:277::-;13830:6;13883:2;13871:9;13862:7;13858:23;13854:32;13851:52;;;13899:1;13896;13889:12;13851:52;13931:9;13925:16;13984:5;13977:13;13970:21;13963:5;13960:32;13950:60;;14006:1;14003;13996:12;15161:184;15231:6;15284:2;15272:9;15263:7;15259:23;15255:32;15252:52;;;15300:1;15297;15290:12;15252:52;-1:-1:-1;15323:16:1;;15161:184;-1:-1:-1;15161:184:1:o;18955:::-;19007:77;19004:1;18997:88;19104:4;19101:1;19094:15;19128:4;19125:1;19118:15;19144:125;19184:4;19212:1;19209;19206:8;19203:34;;;19217:18;;:::i;:::-;-1:-1:-1;19254:9:1;;19144:125::o;19274:274::-;19314:1;19340;19330:189;;19375:77;19372:1;19365:88;19476:4;19473:1;19466:15;19504:4;19501:1;19494:15;19330:189;-1:-1:-1;19533:9:1;;19274:274::o;19553:228::-;19593:7;19719:1;19651:66;19647:74;19644:1;19641:81;19636:1;19629:9;19622:17;19618:105;19615:131;;;19726:18;;:::i;:::-;-1:-1:-1;19766:9:1;;19553:228::o;19786:128::-;19826:3;19857:1;19853:6;19850:1;19847:13;19844:39;;;19863:18;;:::i;:::-;-1:-1:-1;19899:9:1;;19786:128::o;26847:274::-;26976:3;27014:6;27008:13;27030:53;27076:6;27071:3;27064:4;27056:6;27052:17;27030:53;:::i;:::-;27099:16;;;;;26847:274;-1:-1:-1;;26847:274:1:o;28625:184::-;28677:77;28674:1;28667:88;28774:4;28771:1;28764:15;28798:4;28795:1;28788:15

Metadata Hash

a139b7ad35ffc547a78bf36f722abcecb18e2f07a73469fd7888b18f9570db0a
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.