ETH Price: $3,163.38 (+1.39%)
Gas: 1 Gwei

Token

AristocratsBattle (ARISTOCRATS)
 

Overview

Max Total Supply

650 ARISTOCRATS

Holders

187

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
15 ARISTOCRATS
0x220639868d2947e8e336a109b7531ed87662b276
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AristocratsBattle

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-03-21
*/

// SPDX-License-Identifier: UNLICENSED

// File: contracts/Constants.sol


pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

// File: contracts/IOperatorFilterRegistry.sol


pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

// File: contracts/OperatorFilterer.sol


pragma solidity ^0.8.13;


/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

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

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

// File: contracts/DefaultOperatorFilterer.sol


pragma solidity ^0.8.13;


/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol


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

pragma solidity ^0.8.0;


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

    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");
        }
    }

    /**
     * @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) {
        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.
            /// @solidity memory-safe-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 {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

// File: @openzeppelin/contracts/utils/Context.sol


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

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


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

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/interfaces/IERC2981.sol


// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


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

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/common/ERC2981.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;



/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: contracts/ERC721A.sol


// Creator: Chiru Labs
// Version: 3.2.0

pragma solidity ^0.8.4;








error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint32 numberBurned;

        uint32 mintedDay1;
        uint32 mintedDay2;
        uint32 mintedDay3;
        uint32 mintedFree;
        uint32 mintedPublic;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 1;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function numberMinted(address owner) public view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Mint data handlers
     */
    function getMintData(address owner) external view returns (uint mintedDay1, uint mintedDay2, uint mintedFree, uint mintedPublic) {
        AddressData memory addressData = _addressData[owner];
        return (addressData.mintedDay1, addressData.mintedDay2, addressData.mintedFree, addressData.mintedPublic);
    }

    function _addToMintDay1(address owner, uint32 amount) internal returns(uint32 newValue) {
        return (_addressData[owner].mintedDay1 += amount);
    }

    function _addToMintDay2(address owner, uint32 amount) internal returns(uint32 newValue) {
        return (_addressData[owner].mintedDay2 += amount);
    }

    function _addToMintDay3(address owner, uint32 amount) internal returns(uint32 newValue) {
        return (_addressData[owner].mintedDay3 += amount);
    }

    function _addToMintFree(address owner, uint32 amount) internal returns(uint32 newValue) {
       return  (_addressData[owner].mintedFree += amount);
    }

    function _addToMintPublic(address owner, uint32 amount) internal returns(uint32 newValue) {
       return  (_addressData[owner].mintedPublic += amount);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

        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 = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex != end);
            _currentIndex = updatedIndex;
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        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 TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }
}
// File: contracts/ERC721ALowCap.sol


// Creator: Chiru Labs

pragma solidity ^0.8.4;


/**
 * @title ERC721A Low Cap
 * @dev ERC721A Helper functions for Low Cap (<= 10,000) totalSupply.
 */
abstract contract ERC721ALowCap is ERC721A {
    /**
     * @dev Returns the tokenIds of the address. O(totalSupply) in complexity.
     */
    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        uint256 holdingAmount = balanceOf(owner);
        uint256 currSupply = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        uint256[] memory list = new uint256[](holdingAmount);

        unchecked {
            for (uint256 i = _startTokenId(); i < currSupply; ++i) {
                TokenOwnership memory ownership = _ownerships[i];

                if (ownership.burned) {
                    continue;
                }

                // Find out who owns this sequence
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }

                // Append tokens the last found owner owns in the sequence
                if (currOwnershipAddr == owner) {
                    list[tokenIdsIdx++] = i;
                }

                // All tokens have been found, we don't need to keep searching
                if (tokenIdsIdx == holdingAmount) {
                    break;
                }
            }
        }

        return list;
    }
}
// File: contracts/AristocratsBattle.sol


pragma solidity ^0.8.4;








