Contract 0x158Fe5866B0F3F346844E81a95429AFDFa2BdF7a

Token Contract 
 
 
Txn Hash
Method
Block
From
To
Value
0xe82d51a2754faaa94a0513446c985e22596299489a063834e429503fe50aa0b7Set Approval For...160015162022-11-19 3:56:4718 days 16 hrs ago0x776ab2908fde1e88eb54ba84fd6401cb8e094866 IN  The Foolish Child: BXH NFT Token0 Ether0.00054013 11.68087431
0x12cdeeab5c7e15b584f9b8e9547f1d2d1e3352227e24ae2f82d6357165cad5ccSet Approval For...160015162022-11-19 3:56:4718 days 16 hrs ago0x776ab2908fde1e88eb54ba84fd6401cb8e094866 IN  The Foolish Child: BXH NFT Token0 Ether0.00054013 11.68087431
0x7db40c3d94c21623588450f92112bc1365be45ac79f7b9a6048d4913f21d2584Set Approval For...158939582022-11-04 3:26:5933 days 16 hrs ago0x8527497cc5e023dd4db52368e4a739f2af499856 IN  The Foolish Child: BXH NFT Token0 Ether0.00061823 13.3871207
0x48d5c545b3b031f32af1a8faadb110b4d92b25672adbc2aed7211275522dd1e7Set Approval For...158691042022-10-31 16:01:4737 days 4 hrs ago0xadc3f4bc6ea3e3f206e8005ce2cf095b8307944e IN  The Foolish Child: BXH NFT Token0 Ether0.00130339 28.1870751
0x8e84a816b13f22252d099ae7c22aca23040c2e3f93f2d59ded80a889942fc914Set Approval For...158591502022-10-30 6:41:3538 days 13 hrs agoENS Name zdaocrypto.eth IN  The Foolish Child: BXH NFT Token0 Ether0.00019535 8.05755452
0x7814f500577e5d7c898b10c89a6fbc8e721176713a96f2e6b0f6f55577c9cd23Set Approval For...158591322022-10-30 6:37:5938 days 13 hrs ago0xaf6ae1a07e1466fc97d07b593f2290bd3c3c29b8 IN  The Foolish Child: BXH NFT Token0 Ether0.00020653 8.5185936
0xbdef8a1865f847975dd23c2beccbea56c4f1d1fa233b9716497f17ebf893e6c1Set Approval For...157897672022-10-20 14:00:3548 days 6 hrs ago0x4e2aab0e14044402b24dcb3c46f48761d69ee525 IN  The Foolish Child: BXH NFT Token0 Ether0.0027232659
0x1c533ad5159e52347758d080181e92cd4f7fab9d5f7a85d5bd4a99dc9700e55cSet Approval For...155994042022-09-23 23:42:3574 days 20 hrs ago0x9fb4a0dcd9f123dfcad70942591669e299dc2226 IN  The Foolish Child: BXH NFT Token0 Ether0.000184624
0xf2f66eca393e04bb820839af810a320e0711208d7fd4a0063ff34c27b09be1afSet Approval For...155742242022-09-20 10:53:4778 days 9 hrs ago0xa04c3b80d89181c43bc744165577d5b149de4ef2 IN  The Foolish Child: BXH NFT Token0 Ether0.00019427 4.20896636
0xb947702beebc8cac88877715d9586ab8e48cfd071ce847d45982592cd8cd2aafSet Approval For...155466842022-09-16 14:11:2382 days 6 hrs agoENS Name yeungip.eth IN  The Foolish Child: BXH NFT Token0 Ether0.0011767125.44749865
0x423270b2bf91c2efd6892129294b4225c7252c4758a28f7b3a466576dff5b785Set Approval For...155466802022-09-16 14:10:3582 days 6 hrs agoENS Name yeungip.eth IN  The Foolish Child: BXH NFT Token0 Ether0.0012862727.86748136
0xf5ffba59a2a6955b3147827c8bdf5f5f97e0569dedc9e92ef93caa615e5859c3Set Approval For...155466762022-09-16 14:09:4782 days 6 hrs agoENS Name yeungip.eth IN  The Foolish Child: BXH NFT Token0 Ether0.001388930.04392155
0x38ba6c8d052b4bb2a25f6b482cf36e7e247fe86d468012f6437019ab4353f84aSet Approval For...154843612022-09-06 13:29:0792 days 6 hrs ago0xa2ae34157f02688ae65ff553f33fe523c0001617 IN  The Foolish Child: BXH NFT Token0 Ether0.00049215 10.66260773
0x9a087767fabb3b3637a71ab1d72d4c841078d634a759042336125eeb9d7d7075Set Approval For...154843582022-09-06 13:28:4992 days 6 hrs ago0xa2ae34157f02688ae65ff553f33fe523c0001617 IN  The Foolish Child: BXH NFT Token0 Ether0.00050668 10.96038897
0xd314648d32269cf325e9ba74ed0b79da52a2bd951b2ee32483cce21f683bd02fSet Approval For...154408612022-08-30 14:22:1699 days 5 hrs ago0x27e93884524cc379dc6b0f5039fe07166dfdf3ee IN  The Foolish Child: BXH NFT Token0 Ether0.0066458143.98270057
0x1d1145010bfd022a00139773dd82664893b2c61d87e2e83c79a9ec8c1f5b718bSet Approval For...154141342022-08-26 7:43:56103 days 12 hrs agoENS Name mikelsl.eth IN  The Foolish Child: BXH NFT Token0 Ether0.00052301 11.3105579
0x950cd860fd8146c2c060f0a373f97b91e93f5782162274db3f3c8c11d5008079Set Approval For...154141322022-08-26 7:43:41103 days 12 hrs agoENS Name mikelsl.eth IN  The Foolish Child: BXH NFT Token0 Ether0.00058295 12.60682708
0xac4199aa7ae508e87bcdb82c877b381b28a4374122fb27faebd85802f2e7d92fSet Approval For...154141302022-08-26 7:43:11103 days 12 hrs agoENS Name mikelsl.eth IN  The Foolish Child: BXH NFT Token0 Ether0.00063149 13.68145478
0x61902655732699a304633cff7376b29c02ca141958af4410c7cf6f97ed0b4d23Set Approval For...154084992022-08-25 10:07:02104 days 10 hrs ago0x2e21913334737e74c92e7fb5b41704b021e9d81d IN  The Foolish Child: BXH NFT Token0 Ether0.000369258
0x8e575bfba28440a8f36d1b9fbb5a41dc494a346feb832aa859ec9c0133d1cec2Safe Transfer Fr...153870802022-08-22 0:11:43107 days 20 hrs ago0x23a0d9bd387332eb9cc09bb2628a8cbe3c56cd33 IN  The Foolish Child: BXH NFT Token0 Ether0.00022724 7.57622694
0x97b9cdd313dec7252ac6f781c65e4a680347b475ab5c5683bc405f463d374a23Set Approval For...153684682022-08-19 1:38:47110 days 18 hrs ago0x776ab2908fde1e88eb54ba84fd6401cb8e094866 IN  The Foolish Child: BXH NFT Token0 Ether0.0006461914
0x877b7801cb9ff010a838d57df62d2de204a123a9a80033ae9860942173c8b5faSet Approval For...153677392022-08-18 22:49:43110 days 21 hrs ago0x846db58e464f5994737c42b6a048567dedd2e609 IN  The Foolish Child: BXH NFT Token0 Ether0.0008308218
0x1756b92aed42126566cfdf0ac89f997d4e63a94383ebba929d48ebcecc26428cSet Approval For...153657902022-08-18 15:26:30111 days 4 hrs ago0x94b77937c907bb02196ce4fa4a8c439258ed8cfc IN  The Foolish Child: BXH NFT Token0 Ether0.00078753 17.06202965
0x3e799ffccd273b907f7545ce1e800020142791eb2769411c1c2963a84d2eeee3Set Approval For...153650992022-08-18 12:49:14111 days 7 hrs ago0x2f82da0d23ab6a0d27a0dcc92239593995b7c7f4 IN  The Foolish Child: BXH NFT Token0 Ether0.00033975 7.36082032
0x5903e92848fd14db1a418337f59b5614c786b37e07162a1b75a481349623c3d0Transfer From153636552022-08-18 7:17:21111 days 12 hrs ago0x8f4bee61964aa060a8ebf13c87c44dadc751c2e5 IN  The Foolish Child: BXH NFT Token0 Ether0.000602087
[ Download CSV Export 

OVERVIEW

“The Foolish Child” is launched by BXH and contains 10,000 unique NFTs. It aims to find 10,000 holders who share the same vision and determination as BXH. These holders will become the core community members of BXH and participate in the decision-making process. Our goal is to...

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BXHNFTCollection

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-08-12
*/

/**
 *Submitted for verification at Etherscan.io on 2022-08-09
*/

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

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value)
        private
        view
        returns (bool)
    {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index)
        private
        view
        returns (bytes32)
    {
        require(
            set._values.length > index,
            "EnumerableSet: index out of bounds"
        );
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index)
        internal
        view
        returns (bytes32)
    {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index)
        internal
        view
        returns (uint256)
    {
        return uint256(_at(set._inner, index));
    }
}

library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }


    function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferNative(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: Native_TRANSFER_FAILED');
    }
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

/*
 * @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 GSN 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @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);
}

/**
 * @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;
}

/**
 * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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);
}


/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}


/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @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);
    }
}


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

interface IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


/**
 * @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() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @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 make 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;
    }
}


/**
 * @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;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 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 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));
    }
}

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

contract BXHNFTCollection is EIP712 , ERC721Enumerable, ReentrancyGuard, Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    string public tokenURIPrefix = "https://bxh-nft.s3.ap-east-1.amazonaws.com/nft-data/";
    string public tokenURISuffix = ".json";

    struct ChildInfo {
        string gene;
        uint256 class;

        uint256 eyes;
        uint256 eyebrows;
        uint256 hair;
        uint256 skin;
        uint256 bodyshape;
        uint256 mouth;
        uint256 shirts;
        uint256[] accessories;
        string imgUrl;
        uint256 tokenId;
        uint256 thirdUid;
    }

    struct MintEventConfig{
        uint256  eventID;
        address  mintFeeToken;
        uint256  mintFeeAmount;
        uint256  mintTimeStart;
        uint256  mintTimeEnd;

        uint256  mintMaxCount;
        uint256  oneTimeMaxCount;

        address  mintAddress;//if zero allows any address mint.

        uint256  mintedCount;

        uint256  baseIndex;
    }


    mapping(uint256 => ChildInfo) public childInfo;

    mapping(uint256 => MintEventConfig) public mintEventConfig;

    bytes32 constant public OPERATE_CALL_HASH_TYPE = keccak256("operateCmd(address receiver,uint256 tokenId,uint256 cmdId, address feeToken,uint256 feeTokenAmount, uint256 saltSeed)");
    bytes32 constant public MINT_CALL_HASH_TYPE = keccak256("mintNFT(address miner,uint256 eventID,uint256 mintCount, uint256 saltSeed)");

    address public immutable cSigner;

    //store unique flags
    mapping(uint256 => bool ) public saltSeeds;

    address public constant ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    event newNFTMineted( address indexed owner, uint256 eventID, uint256 tokenId );

    event newCommand(address indexed owner,uint256 tokenId,uint256 cmdId, address feeToken,uint256 feeTokenAmount);

    event newThridUid(address indexed owner,uint256[] tokenIDs,uint256 thridUid);

    /**
     * @dev Constructor.
     */
    constructor(address _signer) EIP712("BXHNFT", "1") ERC721("The Foolish Child", "BXH NFT") Ownable(){
        require(_signer!=address(0x0),"address error");

        cSigner = _signer;
    }

    function setTokenURIAffixes( string calldata _prefix, string calldata _suffix ) external onlyOwner {
        tokenURIPrefix = _prefix;
        tokenURISuffix = _suffix;
    }

    //config event mint parameters.
    function setMintEventConfig( uint256 _eventID, address _mintFeeToken, uint256 _mintFeeAmount, uint256 _mintMaxCount, uint256 _mintTimeStart,uint256 _mintTimeEnd, uint256 _oneTimeMaxCount,
            address _mintAddress , uint256 _baseIndex, uint256 _mintedCount ) external onlyOwner {

        MintEventConfig storage _config = mintEventConfig[_eventID];

        _config.eventID = _eventID;
        _config.mintFeeToken = _mintFeeToken;
        _config.mintFeeAmount = _mintFeeAmount;
        _config.mintMaxCount = _mintMaxCount;

        _config.mintTimeStart = _mintTimeStart;
        _config.mintTimeEnd = _mintTimeEnd;
        _config.oneTimeMaxCount = _oneTimeMaxCount;
        _config.mintAddress = _mintAddress;
        _config.baseIndex = _baseIndex;

        _config.mintedCount = _mintedCount;
    }


    // query exist nft properties
    function tokenURI(uint256 tokenId) override public view returns (string memory){
        require(
            _exists(tokenId),
            "ERC721: operator query for nonexistent token"
        );

        string memory output = string(
            abi.encodePacked(tokenURIPrefix,toString(tokenId), tokenURISuffix)
        );

        return output;
    }


    function mintNFT(uint256 _eventID, uint256 _mintCount, uint256 _saltSeed, uint8 v, bytes32 r, bytes32 s) public nonReentrant  payable {
        MintEventConfig storage _config = mintEventConfig[_eventID];

        //check event parameters.
        require(block.timestamp >= _config.mintTimeStart && block.timestamp <= _config.mintTimeEnd, "event is not ready!");

        require(_mintCount <= _config.oneTimeMaxCount, "max box limited!");

        require(_config.mintMaxCount >= _config.mintedCount.add(_mintCount), "max count limited!");

        require(
            _config.mintAddress == address(0x0) || msg.sender == _config.mintAddress,
            'error mint address'
        );

        bytes32 digest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32",
            ECDSA.toTypedDataHash(_domainSeparatorV4(),
                keccak256(abi.encode(MINT_CALL_HASH_TYPE, msg.sender, _eventID, _mintCount, _saltSeed))
        )));
        require(ECDSA.recover(digest, v, r, s) == cSigner, "check miner signer: Invalid signer");

        require( saltSeeds[_saltSeed] == false , "seed is repeat!");
        saltSeeds[_saltSeed] = true;

        //check fee balance
        uint256 payAmount = _config.mintFeeAmount.mul(_mintCount );

        require(
            (msg.value == 0 && _config.mintFeeToken != ETH_ADDRESS) ||
                ( _config.mintFeeToken == ETH_ADDRESS && msg.value == payAmount),
            'error balance value'
        );

        if( _config.mintFeeToken != ETH_ADDRESS && _config.mintFeeToken != address(0x0) && payAmount > 0 ){
            TransferHelper.safeTransferFrom( _config.mintFeeToken, _msgSender(), address(this), payAmount);
        }

        for( uint256 i = 0 ; i < _mintCount; i ++ ){
            _config.mintedCount = _config.mintedCount.add(1);

            ChildInfo storage _child = childInfo[_config.baseIndex];
            _child.tokenId = _config.baseIndex;

            _safeMint(msg.sender, _config.baseIndex);
            emit newNFTMineted(msg.sender, _eventID, _config.baseIndex);

            _config.baseIndex = _config.baseIndex.add(1);
        }

    }

    //operate command
    function operateCommand( uint256 _tokenId,uint256 _cmdId, address _feeToken,uint256 _feeTokenAmount, uint256 _saltSeed, uint8 v, bytes32 r, bytes32 s) external {
        //check nft owner
        if( _tokenId > 0 ){
            require(_isApprovedOrOwner( msg.sender, _tokenId ),"NFT is not your asset.");
        }

        bytes32 digest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32",
            ECDSA.toTypedDataHash(_domainSeparatorV4(),
                keccak256(abi.encode(OPERATE_CALL_HASH_TYPE, msg.sender, _tokenId, _cmdId, _feeToken,_feeTokenAmount,_saltSeed))
        )));
        require(ECDSA.recover(digest, v, r, s) == cSigner, "OperateCommand: Invalid signer");

        require( saltSeeds[_saltSeed] == false , "seed is repeat!");
        saltSeeds[_saltSeed] = true;


        if( _feeToken != address(0x0) && _feeTokenAmount > 0 ){
            TransferHelper.safeTransferFrom( _feeToken, _msgSender(), address(this), _feeTokenAmount);
        }

        emit newCommand( msg.sender , _tokenId, _cmdId, _feeToken, _feeTokenAmount );
    }


    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }


    function withdrawEmergency(address tokenaddress,address to) public onlyOwner{
        TransferHelper.safeTransfer( tokenaddress, to , IERC20(tokenaddress).balanceOf(address(this)));
    }

    function withdrawEmergencyNative(address to , uint256 amount) public onlyOwner{
        TransferHelper.safeTransferNative(to, amount);
    }

    //bindThridUid
    function bindThridUid( uint256[] memory _tokenIDs,uint256 _thridUid) external {
        uint256 len = _tokenIDs.length;
        require(len > 0,"tokenID is necessary.");
        require(_thridUid > 0,"thridUid is necessary.");

        for (uint256 i = 0; i < len; i++) {
            if( _tokenIDs[i] > 0 ){
                require(_isApprovedOrOwner( msg.sender, _tokenIDs[i] ),"NFT is not your asset.");
                ChildInfo storage _child = childInfo[_tokenIDs[i]];
                _child.thirdUid = _thridUid;
            }
        }

        emit newThridUid( msg.sender , _tokenIDs, _thridUid);
    }

    function updateNftUidZero(uint256 tokenId) private {
        ChildInfo storage _child = childInfo[tokenId];
        if(_child.thirdUid > 0){
            _child.thirdUid = 0;
        }
    }

    //Override
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        super.safeTransferFrom(from, to, tokenId, "");
        updateNftUidZero(tokenId);
    }

    //Override
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        super.safeTransferFrom(from, to, tokenId, _data);
        updateNftUidZero(tokenId);
    }

    //Override
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        super.transferFrom(from, to, tokenId);
        updateNftUidZero(tokenId);
    }
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)
                )
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cmdId","type":"uint256"},{"indexed":false,"internalType":"address","name":"feeToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeTokenAmount","type":"uint256"}],"name":"newCommand","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"eventID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"newNFTMineted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"thridUid","type":"uint256"}],"name":"newThridUid","type":"event"},{"inputs":[],"name":"ETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_CALL_HASH_TYPE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATE_CALL_HASH_TYPE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"},{"internalType":"uint256","name":"_thridUid","type":"uint256"}],"name":"bindThridUid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"childInfo","outputs":[{"internalType":"string","name":"gene","type":"string"},{"internalType":"uint256","name":"class","type":"uint256"},{"internalType":"uint256","name":"eyes","type":"uint256"},{"internalType":"uint256","name":"eyebrows","type":"uint256"},{"internalType":"uint256","name":"hair","type":"uint256"},{"internalType":"uint256","name":"skin","type":"uint256"},{"internalType":"uint256","name":"bodyshape","type":"uint256"},{"internalType":"uint256","name":"mouth","type":"uint256"},{"internalType":"uint256","name":"shirts","type":"uint256"},{"internalType":"string","name":"imgUrl","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"thirdUid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintEventConfig","outputs":[{"internalType":"uint256","name":"eventID","type":"uint256"},{"internalType":"address","name":"mintFeeToken","type":"address"},{"internalType":"uint256","name":"mintFeeAmount","type":"uint256"},{"internalType":"uint256","name":"mintTimeStart","type":"uint256"},{"internalType":"uint256","name":"mintTimeEnd","type":"uint256"},{"internalType":"uint256","name":"mintMaxCount","type":"uint256"},{"internalType":"uint256","name":"oneTimeMaxCount","type":"uint256"},{"internalType":"address","name":"mintAddress","type":"address"},{"internalType":"uint256","name":"mintedCount","type":"uint256"},{"internalType":"uint256","name":"baseIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eventID","type":"uint256"},{"internalType":"uint256","name":"_mintCount","type":"uint256"},{"internalType":"uint256","name":"_saltSeed","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_cmdId","type":"uint256"},{"internalType":"address","name":"_feeToken","type":"address"},{"internalType":"uint256","name":"_feeTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_saltSeed","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"operateCommand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"saltSeeds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eventID","type":"uint256"},{"internalType":"address","name":"_mintFeeToken","type":"address"},{"internalType":"uint256","name":"_mintFeeAmount","type":"uint256"},{"internalType":"uint256","name":"_mintMaxCount","type":"uint256"},{"internalType":"uint256","name":"_mintTimeStart","type":"uint256"},{"internalType":"uint256","name":"_mintTimeEnd","type":"uint256"},{"internalType":"uint256","name":"_oneTimeMaxCount","type":"uint256"},{"internalType":"address","name":"_mintAddress","type":"address"},{"internalType":"uint256","name":"_baseIndex","type":"uint256"},{"internalType":"uint256","name":"_mintedCount","type":"uint256"}],"name":"setMintEventConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"},{"internalType":"string","name":"_suffix","type":"string"}],"name":"setTokenURIAffixes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenaddress","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEmergencyNative","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101a060405260346101408181529062003d0d6101603980516200002c91600c9160209091019062000275565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200005b91600d9162000275565b503480156200006957600080fd5b5060405162003d4138038062003d418339810160408190526200008c916200031b565b6040805180820182526011815270151a1948119bdbdb1a5cda0810da1a5b19607a1b60208083019182528351808501855260078152661096120813919560ca1b8183015284518086018652600681526510961213919560d21b8184019081528651808801885260018152603160f81b908501529051902060c08181527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660e08190524660a081815289517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818c019690965260608101939093526080808401929092523083820152895180840390910181529190920190975286519690930195909520909152610100939093528151919291620001b29160009162000275565b508051620001c890600190602084019062000275565b50506001600a5550600b80546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166200025e5760405162461bcd60e51b815260206004820152600d60248201526c30b2323932b9b99032b93937b960991b604482015260640160405180910390fd5b60601b6001600160601b031916610120526200038a565b82805462000283906200034d565b90600052602060002090601f016020900481019282620002a75760008555620002f2565b82601f10620002c257805160ff1916838001178555620002f2565b82800160010185558215620002f2579182015b82811115620002f2578251825591602001919060010190620002d5565b506200030092915062000304565b5090565b5b8082111562000300576000815560010162000305565b6000602082840312156200032e57600080fd5b81516001600160a01b03811681146200034657600080fd5b9392505050565b600181811c908216806200036257607f821691505b602082108114156200038457634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205160601c613922620003eb600039600081816103d601528181610cf401526113ef01526000611e3301526000611e8201526000611e5d01526000611de101526000611e0a01526139226000f3fe6080604052600436106102045760003560e01c80638da5cb5b11610118578063c688387f116100a0578063e172a75f1161006f578063e172a75f146106d0578063e985e9c514610700578063ea817fca14610749578063f2fde38b14610769578063faf421251461078957600080fd5b8063c688387f14610647578063c87b56dd1461067b578063dbbc853b1461069b578063e0ca3cf1146106b057600080fd5b8063a734f06e116100e7578063a734f06e146104e0578063af46548814610508578063b87dcf36146105da578063b88d4fde14610612578063c0ac99831461063257600080fd5b80638da5cb5b1461046d57806393f26a4c1461048b57806395d89b41146104ab578063a22cb465146104c057600080fd5b80632f745c591161019b5780635760cc5d1161016a5780635760cc5d146103c45780636352211e146103f857806370a0823114610418578063715018a614610438578063894b4b571461044d57600080fd5b80632f745c591461034457806342842e0e146103645780634c19af35146103845780634f6ccce7146103a457600080fd5b806316d6b993116101d757806316d6b993146102ba57806318160ddd146102fc5780631b570be61461031157806323b872dd1461032457600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b506102296102243660046131bb565b6107a9565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536107fb565b604051610235919061356d565b34801561026c57600080fd5b5061028061027b366004613261565b61088d565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b33660046130c1565b610927565b005b3480156102c657600080fd5b506102ee7f22c943463af0e45eeb5f520aef676d0738f3fc1eb90a6c99697265f28ceae5d081565b604051908152602001610235565b34801561030857600080fd5b506008546102ee565b6102b861031f366004613382565b610a3d565b34801561033057600080fd5b506102b861033f366004612f8e565b610fd7565b34801561035057600080fd5b506102ee61035f3660046130c1565b610feb565b34801561037057600080fd5b506102b861037f366004612f8e565b611081565b34801561039057600080fd5b506102b861039f3660046130c1565b61109c565b3480156103b057600080fd5b506102ee6103bf366004613261565b6110d4565b3480156103d057600080fd5b506102807f000000000000000000000000000000000000000000000000000000000000000081565b34801561040457600080fd5b50610280610413366004613261565b611167565b34801561042457600080fd5b506102ee610433366004612f40565b6111de565b34801561044457600080fd5b506102b8611265565b34801561045957600080fd5b506102b8610468366004613315565b6112d9565b34801561047957600080fd5b50600b546001600160a01b0316610280565b34801561049757600080fd5b506102b86104a6366004612f5b565b611569565b3480156104b757600080fd5b50610253611617565b3480156104cc57600080fd5b506102b86104db36600461308a565b611626565b3480156104ec57600080fd5b5061028073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b34801561051457600080fd5b50610580610523366004613261565b600f60205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460099099015497986001600160a01b039788169896979596949593949293909116918a565b604080519a8b526001600160a01b03998a1660208c01528a01979097526060890195909552608088019390935260a087019190915260c086015290921660e084015261010083019190915261012082015261014001610235565b3480156105e657600080fd5b506105fa6105f5366004613261565b6116eb565b6040516102359c9b9a99989796959493929190613580565b34801561061e57600080fd5b506102b861062d366004612fca565b611853565b34801561063e57600080fd5b5061025361186e565b34801561065357600080fd5b506102ee7fb72a7150a932f2df3eb679e908ee3171e4cae53c7713204dd65dd9e97dd3cd7681565b34801561068757600080fd5b50610253610696366004613261565b6118fc565b3480156106a757600080fd5b5061025361196b565b3480156106bc57600080fd5b506102b86106cb366004613293565b611978565b3480156106dc57600080fd5b506102296106eb366004613261565b60106020526000908152604090205460ff1681565b34801561070c57600080fd5b5061022961071b366004612f5b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561075557600080fd5b506102b86107643660046130eb565b611a19565b34801561077557600080fd5b506102b8610784366004612f40565b611bd4565b34801561079557600080fd5b506102b86107a43660046131f5565b611cbf565b60006001600160e01b031982166380ac58cd60e01b14806107da57506001600160e01b03198216635b5e139f60e01b145b806107f557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461080a906137da565b80601f0160208091040260200160405190810160405280929190818152602001828054610836906137da565b80156108835780601f1061085857610100808354040283529160200191610883565b820191906000526020600020905b81548152906001019060200180831161086657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661090b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061093282611167565b9050806001600160a01b0316836001600160a01b031614156109a05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610902565b336001600160a01b03821614806109bc57506109bc813361071b565b610a2e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610902565b610a388383611d09565b505050565b6002600a541415610a905760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610902565b6002600a556000868152600f6020526040902060038101544210801590610abb575080600401544211155b610afd5760405162461bcd60e51b81526020600482015260136024820152726576656e74206973206e6f742072656164792160681b6044820152606401610902565b8060060154861115610b445760405162461bcd60e51b815260206004820152601060248201526f6d617820626f78206c696d697465642160801b6044820152606401610902565b6008810154610b539087611d77565b81600501541015610b9b5760405162461bcd60e51b81526020600482015260126024820152716d617820636f756e74206c696d697465642160701b6044820152606401610902565b60078101546001600160a01b03161580610bc1575060078101546001600160a01b031633145b610c025760405162461bcd60e51b81526020600482015260126024820152716572726f72206d696e74206164647265737360701b6044820152606401610902565b6000610ca6610c0f611ddd565b604080517fb72a7150a932f2df3eb679e908ee3171e4cae53c7713204dd65dd9e97dd3cd7660208201523391810191909152606081018b9052608081018a905260a0810189905260c0015b60408051601f19818403018152828252805160209182012061190160f01b8483015260228401949094526042808401949094528151808403909401845260629092019052815191012090565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810191909152605c016040516020818303038152906040528051906020012090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610d2882878787611ed0565b6001600160a01b031614610d895760405162461bcd60e51b815260206004820152602260248201527f636865636b206d696e6572207369676e65723a20496e76616c6964207369676e60448201526132b960f11b6064820152608401610902565b60008681526010602052604090205460ff1615610dda5760405162461bcd60e51b815260206004820152600f60248201526e73656564206973207265706561742160881b6044820152606401610902565b6000868152601060205260408120805460ff191660011790556002830154610e029089611efa565b905034158015610e33575060018301546001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b80610e68575060018301546001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148015610e6857508034145b610eaa5760405162461bcd60e51b81526020600482015260136024820152726572726f722062616c616e63652076616c756560681b6044820152606401610902565b60018301546001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14801590610ee7575060018301546001600160a01b031615155b8015610ef35750600081115b15610f12576001830154610f12906001600160a01b0316333084611f79565b60005b88811015610fc6576008840154610f2d906001611d77565b600885015560098401546000818152600e60205260409020600b810182905590610f589033906120a9565b600985015460405133917fa163823c0d889e3e9c6bd78e84fb5fe28aa8048ed1859f1996b6081a11e9714391610f96918f8252602082015260400190565b60405180910390a26009850154610fae906001611d77565b60098601555080610fbe81613815565b915050610f15565b50506001600a555050505050505050565b610fe28383836120c3565b610a38816120f4565b6000610ff6836111de565b82106110585760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610902565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610fe283838360405180602001604052806000815250612117565b600b546001600160a01b031633146110c65760405162461bcd60e51b815260040161090290613695565b6110d08282612149565b5050565b60006110df60085490565b82106111425760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610902565b600882815481106111555761115561389c565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806107f55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610902565b60006001600160a01b0382166112495760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610902565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b0316331461128f5760405162461bcd60e51b815260040161090290613695565b600b546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600b80546001600160a01b0319169055565b871561132e576112e93389612215565b61132e5760405162461bcd60e51b815260206004820152601660248201527527232a1034b9903737ba103cb7bab91030b9b9b2ba1760511b6044820152606401610902565b60006113a161133b611ddd565b604080517f22c943463af0e45eeb5f520aef676d0738f3fc1eb90a6c99697265f28ceae5d060208201523391810191909152606081018c9052608081018b90526001600160a01b038a1660a082015260c0810189905260e0810188905261010001610c5a565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810191909152605c016040516020818303038152906040528051906020012090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661142382868686611ed0565b6001600160a01b0316146114795760405162461bcd60e51b815260206004820152601e60248201527f4f706572617465436f6d6d616e643a20496e76616c6964207369676e657200006044820152606401610902565b60008581526010602052604090205460ff16156114ca5760405162461bcd60e51b815260206004820152600f60248201526e73656564206973207265706561742160881b6044820152606401610902565b6000858152601060205260409020805460ff191660011790556001600160a01b038716158015906114fb5750600086115b1561150c5761150c87333089611f79565b604080518a8152602081018a90526001600160a01b0389168183015260608101889052905133917fb7b94b93e463c47f254df7214676f9fbe55520ce3858195a564189e05ac4e93f919081900360800190a2505050505050505050565b600b546001600160a01b031633146115935760405162461bcd60e51b815260040161090290613695565b6040516370a0823160e01b81523060048201526110d090839083906001600160a01b038316906370a082319060240160206040518083038186803b1580156115da57600080fd5b505afa1580156115ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611612919061327a565b6122c3565b60606001805461080a906137da565b6001600160a01b03821633141561167f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610902565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e60205260009081526040902080548190611706906137da565b80601f0160208091040260200160405190810160405280929190818152602001828054611732906137da565b801561177f5780601f106117545761010080835404028352916020019161177f565b820191906000526020600020905b81548152906001019060200180831161176257829003601f168201915b50505050509080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600a0180546117c4906137da565b80601f01602080910402602001604051908101604052809291908181526020018280546117f0906137da565b801561183d5780601f106118125761010080835404028352916020019161183d565b820191906000526020600020905b81548152906001019060200180831161182057829003601f168201915b50505050509080600b01549080600c015490508c565b61185f84848484612117565b611868826120f4565b50505050565b600c805461187b906137da565b80601f01602080910402602001604051908101604052809291908181526020018280546118a7906137da565b80156118f45780601f106118c9576101008083540402835291602001916118f4565b820191906000526020600020905b8154815290600101906020018083116118d757829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b03166119335760405162461bcd60e51b815260040161090290613649565b6000600c611940846123d7565b600d604051602001611954939291906134b5565b60408051601f198184030181529190529392505050565b600d805461187b906137da565b600b546001600160a01b031633146119a25760405162461bcd60e51b815260040161090290613695565b60008a8152600f60205260409020998a5560018a0180546001600160a01b039a8b166001600160a01b03199182161790915560028b019890985560058a0196909655600389019490945560048801929092556006870155600786018054919095169316929092179092556009830155600890910155565b815180611a605760405162461bcd60e51b81526020600482015260156024820152743a37b5b2b724a21034b9903732b1b2b9b9b0b93c9760591b6044820152606401610902565b60008211611aa95760405162461bcd60e51b81526020600482015260166024820152753a343934b22ab4b21034b9903732b1b2b9b9b0b93c9760511b6044820152606401610902565b60005b81811015611b8b576000848281518110611ac857611ac861389c565b60200260200101511115611b7957611af933858381518110611aec57611aec61389c565b6020026020010151612215565b611b3e5760405162461bcd60e51b815260206004820152601660248201527527232a1034b9903737ba103cb7bab91030b9b9b2ba1760511b6044820152606401610902565b6000600e6000868481518110611b5657611b5661389c565b6020026020010151815260200190815260200160002090508381600c0181905550505b80611b8381613815565b915050611aac565b50336001600160a01b03167f5fd7b11aace9b57f6e93d1e437fa3ef34d28426d7fd896244bd8384491b03caf8484604051611bc7929190613525565b60405180910390a2505050565b600b546001600160a01b03163314611bfe5760405162461bcd60e51b815260040161090290613695565b6001600160a01b038116611c635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610902565b600b546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b03163314611ce95760405162461bcd60e51b815260040161090290613695565b611cf5600c8585612e31565b50611d02600d8383612e31565b5050505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d3e82611167565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d84838561374c565b905083811015611dd65760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610902565b9392505050565b60007f0000000000000000000000000000000000000000000000000000000000000000461415611e2c57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000806000611ee1878787876124d5565b91509150611eee816125c2565b5090505b949350505050565b600082611f09575060006107f5565b6000611f158385613778565b905082611f228583613764565b14611dd65760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610902565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611fdd9190613499565b6000604051808303816000865af19150503d806000811461201a576040519150601f19603f3d011682016040523d82523d6000602084013e61201f565b606091505b5091509150818015612049575080511580612049575080806020019051810190612049919061319e565b6120a15760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f46416044820152631253115160e21b6064820152608401610902565b505050505050565b6110d0828260405180602001604052806000815250612780565b6120cd3382612215565b6120e95760405162461bcd60e51b8152600401610902906136ca565b610a388383836127b3565b6000818152600e60205260409020600c810154156110d0576000600c8201555050565b6121213383612215565b61213d5760405162461bcd60e51b8152600401610902906136ca565b6118688484848461295e565b604080516000808252602082019092526001600160a01b0384169083906040516121739190613499565b60006040518083038185875af1925050503d80600081146121b0576040519150601f19603f3d011682016040523d82523d6000602084013e6121b5565b606091505b5050905080610a385760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657248656c7065723a204e61746976655f5452414e534645525f60448201526511905253115160d21b6064820152608401610902565b6000818152600260205260408120546001600160a01b03166122495760405162461bcd60e51b815260040161090290613649565b600061225483611167565b9050806001600160a01b0316846001600160a01b0316148061228f5750836001600160a01b03166122848461088d565b6001600160a01b0316145b80611ef257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611ef2565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b179052915160009283929087169161231f9190613499565b6000604051808303816000865af19150503d806000811461235c576040519150601f19603f3d011682016040523d82523d6000602084013e612361565b606091505b509150915081801561238b57508051158061238b57508080602001905181019061238b919061319e565b611d025760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610902565b6060816123fb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612425578061240f81613815565b915061241e9050600a83613764565b91506123ff565b60008167ffffffffffffffff811115612440576124406138b2565b6040519080825280601f01601f19166020018201604052801561246a576020820181803683370190505b5090505b8415611ef25761247f600183613797565b915061248c600a86613830565b61249790603061374c565b60f81b8183815181106124ac576124ac61389c565b60200101906001600160f81b031916908160001a9053506124ce600a86613764565b945061246e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561250c57506000905060036125b9565b8460ff16601b1415801561252457508460ff16601c14155b1561253557506000905060046125b9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612589573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166125b2576000600192509250506125b9565b9150600090505b94509492505050565b60008160048111156125d6576125d6613870565b14156125df5750565b60018160048111156125f3576125f3613870565b14156126415760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610902565b600281600481111561265557612655613870565b14156126a35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610902565b60038160048111156126b7576126b7613870565b14156127105760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610902565b600481600481111561272457612724613870565b141561277d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610902565b50565b61278a8383612991565b6127976000848484612adf565b610a385760405162461bcd60e51b8152600401610902906135f7565b826001600160a01b03166127c682611167565b6001600160a01b03161461282e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610902565b6001600160a01b0382166128905760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610902565b61289b838383612be9565b6128a6600082611d09565b6001600160a01b03831660009081526003602052604081208054600192906128cf908490613797565b90915550506001600160a01b03821660009081526003602052604081208054600192906128fd90849061374c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6129698484846127b3565b61297584848484612adf565b6118685760405162461bcd60e51b8152600401610902906135f7565b6001600160a01b0382166129e75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610902565b6000818152600260205260409020546001600160a01b031615612a4c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610902565b612a5860008383612be9565b6001600160a01b0382166000908152600360205260408120805460019290612a8190849061374c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612be157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b239033908990889088906004016134e8565b602060405180830381600087803b158015612b3d57600080fd5b505af1925050508015612b6d575060408051601f3d908101601f19168201909252612b6a918101906131d8565b60015b612bc7573d808015612b9b576040519150601f19603f3d011682016040523d82523d6000602084013e612ba0565b606091505b508051612bbf5760405162461bcd60e51b8152600401610902906135f7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ef2565b506001611ef2565b6001600160a01b038316612c4457612c3f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c67565b816001600160a01b0316836001600160a01b031614612c6757612c678382612ca1565b6001600160a01b038216612c7e57610a3881612d3e565b826001600160a01b0316826001600160a01b031614610a3857610a388282612ded565b60006001612cae846111de565b612cb89190613797565b600083815260076020526040902054909150808214612d0b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612d5090600190613797565b60008381526009602052604081205460088054939450909284908110612d7857612d7861389c565b906000526020600020015490508060088381548110612d9957612d9961389c565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612dd157612dd1613886565b6001900381819060005260206000200160009055905550505050565b6000612df8836111de565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612e3d906137da565b90600052602060002090601f016020900481019282612e5f5760008555612ea5565b82601f10612e785782800160ff19823516178555612ea5565b82800160010185558215612ea5579182015b82811115612ea5578235825591602001919060010190612e8a565b50612eb1929150612eb5565b5090565b5b80821115612eb15760008155600101612eb6565b80356001600160a01b0381168114612ee157600080fd5b919050565b60008083601f840112612ef857600080fd5b50813567ffffffffffffffff811115612f1057600080fd5b602083019150836020828501011115612f2857600080fd5b9250929050565b803560ff81168114612ee157600080fd5b600060208284031215612f5257600080fd5b611dd682612eca565b60008060408385031215612f6e57600080fd5b612f7783612eca565b9150612f8560208401612eca565b90509250929050565b600080600060608486031215612fa357600080fd5b612fac84612eca565b9250612fba60208501612eca565b9150604084013590509250925092565b60008060008060808587031215612fe057600080fd5b612fe985612eca565b93506020612ff8818701612eca565b935060408601359250606086013567ffffffffffffffff8082111561301c57600080fd5b818801915088601f83011261303057600080fd5b813581811115613042576130426138b2565b613054601f8201601f1916850161371b565b9150808252898482850101111561306a57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561309d57600080fd5b6130a683612eca565b915060208301356130b6816138c8565b809150509250929050565b600080604083850312156130d457600080fd5b6130dd83612eca565b946020939093013593505050565b600080604083850312156130fe57600080fd5b823567ffffffffffffffff8082111561311657600080fd5b818501915085601f83011261312a57600080fd5b813560208282111561313e5761313e6138b2565b8160051b925061314f81840161371b565b8281528181019085830185870184018b101561316a57600080fd5b600096505b8487101561318d57803583526001969096019591830191830161316f565b509997909101359750505050505050565b6000602082840312156131b057600080fd5b8151611dd6816138c8565b6000602082840312156131cd57600080fd5b8135611dd6816138d6565b6000602082840312156131ea57600080fd5b8151611dd6816138d6565b6000806000806040858703121561320b57600080fd5b843567ffffffffffffffff8082111561322357600080fd5b61322f88838901612ee6565b9096509450602087013591508082111561324857600080fd5b5061325587828801612ee6565b95989497509550505050565b60006020828403121561327357600080fd5b5035919050565b60006020828403121561328c57600080fd5b5051919050565b6000806000806000806000806000806101408b8d0312156132b357600080fd5b8a3599506132c360208c01612eca565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b013593506132f460e08c01612eca565b92506101008b013591506101208b013590509295989b9194979a5092959850565b600080600080600080600080610100898b03121561333257600080fd5b883597506020890135965061334960408a01612eca565b9550606089013594506080890135935061336560a08a01612f2f565b925060c0890135915060e089013590509295985092959890939650565b60008060008060008060c0878903121561339b57600080fd5b8635955060208701359450604087013593506133b960608801612f2f565b92506080870135915060a087013590509295509295509295565b600081518084526133eb8160208601602086016137ae565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061341957607f831692505b602080841082141561343b57634e487b7160e01b600052602260045260246000fd5b81801561344f57600181146134605761348d565b60ff1986168952848901965061348d565b60008881526020902060005b868110156134855781548b82015290850190830161346c565b505084890196505b50505050505092915050565b600082516134ab8184602087016137ae565b9190910192915050565b60006134c182866133ff565b84516134d18183602089016137ae565b6134dd818301866133ff565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061351b908301846133d3565b9695505050505050565b604080825283519082018190526000906020906060840190828701845b8281101561355e57815184529284019290840190600101613542565b50505092019290925292915050565b602081526000611dd660208301846133d3565b6101808152600061359561018083018f6133d3565b8d60208401528c60408401528b60608401528a60808401528960a08401528860c08401528760e0840152866101008401528281036101208401526135d981876133d3565b610140840195909552505061016001529a9950505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613744576137446138b2565b604052919050565b6000821982111561375f5761375f613844565b500190565b6000826137735761377361385a565b500490565b600081600019048311821515161561379257613792613844565b500290565b6000828210156137a9576137a9613844565b500390565b60005b838110156137c95781810151838201526020016137b1565b838111156118685750506000910152565b600181811c908216806137ee57607f821691505b6020821081141561380f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561382957613829613844565b5060010190565b60008261383f5761383f61385a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461277d57600080fd5b6001600160e01b03198116811461277d57600080fdfea2646970667358221220708ba925ca0ad4f9b9d6b8bb343aaf42092ba18cbb33da223a931186fcb2b54064736f6c6343000807003368747470733a2f2f6278682d6e66742e73332e61702d656173742d312e616d617a6f6e6177732e636f6d2f6e66742d646174612f0000000000000000000000002788d56c2b24cab8e6c5ee7165063564a3ce7355

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