contract AristocratsBattle is Ownable, ERC721A, ERC721ALowCap, ERC2981, DefaultOperatorFilterer {
    // To concatenate the URL of an NFT
    using Strings for uint;
    // To verify mint signatures
    using ECDSA for bytes32;

    enum SaleDay { CLOSED, HOLDER_MINT, WHITELIST_MINT, WAITLIST_MINT, PUBLIC }

    // Used to disallow contracts from sending multiple mint transactions in one tx
    modifier directOnly {
        require(msg.sender == tx.origin);
        _;
    }

    uint public cost = 0.2 ether;
    uint public maxMintSupply = 1000;
    uint public maxTxMintAmount = 20;
    uint public publicMaxTxMintAmount = 20;

    address constant signer = 0xdA0c2FF4eB0924560eE4FA5561036DA42Dfc91Ad;
    address payee1 = 0x16B37343c9196ff9e5e6404476abc3F837533EA1;
    address payee2 = 0xB98895b899FECcFcc981Fe20Ab22cB022186fA2C;


    // Storage Variables

    uint public supplyMinted = 0;

    string public baseURI;

    bool public isFreeMintActive;

    /*
     * Values go in the order they are defined in the Enum
     * 0: CLOSED
     * 1: HOLDER
     * 2: WHITELIST
     * 3: WHITELIST
     * 4: PUBLIC
     */
    SaleDay public saleDay;


    constructor()
        Ownable()
        ERC721A(unicode"AristocratsBattle", "ARISTOCRATS")
    {}

    // Minting

    function freeMint(address to, uint32 amountToMint, uint maxMintsFree, uint8 v, bytes32 r, bytes32 s) external directOnly {
        require(isFreeMintActive, "Free mint is not active");

        // Mint amount limits
        require(amountToMint > 0 && _addToMintFree(msg.sender, amountToMint) <= maxMintsFree, "Sorry, invalid amount");
        require((supplyMinted += amountToMint) <= maxMintSupply, "Sorry, not enough NFTs remaining to mint");

        // Signature verification
        require(_verifySignature(keccak256(abi.encodePacked("multivers3Free", msg.sender, maxMintsFree)), v, r, s), "Invalid sig");

        // Split mints in batches of `maxTxMintAmount` to avoid having large gas-consuming loops when transfering or selling tokens
        uint mintedSoFar = 0;
        do {
            uint batchAmount = min(amountToMint - mintedSoFar, maxTxMintAmount);
            mintedSoFar += batchAmount;
            _mint(to, batchAmount);
        } while(mintedSoFar < amountToMint);
    }

    function ownerMint(address to, uint32 amountToMint) external onlyOwner {

        // Mint amount limits
        require(amountToMint > 0,"Sorry, invalid amount");
        require((supplyMinted += amountToMint) <= maxMintSupply, "Sorry, not enough NFTs remaining to mint");

        // Split mints in batches of `maxTxMintAmount` to avoid having large gas-consuming loops when transfering or selling tokens
        uint mintedSoFar = 0;
        do {
            uint batchAmount = min(amountToMint - mintedSoFar, maxTxMintAmount);
            mintedSoFar += batchAmount;
            _mint(to, batchAmount);
        } while(mintedSoFar < amountToMint);
    }
function holderMint(uint32 amountToMint, uint maxAmount, uint8 v, bytes32 r, bytes32 s) external payable directOnly {
        require(saleDay == SaleDay.HOLDER_MINT, "Sorry, presale is not active");

        // Mint amount limits
        require((supplyMinted += amountToMint) <= maxMintSupply, "Sorry, not enough NFTs remaining to mint");

        require(_addToMintDay1(msg.sender, amountToMint) <= maxAmount, "Sorry, can't mint that many");

        // Signature verification
        require(_verifySignature(keccak256(abi.encodePacked("battleHolder", msg.sender, maxAmount)), v, r, s), "Invalid sig");

        // ETH sent verification
        require(msg.value >= cost * amountToMint);

        // Split mints in batches of `maxTxMintAmount` to avoid having large gas-consuming loops when transfering or selling tokens
        uint mintedSoFar = 0;
        do {
            uint batchAmount = min(amountToMint - mintedSoFar, maxTxMintAmount);
            mintedSoFar += batchAmount;
            _mint(msg.sender, batchAmount);
        } while(mintedSoFar < amountToMint);
    }

function whitelistMint(uint32 amountToMint, uint maxAmount, uint8 v, bytes32 r, bytes32 s) external payable directOnly {
        require(saleDay == SaleDay.WHITELIST_MINT, "Sorry, presale is not active");

        // Mint amount limits
        require((supplyMinted += amountToMint) <= maxMintSupply, "Sorry, not enough NFTs remaining to mint");

        require(_addToMintDay2(msg.sender, amountToMint) <= maxAmount, "Sorry, can't mint that many");

        // Signature verification
        require(_verifySignature(keccak256(abi.encodePacked("battleWhitelist", msg.sender, maxAmount)), v, r, s), "Invalid sig");

        // ETH sent verification
        require(msg.value >= cost * amountToMint);

        // Split mints in batches of `maxTxMintAmount` to avoid having large gas-consuming loops when transfering or selling tokens
        uint mintedSoFar = 0;
        do {
            uint batchAmount = min(amountToMint - mintedSoFar, maxTxMintAmount);
            mintedSoFar += batchAmount;
            _mint(msg.sender, batchAmount);
        } while(mintedSoFar < amountToMint);
    }
    function waitlistMint(uint32 amountToMint, uint maxAmount, uint8 v, bytes32 r, bytes32 s) external payable directOnly {
        require(saleDay == SaleDay.WAITLIST_MINT, "Sorry, presale is not active");

        // Mint amount limits
        require((supplyMinted += amountToMint) <= maxMintSupply, "Sorry, not enough NFTs remaining to mint");

        require(_addToMintDay3(msg.sender, amountToMint) <= maxAmount, "Sorry, can't mint that many");

        // Signature verification
        require(_verifySignature(keccak256(abi.encodePacked("battleWaitlist", msg.sender, maxAmount)), v, r, s), "Invalid sig");

        // ETH sent verification
        require(msg.value >= cost * amountToMint);

        // Split mints in batches of `maxTxMintAmount` to avoid having large gas-consuming loops when transfering or selling tokens
        uint mintedSoFar = 0;
        do {
            uint batchAmount = min(amountToMint - mintedSoFar, maxTxMintAmount);
            mintedSoFar += batchAmount;
            _mint(msg.sender, batchAmount);
        } while(mintedSoFar < amountToMint);
    }

    function publicMint(uint32 amountToMint) external payable directOnly {
        require(saleDay == SaleDay.PUBLIC, "Sorry, public sale is not active");
        require(amountToMint > 0 && _addToMintPublic(msg.sender, amountToMint) <= publicMaxTxMintAmount, "Sorry, invalid amount");

        require((supplyMinted += amountToMint) <= maxMintSupply, "Sorry, not enough NFTs remaining to mint");

        // ETH sent verification
        require(msg.value >= cost * amountToMint);

        uint mintedSoFar = 0;
        do {
            uint batchAmount = min(amountToMint - mintedSoFar, publicMaxTxMintAmount);
            mintedSoFar += batchAmount;
            _mint(msg.sender, batchAmount);
        } while(mintedSoFar < amountToMint);
    }


    // View Only

    function tokenURI(uint _nftId) public view override returns (string memory) {
        require(_exists(_nftId), "This NFT doesn't exist");

        return string(abi.encodePacked(baseURI, _nftId.toString(), ".json"));
    }

    // Only Owner Functions

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function setMintDay(SaleDay day) external onlyOwner {
        saleDay = day;
    }

    function toggleFreeMintStatus() external onlyOwner {
        isFreeMintActive = !isFreeMintActive;
    }

    function _verifySignature(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns(bool) {
        return hash.toEthSignedMessageHash().recover(v, r, s) == signer;
    }

    function min(uint a,uint b) internal pure returns(uint) {
        return a < b ? a : b;
    }
    
    function setPayee1(address toPay) public onlyOwner{
        payee1 = toPay;
    }

    function setPayee2(address toPay) public onlyOwner{
        payee2 = toPay;
    }

    function withdraw() public onlyOwner {
        uint balance = address(this).balance/2;
        payable(payee1).transfer(balance);
        payable(payee2).transfer(balance);
    }

    function setCost(uint newCost) external onlyOwner {
      cost = newCost;
    }
    function setMaxMintSupply(uint newMaxMintSupply) external onlyOwner {
      maxMintSupply = newMaxMintSupply;
    }
    function setMaxTxMintAmount(uint newMaxTxMintAmount) external onlyOwner {
      maxTxMintAmount = newMaxTxMintAmount;
    }
    function setPublicMaxTxMintAmount(uint newPublicMaxTxMintAmount) external onlyOwner {
      publicMaxTxMintAmount = newPublicMaxTxMintAmount;
    }

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

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

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

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

    function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) public onlyOwner{
      _setDefaultRoyalty(_receiver, _feeNumerator);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint32","name":"amountToMint","type":"uint32"},{"internalType":"uint256","name":"maxMintsFree","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getMintData","outputs":[{"internalType":"uint256","name":"mintedDay1","type":"uint256"},{"internalType":"uint256","name":"mintedDay2","type":"uint256"},{"internalType":"uint256","name":"mintedFree","type":"uint256"},{"internalType":"uint256","name":"mintedPublic","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"amountToMint","type":"uint32"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"holderMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreeMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint32","name":"amountToMint","type":"uint32"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMaxTxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"amountToMint","type":"uint32"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleDay","outputs":[{"internalType":"enum AristocratsBattle.SaleDay","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxMintSupply","type":"uint256"}],"name":"setMaxMintSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTxMintAmount","type":"uint256"}],"name":"setMaxTxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum AristocratsBattle.SaleDay","name":"day","type":"uint8"}],"name":"setMintDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toPay","type":"address"}],"name":"setPayee1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toPay","type":"address"}],"name":"setPayee2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPublicMaxTxMintAmount","type":"uint256"}],"name":"setPublicMaxTxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleFreeMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amountToMint","type":"uint32"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"waitlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amountToMint","type":"uint32"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526702c68af0bb140000600b556103e8600c556014600d819055600e55600f80546001600160a01b03199081167316b37343c9196ff9e5e6404476abc3f837533ea1179091556010805490911673b98895b899feccfcc981fe20ab22cb022186fa2c17905560006011553480156200007a57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601181526020017041726973746f6372617473426174746c6560781b8152506040518060400160405280600b81526020016a41524953544f435241545360a81b815250620000fa620000f46200026b60201b60201c565b6200026f565b600362000108838262000364565b50600462000117828262000364565b506001805550506daaeb6d7670e522a718067333cd4e3b1562000263578015620001b157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200019257600080fd5b505af1158015620001a7573d6000803e3d6000fd5b5050505062000263565b6001600160a01b03821615620002025760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000177565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200024957600080fd5b505af11580156200025e573d6000803e3d6000fd5b505050505b505062000430565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002ea57607f821691505b6020821081036200030b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035f57600081815260208120601f850160051c810160208610156200033a5750805b601f850160051c820191505b818110156200035b5782815560010162000346565b5050505b505050565b81516001600160401b03811115620003805762000380620002bf565b6200039881620003918454620002d5565b8462000311565b602080601f831160018114620003d05760008415620003b75750858301515b600019600386901b1c1916600185901b1785556200035b565b600085815260208120601f198616915b828110156200040157888601518255948401946001909101908401620003e0565b5085821015620004205787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6131a880620004406000396000f3fe6080604052600436106102885760003560e01c8063715018a61161015a578063a22cb465116100c1578063dc33e6811161007a578063dc33e68114610862578063e985e9c5146108a8578063ec1c393e146108c8578063f151d791146108e8578063f2fde38b146108fb578063ff12ec741461091b57600080fd5b8063a22cb465146107b6578063b88d4fde146107d6578063c285e107146107f6578063c3e19ed31461080c578063c87b56dd14610822578063d7b4c4661461084257600080fd5b80638764dfad116101135780638764dfad1461071d57806389554d561461073d5780638da5cb5b1461075057806395d89b411461076e5780639671c1dd146107835780639ee663ee1461079657600080fd5b8063715018a61461066b5780637389fbb7146106805780637a5b85c1146106a05780637e9845f5146106ba578063813b4b5a146106d05780638462151c146106f057600080fd5b80632a55205a116101fe57806344a0d68a116101b757806344a0d68a146104ea578063514553e21461050a57806355f804b3146105f65780636352211e146106165780636c0360eb1461063657806370a082311461064b57600080fd5b80632a55205a1461040857806339ea3e26146104475780633ac7b91d146104735780633ccfd60b1461049357806341f43434146104a857806342842e0e146104ca57600080fd5b80630a0a9b13116102505780630a0a9b131461035e5780631275c52e1461037157806313faede61461039557806318160ddd146103ab5780631ab20bea146103c857806323b872dd146103e857600080fd5b806301ffc9a71461028d57806304634d8d146102c257806306fdde03146102e4578063081812fc14610306578063095ea7b31461033e575b600080fd5b34801561029957600080fd5b506102ad6102a8366004612854565b610930565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102e26102dd36600461288d565b610941565b005b3480156102f057600080fd5b506102f9610957565b6040516102b99190612920565b34801561031257600080fd5b50610326610321366004612933565b6109e9565b6040516001600160a01b0390911681526020016102b9565b34801561034a57600080fd5b506102e261035936600461294c565b610a2d565b6102e261036c36600461299b565b610a46565b34801561037d57600080fd5b50610387600d5481565b6040519081526020016102b9565b3480156103a157600080fd5b50610387600b5481565b3480156103b757600080fd5b506002546001540360001901610387565b3480156103d457600080fd5b506102e26103e33660046129e9565b610bef565b3480156103f457600080fd5b506102e2610403366004612a04565b610c19565b34801561041457600080fd5b50610428610423366004612a40565b610c44565b604080516001600160a01b0390931683526020830191909152016102b9565b34801561045357600080fd5b5060135461046690610100900460ff1681565b6040516102b99190612a78565b34801561047f57600080fd5b506102e261048e366004612933565b610cf0565b34801561049f57600080fd5b506102e2610cfd565b3480156104b457600080fd5b506103266daaeb6d7670e522a718067333cd4e81565b3480156104d657600080fd5b506102e26104e5366004612a04565b610d88565b3480156104f657600080fd5b506102e2610505366004612933565b610dad565b34801561051657600080fd5b506105d66105253660046129e9565b6001600160a01b031660009081526006602090815260409182902082516101008101845281546001600160401b038082168352600160401b8204169382019390935263ffffffff600160801b8404811694820194909452600160a01b8304841660608201819052600160c01b8404851660808301819052600160e01b909404851660a083015260019092015480851660c0830181905264010000000090910490941660e09091018190529093919291565b6040805194855260208501939093529183015260608201526080016102b9565b34801561060257600080fd5b506102e2610611366004612b2b565b610dba565b34801561062257600080fd5b50610326610631366004612933565b610dce565b34801561064257600080fd5b506102f9610de0565b34801561065757600080fd5b506103876106663660046129e9565b610e6e565b34801561067757600080fd5b506102e2610ebc565b34801561068c57600080fd5b506102e261069b366004612933565b610ed0565b3480156106ac57600080fd5b506013546102ad9060ff1681565b3480156106c657600080fd5b5061038760115481565b3480156106dc57600080fd5b506102e26106eb366004612b73565b610edd565b3480156106fc57600080fd5b5061071061070b3660046129e9565b610f8d565b6040516102b99190612ba6565b34801561072957600080fd5b506102e2610738366004612bea565b6110c8565b6102e261074b36600461299b565b611249565b34801561075c57600080fd5b506000546001600160a01b0316610326565b34801561077a57600080fd5b506102f96113c1565b6102e261079136600461299b565b6113d0565b3480156107a257600080fd5b506102e26107b1366004612933565b611547565b3480156107c257600080fd5b506102e26107d1366004612c57565b611554565b3480156107e257600080fd5b506102e26107f1366004612c83565b611568565b34801561080257600080fd5b50610387600c5481565b34801561081857600080fd5b50610387600e5481565b34801561082e57600080fd5b506102f961083d366004612933565b611595565b34801561084e57600080fd5b506102e261085d366004612cfe565b611617565b34801561086e57600080fd5b5061038761087d3660046129e9565b6001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b3480156108b457600080fd5b506102ad6108c3366004612d1f565b611648565b3480156108d457600080fd5b506102e26108e33660046129e9565b611676565b6102e26108f6366004612d49565b6116a0565b34801561090757600080fd5b506102e26109163660046129e9565b611803565b34801561092757600080fd5b506102e261187c565b600061093b82611898565b92915050565b6109496118bd565b6109538282611917565b5050565b60606003805461096690612d64565b80601f016020809104026020016040519081016040528092919081815260200182805461099290612d64565b80156109df5780601f106109b4576101008083540402835291602001916109df565b820191906000526020600020905b8154815290600101906020018083116109c257829003601f168201915b5050505050905090565b60006109f482611a14565b610a11576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b81610a3781611a4d565b610a418383611b06565b505050565b333214610a5257600080fd5b6001601354610100900460ff166004811115610a7057610a70612a62565b14610a965760405162461bcd60e51b8152600401610a8d90612d9e565b60405180910390fd5b600c548563ffffffff1660116000828254610ab19190612deb565b9250508190551115610ad55760405162461bcd60e51b8152600401610a8d90612dfe565b83610ae03387611b8e565b63ffffffff161115610b045760405162461bcd60e51b8152600401610a8d90612e46565b610b653385604051602001610b479291906b3130ba3a3632a437b63232b960a11b815260609290921b6001600160601b031916600c830152602082015260400190565b60405160208183030381529060405280519060200120848484611beb565b610b815760405162461bcd60e51b8152600401610a8d90612e7d565b8463ffffffff16600b54610b959190612ea2565b341015610ba157600080fd5b60005b6000610bc1610bb98363ffffffff8a16612eb9565b600d54611c7c565b9050610bcd8183612deb565b9150610bd93382611c94565b508563ffffffff168110610ba457505050505050565b610bf76118bd565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b0381163314610c3357610c3333611a4d565b610c3e848484611dc1565b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610cb95750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610cd8906001600160601b031687612ea2565b610ce29190612ecc565b915196919550909350505050565b610cf86118bd565b600d55565b610d056118bd565b6000610d12600247612ecc565b600f546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610d4d573d6000803e3d6000fd5b506010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610953573d6000803e3d6000fd5b826001600160a01b0381163314610da257610da233611a4d565b610c3e848484611dcc565b610db56118bd565b600b55565b610dc26118bd565b60126109538282612f3c565b6000610dd982611de7565b5192915050565b60128054610ded90612d64565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1990612d64565b8015610e665780601f10610e3b57610100808354040283529160200191610e66565b820191906000526020600020905b815481529060010190602001808311610e4957829003601f168201915b505050505081565b60006001600160a01b038216610e97576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610ec46118bd565b610ece6000611f0e565b565b610ed86118bd565b600c55565b610ee56118bd565b60008163ffffffff1611610f0b5760405162461bcd60e51b8152600401610a8d90612ffb565b600c548163ffffffff1660116000828254610f269190612deb565b9250508190551115610f4a5760405162461bcd60e51b8152600401610a8d90612dfe565b60005b6000610f62610bb98363ffffffff8616612eb9565b9050610f6e8183612deb565b9150610f7a8482611c94565b508163ffffffff168110610f4d57505050565b60606000610f9a83610e6e565b60015490915060008080846001600160401b03811115610fbc57610fbc612aa0565b604051908082528060200260200182016040528015610fe5578160200160208202803683370190505b50905060015b848110156110bd57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061105257506110b5565b80516001600160a01b03161561106757805193505b886001600160a01b0316846001600160a01b0316036110a657818386806001019750815181106110995761109961302a565b6020026020010181815250505b8685036110b357506110bd565b505b600101610feb565b509695505050505050565b3332146110d457600080fd5b60135460ff166111265760405162461bcd60e51b815260206004820152601760248201527f46726565206d696e74206973206e6f74206163746976650000000000000000006044820152606401610a8d565b60008563ffffffff1611801561114b5750836111423387611f5e565b63ffffffff1611155b6111675760405162461bcd60e51b8152600401610a8d90612ffb565b600c548563ffffffff16601160008282546111829190612deb565b92505081905511156111a65760405162461bcd60e51b8152600401610a8d90612dfe565b6040516d6d756c746976657273334672656560901b60208201526001600160601b03193360601b16602e820152604281018590526111e690606201610b47565b6112025760405162461bcd60e51b8152600401610a8d90612e7d565b60005b600061121a610bb98363ffffffff8a16612eb9565b90506112268183612deb565b91506112328882611c94565b508563ffffffff1681106112055750505050505050565b33321461125557600080fd5b6002601354610100900460ff16600481111561127357611273612a62565b146112905760405162461bcd60e51b8152600401610a8d90612d9e565b600c548563ffffffff16601160008282546112ab9190612deb565b92505081905511156112cf5760405162461bcd60e51b8152600401610a8d90612dfe565b836112da3387611f91565b63ffffffff1611156112fe5760405162461bcd60e51b8152600401610a8d90612e46565b6040516e18985d1d1b1955da1a5d195b1a5cdd608a1b60208201526001600160601b03193360601b16602f8201526043810185905261133f90606301610b47565b61135b5760405162461bcd60e51b8152600401610a8d90612e7d565b8463ffffffff16600b5461136f9190612ea2565b34101561137b57600080fd5b60005b6000611393610bb98363ffffffff8a16612eb9565b905061139f8183612deb565b91506113ab3382611c94565b508563ffffffff16811061137e57505050505050565b60606004805461096690612d64565b3332146113dc57600080fd5b6003601354610100900460ff1660048111156113fa576113fa612a62565b146114175760405162461bcd60e51b8152600401610a8d90612d9e565b600c548563ffffffff16601160008282546114329190612deb565b92505081905511156114565760405162461bcd60e51b8152600401610a8d90612dfe565b836114613387611fc9565b63ffffffff1611156114855760405162461bcd60e51b8152600401610a8d90612e46565b6040516d18985d1d1b1955d85a5d1b1a5cdd60921b60208201526001600160601b03193360601b16602e820152604281018590526114c590606201610b47565b6114e15760405162461bcd60e51b8152600401610a8d90612e7d565b8463ffffffff16600b546114f59190612ea2565b34101561150157600080fd5b60005b6000611519610bb98363ffffffff8a16612eb9565b90506115258183612deb565b91506115313382611c94565b508563ffffffff16811061150457505050505050565b61154f6118bd565b600e55565b8161155e81611a4d565b610a418383612001565b836001600160a01b03811633146115825761158233611a4d565b61158e85858585612096565b5050505050565b60606115a082611a14565b6115e55760405162461bcd60e51b8152602060048201526016602482015275151a1a5cc813919508191bd95cdb89dd08195e1a5cdd60521b6044820152606401610a8d565b60126115f0836120e1565b604051602001611601929190613040565b6040516020818303038152906040529050919050565b61161f6118bd565b6013805482919061ff00191661010083600481111561164057611640612a62565b021790555050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61167e6118bd565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b3332146116ac57600080fd5b6004601354610100900460ff1660048111156116ca576116ca612a62565b146117175760405162461bcd60e51b815260206004820181905260248201527f536f7272792c207075626c69632073616c65206973206e6f74206163746976656044820152606401610a8d565b60008163ffffffff1611801561173e5750600e546117353383612173565b63ffffffff1611155b61175a5760405162461bcd60e51b8152600401610a8d90612ffb565b600c548163ffffffff16601160008282546117759190612deb565b92505081905511156117995760405162461bcd60e51b8152600401610a8d90612dfe565b8063ffffffff16600b546117ad9190612ea2565b3410156117b957600080fd5b60005b60006117d96117d18363ffffffff8616612eb9565b600e54611c7c565b90506117e58183612deb565b91506117f13382611c94565b508163ffffffff1681106117bc575050565b61180b6118bd565b6001600160a01b0381166118705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a8d565b61187981611f0e565b50565b6118846118bd565b6013805460ff19811660ff90911615179055565b60006001600160e01b0319821663152a902d60e11b148061093b575061093b826121af565b6000546001600160a01b03163314610ece5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8d565b6127106001600160601b03821611156119855760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a8d565b6001600160a01b0382166119db5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a8d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015611a28575060015482105b801561093b575050600090815260056020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b1561187957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611aba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ade91906130d7565b61187957604051633b79c77360e21b81526001600160a01b0382166004820152602401610a8d565b6000611b1182610dce565b9050806001600160a01b0316836001600160a01b031603611b455760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590611b655750611b638133611648565b155b15611b83576040516367d9dca160e11b815260040160405180910390fd5b610a418383836121ff565b6001600160a01b03821660009081526006602052604081208054839190601490611bc6908490600160a01b900463ffffffff166130f4565b92506101000a81548163ffffffff021916908363ffffffff1602179055905092915050565b600073da0c2ff4eb0924560ee4fa5561036da42dfc91ad611c67858585611c5f8a6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b92919061225b565b6001600160a01b03161490505b949350505050565b6000818310611c8b5781611c8d565b825b9392505050565b6001546001600160a01b038316611cbd57604051622e076360e81b815260040160405180910390fd5b81600003611cde5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168a018116918217600160401b67ffffffffffffffff1990941690921783900481168a01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611d755750600155505050565b610a41838383612283565b610a4183838360405180602001604052806000815250611568565b60408051606081018252600080825260208201819052918101919091528180600111158015611e17575060015481105b15611ef557600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611ef35780516001600160a01b031615611e8a579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611eee579392505050565b611e8a565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216600090815260066020526040812060010180548391908390611bc690849063ffffffff166130f4565b6001600160a01b03821660009081526006602052604081208054839190601890611bc6908490600160c01b900463ffffffff166130f4565b6001600160a01b03821660009081526006602052604081208054839190601c90611bc6908490600160e01b900463ffffffff166130f4565b336001600160a01b0383160361202a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6120a1848484612283565b6001600160a01b0383163b151580156120c357506120c184848484612470565b155b15610c3e576040516368d2bf6b60e11b815260040160405180910390fd5b606060006120ee83612558565b60010190506000816001600160401b0381111561210d5761210d612aa0565b6040519080825280601f01601f191660200182016040528015612137576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461214157509392505050565b6001600160a01b03821660009081526006602052604081206001018054839190600490611bc6908490640100000000900463ffffffff166130f4565b60006001600160e01b031982166380ac58cd60e01b14806121e057506001600160e01b03198216635b5e139f60e01b145b8061093b57506301ffc9a760e01b6001600160e01b031983161461093b565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600080600061226c87878787612630565b91509150612279816126f4565b5095945050505050565b600061228e82611de7565b9050836001600160a01b031681600001516001600160a01b0316146122c55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806122e357506122e38533611648565b806122fe5750336122f3846109e9565b6001600160a01b0316145b90508061231e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661234557604051633a954ecd60e21b815260040160405180910390fd5b612351600084876121ff565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661242557600154821461242557805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906124a5903390899088908890600401613118565b6020604051808303816000875af19250505080156124e0575060408051601f3d908101601f191682019092526124dd91810190613155565b60015b61253e573d80801561250e576040519150601f19603f3d011682016040523d82523d6000602084013e612513565b606091505b508051600003612536576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c74565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106125975772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106125c3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106125e157662386f26fc10000830492506010015b6305f5e10083106125f9576305f5e100830492506008015b612710831061260d57612710830492506004015b6064831061261f576064830492506002015b600a831061093b5760010192915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561266757506000905060036126eb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126bb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126e4576000600192509250506126eb565b9150600090505b94509492505050565b600081600481111561270857612708612a62565b036127105750565b600181600481111561272457612724612a62565b036127715760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a8d565b600281600481111561278557612785612a62565b036127d25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a8d565b60038160048111156127e6576127e6612a62565b036118795760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a8d565b6001600160e01b03198116811461187957600080fd5b60006020828403121561286657600080fd5b8135611c8d8161283e565b80356001600160a01b038116811461288857600080fd5b919050565b600080604083850312156128a057600080fd5b6128a983612871565b915060208301356001600160601b03811681146128c557600080fd5b809150509250929050565b60005b838110156128eb5781810151838201526020016128d3565b50506000910152565b6000815180845261290c8160208601602086016128d0565b601f01601f19169290920160200192915050565b602081526000611c8d60208301846128f4565b60006020828403121561294557600080fd5b5035919050565b6000806040838503121561295f57600080fd5b61296883612871565b946020939093013593505050565b803563ffffffff8116811461288857600080fd5b803560ff8116811461288857600080fd5b600080600080600060a086880312156129b357600080fd5b6129bc86612976565b9450602086013593506129d16040870161298a565b94979396509394606081013594506080013592915050565b6000602082840312156129fb57600080fd5b611c8d82612871565b600080600060608486031215612a1957600080fd5b612a2284612871565b9250612a3060208501612871565b9150604084013590509250925092565b60008060408385031215612a5357600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b6020810160058310612a9a57634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612ad057612ad0612aa0565b604051601f8501601f19908116603f01168101908282118183101715612af857612af8612aa0565b81604052809350858152868686011115612b1157600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612b3d57600080fd5b81356001600160401b03811115612b5357600080fd5b8201601f81018413612b6457600080fd5b611c7484823560208401612ab6565b60008060408385031215612b8657600080fd5b612b8f83612871565b9150612b9d60208401612976565b90509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612bde57835183529284019291840191600101612bc2565b50909695505050505050565b60008060008060008060c08789031215612c0357600080fd5b612c0c87612871565b9550612c1a60208801612976565b945060408701359350612c2f6060880161298a565b92506080870135915060a087013590509295509295509295565b801515811461187957600080fd5b60008060408385031215612c6a57600080fd5b612c7383612871565b915060208301356128c581612c49565b60008060008060808587031215612c9957600080fd5b612ca285612871565b9350612cb060208601612871565b92506040850135915060608501356001600160401b03811115612cd257600080fd5b8501601f81018713612ce357600080fd5b612cf287823560208401612ab6565b91505092959194509250565b600060208284031215612d1057600080fd5b813560058110611c8d57600080fd5b60008060408385031215612d3257600080fd5b612d3b83612871565b9150612b9d60208401612871565b600060208284031215612d5b57600080fd5b611c8d82612976565b600181811c90821680612d7857607f821691505b602082108103612d9857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601c908201527f536f7272792c2070726573616c65206973206e6f742061637469766500000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561093b5761093b612dd5565b60208082526028908201527f536f7272792c206e6f7420656e6f756768204e4654732072656d61696e696e67604082015267081d1bc81b5a5b9d60c21b606082015260800190565b6020808252601b908201527f536f7272792c2063616e2774206d696e742074686174206d616e790000000000604082015260600190565b6020808252600b908201526a496e76616c69642073696760a81b604082015260600190565b808202811582820484141761093b5761093b612dd5565b8181038181111561093b5761093b612dd5565b600082612ee957634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610a4157600081815260208120601f850160051c81016020861015612f155750805b601f850160051c820191505b81811015612f3457828155600101612f21565b505050505050565b81516001600160401b03811115612f5557612f55612aa0565b612f6981612f638454612d64565b84612eee565b602080601f831160018114612f9e5760008415612f865750858301515b600019600386901b1c1916600185901b178555612f34565b600085815260208120601f198616915b82811015612fcd57888601518255948401946001909101908401612fae565b5085821015612feb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526015908201527414dbdc9c9e4b081a5b9d985b1a5908185b5bdd5b9d605a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600080845461304e81612d64565b60018281168015613066576001811461307b576130aa565b60ff19841687528215158302870194506130aa565b8860005260208060002060005b858110156130a15781548a820152908401908201613088565b50505082870194505b5050505083516130be8183602088016128d0565b64173539b7b760d91b9101908152600501949350505050565b6000602082840312156130e957600080fd5b8151611c8d81612c49565b63ffffffff81811683821601908082111561311157613111612dd5565b5092915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314b908301846128f4565b9695505050505050565b60006020828403121561316757600080fd5b8151611c8d8161283e56fea26469706673582212209ef1acd5285d20115345b4cf46436f3a032e21ad59af2e2a39fc10e3c12f5b8364736f6c63430008120033

Deployed Bytecode

0x6080604052600436106102885760003560e01c8063715018a61161015a578063a22cb465116100c1578063dc33e6811161007a578063dc33e68114610862578063e985e9c5146108a8578063ec1c393e146108c8578063f151d791146108e8578063f2fde38b146108fb578063ff12ec741461091b57600080fd5b8063a22cb465146107b6578063b88d4fde146107d6578063c285e107146107f6578063c3e19ed31461080c578063c87b56dd14610822578063d7b4c4661461084257600080fd5b80638764dfad116101135780638764dfad1461071d57806389554d561461073d5780638da5cb5b1461075057806395d89b411461076e5780639671c1dd146107835780639ee663ee1461079657600080fd5b8063715018a61461066b5780637389fbb7146106805780637a5b85c1146106a05780637e9845f5146106ba578063813b4b5a146106d05780638462151c146106f057600080fd5b80632a55205a116101fe57806344a0d68a116101b757806344a0d68a146104ea578063514553e21461050a57806355f804b3146105f65780636352211e146106165780636c0360eb1461063657806370a082311461064b57600080fd5b80632a55205a1461040857806339ea3e26146104475780633ac7b91d146104735780633ccfd60b1461049357806341f43434146104a857806342842e0e146104ca57600080fd5b80630a0a9b13116102505780630a0a9b131461035e5780631275c52e1461037157806313faede61461039557806318160ddd146103ab5780631ab20bea146103c857806323b872dd146103e857600080fd5b806301ffc9a71461028d57806304634d8d146102c257806306fdde03146102e4578063081812fc14610306578063095ea7b31461033e575b600080fd5b34801561029957600080fd5b506102ad6102a8366004612854565b610930565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102e26102dd36600461288d565b610941565b005b3480156102f057600080fd5b506102f9610957565b6040516102b99190612920565b34801561031257600080fd5b50610326610321366004612933565b6109e9565b6040516001600160a01b0390911681526020016102b9565b34801561034a57600080fd5b506102e261035936600461294c565b610a2d565b6102e261036c36600461299b565b610a46565b34801561037d57600080fd5b50610387600d5481565b6040519081526020016102b9565b3480156103a157600080fd5b50610387600b5481565b3480156103b757600080fd5b506002546001540360001901610387565b3480156103d457600080fd5b506102e26103e33660046129e9565b610bef565b3480156103f457600080fd5b506102e2610403366004612a04565b610c19565b34801561041457600080fd5b50610428610423366004612a40565b610c44565b604080516001600160a01b0390931683526020830191909152016102b9565b34801561045357600080fd5b5060135461046690610100900460ff1681565b6040516102b99190612a78565b34801561047f57600080fd5b506102e261048e366004612933565b610cf0565b34801561049f57600080fd5b506102e2610cfd565b3480156104b457600080fd5b506103266daaeb6d7670e522a718067333cd4e81565b3480156104d657600080fd5b506102e26104e5366004612a04565b610d88565b3480156104f657600080fd5b506102e2610505366004612933565b610dad565b34801561051657600080fd5b506105d66105253660046129e9565b6001600160a01b031660009081526006602090815260409182902082516101008101845281546001600160401b038082168352600160401b8204169382019390935263ffffffff600160801b8404811694820194909452600160a01b8304841660608201819052600160c01b8404851660808301819052600160e01b909404851660a083015260019092015480851660c0830181905264010000000090910490941660e09091018190529093919291565b6040805194855260208501939093529183015260608201526080016102b9565b34801561060257600080fd5b506102e2610611366004612b2b565b610dba565b34801561062257600080fd5b50610326610631366004612933565b610dce565b34801561064257600080fd5b506102f9610de0565b34801561065757600080fd5b506103876106663660046129e9565b610e6e565b34801561067757600080fd5b506102e2610ebc565b34801561068c57600080fd5b506102e261069b366004612933565b610ed0565b3480156106ac57600080fd5b506013546102ad9060ff1681565b3480156106c657600080fd5b5061038760115481565b3480156106dc57600080fd5b506102e26106eb366004612b73565b610edd565b3480156106fc57600080fd5b5061071061070b3660046129e9565b610f8d565b6040516102b99190612ba6565b34801561072957600080fd5b506102e2610738366004612bea565b6110c8565b6102e261074b36600461299b565b611249565b34801561075c57600080fd5b506000546001600160a01b0316610326565b34801561077a57600080fd5b506102f96113c1565b6102e261079136600461299b565b6113d0565b3480156107a257600080fd5b506102e26107b1366004612933565b611547565b3480156107c257600080fd5b506102e26107d1366004612c57565b611554565b3480156107e257600080fd5b506102e26107f1366004612c83565b611568565b34801561080257600080fd5b50610387600c5481565b34801561081857600080fd5b50610387600e5481565b34801561082e57600080fd5b506102f961083d366004612933565b611595565b34801561084e57600080fd5b506102e261085d366004612cfe565b611617565b34801561086e57600080fd5b5061038761087d3660046129e9565b6001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b3480156108b457600080fd5b506102ad6108c3366004612d1f565b611648565b3480156108d457600080fd5b506102e26108e33660046129e9565b611676565b6102e26108f6366004612d49565b6116a0565b34801561090757600080fd5b506102e26109163660046129e9565b611803565b34801561092757600080fd5b506102e261187c565b600061093b82611898565b92915050565b6109496118bd565b6109538282611917565b5050565b60606003805461096690612d64565b80601f016020809104026020016040519081016040528092919081815260200182805461099290612d64565b80156109df5780601f106109b4576101008083540402835291602001916109df565b820191906000526020600020905b8154815290600101906020018083116109c257829003601f168201915b5050505050905090565b60006109f482611a14565b610a11576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b81610a3781611a4d565b610a418383611b06565b505050565b333214610a5257600080fd5b6001601354610100900460ff166004811115610a7057610a70612a62565b14610a965760405162461bcd60e51b8152600401610a8d90612d9e565b60405180910390fd5b600c548563ffffffff1660116000828254610ab19190612deb565b9250508190551115610ad55760405162461bcd60e51b8152600401610a8d90612dfe565b83610ae03387611b8e565b63ffffffff161115610b045760405162461bcd60e51b8152600401610a8d90612e46565b610b653385604051602001610b479291906b3130ba3a3632a437b63232b960a11b815260609290921b6001600160601b031916600c830152602082015260400190565b60405160208183030381529060405280519060200120848484611beb565b610b815760405162461bcd60e51b8152600401610a8d90612e7d565b8463ffffffff16600b54610b959190612ea2565b341015610ba157600080fd5b60005b6000610bc1610bb98363ffffffff8a16612eb9565b600d54611c7c565b9050610bcd8183612deb565b9150610bd93382611c94565b508563ffffffff168110610ba457505050505050565b610bf76118bd565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b0381163314610c3357610c3333611a4d565b610c3e848484611dc1565b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610cb95750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610cd8906001600160601b031687612ea2565b610ce29190612ecc565b915196919550909350505050565b610cf86118bd565b600d55565b610d056118bd565b6000610d12600247612ecc565b600f546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610d4d573d6000803e3d6000fd5b506010546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610953573d6000803e3d6000fd5b826001600160a01b0381163314610da257610da233611a4d565b610c3e848484611dcc565b610db56118bd565b600b55565b610dc26118bd565b60126109538282612f3c565b6000610dd982611de7565b5192915050565b60128054610ded90612d64565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1990612d64565b8015610e665780601f10610e3b57610100808354040283529160200191610e66565b820191906000526020600020905b815481529060010190602001808311610e4957829003601f168201915b505050505081565b60006001600160a01b038216610e97576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610ec46118bd565b610ece6000611f0e565b565b610ed86118bd565b600c55565b610ee56118bd565b60008163ffffffff1611610f0b5760405162461bcd60e51b8152600401610a8d90612ffb565b600c548163ffffffff1660116000828254610f269190612deb565b9250508190551115610f4a5760405162461bcd60e51b8152600401610a8d90612dfe565b60005b6000610f62610bb98363ffffffff8616612eb9565b9050610f6e8183612deb565b9150610f7a8482611c94565b508163ffffffff168110610f4d57505050565b60606000610f9a83610e6e565b60015490915060008080846001600160401b03811115610fbc57610fbc612aa0565b604051908082528060200260200182016040528015610fe5578160200160208202803683370190505b50905060015b848110156110bd57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061105257506110b5565b80516001600160a01b03161561106757805193505b886001600160a01b0316846001600160a01b0316036110a657818386806001019750815181106110995761109961302a565b6020026020010181815250505b8685036110b357506110bd565b505b600101610feb565b509695505050505050565b3332146110d457600080fd5b60135460ff166111265760405162461bcd60e51b815260206004820152601760248201527f46726565206d696e74206973206e6f74206163746976650000000000000000006044820152606401610a8d565b60008563ffffffff1611801561114b5750836111423387611f5e565b63ffffffff1611155b6111675760405162461bcd60e51b8152600401610a8d90612ffb565b600c548563ffffffff16601160008282546111829190612deb565b92505081905511156111a65760405162461bcd60e51b8152600401610a8d90612dfe565b6040516d6d756c746976657273334672656560901b60208201526001600160601b03193360601b16602e820152604281018590526111e690606201610b47565b6112025760405162461bcd60e51b8152600401610a8d90612e7d565b60005b600061121a610bb98363ffffffff8a16612eb9565b90506112268183612deb565b91506112328882611c94565b508563ffffffff1681106112055750505050505050565b33321461125557600080fd5b6002601354610100900460ff16600481111561127357611273612a62565b146112905760405162461bcd60e51b8152600401610a8d90612d9e565b600c548563ffffffff16601160008282546112ab9190612deb565b92505081905511156112cf5760405162461bcd60e51b8152600401610a8d90612dfe565b836112da3387611f91565b63ffffffff1611156112fe5760405162461bcd60e51b8152600401610a8d90612e46565b6040516e18985d1d1b1955da1a5d195b1a5cdd608a1b60208201526001600160601b03193360601b16602f8201526043810185905261133f90606301610b47565b61135b5760405162461bcd60e51b8152600401610a8d90612e7d565b8463ffffffff16600b5461136f9190612ea2565b34101561137b57600080fd5b60005b6000611393610bb98363ffffffff8a16612eb9565b905061139f8183612deb565b91506113ab3382611c94565b508563ffffffff16811061137e57505050505050565b60606004805461096690612d64565b3332146113dc57600080fd5b6003601354610100900460ff1660048111156113fa576113fa612a62565b146114175760405162461bcd60e51b8152600401610a8d90612d9e565b600c548563ffffffff16601160008282546114329190612deb565b92505081905511156114565760405162461bcd60e51b8152600401610a8d90612dfe565b836114613387611fc9565b63ffffffff1611156114855760405162461bcd60e51b8152600401610a8d90612e46565b6040516d18985d1d1b1955d85a5d1b1a5cdd60921b60208201526001600160601b03193360601b16602e820152604281018590526114c590606201610b47565b6114e15760405162461bcd60e51b8152600401610a8d90612e7d565b8463ffffffff16600b546114f59190612ea2565b34101561150157600080fd5b60005b6000611519610bb98363ffffffff8a16612eb9565b90506115258183612deb565b91506115313382611c94565b508563ffffffff16811061150457505050505050565b61154f6118bd565b600e55565b8161155e81611a4d565b610a418383612001565b836001600160a01b03811633146115825761158233611a4d565b61158e85858585612096565b5050505050565b60606115a082611a14565b6115e55760405162461bcd60e51b8152602060048201526016602482015275151a1a5cc813919508191bd95cdb89dd08195e1a5cdd60521b6044820152606401610a8d565b60126115f0836120e1565b604051602001611601929190613040565b6040516020818303038152906040529050919050565b61161f6118bd565b6013805482919061ff00191661010083600481111561164057611640612a62565b021790555050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61167e6118bd565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b3332146116ac57600080fd5b6004601354610100900460ff1660048111156116ca576116ca612a62565b146117175760405162461bcd60e51b815260206004820181905260248201527f536f7272792c207075626c69632073616c65206973206e6f74206163746976656044820152606401610a8d565b60008163ffffffff1611801561173e5750600e546117353383612173565b63ffffffff1611155b61175a5760405162461bcd60e51b8152600401610a8d90612ffb565b600c548163ffffffff16601160008282546117759190612deb565b92505081905511156117995760405162461bcd60e51b8152600401610a8d90612dfe565b8063ffffffff16600b546117ad9190612ea2565b3410156117b957600080fd5b60005b60006117d96117d18363ffffffff8616612eb9565b600e54611c7c565b90506117e58183612deb565b91506117f13382611c94565b508163ffffffff1681106117bc575050565b61180b6118bd565b6001600160a01b0381166118705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a8d565b61187981611f0e565b50565b6118846118bd565b6013805460ff19811660ff90911615179055565b60006001600160e01b0319821663152a902d60e11b148061093b575061093b826121af565b6000546001600160a01b03163314610ece5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8d565b6127106001600160601b03821611156119855760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a8d565b6001600160a01b0382166119db5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a8d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015611a28575060015482105b801561093b575050600090815260056020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b1561187957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611aba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ade91906130d7565b61187957604051633b79c77360e21b81526001600160a01b0382166004820152602401610a8d565b6000611b1182610dce565b9050806001600160a01b0316836001600160a01b031603611b455760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590611b655750611b638133611648565b155b15611b83576040516367d9dca160e11b815260040160405180910390fd5b610a418383836121ff565b6001600160a01b03821660009081526006602052604081208054839190601490611bc6908490600160a01b900463ffffffff166130f4565b92506101000a81548163ffffffff021916908363ffffffff1602179055905092915050565b600073da0c2ff4eb0924560ee4fa5561036da42dfc91ad611c67858585611c5f8a6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b92919061225b565b6001600160a01b03161490505b949350505050565b6000818310611c8b5781611c8d565b825b9392505050565b6001546001600160a01b038316611cbd57604051622e076360e81b815260040160405180910390fd5b81600003611cde5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168a018116918217600160401b67ffffffffffffffff1990941690921783900481168a01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611d755750600155505050565b610a41838383612283565b610a4183838360405180602001604052806000815250611568565b60408051606081018252600080825260208201819052918101919091528180600111158015611e17575060015481105b15611ef557600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611ef35780516001600160a01b031615611e8a579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611eee579392505050565b611e8a565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216600090815260066020526040812060010180548391908390611bc690849063ffffffff166130f4565b6001600160a01b03821660009081526006602052604081208054839190601890611bc6908490600160c01b900463ffffffff166130f4565b6001600160a01b03821660009081526006602052604081208054839190601c90611bc6908490600160e01b900463ffffffff166130f4565b336001600160a01b0383160361202a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6120a1848484612283565b6001600160a01b0383163b151580156120c357506120c184848484612470565b155b15610c3e576040516368d2bf6b60e11b815260040160405180910390fd5b606060006120ee83612558565b60010190506000816001600160401b0381111561210d5761210d612aa0565b6040519080825280601f01601f191660200182016040528015612137576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461214157509392505050565b6001600160a01b03821660009081526006602052604081206001018054839190600490611bc6908490640100000000900463ffffffff166130f4565b60006001600160e01b031982166380ac58cd60e01b14806121e057506001600160e01b03198216635b5e139f60e01b145b8061093b57506301ffc9a760e01b6001600160e01b031983161461093b565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600080600061226c87878787612630565b91509150612279816126f4565b5095945050505050565b600061228e82611de7565b9050836001600160a01b031681600001516001600160a01b0316146122c55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806122e357506122e38533611648565b806122fe5750336122f3846109e9565b6001600160a01b0316145b90508061231e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661234557604051633a954ecd60e21b815260040160405180910390fd5b612351600084876121ff565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661242557600154821461242557805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906124a5903390899088908890600401613118565b6020604051808303816000875af19250505080156124e0575060408051601f3d908101601f191682019092526124dd91810190613155565b60015b61253e573d80801561250e576040519150601f19603f3d011682016040523d82523d6000602084013e612513565b606091505b508051600003612536576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c74565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106125975772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106125c3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106125e157662386f26fc10000830492506010015b6305f5e10083106125f9576305f5e100830492506008015b612710831061260d57612710830492506004015b6064831061261f576064830492506002015b600a831061093b5760010192915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561266757506000905060036126eb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156126bb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126e4576000600192509250506126eb565b9150600090505b94509492505050565b600081600481111561270857612708612a62565b036127105750565b600181600481111561272457612724612a62565b036127715760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a8d565b600281600481111561278557612785612a62565b036127d25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a8d565b60038160048111156127e6576127e6612a62565b036118795760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a8d565b6001600160e01b03198116811461187957600080fd5b60006020828403121561286657600080fd5b8135611c8d8161283e565b80356001600160a01b038116811461288857600080fd5b919050565b600080604083850312156128a057600080fd5b6128a983612871565b915060208301356001600160601b03811681146128c557600080fd5b809150509250929050565b60005b838110156128eb5781810151838201526020016128d3565b50506000910152565b6000815180845261290c8160208601602086016128d0565b601f01601f19169290920160200192915050565b602081526000611c8d60208301846128f4565b60006020828403121561294557600080fd5b5035919050565b6000806040838503121561295f57600080fd5b61296883612871565b946020939093013593505050565b803563ffffffff8116811461288857600080fd5b803560ff8116811461288857600080fd5b600080600080600060a086880312156129b357600080fd5b6129bc86612976565b9450602086013593506129d16040870161298a565b94979396509394606081013594506080013592915050565b6000602082840312156129fb57600080fd5b611c8d82612871565b600080600060608486031215612a1957600080fd5b612a2284612871565b9250612a3060208501612871565b9150604084013590509250925092565b60008060408385031215612a5357600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b6020810160058310612a9a57634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612ad057612ad0612aa0565b604051601f8501601f19908116603f01168101908282118183101715612af857612af8612aa0565b81604052809350858152868686011115612b1157600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612b3d57600080fd5b81356001600160401b03811115612b5357600080fd5b8201601f81018413612b6457600080fd5b611c7484823560208401612ab6565b60008060408385031215612b8657600080fd5b612b8f83612871565b9150612b9d60208401612976565b90509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612bde57835183529284019291840191600101612bc2565b50909695505050505050565b60008060008060008060c08789031215612c0357600080fd5b612c0c87612871565b9550612c1a60208801612976565b945060408701359350612c2f6060880161298a565b92506080870135915060a087013590509295509295509295565b801515811461187957600080fd5b60008060408385031215612c6a57600080fd5b612c7383612871565b915060208301356128c581612c49565b60008060008060808587031215612c9957600080fd5b612ca285612871565b9350612cb060208601612871565b92506040850135915060608501356001600160401b03811115612cd257600080fd5b8501601f81018713612ce357600080fd5b612cf287823560208401612ab6565b91505092959194509250565b600060208284031215612d1057600080fd5b813560058110611c8d57600080fd5b60008060408385031215612d3257600080fd5b612d3b83612871565b9150612b9d60208401612871565b600060208284031215612d5b57600080fd5b611c8d82612976565b600181811c90821680612d7857607f821691505b602082108103612d9857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601c908201527f536f7272792c2070726573616c65206973206e6f742061637469766500000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561093b5761093b612dd5565b60208082526028908201527f536f7272792c206e6f7420656e6f756768204e4654732072656d61696e696e67604082015267081d1bc81b5a5b9d60c21b606082015260800190565b6020808252601b908201527f536f7272792c2063616e2774206d696e742074686174206d616e790000000000604082015260600190565b6020808252600b908201526a496e76616c69642073696760a81b604082015260600190565b808202811582820484141761093b5761093b612dd5565b8181038181111561093b5761093b612dd5565b600082612ee957634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610a4157600081815260208120601f850160051c81016020861015612f155750805b601f850160051c820191505b81811015612f3457828155600101612f21565b505050505050565b81516001600160401b03811115612f5557612f55612aa0565b612f6981612f638454612d64565b84612eee565b602080601f831160018114612f9e5760008415612f865750858301515b600019600386901b1c1916600185901b178555612f34565b600085815260208120601f198616915b82811015612fcd57888601518255948401946001909101908401612fae565b5085821015612feb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526015908201527414dbdc9c9e4b081a5b9d985b1a5908185b5bdd5b9d605a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600080845461304e81612d64565b60018281168015613066576001811461307b576130aa565b60ff19841687528215158302870194506130aa565b8860005260208060002060005b858110156130a15781548a820152908401908201613088565b50505082870194505b5050505083516130be8183602088016128d0565b64173539b7b760d91b9101908152600501949350505050565b6000602082840312156130e957600080fd5b8151611c8d81612c49565b63ffffffff81811683821601908082111561311157613111612dd5565b5092915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314b908301846128f4565b9695505050505050565b60006020828403121561316757600080fd5b8151611c8d8161283e56fea26469706673582212209ef1acd5285d20115345b4cf46436f3a032e21ad59af2e2a39fc10e3c12f5b8364736f6c63430008120033

Deployed Bytecode Sourcemap

83024:10232:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93080:171;;;;;;;;;;-1:-1:-1;93080:171:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;93080:171:0;;;;;;;;92863:145;;;;;;;;;;-1:-1:-1;92863:145:0;;;;;:::i;:::-;;:::i;:::-;;69986:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;71497:204::-;;;;;;;;;;-1:-1:-1;71497:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2246:32:1;;;2228:51;;2216:2;2201:18;71497:204:0;2082:203:1;92112:157:0;;;;;;;;;;-1:-1:-1;92112:157:0;;;;;:::i;:::-;;:::i;86049:1103::-;;;;;;:::i;:::-;;:::i;83596:32::-;;;;;;;;;;;;;;;;;;;3489:25:1;;;3477:2;3462:18;83596:32:0;3343:177:1;83522:28:0;;;;;;;;;;;;;;;;65451:303;;;;;;;;;;-1:-1:-1;65705:12:0;;65308:1;65689:13;:28;-1:-1:-1;;65689:46:0;65451:303;;91149:83;;;;;;;;;;-1:-1:-1;91149:83:0;;;;;:::i;:::-;;:::i;92277:163::-;;;;;;;;;;-1:-1:-1;92277:163:0;;;;;:::i;:::-;;:::i;53585:442::-;;;;;;;;;;-1:-1:-1;53585:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4494:32:1;;;4476:51;;4558:2;4543:18;;4536:34;;;;4449:18;53585:442:0;4302:274:1;84198:22:0;;;;;;;;;;-1:-1:-1;84198:22:0;;;;;;;;;;;;;;;;;;:::i;91640:125::-;;;;;;;;;;-1:-1:-1;91640:125:0;;;;;:::i;:::-;;:::i;91240:182::-;;;;;;;;;;;;;:::i;7716:143::-;;;;;;;;;;;;170:42;7716:143;;92448:171;;;;;;;;;;-1:-1:-1;92448:171:0;;;;;:::i;:::-;;:::i;91430:81::-;;;;;;;;;;-1:-1:-1;91430:81:0;;;;;:::i;:::-;;:::i;67281:316::-;;;;;;;;;;-1:-1:-1;67281:316:0;;;;;:::i;:::-;-1:-1:-1;;;;;67454:19:0;67340:15;67454:19;;;:12;:19;;;;;;;;;67421:52;;;;;;;;;-1:-1:-1;;;;;67421:52:0;;;;;-1:-1:-1;;;67421:52:0;;;;;;;;;;;-1:-1:-1;;;67421:52:0;;;;;;;;;;;-1:-1:-1;;;67421:52:0;;;;;;;;;;-1:-1:-1;;;67421:52:0;;;;;;;;;;-1:-1:-1;;;67421:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67281:316;;;;;5528:25:1;;;5584:2;5569:18;;5562:34;;;;5612:18;;;5605:34;5670:2;5655:18;;5648:34;5515:3;5500:19;67281:316:0;5297:391:1;90444:104:0;;;;;;;;;;-1:-1:-1;90444:104:0;;;;;:::i;:::-;;:::i;69794:125::-;;;;;;;;;;-1:-1:-1;69794:125:0;;;;;:::i;:::-;;:::i;83958:21::-;;;;;;;;;;;;;:::i;66571:206::-;;;;;;;;;;-1:-1:-1;66571:206:0;;;;;:::i;:::-;;:::i;37786:103::-;;;;;;;;;;;;;:::i;91517:117::-;;;;;;;;;;-1:-1:-1;91517:117:0;;;;;:::i;:::-;;:::i;83988:28::-;;;;;;;;;;-1:-1:-1;83988:28:0;;;;;;;;83921;;;;;;;;;;;;;;;;85378:669;;;;;;;;;;-1:-1:-1;85378:669:0;;;;;:::i;:::-;;:::i;81758:1174::-;;;;;;;;;;-1:-1:-1;81758:1174:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;84357:1013::-;;;;;;;;;;-1:-1:-1;84357:1013:0;;;;;:::i;:::-;;:::i;87156:1112::-;;;;;;:::i;:::-;;:::i;37138:87::-;;;;;;;;;;-1:-1:-1;37184:7:0;37211:6;-1:-1:-1;;;;;37211:6:0;37138:87;;70155:104;;;;;;;;;;;;;:::i;88274:1109::-;;;;;;:::i;:::-;;:::i;91771:149::-;;;;;;;;;;-1:-1:-1;91771:149:0;;;;;:::i;:::-;;:::i;91928:176::-;;;;;;;;;;-1:-1:-1;91928:176:0;;;;;:::i;:::-;;:::i;92627:228::-;;;;;;;;;;-1:-1:-1;92627:228:0;;;;;:::i;:::-;;:::i;83557:32::-;;;;;;;;;;;;;;;;83635:38;;;;;;;;;;;;;;;;90179:226;;;;;;;;;;-1:-1:-1;90179:226:0;;;;;:::i;:::-;;:::i;90556:84::-;;;;;;;;;;-1:-1:-1;90556:84:0;;;;;:::i;:::-;;:::i;66859:134::-;;;;;;;;;;-1:-1:-1;66859:134:0;;;;;:::i;:::-;-1:-1:-1;;;;;66952:19:0;66917:7;66952:19;;;:12;:19;;;;;:32;-1:-1:-1;;;66952:32:0;;-1:-1:-1;;;;;66952:32:0;;66859:134;72131:164;;;;;;;;;;-1:-1:-1;72131:164:0;;;;;:::i;:::-;;:::i;91058:83::-;;;;;;;;;;-1:-1:-1;91058:83:0;;;;;:::i;:::-;;:::i;89391:758::-;;;;;;:::i;:::-;;:::i;38044:201::-;;;;;;;;;;-1:-1:-1;38044:201:0;;;;;:::i;:::-;;:::i;90648:106::-;;;;;;;;;;;;;:::i;93080:171::-;93183:4;93207:36;93231:11;93207:23;:36::i;:::-;93200:43;93080:171;-1:-1:-1;;93080:171:0:o;92863:145::-;37024:13;:11;:13::i;:::-;92956:44:::1;92975:9;92986:13;92956:18;:44::i;:::-;92863:145:::0;;:::o;69986:100::-;70040:13;70073:5;70066:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69986:100;:::o;71497:204::-;71565:7;71590:16;71598:7;71590;:16::i;:::-;71585:64;;71615:34;;-1:-1:-1;;;71615:34:0;;;;;;;;;;;71585:64;-1:-1:-1;71669:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;71669:24:0;;71497:204::o;92112:157::-;92208:8;9498:30;9519:8;9498:20;:30::i;:::-;92229:32:::1;92243:8;92253:7;92229:13;:32::i;:::-;92112:157:::0;;;:::o;86049:1103::-;83470:10;83484:9;83470:23;83462:32;;;;;;86195:19:::1;86184:7;::::0;::::1;::::0;::::1;;;:30;::::0;::::1;;;;;;:::i;:::-;;86176:71;;;;-1:-1:-1::0;;;86176:71:0::1;;;;;;;:::i;:::-;;;;;;;;;86333:13;;86316:12;86300:28;;:12;;:28;;;;;;;:::i;:::-;;;;;;;86299:47;;86291:100;;;;-1:-1:-1::0;;;86291:100:0::1;;;;;;;:::i;:::-;86456:9;86412:40;86427:10;86439:12;86412:14;:40::i;:::-;:53;;;;86404:93;;;;-1:-1:-1::0;;;86404:93:0::1;;;;;;;:::i;:::-;86553;86613:10;86625:9;86580:55;;;;;;;;-1:-1:-1::0;;;12227:27:1;;12292:2;12288:15;;;;-1:-1:-1;;;;;;12284:53:1;12279:2;12270:12;;12263:75;12363:2;12354:12;;12347:28;12400:2;12391:12;;11969:440;86580:55:0::1;;;;;;;;;;;;;86570:66;;;;;;86638:1;86641;86644;86553:16;:93::i;:::-;86545:117;;;;-1:-1:-1::0;;;86545:117:0::1;;;;;;;:::i;:::-;86737:12;86730:19;;:4;;:19;;;;:::i;:::-;86717:9;:32;;86709:41;;;::::0;::::1;;86896:16;86927:218;86945:16;86964:48;86968:26;86983:11:::0;86968:26:::1;::::0;::::1;;:::i;:::-;86996:15;;86964:3;:48::i;:::-;86945:67:::0;-1:-1:-1;87027:26:0::1;86945:67:::0;87027:26;::::1;:::i;:::-;;;87068:30;87074:10;87086:11;87068:5;:30::i;:::-;86930:180;87131:12;87117:26;;:11;:26;86927:218;;86165:987;86049:1103:::0;;;;;:::o;91149:83::-;37024:13;:11;:13::i;:::-;91210:6:::1;:14:::0;;-1:-1:-1;;;;;;91210:14:0::1;-1:-1:-1::0;;;;;91210:14:0;;;::::1;::::0;;;::::1;::::0;;91149:83::o;92277:163::-;92378:4;-1:-1:-1;;;;;9224:18:0;;9232:10;9224:18;9220:83;;9259:32;9280:10;9259:20;:32::i;:::-;92395:37:::1;92414:4;92420:2;92424:7;92395:18;:37::i;:::-;92277:163:::0;;;;:::o;53585:442::-;53682:7;53740:27;;;:17;:27;;;;;;;;53711:56;;;;;;;;;-1:-1:-1;;;;;53711:56:0;;;;;-1:-1:-1;;;53711:56:0;;;-1:-1:-1;;;;;53711:56:0;;;;;;;;53682:7;;53780:92;;-1:-1:-1;53831:29:0;;;;;;;;;53841:19;53831:29;-1:-1:-1;;;;;53831:29:0;;;;-1:-1:-1;;;53831:29:0;;-1:-1:-1;;;;;53831:29:0;;;;;53780:92;53922:23;;;;53884:21;;54393:5;;53909:36;;-1:-1:-1;;;;;53909:36:0;:10;:36;:::i;:::-;53908:58;;;;:::i;:::-;53987:16;;;;;-1:-1:-1;53585:442:0;;-1:-1:-1;;;;53585:442:0:o;91640:125::-;37024:13;:11;:13::i;:::-;91721:15:::1;:36:::0;91640:125::o;91240:182::-;37024:13;:11;:13::i;:::-;91288:12:::1;91303:23;91325:1;91303:21;:23;:::i;:::-;91345:6;::::0;91337:33:::1;::::0;91288:38;;-1:-1:-1;;;;;;91345:6:0::1;::::0;91337:33;::::1;;;::::0;91288:38;;91345:6:::1;91337:33:::0;91345:6;91337:33;91288:38;91345:6;91337:33;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;91389:6:0::1;::::0;91381:33:::1;::::0;-1:-1:-1;;;;;91389:6:0;;::::1;::::0;91381:33;::::1;;;::::0;91406:7;;91389:6:::1;91381:33:::0;91389:6;91381:33;91406:7;91389:6;91381:33;::::1;;;;;;;;;;;;;::::0;::::1;;;;92448:171:::0;92553:4;-1:-1:-1;;;;;9224:18:0;;9232:10;9224:18;9220:83;;9259:32;9280:10;9259:20;:32::i;:::-;92570:41:::1;92593:4;92599:2;92603:7;92570:22;:41::i;91430:81::-:0;37024:13;:11;:13::i;:::-;91489:4:::1;:14:::0;91430:81::o;90444:104::-;37024:13;:11;:13::i;:::-;90519:7:::1;:21;90529:11:::0;90519:7;:21:::1;:::i;69794:125::-:0;69858:7;69885:21;69898:7;69885:12;:21::i;:::-;:26;;69794:125;-1:-1:-1;;69794:125:0:o;83958:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;66571:206::-;66635:7;-1:-1:-1;;;;;66659:19:0;;66655:60;;66687:28;;-1:-1:-1;;;66687:28:0;;;;;;;;;;;66655:60;-1:-1:-1;;;;;;66741:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;66741:27:0;;66571:206::o;37786:103::-;37024:13;:11;:13::i;:::-;37851:30:::1;37878:1;37851:18;:30::i;:::-;37786:103::o:0;91517:117::-;37024:13;:11;:13::i;:::-;91594::::1;:32:::0;91517:117::o;85378:669::-;37024:13;:11;:13::i;:::-;85516:1:::1;85501:12;:16;;;85493:49;;;;-1:-1:-1::0;;;85493:49:0::1;;;;;;;:::i;:::-;85595:13;;85578:12;85562:28;;:12;;:28;;;;;;;:::i;:::-;;;;;;;85561:47;;85553:100;;;;-1:-1:-1::0;;;85553:100:0::1;;;;;;;:::i;:::-;85799:16;85830:210;85848:16;85867:48;85871:26;85886:11:::0;85871:26:::1;::::0;::::1;;:::i;85867:48::-;85848:67:::0;-1:-1:-1;85930:26:0::1;85848:67:::0;85930:26;::::1;:::i;:::-;;;85971:22;85977:2;85981:11;85971:5;:22::i;:::-;85833:172;86026:12;86012:26;;:11;:26;85830:210;;85449:598;85378:669:::0;;:::o;81758:1174::-;81817:16;81846:21;81870:16;81880:5;81870:9;:16::i;:::-;81918:13;;81846:40;;-1:-1:-1;81897:18:0;;;81846:40;-1:-1:-1;;;;;82034:28:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82034:28:0;-1:-1:-1;82010:52:0;-1:-1:-1;65308:1:0;82100:790;82138:10;82134:1;:14;82100:790;;;82174:31;82208:14;;;:11;:14;;;;;;;;;82174:48;;;;;;;;;-1:-1:-1;;;;;82174:48:0;;;;-1:-1:-1;;;82174:48:0;;-1:-1:-1;;;;;82174:48:0;;;;;;;;-1:-1:-1;;;82174:48:0;;;;;;;;;;;;;;;;82243:73;;82288:8;;;82243:73;82392:14;;-1:-1:-1;;;;;82392:28:0;;82388:111;;82465:14;;;-1:-1:-1;82388:111:0;82620:5;-1:-1:-1;;;;;82599:26:0;:17;-1:-1:-1;;;;;82599:26:0;;82595:98;;82672:1;82650:4;82655:13;;;;;;82650:19;;;;;;;;:::i;:::-;;;;;;:23;;;;;82595:98;82812:13;82797:11;:28;82793:82;;82850:5;;;82793:82;82155:735;82100:790;82150:3;;82100:790;;;-1:-1:-1;82920:4:0;81758:1174;-1:-1:-1;;;;;;81758:1174:0:o;84357:1013::-;83470:10;83484:9;83470:23;83462:32;;;;;;84497:16:::1;::::0;::::1;;84489:52;;;::::0;-1:-1:-1;;;84489:52:0;;16302:2:1;84489:52:0::1;::::0;::::1;16284:21:1::0;16341:2;16321:18;;;16314:30;16380:25;16360:18;;;16353:53;16423:18;;84489:52:0::1;16100:347:1::0;84489:52:0::1;84608:1;84593:12;:16;;;:76;;;;;84657:12;84613:40;84628:10;84640:12;84613:14;:40::i;:::-;:56;;;;84593:76;84585:110;;;;-1:-1:-1::0;;;84585:110:0::1;;;;;;;:::i;:::-;84748:13;;84731:12;84715:28;;:12;;:28;;;;;;;:::i;:::-;;;;;;;84714:47;;84706:100;;;;-1:-1:-1::0;;;84706:100:0::1;;;;;;;:::i;:::-;84889:60;::::0;-1:-1:-1;;;84889:60:0::1;::::0;::::1;16710:29:1::0;-1:-1:-1;;;;;;84924:10:0::1;16777:2:1::0;16773:15;16769:53;16755:12;;;16748:75;16839:12;;;16832:28;;;84862:98:0::1;::::0;16876:12:1;;84889:60:0::1;16452:442:1::0;84862:98:0::1;84854:122;;;;-1:-1:-1::0;;;84854:122:0::1;;;;;;;:::i;:::-;85122:16;85153:210;85171:16;85190:48;85194:26;85209:11:::0;85194:26:::1;::::0;::::1;;:::i;85190:48::-;85171:67:::0;-1:-1:-1;85253:26:0::1;85171:67:::0;85253:26;::::1;:::i;:::-;;;85294:22;85300:2;85304:11;85294:5;:22::i;:::-;85156:172;85349:12;85335:26;;:11;:26;85153:210;;84478:892;84357:1013:::0;;;;;;:::o;87156:1112::-;83470:10;83484:9;83470:23;83462:32;;;;;;87305:22:::1;87294:7;::::0;::::1;::::0;::::1;;;:33;::::0;::::1;;;;;;:::i;:::-;;87286:74;;;;-1:-1:-1::0;;;87286:74:0::1;;;;;;;:::i;:::-;87446:13;;87429:12;87413:28;;:12;;:28;;;;;;;:::i;:::-;;;;;;;87412:47;;87404:100;;;;-1:-1:-1::0;;;87404:100:0::1;;;;;;;:::i;:::-;87569:9;87525:40;87540:10;87552:12;87525:14;:40::i;:::-;:53;;;;87517:93;;;;-1:-1:-1::0;;;87517:93:0::1;;;;;;;:::i;:::-;87693:58;::::0;-1:-1:-1;;;87693:58:0::1;::::0;::::1;17157:30:1::0;-1:-1:-1;;;;;;87729:10:0::1;17225:2:1::0;17221:15;17217:53;17203:12;;;17196:75;17287:12;;;17280:28;;;87666:96:0::1;::::0;17324:12:1;;87693:58:0::1;16899:443:1::0;87666:96:0::1;87658:120;;;;-1:-1:-1::0;;;87658:120:0::1;;;;;;;:::i;:::-;87853:12;87846:19;;:4;;:19;;;;:::i;:::-;87833:9;:32;;87825:41;;;::::0;::::1;;88012:16;88043:218;88061:16;88080:48;88084:26;88099:11:::0;88084:26:::1;::::0;::::1;;:::i;88080:48::-;88061:67:::0;-1:-1:-1;88143:26:0::1;88061:67:::0;88143:26;::::1;:::i;:::-;;;88184:30;88190:10;88202:11;88184:5;:30::i;:::-;88046:180;88247:12;88233:26;;:11;:26;88043:218;;87275:993;87156:1112:::0;;;;;:::o;70155:104::-;70211:13;70244:7;70237:14;;;;;:::i;88274:1109::-;83470:10;83484:9;83470:23;83462:32;;;;;;88422:21:::1;88411:7;::::0;::::1;::::0;::::1;;;:32;::::0;::::1;;;;;;:::i;:::-;;88403:73;;;;-1:-1:-1::0;;;88403:73:0::1;;;;;;;:::i;:::-;88562:13;;88545:12;88529:28;;:12;;:28;;;;;;;:::i;:::-;;;;;;;88528:47;;88520:100;;;;-1:-1:-1::0;;;88520:100:0::1;;;;;;;:::i;:::-;88685:9;88641:40;88656:10;88668:12;88641:14;:40::i;:::-;:53;;;;88633:93;;;;-1:-1:-1::0;;;88633:93:0::1;;;;;;;:::i;:::-;88809:57;::::0;-1:-1:-1;;;88809:57:0::1;::::0;::::1;17605:29:1::0;-1:-1:-1;;;;;;88844:10:0::1;17672:2:1::0;17668:15;17664:53;17650:12;;;17643:75;17734:12;;;17727:28;;;88782:95:0::1;::::0;17771:12:1;;88809:57:0::1;17347:442:1::0;88782:95:0::1;88774:119;;;;-1:-1:-1::0;;;88774:119:0::1;;;;;;;:::i;:::-;88968:12;88961:19;;:4;;:19;;;;:::i;:::-;88948:9;:32;;88940:41;;;::::0;::::1;;89127:16;89158:218;89176:16;89195:48;89199:26;89214:11:::0;89199:26:::1;::::0;::::1;;:::i;89195:48::-;89176:67:::0;-1:-1:-1;89258:26:0::1;89176:67:::0;89258:26;::::1;:::i;:::-;;;89299:30;89305:10;89317:11;89299:5;:30::i;:::-;89161:180;89362:12;89348:26;;:11;:26;89158:218;;88392:991;88274:1109:::0;;;;;:::o;91771:149::-;37024:13;:11;:13::i;:::-;91864:21:::1;:48:::0;91771:149::o;91928:176::-;92032:8;9498:30;9519:8;9498:20;:30::i;:::-;92053:43:::1;92077:8;92087;92053:23;:43::i;92627:228::-:0;92778:4;-1:-1:-1;;;;;9224:18:0;;9232:10;9224:18;9220:83;;9259:32;9280:10;9259:20;:32::i;:::-;92800:47:::1;92823:4;92829:2;92833:7;92842:4;92800:22;:47::i;:::-;92627:228:::0;;;;;:::o;90179:226::-;90240:13;90274:15;90282:6;90274:7;:15::i;:::-;90266:50;;;;-1:-1:-1;;;90266:50:0;;17996:2:1;90266:50:0;;;17978:21:1;18035:2;18015:18;;;18008:30;-1:-1:-1;;;18054:18:1;;;18047:52;18116:18;;90266:50:0;17794:346:1;90266:50:0;90360:7;90369:17;:6;:15;:17::i;:::-;90343:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;90329:68;;90179:226;;;:::o;90556:84::-;37024:13;:11;:13::i;:::-;90619:7:::1;:13:::0;;90629:3;;90619:7;-1:-1:-1;;90619:13:0::1;;90629:3:::0;90619:13:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;90556:84:::0;:::o;72131:164::-;-1:-1:-1;;;;;72252:25:0;;;72228:4;72252:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;72131:164::o;91058:83::-;37024:13;:11;:13::i;:::-;91119:6:::1;:14:::0;;-1:-1:-1;;;;;;91119:14:0::1;-1:-1:-1::0;;;;;91119:14:0;;;::::1;::::0;;;::::1;::::0;;91058:83::o;89391:758::-;83470:10;83484:9;83470:23;83462:32;;;;;;89490:14:::1;89479:7;::::0;::::1;::::0;::::1;;;:25;::::0;::::1;;;;;;:::i;:::-;;89471:70;;;::::0;-1:-1:-1;;;89471:70:0;;19539:2:1;89471:70:0::1;::::0;::::1;19521:21:1::0;;;19558:18;;;19551:30;19617:34;19597:18;;;19590:62;19669:18;;89471:70:0::1;19337:356:1::0;89471:70:0::1;89575:1;89560:12;:16;;;:87;;;;;89626:21;;89580:42;89597:10;89609:12;89580:16;:42::i;:::-;:67;;;;89560:87;89552:121;;;;-1:-1:-1::0;;;89552:121:0::1;;;;;;;:::i;:::-;89728:13;;89711:12;89695:28;;:12;;:28;;;;;;;:::i;:::-;;;;;;;89694:47;;89686:100;;;;-1:-1:-1::0;;;89686:100:0::1;;;;;;;:::i;:::-;89861:12;89854:19;;:4;;:19;;;;:::i;:::-;89841:9;:32;;89833:41;;;::::0;::::1;;89887:16;89918:224;89936:16;89955:54;89959:26;89974:11:::0;89959:26:::1;::::0;::::1;;:::i;:::-;89987:21;;89955:3;:54::i;:::-;89936:73:::0;-1:-1:-1;90024:26:0::1;89936:73:::0;90024:26;::::1;:::i;:::-;;;90065:30;90071:10;90083:11;90065:5;:30::i;:::-;89921:186;90128:12;90114:26;;:11;:26;89918:224;;89460:689;89391:758:::0;:::o;38044:201::-;37024:13;:11;:13::i;:::-;-1:-1:-1;;;;;38133:22:0;::::1;38125:73;;;::::0;-1:-1:-1;;;38125:73:0;;19900:2:1;38125:73:0::1;::::0;::::1;19882:21:1::0;19939:2;19919:18;;;19912:30;19978:34;19958:18;;;19951:62;-1:-1:-1;;;20029:18:1;;;20022:36;20075:19;;38125:73:0::1;19698:402:1::0;38125:73:0::1;38209:28;38228:8;38209:18;:28::i;:::-;38044:201:::0;:::o;90648:106::-;37024:13;:11;:13::i;:::-;90730:16:::1;::::0;;-1:-1:-1;;90710:36:0;::::1;90730:16;::::0;;::::1;90729:17;90710:36;::::0;;90648:106::o;53315:215::-;53417:4;-1:-1:-1;;;;;;53441:41:0;;-1:-1:-1;;;53441:41:0;;:81;;;53486:36;53510:11;53486:23;:36::i;37303:132::-;37184:7;37211:6;-1:-1:-1;;;;;37211:6:0;35769:10;37367:23;37359:68;;;;-1:-1:-1;;;37359:68:0;;20307:2:1;37359:68:0;;;20289:21:1;;;20326:18;;;20319:30;20385:34;20365:18;;;20358:62;20437:18;;37359:68:0;20105:356:1;54677:332:0;54393:5;-1:-1:-1;;;;;54780:33:0;;;;54772:88;;;;-1:-1:-1;;;54772:88:0;;20668:2:1;54772:88:0;;;20650:21:1;20707:2;20687:18;;;20680:30;20746:34;20726:18;;;20719:62;-1:-1:-1;;;20797:18:1;;;20790:40;20847:19;;54772:88:0;20466:406:1;54772:88:0;-1:-1:-1;;;;;54879:22:0;;54871:60;;;;-1:-1:-1;;;54871:60:0;;21079:2:1;54871:60:0;;;21061:21:1;21118:2;21098:18;;;21091:30;21157:27;21137:18;;;21130:55;21202:18;;54871:60:0;20877:349:1;54871:60:0;54966:35;;;;;;;;;-1:-1:-1;;;;;54966:35:0;;;;;;-1:-1:-1;;;;;54966:35:0;;;;;;;;;;-1:-1:-1;;;54944:57:0;;;;:19;:57;54677:332::o;73483:174::-;73540:4;73583:7;65308:1;73564:26;;:53;;;;;73604:13;;73594:7;:23;73564:53;:85;;;;-1:-1:-1;;73622:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;73622:27:0;;;;73621:28;;73483:174::o;9641:647::-;170:42;9832:45;:49;9828:453;;10131:67;;-1:-1:-1;;;10131:67:0;;10182:4;10131:67;;;21443:34:1;-1:-1:-1;;;;;21513:15:1;;21493:18;;;21486:43;170:42:0;;10131;;21378:18:1;;10131:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10126:144;;10226:28;;-1:-1:-1;;;10226:28:0;;-1:-1:-1;;;;;2246:32:1;;10226:28:0;;;2228:51:1;2201:18;;10226:28:0;2082:203:1;71052:379:0;71133:13;71149:24;71165:7;71149:15;:24::i;:::-;71133:40;;71194:5;-1:-1:-1;;;;;71188:11:0;:2;-1:-1:-1;;;;;71188:11:0;;71184:48;;71208:24;;-1:-1:-1;;;71208:24:0;;;;;;;;;;;71184:48;35769:10;-1:-1:-1;;;;;71249:21:0;;;;;;:63;;-1:-1:-1;71275:37:0;71292:5;35769:10;72131:164;:::i;71275:37::-;71274:38;71249:63;71245:138;;;71336:35;;-1:-1:-1;;;71336:35:0;;;;;;;;;;;71245:138;71395:28;71404:2;71408:7;71417:5;71395:8;:28::i;67605:156::-;-1:-1:-1;;;;;67712:19:0;;67676:15;67712:19;;;:12;:19;;;;;:40;;67746:6;;67712:19;:30;;:40;;67746:6;;-1:-1:-1;;;67712:40:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;67704:49;;67605:156;;;;:::o;90762:181::-;90855:4;83708:42;90879:46;90917:1;90920;90923;90879:29;:4;33897:58;;22209:66:1;33897:58:0;;;22197:79:1;22292:12;;;22285:28;;;33764:7:0;;22329:12:1;;33897:58:0;;;;;;;;;;;;33887:69;;;;;;33880:76;;33695:269;;;;90879:29;:37;:46;;:37;:46::i;:::-;-1:-1:-1;;;;;90879:56:0;;90872:63;;90762:181;;;;;;;:::o;90951:95::-;91001:4;91029:1;91025;:5;:13;;91037:1;91025:13;;;91033:1;91025:13;91018:20;90951:95;-1:-1:-1;;;90951:95:0:o;73916:1052::-;74029:13;;-1:-1:-1;;;;;74057:16:0;;74053:48;;74082:19;;-1:-1:-1;;;74082:19:0;;;;;;;;;;;74053:48;74116:8;74128:1;74116:13;74112:44;;74138:18;;-1:-1:-1;;;74138:18:0;;;;;;;;;;;74112:44;-1:-1:-1;;;;;74433:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;74492:49:0;;-1:-1:-1;;;;;74433:44:0;;;;;;;74492:49;;;-1:-1:-1;;;;;74433:44:0;;;;;;74492:49;;;;;;;;;;;;;;;;74558:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;74608:66:0;;;;-1:-1:-1;;;74658:15:0;74608:66;;;;;;;;;;74558:25;74755:23;;;74795:112;74822:40;;74847:14;;;;;-1:-1:-1;;;;;74822:40:0;;;74839:1;;74822:40;;74839:1;;74822:40;74902:3;74886:12;:19;74795:112;;-1:-1:-1;74921:13:0;:28;-1:-1:-1;;;73916:1052:0:o;72362:170::-;72496:28;72506:4;72512:2;72516:7;72496:9;:28::i;72603:185::-;72741:39;72758:4;72764:2;72768:7;72741:39;;;;;;;;;;;;:16;:39::i;68623:1109::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;68734:7:0;;65308:1;68783:23;;:47;;;;;68817:13;;68810:4;:20;68783:47;68779:886;;;68851:31;68885:17;;;:11;:17;;;;;;;;;68851:51;;;;;;;;;-1:-1:-1;;;;;68851:51:0;;;;-1:-1:-1;;;68851:51:0;;-1:-1:-1;;;;;68851:51:0;;;;;;;;-1:-1:-1;;;68851:51:0;;;;;;;;;;;;;;68921:729;;68971:14;;-1:-1:-1;;;;;68971:28:0;;68967:101;;69035:9;68623:1109;-1:-1:-1;;;68623:1109:0:o;68967:101::-;-1:-1:-1;;;69410:6:0;69455:17;;;;:11;:17;;;;;;;;;69443:29;;;;;;;;;-1:-1:-1;;;;;69443:29:0;;;;;-1:-1:-1;;;69443:29:0;;-1:-1:-1;;;;;69443:29:0;;;;;;;;-1:-1:-1;;;69443:29:0;;;;;;;;;;;;;69503:28;69499:109;;69571:9;68623:1109;-1:-1:-1;;;68623:1109:0:o;69499:109::-;69370:261;;;68832:833;68779:886;69693:31;;-1:-1:-1;;;69693:31:0;;;;;;;;;;;38405:191;38479:16;38498:6;;-1:-1:-1;;;;;38515:17:0;;;-1:-1:-1;;;;;;38515:17:0;;;;;;38548:40;;38498:6;;;;;;;38548:40;;38479:16;38548:40;38468:128;38405:191;:::o;68097:156::-;-1:-1:-1;;;;;68204:19:0;;68168:15;68204:19;;;:12;:19;;;;;:30;;:40;;68238:6;;68204:30;68168:15;;68204:40;;68238:6;;68204:40;;;:::i;67769:156::-;-1:-1:-1;;;;;67876:19:0;;67840:15;67876:19;;;:12;:19;;;;;:40;;67910:6;;67876:19;:30;;:40;;67910:6;;-1:-1:-1;;;67876:40:0;;;;;:::i;67933:156::-;-1:-1:-1;;;;;68040:19:0;;68004:15;68040:19;;;:12;:19;;;;;:40;;68074:6;;68040:19;:30;;:40;;68074:6;;-1:-1:-1;;;68040:40:0;;;;;:::i;71773:287::-;35769:10;-1:-1:-1;;;;;71872:24:0;;;71868:54;;71905:17;;-1:-1:-1;;;71905:17:0;;;;;;;;;;;71868:54;35769:10;71935:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;71935:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;71935:53:0;;;;;;;;;;72004:48;;540:41:1;;;71935:42:0;;35769:10;72004:48;;513:18:1;72004:48:0;;;;;;;71773:287;;:::o;72859:369::-;73026:28;73036:4;73042:2;73046:7;73026:9;:28::i;:::-;-1:-1:-1;;;;;73069:13:0;;40131:19;:23;;73069:76;;;;;73089:56;73120:4;73126:2;73130:7;73139:5;73089:30;:56::i;:::-;73088:57;73069:76;73065:156;;;73169:40;;-1:-1:-1;;;73169:40:0;;;;;;;;;;;24355:716;24411:13;24462:14;24479:17;24490:5;24479:10;:17::i;:::-;24499:1;24479:21;24462:38;;24515:20;24549:6;-1:-1:-1;;;;;24538:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24538:18:0;-1:-1:-1;24515:41:0;-1:-1:-1;24680:28:0;;;24696:2;24680:28;24737:288;-1:-1:-1;;24769:5:0;-1:-1:-1;;;24906:2:0;24895:14;;24890:30;24769:5;24877:44;24967:2;24958:11;;;-1:-1:-1;24988:21:0;24737:288;24988:21;-1:-1:-1;25046:6:0;24355:716;-1:-1:-1;;;24355:716:0:o;68261:160::-;-1:-1:-1;;;;;68370:19:0;;68334:15;68370:19;;;:12;:19;;;;;:32;;:42;;68406:6;;68370:32;;;:42;;68406:6;;68370:42;;;;;;:::i;66202:305::-;66304:4;-1:-1:-1;;;;;;66341:40:0;;-1:-1:-1;;;66341:40:0;;:105;;-1:-1:-1;;;;;;;66398:48:0;;-1:-1:-1;;;66398:48:0;66341:105;:158;;;-1:-1:-1;;;;;;;;;;51874:40:0;;;66463:36;51765:157;80045:196;80160:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;80160:29:0;-1:-1:-1;;;;;80160:29:0;;;;;;;;;80205:28;;80160:24;;80205:28;;;;;;;80045:196;;;:::o;33116:279::-;33244:7;33265:17;33284:18;33306:25;33317:4;33323:1;33326;33329;33306:10;:25::i;:::-;33264:67;;;;33342:18;33354:5;33342:11;:18::i;:::-;-1:-1:-1;33378:9:0;33116:279;-1:-1:-1;;;;;33116:279:0:o;75222:2021::-;75337:35;75375:21;75388:7;75375:12;:21::i;:::-;75337:59;;75435:4;-1:-1:-1;;;;;75413:26:0;:13;:18;;;-1:-1:-1;;;;;75413:26:0;;75409:67;;75448:28;;-1:-1:-1;;;75448:28:0;;;;;;;;;;;75409:67;75489:22;35769:10;-1:-1:-1;;;;;75515:20:0;;;;:73;;-1:-1:-1;75552:36:0;75569:4;35769:10;72131:164;:::i;75552:36::-;75515:126;;;-1:-1:-1;35769:10:0;75605:20;75617:7;75605:11;:20::i;:::-;-1:-1:-1;;;;;75605:36:0;;75515:126;75489:153;;75660:17;75655:66;;75686:35;;-1:-1:-1;;;75686:35:0;;;;;;;;;;;75655:66;-1:-1:-1;;;;;75736:16:0;;75732:52;;75761:23;;-1:-1:-1;;;75761:23:0;;;;;;;;;;;75732:52;75849:35;75866:1;75870:7;75879:4;75849:8;:35::i;:::-;-1:-1:-1;;;;;76180:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;76180:31:0;;;-1:-1:-1;;;;;76180:31:0;;;-1:-1:-1;;76180:31:0;;;;;;;76226:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;76226:29:0;;;;;;;;;;;76306:20;;;:11;:20;;;;;;76341:18;;-1:-1:-1;;;;;;76374:49:0;;;;-1:-1:-1;;;76407:15:0;76374:49;;;;;;;;;;76697:11;;76757:24;;;;;76800:13;;76306:20;;76757:24;;76800:13;76796:384;;77010:13;;76995:11;:28;76991:174;;77048:20;;77117:28;;;;-1:-1:-1;;;;;77091:54:0;-1:-1:-1;;;77091:54:0;-1:-1:-1;;;;;;77091:54:0;;;-1:-1:-1;;;;;77048:20:0;;77091:54;;;;76991:174;76155:1036;;;77227:7;77223:2;-1:-1:-1;;;;;77208:27:0;77217:4;-1:-1:-1;;;;;77208:27:0;;;;;;;;;;;75326:1917;;75222:2021;;;:::o;80733:667::-;80917:72;;-1:-1:-1;;;80917:72:0;;80896:4;;-1:-1:-1;;;;;80917:36:0;;;;;:72;;35769:10;;80968:4;;80974:7;;80983:5;;80917:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80917:72:0;;;;;;;;-1:-1:-1;;80917:72:0;;;;;;;;;;;;:::i;:::-;;;80913:480;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81151:6;:13;81168:1;81151:18;81147:235;;81197:40;;-1:-1:-1;;;81197:40:0;;;;;;;;;;;81147:235;81340:6;81334:13;81325:6;81321:2;81317:15;81310:38;80913:480;-1:-1:-1;;;;;;81036:55:0;-1:-1:-1;;;81036:55:0;;-1:-1:-1;81029:62:0;;21221:922;21274:7;;-1:-1:-1;;;21352:15:0;;21348:102;;-1:-1:-1;;;21388:15:0;;;-1:-1:-1;21432:2:0;21422:12;21348:102;21477:6;21468:5;:15;21464:102;;21513:6;21504:15;;;-1:-1:-1;21548:2:0;21538:12;21464:102;21593:6;21584:5;:15;21580:102;;21629:6;21620:15;;;-1:-1:-1;21664:2:0;21654:12;21580:102;21709:5;21700;:14;21696:99;;21744:5;21735:14;;;-1:-1:-1;21778:1:0;21768:11;21696:99;21822:5;21813;:14;21809:99;;21857:5;21848:14;;;-1:-1:-1;21891:1:0;21881:11;21809:99;21935:5;21926;:14;21922:99;;21970:5;21961:14;;;-1:-1:-1;22004:1:0;21994:11;21922:99;22048:5;22039;:14;22035:66;;22084:1;22074:11;22129:6;21221:922;-1:-1:-1;;21221:922:0:o;31457:1520::-;31588:7;;32522:66;32509:79;;32505:163;;;-1:-1:-1;32621:1:0;;-1:-1:-1;32625:30:0;32605:51;;32505:163;32782:24;;;32765:14;32782:24;;;;;;;;;23327:25:1;;;23400:4;23388:17;;23368:18;;;23361:45;;;;23422:18;;;23415:34;;;23465:18;;;23458:34;;;32782:24:0;;23299:19:1;;32782:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;32782:24:0;;-1:-1:-1;;32782:24:0;;;-1:-1:-1;;;;;;;32821:20:0;;32817:103;;32874:1;32878:29;32858:50;;;;;;;32817:103;32940:6;-1:-1:-1;32948:20:0;;-1:-1:-1;31457:1520:0;;;;;;;;:::o;26849:521::-;26927:20;26918:5;:29;;;;;;;;:::i;:::-;;26914:449;;26849:521;:::o;26914:449::-;27025:29;27016:5;:38;;;;;;;;:::i;:::-;;27012:351;;27071:34;;-1:-1:-1;;;27071:34:0;;23705:2:1;27071:34:0;;;23687:21:1;23744:2;23724:18;;;23717:30;23783:26;23763:18;;;23756:54;23827:18;;27071:34:0;23503:348:1;27012:351:0;27136:35;27127:5;:44;;;;;;;;:::i;:::-;;27123:240;;27188:41;;-1:-1:-1;;;27188:41:0;;24058:2:1;27188:41:0;;;24040:21:1;24097:2;24077:18;;;24070:30;24136:33;24116:18;;;24109:61;24187:18;;27188:41:0;23856:355:1;27123:240:0;27260:30;27251:5;:39;;;;;;;;:::i;:::-;;27247:116;;27307:44;;-1:-1:-1;;;27307:44:0;;24418:2:1;27307:44:0;;;24400:21:1;24457:2;24437:18;;;24430:30;24496:34;24476:18;;;24469:62;-1:-1:-1;;;24547:18:1;;;24540:32;24589:19;;27307:44:0;24216:398:1;14:131;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;689:70;592:173;;;:::o;770:366::-;837:6;845;898:2;886:9;877:7;873:23;869:32;866:52;;;914:1;911;904:12;866:52;937:29;956:9;937:29;:::i;:::-;927:39;;1016:2;1005:9;1001:18;988:32;-1:-1:-1;;;;;1053:5:1;1049:38;1042:5;1039:49;1029:77;;1102:1;1099;1092:12;1029:77;1125:5;1115:15;;;770:366;;;;;:::o;1141:250::-;1226:1;1236:113;1250:6;1247:1;1244:13;1236:113;;;1326:11;;;1320:18;1307:11;;;1300:39;1272:2;1265:10;1236:113;;;-1:-1:-1;;1383:1:1;1365:16;;1358:27;1141:250::o;1396:271::-;1438:3;1476:5;1470:12;1503:6;1498:3;1491:19;1519:76;1588:6;1581:4;1576:3;1572:14;1565:4;1558:5;1554:16;1519:76;:::i;:::-;1649:2;1628:15;-1:-1:-1;;1624:29:1;1615:39;;;;1656:4;1611:50;;1396:271;-1:-1:-1;;1396:271:1:o;1672:220::-;1821:2;1810:9;1803:21;1784:4;1841:45;1882:2;1871:9;1867:18;1859:6;1841:45;:::i;1897:180::-;1956:6;2009:2;1997:9;1988:7;1984:23;1980:32;1977:52;;;2025:1;2022;2015:12;1977:52;-1:-1:-1;2048:23:1;;1897:180;-1:-1:-1;1897:180:1:o;2290:254::-;2358:6;2366;2419:2;2407:9;2398:7;2394:23;2390:32;2387:52;;;2435:1;2432;2425:12;2387:52;2458:29;2477:9;2458:29;:::i;:::-;2448:39;2534:2;2519:18;;;;2506:32;;-1:-1:-1;;;2290:254:1:o;2549:163::-;2616:20;;2676:10;2665:22;;2655:33;;2645:61;;2702:1;2699;2692:12;2717:156;2783:20;;2843:4;2832:16;;2822:27;;2812:55;;2863:1;2860;2853:12;2878:460;2970:6;2978;2986;2994;3002;3055:3;3043:9;3034:7;3030:23;3026:33;3023:53;;;3072:1;3069;3062:12;3023:53;3095:28;3113:9;3095:28;:::i;:::-;3085:38;;3170:2;3159:9;3155:18;3142:32;3132:42;;3193:36;3225:2;3214:9;3210:18;3193:36;:::i;:::-;2878:460;;;;-1:-1:-1;3183:46:1;;3276:2;3261:18;;3248:32;;-1:-1:-1;3327:3:1;3312:19;3299:33;;2878:460;-1:-1:-1;;2878:460:1:o;3525:186::-;3584:6;3637:2;3625:9;3616:7;3612:23;3608:32;3605:52;;;3653:1;3650;3643:12;3605:52;3676:29;3695:9;3676:29;:::i;3716:328::-;3793:6;3801;3809;3862:2;3850:9;3841:7;3837:23;3833:32;3830:52;;;3878:1;3875;3868:12;3830:52;3901:29;3920:9;3901:29;:::i;:::-;3891:39;;3949:38;3983:2;3972:9;3968:18;3949:38;:::i;:::-;3939:48;;4034:2;4023:9;4019:18;4006:32;3996:42;;3716:328;;;;;:::o;4049:248::-;4117:6;4125;4178:2;4166:9;4157:7;4153:23;4149:32;4146:52;;;4194:1;4191;4184:12;4146:52;-1:-1:-1;;4217:23:1;;;4287:2;4272:18;;;4259:32;;-1:-1:-1;4049:248:1:o;4581:127::-;4642:10;4637:3;4633:20;4630:1;4623:31;4673:4;4670:1;4663:15;4697:4;4694:1;4687:15;4713:340;4857:2;4842:18;;4890:1;4879:13;;4869:144;;4935:10;4930:3;4926:20;4923:1;4916:31;4970:4;4967:1;4960:15;4998:4;4995:1;4988:15;4869:144;5022:25;;;4713:340;:::o;5693:127::-;5754:10;5749:3;5745:20;5742:1;5735:31;5785:4;5782:1;5775:15;5809:4;5806:1;5799:15;5825:632;5890:5;-1:-1:-1;;;;;5961:2:1;5953:6;5950:14;5947:40;;;5967:18;;:::i;:::-;6042:2;6036:9;6010:2;6096:15;;-1:-1:-1;;6092:24:1;;;6118:2;6088:33;6084:42;6072:55;;;6142:18;;;6162:22;;;6139:46;6136:72;;;6188:18;;:::i;:::-;6228:10;6224:2;6217:22;6257:6;6248:15;;6287:6;6279;6272:22;6327:3;6318:6;6313:3;6309:16;6306:25;6303:45;;;6344:1;6341;6334:12;6303:45;6394:6;6389:3;6382:4;6374:6;6370:17;6357:44;6449:1;6442:4;6433:6;6425;6421:19;6417:30;6410:41;;;;5825:632;;;;;:::o;6462:451::-;6531:6;6584:2;6572:9;6563:7;6559:23;6555:32;6552:52;;;6600:1;6597;6590:12;6552:52;6640:9;6627:23;-1:-1:-1;;;;;6665:6:1;6662:30;6659:50;;;6705:1;6702;6695:12;6659:50;6728:22;;6781:4;6773:13;;6769:27;-1:-1:-1;6759:55:1;;6810:1;6807;6800:12;6759:55;6833:74;6899:7;6894:2;6881:16;6876:2;6872;6868:11;6833:74;:::i;6918:258::-;6985:6;6993;7046:2;7034:9;7025:7;7021:23;7017:32;7014:52;;;7062:1;7059;7052:12;7014:52;7085:29;7104:9;7085:29;:::i;:::-;7075:39;;7133:37;7166:2;7155:9;7151:18;7133:37;:::i;:::-;7123:47;;6918:258;;;;;:::o;7181:632::-;7352:2;7404:21;;;7474:13;;7377:18;;;7496:22;;;7323:4;;7352:2;7575:15;;;;7549:2;7534:18;;;7323:4;7618:169;7632:6;7629:1;7626:13;7618:169;;;7693:13;;7681:26;;7762:15;;;;7727:12;;;;7654:1;7647:9;7618:169;;;-1:-1:-1;7804:3:1;;7181:632;-1:-1:-1;;;;;;7181:632:1:o;7818:535::-;7919:6;7927;7935;7943;7951;7959;8012:3;8000:9;7991:7;7987:23;7983:33;7980:53;;;8029:1;8026;8019:12;7980:53;8052:29;8071:9;8052:29;:::i;:::-;8042:39;;8100:37;8133:2;8122:9;8118:18;8100:37;:::i;:::-;8090:47;;8184:2;8173:9;8169:18;8156:32;8146:42;;8207:36;8239:2;8228:9;8224:18;8207:36;:::i;:::-;8197:46;;8290:3;8279:9;8275:19;8262:33;8252:43;;8342:3;8331:9;8327:19;8314:33;8304:43;;7818:535;;;;;;;;:::o;8358:118::-;8444:5;8437:13;8430:21;8423:5;8420:32;8410:60;;8466:1;8463;8456:12;8481:315;8546:6;8554;8607:2;8595:9;8586:7;8582:23;8578:32;8575:52;;;8623:1;8620;8613:12;8575:52;8646:29;8665:9;8646:29;:::i;:::-;8636:39;;8725:2;8714:9;8710:18;8697:32;8738:28;8760:5;8738:28;:::i;8801:667::-;8896:6;8904;8912;8920;8973:3;8961:9;8952:7;8948:23;8944:33;8941:53;;;8990:1;8987;8980:12;8941:53;9013:29;9032:9;9013:29;:::i;:::-;9003:39;;9061:38;9095:2;9084:9;9080:18;9061:38;:::i;:::-;9051:48;;9146:2;9135:9;9131:18;9118:32;9108:42;;9201:2;9190:9;9186:18;9173:32;-1:-1:-1;;;;;9220:6:1;9217:30;9214:50;;;9260:1;9257;9250:12;9214:50;9283:22;;9336:4;9328:13;;9324:27;-1:-1:-1;9314:55:1;;9365:1;9362;9355:12;9314:55;9388:74;9454:7;9449:2;9436:16;9431:2;9427;9423:11;9388:74;:::i;:::-;9378:84;;;8801:667;;;;;;;:::o;9473:268::-;9544:6;9597:2;9585:9;9576:7;9572:23;9568:32;9565:52;;;9613:1;9610;9603:12;9565:52;9652:9;9639:23;9691:1;9684:5;9681:12;9671:40;;9707:1;9704;9697:12;9746:260;9814:6;9822;9875:2;9863:9;9854:7;9850:23;9846:32;9843:52;;;9891:1;9888;9881:12;9843:52;9914:29;9933:9;9914:29;:::i;:::-;9904:39;;9962:38;9996:2;9985:9;9981:18;9962:38;:::i;10011:184::-;10069:6;10122:2;10110:9;10101:7;10097:23;10093:32;10090:52;;;10138:1;10135;10128:12;10090:52;10161:28;10179:9;10161:28;:::i;10200:380::-;10279:1;10275:12;;;;10322;;;10343:61;;10397:4;10389:6;10385:17;10375:27;;10343:61;10450:2;10442:6;10439:14;10419:18;10416:38;10413:161;;10496:10;10491:3;10487:20;10484:1;10477:31;10531:4;10528:1;10521:15;10559:4;10556:1;10549:15;10413:161;;10200:380;;;:::o;10585:352::-;10787:2;10769:21;;;10826:2;10806:18;;;10799:30;10865;10860:2;10845:18;;10838:58;10928:2;10913:18;;10585:352::o;10942:127::-;11003:10;10998:3;10994:20;10991:1;10984:31;11034:4;11031:1;11024:15;11058:4;11055:1;11048:15;11074:125;11139:9;;;11160:10;;;11157:36;;;11173:18;;:::i;11204:404::-;11406:2;11388:21;;;11445:2;11425:18;;;11418:30;11484:34;11479:2;11464:18;;11457:62;-1:-1:-1;;;11550:2:1;11535:18;;11528:38;11598:3;11583:19;;11204:404::o;11613:351::-;11815:2;11797:21;;;11854:2;11834:18;;;11827:30;11893:29;11888:2;11873:18;;11866:57;11955:2;11940:18;;11613:351::o;12414:335::-;12616:2;12598:21;;;12655:2;12635:18;;;12628:30;-1:-1:-1;;;12689:2:1;12674:18;;12667:41;12740:2;12725:18;;12414:335::o;12754:168::-;12827:9;;;12858;;12875:15;;;12869:22;;12855:37;12845:71;;12896:18;;:::i;12927:128::-;12994:9;;;13015:11;;;13012:37;;;13029:18;;:::i;13192:217::-;13232:1;13258;13248:132;;13302:10;13297:3;13293:20;13290:1;13283:31;13337:4;13334:1;13327:15;13365:4;13362:1;13355:15;13248:132;-1:-1:-1;13394:9:1;;13192:217::o;13540:545::-;13642:2;13637:3;13634:11;13631:448;;;13678:1;13703:5;13699:2;13692:17;13748:4;13744:2;13734:19;13818:2;13806:10;13802:19;13799:1;13795:27;13789:4;13785:38;13854:4;13842:10;13839:20;13836:47;;;-1:-1:-1;13877:4:1;13836:47;13932:2;13927:3;13923:12;13920:1;13916:20;13910:4;13906:31;13896:41;;13987:82;14005:2;13998:5;13995:13;13987:82;;;14050:17;;;14031:1;14020:13;13987:82;;;13991:3;;;13540:545;;;:::o;14261:1352::-;14387:3;14381:10;-1:-1:-1;;;;;14406:6:1;14403:30;14400:56;;;14436:18;;:::i;:::-;14465:97;14555:6;14515:38;14547:4;14541:11;14515:38;:::i;:::-;14509:4;14465:97;:::i;:::-;14617:4;;14681:2;14670:14;;14698:1;14693:663;;;;15400:1;15417:6;15414:89;;;-1:-1:-1;15469:19:1;;;15463:26;15414:89;-1:-1:-1;;14218:1:1;14214:11;;;14210:24;14206:29;14196:40;14242:1;14238:11;;;14193:57;15516:81;;14663:944;;14693:663;13487:1;13480:14;;;13524:4;13511:18;;-1:-1:-1;;14729:20:1;;;14847:236;14861:7;14858:1;14855:14;14847:236;;;14950:19;;;14944:26;14929:42;;15042:27;;;;15010:1;14998:14;;;;14877:19;;14847:236;;;14851:3;15111:6;15102:7;15099:19;15096:201;;;15172:19;;;15166:26;-1:-1:-1;;15255:1:1;15251:14;;;15267:3;15247:24;15243:37;15239:42;15224:58;15209:74;;15096:201;-1:-1:-1;;;;;15343:1:1;15327:14;;;15323:22;15310:36;;-1:-1:-1;14261:1352:1:o;15618:345::-;15820:2;15802:21;;;15859:2;15839:18;;;15832:30;-1:-1:-1;;;15893:2:1;15878:18;;15871:51;15954:2;15939:18;;15618:345::o;15968:127::-;16029:10;16024:3;16020:20;16017:1;16010:31;16060:4;16057:1;16050:15;16084:4;16081:1;16074:15;18145:1187;18422:3;18451:1;18484:6;18478:13;18514:36;18540:9;18514:36;:::i;:::-;18569:1;18586:18;;;18613:133;;;;18760:1;18755:356;;;;18579:532;;18613:133;-1:-1:-1;;18646:24:1;;18634:37;;18719:14;;18712:22;18700:35;;18691:45;;;-1:-1:-1;18613:133:1;;18755:356;18786:6;18783:1;18776:17;18816:4;18861:2;18858:1;18848:16;18886:1;18900:165;18914:6;18911:1;18908:13;18900:165;;;18992:14;;18979:11;;;18972:35;19035:16;;;;18929:10;;18900:165;;;18904:3;;;19094:6;19089:3;19085:16;19078:23;;18579:532;;;;;19142:6;19136:13;19158:68;19217:8;19212:3;19205:4;19197:6;19193:17;19158:68;:::i;:::-;-1:-1:-1;;;19248:18:1;;19275:22;;;19324:1;19313:13;;18145:1187;-1:-1:-1;;;;18145:1187:1:o;21540:245::-;21607:6;21660:2;21648:9;21639:7;21635:23;21631:32;21628:52;;;21676:1;21673;21666:12;21628:52;21708:9;21702:16;21727:28;21749:5;21727:28;:::i;21790:172::-;21857:10;21887;;;21899;;;21883:27;;21922:11;;;21919:37;;;21936:18;;:::i;:::-;21919:37;21790:172;;;;:::o;22352:489::-;-1:-1:-1;;;;;22621:15:1;;;22603:34;;22673:15;;22668:2;22653:18;;22646:43;22720:2;22705:18;;22698:34;;;22768:3;22763:2;22748:18;;22741:31;;;22546:4;;22789:46;;22815:19;;22807:6;22789:46;:::i;:::-;22781:54;22352:489;-1:-1:-1;;;;;;22352:489:1:o;22846:249::-;22915:6;22968:2;22956:9;22947:7;22943:23;22939:32;22936:52;;;22984:1;22981;22974:12;22936:52;23016:9;23010:16;23035:30;23059:5;23035:30;:::i

Swarm Source

ipfs://9ef1acd5285d20115345b4cf46436f3a032e21ad59af2e2a39fc10e3c12f5b83
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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