0000000000000000000000002788D56c2B24caB8E6C5EE7165063564A3ce7355

-----Decoded View---------------
Arg [0] : _signer (address): 0x2788D56c2B24caB8E6C5EE7165063564A3ce7355

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002788D56c2B24caB8E6C5EE7165063564A3ce7355


Deployed ByteCode Sourcemap

86455:9746:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48477:305;;;;;;;;;;-1:-1:-1;48477:305:0;;;;;:::i;:::-;;:::i;:::-;;;12962:14:1;;12955:22;12937:41;;12925:2;12910:18;48477:305:0;;;;;;;;49422:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;50981:221::-;;;;;;;;;;-1:-1:-1;50981:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;10891:32:1;;;10873:51;;10861:2;10846:18;50981:221:0;10727:203:1;50504:411:0;;;;;;;;;;-1:-1:-1;50504:411:0;;;;;:::i;:::-;;:::i;:::-;;87631:179;;;;;;;;;;;;87680:130;87631:179;;;;;13135:25:1;;;13123:2;13108:18;87631:179:0;12989:177:1;62725:113:0;;;;;;;;;;-1:-1:-1;62813:10:0;:17;62725:113;;90178:2183;;;;;;:::i;:::-;;:::i;95983:215::-;;;;;;;;;;-1:-1:-1;95983:215:0;;;;;:::i;:::-;;:::i;62306:343::-;;;;;;;;;;-1:-1:-1;62306:343:0;;;;;:::i;:::-;;:::i;95449:227::-;;;;;;;;;;-1:-1:-1;95449:227:0;;;;;:::i;:::-;;:::i;94428:142::-;;;;;;;;;;-1:-1:-1;94428:142:0;;;;;:::i;:::-;;:::i;62915:320::-;;;;;;;;;;-1:-1:-1;62915:320:0;;;;;:::i;:::-;;:::i;87959:32::-;;;;;;;;;;;;;;;49116:239;;;;;;;;;;-1:-1:-1;49116:239:0;;;;;:::i;:::-;;:::i;48846:208::-;;;;;;;;;;-1:-1:-1;48846:208:0;;;;;:::i;:::-;;:::i;70019:148::-;;;;;;;;;;;;;:::i;92392:1096::-;;;;;;;;;;-1:-1:-1;92392:1096:0;;;;;:::i;:::-;;:::i;69368:87::-;;;;;;;;;;-1:-1:-1;69441:6:0;;-1:-1:-1;;;;;69441:6:0;69368:87;;94231:189;;;;;;;;;;-1:-1:-1;94231:189:0;;;;;:::i;:::-;;:::i;49591:104::-;;;;;;;;;;;;;:::i;51274:295::-;;;;;;;;;;-1:-1:-1;51274:295:0;;;;;:::i;:::-;;:::i;88077:80::-;;;;;;;;;;;;88115:42;88077:80;;87564:58;;;;;;;;;;-1:-1:-1;87564:58:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;87564:58:0;;;;;;;;;;;;;;;;;;;;;;;;31638:25:1;;;-1:-1:-1;;;;;31737:15:1;;;31732:2;31717:18;;31710:43;31769:18;;31762:34;;;;31827:2;31812:18;;31805:34;;;;31870:3;31855:19;;31848:35;;;;31690:3;31899:19;;31892:35;;;;31958:3;31943:19;;31936:35;32008:15;;;32002:3;31987:19;;31980:44;32055:3;32040:19;;32033:35;;;;32099:3;32084:19;;32077:35;31625:3;31610:19;87564:58:0;31239:879:1;87509:46:0;;;;;;;;;;-1:-1:-1;87509:46:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;95700:259::-;;;;;;;;;;-1:-1:-1;95700:259:0;;;;;:::i;:::-;;:::i;86611:85::-;;;;;;;;;;;;;:::i;87817:133::-;;;;;;;;;;;;87863:87;87817:133;;89800:368;;;;;;;;;;-1:-1:-1;89800:368:0;;;;;:::i;:::-;;:::i;86703:38::-;;;;;;;;;;;;;:::i;88925:830::-;;;;;;;;;;-1:-1:-1;88925:830:0;;;;;:::i;:::-;;:::i;88026:42::-;;;;;;;;;;-1:-1:-1;88026:42:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;51640:164;;;;;;;;;;-1:-1:-1;51640:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;51761:25:0;;;51737:4;51761:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;51640:164;94598:625;;;;;;;;;;-1:-1:-1;94598:625:0;;;;;:::i;:::-;;:::i;70322:281::-;;;;;;;;;;-1:-1:-1;70322:281:0;;;;;:::i;:::-;;:::i;88703:177::-;;;;;;;;;;-1:-1:-1;88703:177:0;;;;;:::i;:::-;;:::i;48477:305::-;48579:4;-1:-1:-1;;;;;;48616:40:0;;-1:-1:-1;;;48616:40:0;;:105;;-1:-1:-1;;;;;;;48673:48:0;;-1:-1:-1;;;48673:48:0;48616:105;:158;;;-1:-1:-1;;;;;;;;;;46370:40:0;;;48738:36;48596:178;48477:305;-1:-1:-1;;48477:305:0:o;49422:100::-;49476:13;49509:5;49502:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49422:100;:::o;50981:221::-;51057:7;54464:16;;;:7;:16;;;;;;-1:-1:-1;;;;;54464:16:0;51077:73;;;;-1:-1:-1;;;51077:73:0;;26575:2:1;51077:73:0;;;26557:21:1;26614:2;26594:18;;;26587:30;26653:34;26633:18;;;26626:62;-1:-1:-1;;;26704:18:1;;;26697:42;26756:19;;51077:73:0;;;;;;;;;-1:-1:-1;51170:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;51170:24:0;;50981:221::o;50504:411::-;50585:13;50601:23;50616:7;50601:14;:23::i;:::-;50585:39;;50649:5;-1:-1:-1;;;;;50643:11:0;:2;-1:-1:-1;;;;;50643:11:0;;;50635:57;;;;-1:-1:-1;;;50635:57:0;;28103:2:1;50635:57:0;;;28085:21:1;28142:2;28122:18;;;28115:30;28181:34;28161:18;;;28154:62;-1:-1:-1;;;28232:18:1;;;28225:31;28273:19;;50635:57:0;27901:397:1;50635:57:0;19583:10;-1:-1:-1;;;;;50727:21:0;;;;:62;;-1:-1:-1;50752:37:0;50769:5;19583:10;51640:164;:::i;50752:37::-;50705:168;;;;-1:-1:-1;;;50705:168:0;;23453:2:1;50705:168:0;;;23435:21:1;23492:2;23472:18;;;23465:30;23531:34;23511:18;;;23504:62;23602:26;23582:18;;;23575:54;23646:19;;50705:168:0;23251:420:1;50705:168:0;50886:21;50895:2;50899:7;50886:8;:21::i;:::-;50574:341;50504:411;;:::o;90178:2183::-;72261:1;72857:7;;:19;;72849:63;;;;-1:-1:-1;;;72849:63:0;;30899:2:1;72849:63:0;;;30881:21:1;30938:2;30918:18;;;30911:30;30977:33;30957:18;;;30950:61;31028:18;;72849:63:0;30697:355:1;72849:63:0;72261:1;72990:7;:18;90323:31:::1;90357:25:::0;;;:15:::1;:25;::::0;;;;90457:21:::1;::::0;::::1;::::0;90438:15:::1;:40;::::0;::::1;::::0;:82:::1;;;90501:7;:19;;;90482:15;:38;;90438:82;90430:114;;;::::0;-1:-1:-1;;;90430:114:0;;21597:2:1;90430:114:0::1;::::0;::::1;21579:21:1::0;21636:2;21616:18;;;21609:30;-1:-1:-1;;;21655:18:1;;;21648:49;21714:18;;90430:114:0::1;21395:343:1::0;90430:114:0::1;90579:7;:23;;;90565:10;:37;;90557:66;;;::::0;-1:-1:-1;;;90557:66:0;;22348:2:1;90557:66:0::1;::::0;::::1;22330:21:1::0;22387:2;22367:18;;;22360:30;-1:-1:-1;;;22406:18:1;;;22399:46;22462:18;;90557:66:0::1;22146:340:1::0;90557:66:0::1;90668:19;::::0;::::1;::::0;:35:::1;::::0;90692:10;90668:23:::1;:35::i;:::-;90644:7;:20;;;:59;;90636:90;;;::::0;-1:-1:-1;;;90636:90:0;;17839:2:1;90636:90:0::1;::::0;::::1;17821:21:1::0;17878:2;17858:18;;;17851:30;-1:-1:-1;;;17897:18:1;;;17890:48;17955:18;;90636:90:0::1;17637:342:1::0;90636:90:0::1;90761:19;::::0;::::1;::::0;-1:-1:-1;;;;;90761:19:0::1;:35:::0;;:72:::1;;-1:-1:-1::0;90814:19:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;90814:19:0::1;90800:10;:33;90761:72;90739:140;;;::::0;-1:-1:-1;;;90739:140:0;;23106:2:1;90739:140:0::1;::::0;::::1;23088:21:1::0;23145:2;23125:18;;;23118:30;-1:-1:-1;;;23164:18:1;;;23157:48;23222:18;;90739:140:0::1;22904:342:1::0;90739:140:0::1;90892:14;90985:159;91007:20;:18;:20::i;:::-;91056:76;::::0;;87863:87:::1;91056:76;::::0;::::1;14098:25:1::0;91088:10:0::1;14139:18:1::0;;;14132:60;;;;14208:18;;;14201:34;;;14251:18;;;14244:34;;;14294:19;;;14287:35;;;14070:19;;91056:76:0::1;;::::0;;-1:-1:-1;;91056:76:0;;::::1;::::0;;;;;;91046:87;;91056:76:::1;91046:87:::0;;::::1;::::0;-1:-1:-1;;;82045:57:0;;;10588:27:1;10631:11;;;10624:27;;;;10667:12;;;;10660:28;;;;82045:57:0;;;;;;;;;;10704:12:1;;;;82045:57:0;;82035:68;;;;;;81915:196;90985:159:::1;90919:226;::::0;10187:66:1;90919:226:0::1;::::0;::::1;10175:79:1::0;10270:12;;;10263:28;;;;10307:12;;90919:226:0::1;;;;;;;;;;;;90909:237;;;;;;90892:254;;91199:7;-1:-1:-1::0;;;;;91165:41:0::1;:30;91179:6;91187:1;91190;91193;91165:13;:30::i;:::-;-1:-1:-1::0;;;;;91165:41:0::1;;91157:88;;;::::0;-1:-1:-1;;;91157:88:0;;29336:2:1;91157:88:0::1;::::0;::::1;29318:21:1::0;29375:2;29355:18;;;29348:30;29414:34;29394:18;;;29387:62;-1:-1:-1;;;29465:18:1;;;29458:32;29507:19;;91157:88:0::1;29134:398:1::0;91157:88:0::1;91267:20;::::0;;;:9:::1;:20;::::0;;;;;::::1;;:29;91258:59;;;::::0;-1:-1:-1;;;91258:59:0;;27759:2:1;91258:59:0::1;::::0;::::1;27741:21:1::0;27798:2;27778:18;;;27771:30;-1:-1:-1;;;27817:18:1;;;27810:45;27872:18;;91258:59:0::1;27557:339:1::0;91258:59:0::1;91328:20;::::0;;;:9:::1;:20;::::0;;;;:27;;-1:-1:-1;;91328:27:0::1;91351:4;91328:27;::::0;;91417:21:::1;::::0;::::1;::::0;:38:::1;::::0;91443:10;91417:25:::1;:38::i;:::-;91397:58:::0;-1:-1:-1;91491:9:0::1;:14:::0;:53;::::1;;;-1:-1:-1::0;91509:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;91509:20:0::1;88115:42;91509:35;;91491:53;91490:140;;;-1:-1:-1::0;91568:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;91568:20:0::1;88115:42;91568:35;:61:::0;::::1;;;;91620:9;91607;:22;91568:61;91468:209;;;::::0;-1:-1:-1;;;91468:209:0;;29739:2:1;91468:209:0::1;::::0;::::1;29721:21:1::0;29778:2;29758:18;;;29751:30;-1:-1:-1;;;29797:18:1;;;29790:49;29856:18;;91468:209:0::1;29537:343:1::0;91468:209:0::1;91694:20;::::0;::::1;::::0;-1:-1:-1;;;;;91694:20:0::1;88115:42;91694:35;::::0;::::1;::::0;:75:::1;;-1:-1:-1::0;91733:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;91733:20:0::1;:36:::0;::::1;91694:75;:92;;;;;91785:1;91773:9;:13;91694:92;91690:219;;;91836:20;::::0;::::1;::::0;91803:94:::1;::::0;-1:-1:-1;;;;;91836:20:0::1;19583:10:::0;91880:4:::1;91887:9;91803:31;:94::i;:::-;91926:9;91921:431;91946:10;91942:1;:14;91921:431;;;92001:19;::::0;::::1;::::0;:26:::1;::::0;92025:1:::1;92001:23;:26::i;:::-;91979:19;::::0;::::1;:48:::0;92081:17:::1;::::0;::::1;::::0;92044:24:::1;92071:28:::0;;;:9:::1;:28;::::0;;;;92114:14:::1;::::0;::::1;:34:::0;;;92071:28;92165:40:::1;::::0;92175:10:::1;::::0;92165:9:::1;:40::i;:::-;92261:17;::::0;::::1;::::0;92225:54:::1;::::0;92239:10:::1;::::0;92225:54:::1;::::0;::::1;::::0;92251:8;32297:25:1;;32353:2;32338:18;;32331:34;32285:2;32270:18;;32123:248;92225:54:0::1;;;;;;;;92316:17;::::0;::::1;::::0;:24:::1;::::0;92338:1:::1;92316:21;:24::i;:::-;92296:17;::::0;::::1;:44:::0;-1:-1:-1;91958:4:0;::::1;::::0;::::1;:::i;:::-;;;;91921:431;;;-1:-1:-1::0;;72217:1:0;73169:7;:22;-1:-1:-1;;;;;;;;90178:2183:0:o;95983:215::-;96117:37;96136:4;96142:2;96146:7;96117:18;:37::i;:::-;96165:25;96182:7;96165:16;:25::i;62306:343::-;62448:7;62503:23;62520:5;62503:16;:23::i;:::-;62495:5;:31;62473:124;;;;-1:-1:-1;;;62473:124:0;;18186:2:1;62473:124:0;;;18168:21:1;18225:2;18205:18;;;18198:30;18264:34;18244:18;;;18237:62;-1:-1:-1;;;18315:18:1;;;18308:41;18366:19;;62473:124:0;17984:407:1;62473:124:0;-1:-1:-1;;;;;;62615:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;62306:343::o;95449:227::-;95587:45;95610:4;95616:2;95620:7;95587:45;;;;;;;;;;;;:22;:45::i;94428:142::-;69441:6;;-1:-1:-1;;;;;69441:6:0;19583:10;69588:23;69580:68;;;;-1:-1:-1;;;69580:68:0;;;;;;;:::i;:::-;94517:45:::1;94551:2;94555:6;94517:33;:45::i;:::-;94428:142:::0;;:::o;62915:320::-;63035:7;63090:30;62813:10;:17;;62725:113;63090:30;63082:5;:38;63060:132;;;;-1:-1:-1;;;63060:132:0;;28923:2:1;63060:132:0;;;28905:21:1;28962:2;28942:18;;;28935:30;29001:34;28981:18;;;28974:62;-1:-1:-1;;;29052:18:1;;;29045:42;29104:19;;63060:132:0;28721:408:1;63060:132:0;63210:10;63221:5;63210:17;;;;;;;;:::i;:::-;;;;;;;;;63203:24;;62915:320;;;:::o;49116:239::-;49188:7;49224:16;;;:7;:16;;;;;;-1:-1:-1;;;;;49224:16:0;49259:19;49251:73;;;;-1:-1:-1;;;49251:73:0;;24640:2:1;49251:73:0;;;24622:21:1;24679:2;24659:18;;;24652:30;24718:34;24698:18;;;24691:62;-1:-1:-1;;;24769:18:1;;;24762:39;24818:19;;49251:73:0;24438:405:1;48846:208:0;48918:7;-1:-1:-1;;;;;48946:19:0;;48938:74;;;;-1:-1:-1;;;48938:74:0;;23878:2:1;48938:74:0;;;23860:21:1;23917:2;23897:18;;;23890:30;23956:34;23936:18;;;23929:62;-1:-1:-1;;;24007:18:1;;;24000:40;24057:19;;48938:74:0;23676:406:1;48938:74:0;-1:-1:-1;;;;;;49030:16:0;;;;;:9;:16;;;;;;;48846:208::o;70019:148::-;69441:6;;-1:-1:-1;;;;;69441:6:0;19583:10;69588:23;69580:68;;;;-1:-1:-1;;;69580:68:0;;;;;;;:::i;:::-;70110:6:::1;::::0;70089:40:::1;::::0;70126:1:::1;::::0;-1:-1:-1;;;;;70110:6:0::1;::::0;70089:40:::1;::::0;70126:1;;70089:40:::1;70140:6;:19:::0;;-1:-1:-1;;;;;;70140:19:0::1;::::0;;70019:148::o;92392:1096::-;92594:12;;92590:121;;92631:42;92651:10;92663:8;92631:18;:42::i;:::-;92623:76;;;;-1:-1:-1;;;92623:76:0;;20487:2:1;92623:76:0;;;20469:21:1;20526:2;20506:18;;;20499:30;-1:-1:-1;;;20545:18:1;;;20538:52;20607:18;;92623:76:0;20285:346:1;92623:76:0;92723:14;92816:184;92838:20;:18;:20::i;:::-;92887:101;;;87680:130;92887:101;;;13486:25:1;92922:10:0;13565:18:1;;;13558:43;;;;13617:18;;;13610:34;;;13660:18;;;13653:34;;;-1:-1:-1;;;;;13724:15:1;;13703:19;;;13696:44;13756:19;;;13749:35;;;13800:19;;;13793:35;;;13458:19;;92887:101:0;13171:663:1;92816:184:0;92750:251;;10187:66:1;92750:251:0;;;10175:79:1;10270:12;;;10263:28;;;;10307:12;;92750:251:0;;;;;;;;;;;;92740:262;;;;;;92723:279;;93055:7;-1:-1:-1;;;;;93021:41:0;:30;93035:6;93043:1;93046;93049;93021:13;:30::i;:::-;-1:-1:-1;;;;;93021:41:0;;93013:84;;;;-1:-1:-1;;;93013:84:0;;25050:2:1;93013:84:0;;;25032:21:1;25089:2;25069:18;;;25062:30;25128:32;25108:18;;;25101:60;25178:18;;93013:84:0;24848:354:1;93013:84:0;93119:20;;;;:9;:20;;;;;;;;:29;93110:59;;;;-1:-1:-1;;;93110:59:0;;27759:2:1;93110:59:0;;;27741:21:1;27798:2;27778:18;;;27771:30;-1:-1:-1;;;27817:18:1;;;27810:45;27872:18;;93110:59:0;27557:339:1;93110:59:0;93180:20;;;;:9;:20;;;;;:27;;-1:-1:-1;;93180:27:0;93203:4;93180:27;;;-1:-1:-1;;;;;93226:25:0;;;;;;:48;;;93273:1;93255:15;:19;93226:48;93222:170;;;93291:89;93324:9;19583:10;93357:4;93364:15;93291:31;:89::i;:::-;93409:71;;;32607:25:1;;;32663:2;32648:18;;32641:34;;;-1:-1:-1;;;;;32711:32:1;;32691:18;;;32684:60;32775:2;32760:18;;32753:34;;;93409:71:0;;93421:10;;93409:71;;;;;;32594:3:1;93409:71:0;;;92552:936;92392:1096;;;;;;;;:::o;94231:189::-;69441:6;;-1:-1:-1;;;;;69441:6:0;19583:10;69588:23;69580:68;;;;-1:-1:-1;;;69580:68:0;;;;;;;:::i;:::-;94366:45:::1;::::0;-1:-1:-1;;;94366:45:0;;94405:4:::1;94366:45;::::0;::::1;10873:51:1::0;94318:94:0::1;::::0;94347:12;;94361:2;;-1:-1:-1;;;;;94366:30:0;::::1;::::0;::::1;::::0;10846:18:1;;94366:45:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;94318:27;:94::i;49591:104::-:0;49647:13;49680:7;49673:14;;;;;:::i;51274:295::-;-1:-1:-1;;;;;51377:24:0;;19583:10;51377:24;;51369:62;;;;-1:-1:-1;;;51369:62:0;;21243:2:1;51369:62:0;;;21225:21:1;21282:2;21262:18;;;21255:30;21321:27;21301:18;;;21294:55;21366:18;;51369:62:0;21041:349:1;51369:62:0;19583:10;51444:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;51444:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;51444:53:0;;;;;;;;;;51513:48;;12937:41:1;;;51444:42:0;;19583:10;51513:48;;12910:18:1;51513:48:0;;;;;;;51274:295;;:::o;87509:46::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;95700:259::-;95867:48;95890:4;95896:2;95900:7;95909:5;95867:22;:48::i;:::-;95926:25;95943:7;95926:16;:25::i;:::-;95700:259;;;;:::o;86611:85::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;89800:368::-;54440:4;54464:16;;;:7;:16;;;;;;89865:13;;-1:-1:-1;;;;;54464:16:0;89890:110;;;;-1:-1:-1;;;89890:110:0;;;;;;;:::i;:::-;90013:20;90074:14;90089:17;90098:7;90089:8;:17::i;:::-;90108:14;90057:66;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;90057:66:0;;;;;;;;;;89800:368;-1:-1:-1;;;89800:368:0:o;86703:38::-;;;;;;;:::i;88925:830::-;69441:6;;-1:-1:-1;;;;;69441:6:0;19583:10;69588:23;69580:68;;;;-1:-1:-1;;;69580:68:0;;;;;;;:::i;:::-;89224:31:::1;89258:25:::0;;;:15:::1;:25;::::0;;;;89296:26;;;89333:20:::1;::::0;::::1;:36:::0;;-1:-1:-1;;;;;89333:36:0;;::::1;-1:-1:-1::0;;;;;;89333:36:0;;::::1;;::::0;;;89380:21:::1;::::0;::::1;:38:::0;;;;89429:20:::1;::::0;::::1;:36:::0;;;;89478:21:::1;::::0;::::1;:38:::0;;;;89527:19:::1;::::0;::::1;:34:::0;;;;89572:23:::1;::::0;::::1;:42:::0;89625:19:::1;::::0;::::1;:34:::0;;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;89670:17:::1;::::0;::::1;:30:::0;89713:19:::1;::::0;;::::1;:34:::0;88925:830::o;94598:625::-;94701:16;;94736:7;94728:40;;;;-1:-1:-1;;;94728:40:0;;19781:2:1;94728:40:0;;;19763:21:1;19820:2;19800:18;;;19793:30;-1:-1:-1;;;19839:18:1;;;19832:51;19900:18;;94728:40:0;19579:345:1;94728:40:0;94799:1;94787:9;:13;94779:47;;;;-1:-1:-1;;;94779:47:0;;24289:2:1;94779:47:0;;;24271:21:1;24328:2;24308:18;;;24301:30;-1:-1:-1;;;24347:18:1;;;24340:52;24409:18;;94779:47:0;24087:346:1;94779:47:0;94844:9;94839:312;94863:3;94859:1;:7;94839:312;;;94907:1;94892:9;94902:1;94892:12;;;;;;;;:::i;:::-;;;;;;;:16;94888:252;;;94937:46;94957:10;94969:9;94979:1;94969:12;;;;;;;;:::i;:::-;;;;;;;94937:18;:46::i;:::-;94929:80;;;;-1:-1:-1;;;94929:80:0;;20487:2:1;94929:80:0;;;20469:21:1;20526:2;20506:18;;;20499:30;-1:-1:-1;;;20545:18:1;;;20538:52;20607:18;;94929:80:0;20285:346:1;94929:80:0;95028:24;95055:9;:23;95065:9;95075:1;95065:12;;;;;;;;:::i;:::-;;;;;;;95055:23;;;;;;;;;;;95028:50;;95115:9;95097:6;:15;;:27;;;;94910:230;94888:252;94868:3;;;;:::i;:::-;;;;94839:312;;;;95181:10;-1:-1:-1;;;;;95168:47:0;;95194:9;95205;95168:47;;;;;;;:::i;:::-;;;;;;;;94676:547;94598:625;;:::o;70322:281::-;69441:6;;-1:-1:-1;;;;;69441:6:0;19583:10;69588:23;69580:68;;;;-1:-1:-1;;;69580:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;70425:22:0;::::1;70403:110;;;::::0;-1:-1:-1;;;70403:110:0;;19017:2:1;70403:110:0::1;::::0;::::1;18999:21:1::0;19056:2;19036:18;;;19029:30;19095:34;19075:18;;;19068:62;-1:-1:-1;;;19146:18:1;;;19139:36;19192:19;;70403:110:0::1;18815:402:1::0;70403:110:0::1;70550:6;::::0;70529:38:::1;::::0;-1:-1:-1;;;;;70529:38:0;;::::1;::::0;70550:6:::1;::::0;70529:38:::1;::::0;70550:6:::1;::::0;70529:38:::1;70578:6;:17:::0;;-1:-1:-1;;;;;;70578:17:0::1;-1:-1:-1::0;;;;;70578:17:0;;;::::1;::::0;;;::::1;::::0;;70322:281::o;88703:177::-;69441:6;;-1:-1:-1;;;;;69441:6:0;19583:10;69588:23;69580:68;;;;-1:-1:-1;;;69580:68:0;;;;;;;:::i;:::-;88813:24:::1;:14;88830:7:::0;;88813:24:::1;:::i;:::-;-1:-1:-1::0;88848:24:0::1;:14;88865:7:::0;;88848:24:::1;:::i;:::-;;88703:177:::0;;;;:::o;58357:174::-;58432:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;58432:29:0;-1:-1:-1;;;;;58432:29:0;;;;;;;;:24;;58486:23;58432:24;58486:14;:23::i;:::-;-1:-1:-1;;;;;58477:46:0;;;;;;;;;;;58357:174;;:::o;14293:179::-;14351:7;;14383:5;14387:1;14383;:5;:::i;:::-;14371:17;;14412:1;14407;:6;;14399:46;;;;-1:-1:-1;;;14399:46:0;;20131:2:1;14399:46:0;;;20113:21:1;20170:2;20150:18;;;20143:30;20209:29;20189:18;;;20182:57;20256:18;;14399:46:0;19929:351:1;14399:46:0;14463:1;14293:179;-1:-1:-1;;;14293:179:0:o;85087:281::-;85140:7;85181:16;85164:13;:33;85160:201;;;-1:-1:-1;85221:24:0;;85087:281::o;85160:201::-;-1:-1:-1;85557:73:0;;;85307:10;85557:73;;;;14592:25:1;;;;85319:12:0;14633:18:1;;;14626:34;85333:15:0;14676:18:1;;;14669:34;85601:13:0;14719:18:1;;;14712:34;85624:4:0;14762:19:1;;;;14755:61;;;;85557:73:0;;;;;;;;;;14564:19:1;;;;85557:73:0;;;85547:84;;;;;;85087:281::o;80717:279::-;80845:7;80866:17;80885:18;80907:25;80918:4;80924:1;80927;80930;80907:10;:25::i;:::-;80865:67;;;;80943:18;80955:5;80943:11;:18::i;:::-;-1:-1:-1;80979:9:0;-1:-1:-1;80717:279:0;;;;;;;:::o;15172:220::-;15230:7;15254:6;15250:20;;-1:-1:-1;15269:1:0;15262:8;;15250:20;15281:9;15293:5;15297:1;15293;:5;:::i;:::-;15281:17;-1:-1:-1;15326:1:0;15317:5;15321:1;15281:17;15317:5;:::i;:::-;:10;15309:56;;;;-1:-1:-1;;;15309:56:0;;26173:2:1;15309:56:0;;;26155:21:1;26212:2;26192:18;;;26185:30;26251:34;26231:18;;;26224:62;-1:-1:-1;;;26302:18:1;;;26295:31;26343:19;;15309:56:0;25971:397:1;10971:402:0;11196:51;;;-1:-1:-1;;;;;11193:15:1;;;11196:51:0;;;11175:34:1;11245:15;;;11225:18;;;11218:43;11277:18;;;;11270:34;;;11196:51:0;;;;;;;;;;11110:18:1;;;;11196:51:0;;;;;;;-1:-1:-1;;;;;11196:51:0;-1:-1:-1;;;11196:51:0;;;11185:63;;-1:-1:-1;;;;11185:10:0;;;;:63;;11196:51;11185:63;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11149:99;;;;11267:7;:57;;;;-1:-1:-1;11279:11:0;;:16;;:44;;;11310:4;11299:24;;;;;;;;;;;;:::i;:::-;11259:106;;;;-1:-1:-1;;;11259:106:0;;30494:2:1;11259:106:0;;;30476:21:1;30533:2;30513:18;;;30506:30;30572:34;30552:18;;;30545:62;-1:-1:-1;;;30623:18:1;;;30616:34;30667:19;;11259:106:0;30292:400:1;11259:106:0;11059:314;;10971:402;;;;:::o;55359:110::-;55435:26;55445:2;55449:7;55435:26;;;;;;;;;;;;:9;:26::i;51871:339::-;52066:41;19583:10;52099:7;52066:18;:41::i;:::-;52058:103;;;;-1:-1:-1;;;52058:103:0;;;;;;;:::i;:::-;52174:28;52184:4;52190:2;52194:7;52174:9;:28::i;95231:194::-;95293:24;95320:18;;;:9;:18;;;;;95352:15;;;;:19;95349:69;;95405:1;95387:15;;;:19;95282:143;95231:194;:::o;52537:328::-;52712:41;19583:10;52745:7;52712:18;:41::i;:::-;52704:103;;;;-1:-1:-1;;;52704:103:0;;;;;;;:::i;:::-;52818:39;52832:4;52838:2;52842:7;52851:5;52818:13;:39::i;11381:201::-;11492:12;;;11454;11492;;;;;;;;;-1:-1:-1;;;;;11471:7:0;;;11485:5;;11471:34;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11453:52;;;11524:7;11516:58;;;;-1:-1:-1;;;11516:58:0;;30087:2:1;11516:58:0;;;30069:21:1;30126:2;30106:18;;;30099:30;30165:34;30145:18;;;30138:62;-1:-1:-1;;;30216:18:1;;;30209:36;30262:19;;11516:58:0;29885:402:1;54669:348:0;54762:4;54464:16;;;:7;:16;;;;;;-1:-1:-1;;;;;54464:16:0;54779:73;;;;-1:-1:-1;;;54779:73:0;;;;;;;:::i;:::-;54863:13;54879:23;54894:7;54879:14;:23::i;:::-;54863:39;;54932:5;-1:-1:-1;;;;;54921:16:0;:7;-1:-1:-1;;;;;54921:16:0;;:51;;;;54965:7;-1:-1:-1;;;;;54941:31:0;:20;54953:7;54941:11;:20::i;:::-;-1:-1:-1;;;;;54941:31:0;;54921:51;:87;;;-1:-1:-1;;;;;;51761:25:0;;;51737:4;51761:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;54976:32;51640:164;10600:361;10795:45;;;-1:-1:-1;;;;;12000:32:1;;;10795:45:0;;;11982:51:1;12049:18;;;;12042:34;;;10795:45:0;;;;;;;;;;11955:18:1;;;;10795:45:0;;;;;;;-1:-1:-1;;;;;10795:45:0;-1:-1:-1;;;10795:45:0;;;10784:57;;-1:-1:-1;;;;10784:10:0;;;;:57;;10795:45;10784:57;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10748:93;;;;10860:7;:57;;;;-1:-1:-1;10872:11:0;;:16;;:44;;;10903:4;10892:24;;;;;;;;;;;;:::i;:::-;10852:101;;;;-1:-1:-1;;;10852:101:0;;17119:2:1;10852:101:0;;;17101:21:1;17158:2;17138:18;;;17131:30;17197:33;17177:18;;;17170:61;17248:18;;10852:101:0;16917:355:1;93498:723:0;93554:13;93775:10;93771:53;;-1:-1:-1;;93802:10:0;;;;;;;;;;;;-1:-1:-1;;;93802:10:0;;;;;93498:723::o;93771:53::-;93849:5;93834:12;93890:78;93897:9;;93890:78;;93923:8;;;;:::i;:::-;;-1:-1:-1;93946:10:0;;-1:-1:-1;93954:2:0;93946:10;;:::i;:::-;;;93890:78;;;93978:19;94010:6;94000:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;94000:17:0;;93978:39;;94028:154;94035:10;;94028:154;;94062:11;94072:1;94062:11;;:::i;:::-;;-1:-1:-1;94131:10:0;94139:2;94131:5;:10;:::i;:::-;94118:24;;:2;:24;:::i;:::-;94105:39;;94088:6;94095;94088:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;94088:56:0;;;;;;;;-1:-1:-1;94159:11:0;94168:2;94159:11;;:::i;:::-;;;94028:154;;78946:1632;79077:7;;80011:66;79998:79;;79994:163;;;-1:-1:-1;80110:1:0;;-1:-1:-1;80114:30:0;80094:51;;79994:163;80171:1;:7;;80176:2;80171:7;;:18;;;;;80182:1;:7;;80187:2;80182:7;;80171:18;80167:102;;;-1:-1:-1;80222:1:0;;-1:-1:-1;80226:30:0;80206:51;;80167:102;80383:24;;;80366:14;80383:24;;;;;;;;;15054:25:1;;;15127:4;15115:17;;15095:18;;;15088:45;;;;15149:18;;;15142:34;;;15192:18;;;15185:34;;;80383:24:0;;15026:19:1;;80383:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;80383:24:0;;-1:-1:-1;;80383:24:0;;;-1:-1:-1;;;;;;;80422:20:0;;80418:103;;80475:1;80479:29;80459:50;;;;;;;80418:103;80541:6;-1:-1:-1;80549:20:0;;-1:-1:-1;78946:1632:0;;;;;;;;:::o;73608:643::-;73686:20;73677:5;:29;;;;;;;;:::i;:::-;;73673:571;;;73608:643;:::o;73673:571::-;73784:29;73775:5;:38;;;;;;;;:::i;:::-;;73771:473;;;73830:34;;-1:-1:-1;;;73830:34:0;;16766:2:1;73830:34:0;;;16748:21:1;16805:2;16785:18;;;16778:30;16844:26;16824:18;;;16817:54;16888:18;;73830:34:0;16564:348:1;73771:473:0;73895:35;73886:5;:44;;;;;;;;:::i;:::-;;73882:362;;;73947:41;;-1:-1:-1;;;73947:41:0;;17479:2:1;73947:41:0;;;17461:21:1;17518:2;17498:18;;;17491:30;17557:33;17537:18;;;17530:61;17608:18;;73947:41:0;17277:355:1;73882:362:0;74019:30;74010:5;:39;;;;;;;;:::i;:::-;;74006:238;;;74066:44;;-1:-1:-1;;;74066:44:0;;21945:2:1;74066:44:0;;;21927:21:1;21984:2;21964:18;;;21957:30;22023:34;22003:18;;;21996:62;-1:-1:-1;;;22074:18:1;;;22067:32;22116:19;;74066:44:0;21743:398:1;74006:238:0;74141:30;74132:5;:39;;;;;;;;:::i;:::-;;74128:116;;;74188:44;;-1:-1:-1;;;74188:44:0;;25409:2:1;74188:44:0;;;25391:21:1;25448:2;25428:18;;;25421:30;25487:34;25467:18;;;25460:62;-1:-1:-1;;;25538:18:1;;;25531:32;25580:19;;74188:44:0;25207:398:1;74128:116:0;73608:643;:::o;55696:321::-;55826:18;55832:2;55836:7;55826:5;:18::i;:::-;55877:54;55908:1;55912:2;55916:7;55925:5;55877:22;:54::i;:::-;55855:154;;;;-1:-1:-1;;;55855:154:0;;;;;;;:::i;57661:578::-;57820:4;-1:-1:-1;;;;;57793:31:0;:23;57808:7;57793:14;:23::i;:::-;-1:-1:-1;;;;;57793:31:0;;57785:85;;;;-1:-1:-1;;;57785:85:0;;27349:2:1;57785:85:0;;;27331:21:1;27388:2;27368:18;;;27361:30;27427:34;27407:18;;;27400:62;-1:-1:-1;;;27478:18:1;;;27471:39;27527:19;;57785:85:0;27147:405:1;57785:85:0;-1:-1:-1;;;;;57889:16:0;;57881:65;;;;-1:-1:-1;;;57881:65:0;;20838:2:1;57881:65:0;;;20820:21:1;20877:2;20857:18;;;20850:30;20916:34;20896:18;;;20889:62;-1:-1:-1;;;20967:18:1;;;20960:34;21011:19;;57881:65:0;20636:400:1;57881:65:0;57959:39;57980:4;57986:2;57990:7;57959:20;:39::i;:::-;58063:29;58080:1;58084:7;58063:8;:29::i;:::-;-1:-1:-1;;;;;58105:15:0;;;;;;:9;:15;;;;;:20;;58124:1;;58105:15;:20;;58124:1;;58105:20;:::i;:::-;;;;-1:-1:-1;;;;;;;58136:13:0;;;;;;:9;:13;;;;;:18;;58153:1;;58136:13;:18;;58153:1;;58136:18;:::i;:::-;;;;-1:-1:-1;;58165:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;58165:21:0;-1:-1:-1;;;;;58165:21:0;;;;;;;;;58204:27;;58165:16;;58204:27;;;;;;;57661:578;;;:::o;53747:315::-;53904:28;53914:4;53920:2;53924:7;53904:9;:28::i;:::-;53951:48;53974:4;53980:2;53984:7;53993:5;53951:22;:48::i;:::-;53943:111;;;;-1:-1:-1;;;53943:111:0;;;;;;;:::i;56353:382::-;-1:-1:-1;;;;;56433:16:0;;56425:61;;;;-1:-1:-1;;;56425:61:0;;25812:2:1;56425:61:0;;;25794:21:1;;;25831:18;;;25824:30;25890:34;25870:18;;;25863:62;25942:18;;56425:61:0;25610:356:1;56425:61:0;54440:4;54464:16;;;:7;:16;;;;;;-1:-1:-1;;;;;54464:16:0;:30;56497:58;;;;-1:-1:-1;;;56497:58:0;;19424:2:1;56497:58:0;;;19406:21:1;19463:2;19443:18;;;19436:30;19502;19482:18;;;19475:58;19550:18;;56497:58:0;19222:352:1;56497:58:0;56568:45;56597:1;56601:2;56605:7;56568:20;:45::i;:::-;-1:-1:-1;;;;;56626:13:0;;;;;;:9;:13;;;;;:18;;56643:1;;56626:13;:18;;56643:1;;56626:18;:::i;:::-;;;;-1:-1:-1;;56655:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;56655:21:0;-1:-1:-1;;;;;56655:21:0;;;;;;;;56694:33;;56655:16;;;56694:33;;56655:16;;56694:33;56353:382;;:::o;59096:803::-;59251:4;-1:-1:-1;;;;;59272:13:0;;29071:20;29110:8;59268:624;;59308:72;;-1:-1:-1;;;59308:72:0;;-1:-1:-1;;;;;59308:36:0;;;;;:72;;19583:10;;59359:4;;59365:7;;59374:5;;59308:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59308:72:0;;;;;;;;-1:-1:-1;;59308:72:0;;;;;;;;;;;;:::i;:::-;;;59304:533;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59554:13:0;;59550:272;;59597:60;;-1:-1:-1;;;59597:60:0;;;;;;;:::i;59550:272::-;59772:6;59766:13;59757:6;59753:2;59749:15;59742:38;59304:533;-1:-1:-1;;;;;;59431:55:0;-1:-1:-1;;;59431:55:0;;-1:-1:-1;59424:62:0;;59268:624;-1:-1:-1;59876:4:0;59869:11;;63848:589;-1:-1:-1;;;;;64054:18:0;;64050:187;;64089:40;64121:7;65264:10;:17;;65237:24;;;;:15;:24;;;;;:44;;;65292:24;;;;;;;;;;;;65160:164;64089:40;64050:187;;;64159:2;-1:-1:-1;;;;;64151:10:0;:4;-1:-1:-1;;;;;64151:10:0;;64147:90;;64178:47;64211:4;64217:7;64178:32;:47::i;:::-;-1:-1:-1;;;;;64251:16:0;;64247:183;;64284:45;64321:7;64284:36;:45::i;64247:183::-;64357:4;-1:-1:-1;;;;;64351:10:0;:2;-1:-1:-1;;;;;64351:10:0;;64347:83;;64378:40;64406:2;64410:7;64378:27;:40::i;65951:1002::-;66231:22;66281:1;66256:22;66273:4;66256:16;:22::i;:::-;:26;;;;:::i;:::-;66293:18;66314:26;;;:17;:26;;;;;;66231:51;;-1:-1:-1;66447:28:0;;;66443:328;;-1:-1:-1;;;;;66514:18:0;;66492:19;66514:18;;;:12;:18;;;;;;;;:34;;;;;;;;;66565:30;;;;;;:44;;;66682:30;;:17;:30;;;;;:43;;;66443:328;-1:-1:-1;66867:26:0;;;;:17;:26;;;;;;;;66860:33;;;-1:-1:-1;;;;;66911:18:0;;;;;:12;:18;;;;;:34;;;;;;;66904:41;65951:1002::o;67248:1079::-;67526:10;:17;67501:22;;67526:21;;67546:1;;67526:21;:::i;:::-;67558:18;67579:24;;;:15;:24;;;;;;67952:10;:26;;67501:46;;-1:-1:-1;67579:24:0;;67501:46;;67952:26;;;;;;:::i;:::-;;;;;;;;;67930:48;;68016:11;67991:10;68002;67991:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;68096:28;;;:15;:28;;;;;;;:41;;;68268:24;;;;;68261:31;68303:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;67319:1008;;;67248:1079;:::o;64738:221::-;64823:14;64840:20;64857:2;64840:16;:20::i;:::-;-1:-1:-1;;;;;64871:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;64916:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;64738:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:348::-;244:8;254:6;308:3;301:4;293:6;289:17;285:27;275:55;;326:1;323;316:12;275:55;-1:-1:-1;349:20:1;;392:18;381:30;;378:50;;;424:1;421;414:12;378:50;461:4;453:6;449:17;437:29;;513:3;506:4;497:6;489;485:19;481:30;478:39;475:59;;;530:1;527;520:12;475:59;192:348;;;;;:::o;545:156::-;611:20;;671:4;660:16;;650:27;;640:55;;691:1;688;681:12;706:186;765:6;818:2;806:9;797:7;793:23;789:32;786:52;;;834:1;831;824:12;786:52;857:29;876:9;857:29;:::i;897:260::-;965:6;973;1026:2;1014:9;1005:7;1001:23;997:32;994:52;;;1042:1;1039;1032:12;994:52;1065:29;1084:9;1065:29;:::i;:::-;1055:39;;1113:38;1147:2;1136:9;1132:18;1113:38;:::i;:::-;1103:48;;897:260;;;;;:::o;1162:328::-;1239:6;1247;1255;1308:2;1296:9;1287:7;1283:23;1279:32;1276:52;;;1324:1;1321;1314:12;1276:52;1347:29;1366:9;1347:29;:::i;:::-;1337:39;;1395:38;1429:2;1418:9;1414:18;1395:38;:::i;:::-;1385:48;;1480:2;1469:9;1465:18;1452:32;1442:42;;1162:328;;;;;:::o;1495:980::-;1590:6;1598;1606;1614;1667:3;1655:9;1646:7;1642:23;1638:33;1635:53;;;1684:1;1681;1674:12;1635:53;1707:29;1726:9;1707:29;:::i;:::-;1697:39;;1755:2;1776:38;1810:2;1799:9;1795:18;1776:38;:::i;:::-;1766:48;;1861:2;1850:9;1846:18;1833:32;1823:42;;1916:2;1905:9;1901:18;1888:32;1939:18;1980:2;1972:6;1969:14;1966:34;;;1996:1;1993;1986:12;1966:34;2034:6;2023:9;2019:22;2009:32;;2079:7;2072:4;2068:2;2064:13;2060:27;2050:55;;2101:1;2098;2091:12;2050:55;2137:2;2124:16;2159:2;2155;2152:10;2149:36;;;2165:18;;:::i;:::-;2207:53;2250:2;2231:13;;-1:-1:-1;;2227:27:1;2223:36;;2207:53;:::i;:::-;2194:66;;2283:2;2276:5;2269:17;2323:7;2318:2;2313;2309;2305:11;2301:20;2298:33;2295:53;;;2344:1;2341;2334:12;2295:53;2399:2;2394;2390;2386:11;2381:2;2374:5;2370:14;2357:45;2443:1;2438:2;2433;2426:5;2422:14;2418:23;2411:34;;2464:5;2454:15;;;;;1495:980;;;;;;;:::o;2480:315::-;2545:6;2553;2606:2;2594:9;2585:7;2581:23;2577:32;2574:52;;;2622:1;2619;2612:12;2574:52;2645:29;2664:9;2645:29;:::i;:::-;2635:39;;2724:2;2713:9;2709:18;2696:32;2737:28;2759:5;2737:28;:::i;:::-;2784:5;2774:15;;;2480:315;;;;;:::o;2800:254::-;2868:6;2876;2929:2;2917:9;2908:7;2904:23;2900:32;2897:52;;;2945:1;2942;2935:12;2897:52;2968:29;2987:9;2968:29;:::i;:::-;2958:39;3044:2;3029:18;;;;3016:32;;-1:-1:-1;;;2800:254:1:o;3059:1027::-;3152:6;3160;3213:2;3201:9;3192:7;3188:23;3184:32;3181:52;;;3229:1;3226;3219:12;3181:52;3269:9;3256:23;3298:18;3339:2;3331:6;3328:14;3325:34;;;3355:1;3352;3345:12;3325:34;3393:6;3382:9;3378:22;3368:32;;3438:7;3431:4;3427:2;3423:13;3419:27;3409:55;;3460:1;3457;3450:12;3409:55;3496:2;3483:16;3518:4;3541:2;3537;3534:10;3531:36;;;3547:18;;:::i;:::-;3593:2;3590:1;3586:10;3576:20;;3616:28;3640:2;3636;3632:11;3616:28;:::i;:::-;3678:15;;;3709:12;;;;3741:11;;;3771;;;3767:20;;3764:33;-1:-1:-1;3761:53:1;;;3810:1;3807;3800:12;3761:53;3832:1;3823:10;;3842:163;3856:2;3853:1;3850:9;3842:163;;;3913:17;;3901:30;;3874:1;3867:9;;;;;3951:12;;;;3983;;3842:163;;;-1:-1:-1;4024:5:1;4061:18;;;;4048:32;;-1:-1:-1;;;;;;;3059:1027:1:o;4091:245::-;4158:6;4211:2;4199:9;4190:7;4186:23;4182:32;4179:52;;;4227:1;4224;4217:12;4179:52;4259:9;4253:16;4278:28;4300:5;4278:28;:::i;4341:245::-;4399:6;4452:2;4440:9;4431:7;4427:23;4423:32;4420:52;;;4468:1;4465;4458:12;4420:52;4507:9;4494:23;4526:30;4550:5;4526:30;:::i;4591:249::-;4660:6;4713:2;4701:9;4692:7;4688:23;4684:32;4681:52;;;4729:1;4726;4719:12;4681:52;4761:9;4755:16;4780:30;4804:5;4780:30;:::i;4845:721::-;4937:6;4945;4953;4961;5014:2;5002:9;4993:7;4989:23;4985:32;4982:52;;;5030:1;5027;5020:12;4982:52;5070:9;5057:23;5099:18;5140:2;5132:6;5129:14;5126:34;;;5156:1;5153;5146:12;5126:34;5195:59;5246:7;5237:6;5226:9;5222:22;5195:59;:::i;:::-;5273:8;;-1:-1:-1;5169:85:1;-1:-1:-1;5361:2:1;5346:18;;5333:32;;-1:-1:-1;5377:16:1;;;5374:36;;;5406:1;5403;5396:12;5374:36;;5445:61;5498:7;5487:8;5476:9;5472:24;5445:61;:::i;:::-;4845:721;;;;-1:-1:-1;5525:8:1;-1:-1:-1;;;;4845:721:1:o;5571:180::-;5630:6;5683:2;5671:9;5662:7;5658:23;5654:32;5651:52;;;5699:1;5696;5689:12;5651:52;-1:-1:-1;5722:23:1;;5571:180;-1:-1:-1;5571:180:1:o;5756:184::-;5826:6;5879:2;5867:9;5858:7;5854:23;5850:32;5847:52;;;5895:1;5892;5885:12;5847:52;-1:-1:-1;5918:16:1;;5756:184;-1:-1:-1;5756:184:1:o;5945:811::-;6085:6;6093;6101;6109;6117;6125;6133;6141;6149;6157;6210:3;6198:9;6189:7;6185:23;6181:33;6178:53;;;6227:1;6224;6217:12;6178:53;6263:9;6250:23;6240:33;;6292:38;6326:2;6315:9;6311:18;6292:38;:::i;:::-;6282:48;;6377:2;6366:9;6362:18;6349:32;6339:42;;6428:2;6417:9;6413:18;6400:32;6390:42;;6479:3;6468:9;6464:19;6451:33;6441:43;;6531:3;6520:9;6516:19;6503:33;6493:43;;6583:3;6572:9;6568:19;6555:33;6545:43;;6607:39;6641:3;6630:9;6626:19;6607:39;:::i;:::-;6597:49;;6693:3;6682:9;6678:19;6665:33;6655:43;;6745:3;6734:9;6730:19;6717:33;6707:43;;5945:811;;;;;;;;;;;;;:::o;6761:669::-;6881:6;6889;6897;6905;6913;6921;6929;6937;6990:3;6978:9;6969:7;6965:23;6961:33;6958:53;;;7007:1;7004;6997:12;6958:53;7043:9;7030:23;7020:33;;7100:2;7089:9;7085:18;7072:32;7062:42;;7123:38;7157:2;7146:9;7142:18;7123:38;:::i;:::-;7113:48;;7208:2;7197:9;7193:18;7180:32;7170:42;;7259:3;7248:9;7244:19;7231:33;7221:43;;7283:37;7315:3;7304:9;7300:19;7283:37;:::i;:::-;7273:47;;7367:3;7356:9;7352:19;7339:33;7329:43;;7419:3;7408:9;7404:19;7391:33;7381:43;;6761:669;;;;;;;;;;;:::o;7435:525::-;7537:6;7545;7553;7561;7569;7577;7630:3;7618:9;7609:7;7605:23;7601:33;7598:53;;;7647:1;7644;7637:12;7598:53;7683:9;7670:23;7660:33;;7740:2;7729:9;7725:18;7712:32;7702:42;;7791:2;7780:9;7776:18;7763:32;7753:42;;7814:36;7846:2;7835:9;7831:18;7814:36;:::i;:::-;7804:46;;7897:3;7886:9;7882:19;7869:33;7859:43;;7949:3;7938:9;7934:19;7921:33;7911:43;;7435:525;;;;;;;;:::o;7965:257::-;8006:3;8044:5;8038:12;8071:6;8066:3;8059:19;8087:63;8143:6;8136:4;8131:3;8127:14;8120:4;8113:5;8109:16;8087:63;:::i;:::-;8204:2;8183:15;-1:-1:-1;;8179:29:1;8170:39;;;;8211:4;8166:50;;7965:257;-1:-1:-1;;7965:257:1:o;8227:973::-;8312:12;;8277:3;;8367:1;8387:18;;;;8440;;;;8467:61;;8521:4;8513:6;8509:17;8499:27;;8467:61;8547:2;8595;8587:6;8584:14;8564:18;8561:38;8558:161;;;8641:10;8636:3;8632:20;8629:1;8622:31;8676:4;8673:1;8666:15;8704:4;8701:1;8694:15;8558:161;8735:18;8762:104;;;;8880:1;8875:319;;;;8728:466;;8762:104;-1:-1:-1;;8795:24:1;;8783:37;;8840:16;;;;-1:-1:-1;8762:104:1;;8875:319;33151:1;33144:14;;;33188:4;33175:18;;8969:1;8983:165;8997:6;8994:1;8991:13;8983:165;;;9075:14;;9062:11;;;9055:35;9118:16;;;;9012:10;;8983:165;;;8987:3;;9177:6;9172:3;9168:16;9161:23;;8728:466;;;;;;;8227:973;;;;:::o;9205:274::-;9334:3;9372:6;9366:13;9388:53;9434:6;9429:3;9422:4;9414:6;9410:17;9388:53;:::i;:::-;9457:16;;;;;9205:274;-1:-1:-1;;9205:274:1:o;9484:456::-;9705:3;9733:38;9767:3;9759:6;9733:38;:::i;:::-;9800:6;9794:13;9816:52;9861:6;9857:2;9850:4;9842:6;9838:17;9816:52;:::i;:::-;9884:50;9926:6;9922:2;9918:15;9910:6;9884:50;:::i;:::-;9877:57;9484:456;-1:-1:-1;;;;;;;9484:456:1:o;11315:488::-;-1:-1:-1;;;;;11584:15:1;;;11566:34;;11636:15;;11631:2;11616:18;;11609:43;11683:2;11668:18;;11661:34;;;11731:3;11726:2;11711:18;;11704:31;;;11509:4;;11752:45;;11777:19;;11769:6;11752:45;:::i;:::-;11744:53;11315:488;-1:-1:-1;;;;;;11315:488:1:o;12087:705::-;12305:2;12317:21;;;12387:13;;12290:18;;;12409:22;;;12257:4;;12484;;12462:2;12447:18;;;12511:15;;;12257:4;12554:169;12568:6;12565:1;12562:13;12554:169;;;12629:13;;12617:26;;12663:12;;;;12698:15;;;;12590:1;12583:9;12554:169;;;-1:-1:-1;;;12759:18:1;;12752:34;;;;12740:3;12087:705;-1:-1:-1;;12087:705:1:o;15230:219::-;15379:2;15368:9;15361:21;15342:4;15399:44;15439:2;15428:9;15424:18;15416:6;15399:44;:::i;15454:1105::-;15933:3;15922:9;15915:22;15896:4;15960:45;16000:3;15989:9;15985:19;15977:6;15960:45;:::i;:::-;16041:6;16036:2;16025:9;16021:18;16014:34;16084:6;16079:2;16068:9;16064:18;16057:34;16127:6;16122:2;16111:9;16107:18;16100:34;16171:6;16165:3;16154:9;16150:19;16143:35;16215:6;16209:3;16198:9;16194:19;16187:35;16259:6;16253:3;16242:9;16238:19;16231:35;16303:6;16297:3;16286:9;16282:19;16275:35;16347:6;16341:3;16330:9;16326:19;16319:35;16403:9;16395:6;16391:22;16385:3;16374:9;16370:19;16363:51;16431:32;16456:6;16448;16431:32;:::i;:::-;16494:3;16479:19;;16472:36;;;;-1:-1:-1;;16539:3:1;16524:19;16517:36;16423:40;15454:1105;-1:-1:-1;;;;;;;;;;15454:1105:1:o;18396:414::-;18598:2;18580:21;;;18637:2;18617:18;;;18610:30;18676:34;18671:2;18656:18;;18649:62;-1:-1:-1;;;18742:2:1;18727:18;;18720:48;18800:3;18785:19;;18396:414::o;22491:408::-;22693:2;22675:21;;;22732:2;22712:18;;;22705:30;22771:34;22766:2;22751:18;;22744:62;-1:-1:-1;;;22837:2:1;22822:18;;22815:42;22889:3;22874:19;;22491:408::o;26786:356::-;26988:2;26970:21;;;27007:18;;;27000:30;27066:34;27061:2;27046:18;;27039:62;27133:2;27118:18;;26786:356::o;28303:413::-;28505:2;28487:21;;;28544:2;28524:18;;;28517:30;28583:34;28578:2;28563:18;;28556:62;-1:-1:-1;;;28649:2:1;28634:18;;28627:47;28706:3;28691:19;;28303:413::o;32798:275::-;32869:2;32863:9;32934:2;32915:13;;-1:-1:-1;;32911:27:1;32899:40;;32969:18;32954:34;;32990:22;;;32951:62;32948:88;;;33016:18;;:::i;:::-;33052:2;33045:22;32798:275;;-1:-1:-1;32798:275:1:o;33204:128::-;33244:3;33275:1;33271:6;33268:1;33265:13;33262:39;;;33281:18;;:::i;:::-;-1:-1:-1;33317:9:1;;33204:128::o;33337:120::-;33377:1;33403;33393:35;;33408:18;;:::i;:::-;-1:-1:-1;33442:9:1;;33337:120::o;33462:168::-;33502:7;33568:1;33564;33560:6;33556:14;33553:1;33550:21;33545:1;33538:9;33531:17;33527:45;33524:71;;;33575:18;;:::i;:::-;-1:-1:-1;33615:9:1;;33462:168::o;33635:125::-;33675:4;33703:1;33700;33697:8;33694:34;;;33708:18;;:::i;:::-;-1:-1:-1;33745:9:1;;33635:125::o;33765:258::-;33837:1;33847:113;33861:6;33858:1;33855:13;33847:113;;;33937:11;;;33931:18;33918:11;;;33911:39;33883:2;33876:10;33847:113;;;33978:6;33975:1;33972:13;33969:48;;;-1:-1:-1;;34013:1:1;33995:16;;33988:27;33765:258::o;34028:380::-;34107:1;34103:12;;;;34150;;;34171:61;;34225:4;34217:6;34213:17;34203:27;;34171:61;34278:2;34270:6;34267:14;34247:18;34244:38;34241:161;;;34324:10;34319:3;34315:20;34312:1;34305:31;34359:4;34356:1;34349:15;34387:4;34384:1;34377:15;34241:161;;34028:380;;;:::o;34413:135::-;34452:3;-1:-1:-1;;34473:17:1;;34470:43;;;34493:18;;:::i;:::-;-1:-1:-1;34540:1:1;34529:13;;34413:135::o;34553:112::-;34585:1;34611;34601:35;;34616:18;;:::i;:::-;-1:-1:-1;34650:9:1;;34553:112::o;34670:127::-;34731:10;34726:3;34722:20;34719:1;34712:31;34762:4;34759:1;34752:15;34786:4;34783:1;34776:15;34802:127;34863:10;34858:3;34854:20;34851:1;34844:31;34894:4;34891:1;34884:15;34918:4;34915:1;34908:15;34934:127;34995:10;34990:3;34986:20;34983:1;34976:31;35026:4;35023:1;35016:15;35050:4;35047:1;35040:15;35066:127;35127:10;35122:3;35118:20;35115:1;35108:31;35158:4;35155:1;35148:15;35182:4;35179:1;35172:15;35198:127;35259:10;35254:3;35250:20;35247:1;35240:31;35290:4;35287:1;35280:15;35314:4;35311:1;35304:15;35330:127;35391:10;35386:3;35382:20;35379:1;35372:31;35422:4;35419:1;35412:15;35446:4;35443:1;35436:15;35462:118;35548:5;35541:13;35534:21;35527:5;35524:32;35514:60;;35570:1;35567;35560:12;35585:131;-1:-1:-1;;;;;;35659:32:1;;35649:43;;35639:71;;35706:1;35703;35696:12

Swarm Source

ipfs://708ba925ca0ad4f9b9d6b8bb343aaf42092ba18cbb33da223a931186fcb2b540
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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