ETH Price: $3,365.21 (+0.09%)

Token

CHRYSALISM (CHRY)
 

Overview

Max Total Supply

0 CHRY

Holders

1,346

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CHRY
0x12B2265604A1604786FFD2A8ecEa68D4d6370bA3
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

You started the CHRYSALISM EXPERIENCE and took the daring step into our lab and now, you stand as the co-creator of your own NFT. Your essence has been frozen within it, both off-chain and on-chain. Observe the convergence of the natural and the synthetic, of elegance and stability. You are CHRYSALISM.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LarvaFactory

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-02-10
*/

//            _____                    _____                    _____                _____          
//           /\    \                  /\    \                  /\    \              |\    \         
//          /::\    \                /::\____\                /::\    \             |:\____\        
//         /::::\    \              /:::/    /               /::::\    \            |::|   |        
//        /::::::\    \            /:::/    /               /::::::\    \           |::|   |        
//       /:::/\:::\    \          /:::/    /               /:::/\:::\    \          |::|   |        
//      /:::/  \:::\    \        /:::/____/               /:::/__\:::\    \         |::|   |        
//     /:::/    \:::\    \      /::::\    \              /::::\   \:::\    \        |::|   |        
//    /:::/    / \:::\    \    /::::::\    \   _____    /::::::\   \:::\    \       |::|___|______  
//   /:::/    /   \:::\    \  /:::/\:::\    \ /\    \  /:::/\:::\   \:::\____\      /::::::::\    \ 
//  /:::/____/     \:::\____\/:::/  \:::\    /::\____\/:::/  \:::\   \:::|    |    /::::::::::\____\
//  \:::\    \      \::/    /\::/    \:::\  /:::/    /\::/   |::::\  /:::|____|   /:::/~~~~/~~      
//   \:::\    \      \/____/  \/____/ \:::\/:::/    /  \/____|:::::\/:::/    /   /:::/    /         
//    \:::\    \                       \::::::/    /         |:::::::::/    /   /:::/    /          
//     \:::\    \                       \::::/    /          |::|\::::/    /   /:::/    /           
//      \:::\    \                      /:::/    /           |::| \::/____/    \::/    /            
//       \:::\    \                    /:::/    /            |::|  ~|           \/____/             
//        \:::\    \                  /:::/    /             |::|   |                               
//         \:::\____\                /:::/    /              \::|   |                               
//          \::/    /                \::/    /                \:|   |                               
//           \/____/                  \/____/                  \|___|                               
//                                                                                   





// File: operator-filter-registry/src/lib/Constants.sol


pragma solidity ^0.8.17;

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

// File: operator-filter-registry/src/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: operator-filter-registry/src/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: operator-filter-registry/src/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/SafeMath.sol


// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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


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

pragma solidity ^0.8.0;


// 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/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: @openzeppelin/contracts/token/ERC721/ERC721.sol


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

pragma solidity ^0.8.0;








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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _owners[tokenId] = to;

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

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

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

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

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

        // Clear approvals
        delete _tokenApprovals[tokenId];

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

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

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

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

        emit Transfer(from, to, tokenId);

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;



/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}

// File: contracts/LarvaFactory.sol

//SPDX-License-Identifier: MIT
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721)

pragma solidity ^0.8.17;






















contract LarvaFactory is 
    ERC721,
    ERC2981,
    Ownable,
    DefaultOperatorFilterer,
    ReentrancyGuard {   
    using Counters for Counters.Counter;
    using Strings for uint256;

    Counters.Counter private tokenCounter;

    address chryDnaContract;

    string private baseURI;
    string public verificationHash;

    address private mintPasses;

    bool public isRedeemPeriodActive;
    bool public isHatchPeriodActive;

    bool public isMetadataFrozen;

    mapping(uint256 => bytes32) public seedOf;
    mapping(uint256 => bytes32) public hatchDataOf;
    mapping(uint256 => uint256) public accountNonceOf;
    mapping(uint256 => uint8) public signOf;
    mapping(uint256 => bool) public hatched;
    
    // ============ EVENTS ============

    event Minted(
        address indexed buyer, 
        uint256 indexed tokenId);

    event Hatched(
        address indexed hatcher, 
        uint256 indexed tokenId);        

    // ============= ERRORS =============

    error BurnFailed(uint256 tokenId);
    error NotMintPassOwner(uint256 tokenId, address collector);

    // ============ ACCESS CONTROL/SANITY MODIFIERS ============

    modifier canUpdateMetadata() {
        require(!isMetadataFrozen, "Metadata is frozen");
        _;
    }

    modifier redeemPeriodActive() {
        require(isRedeemPeriodActive, "Redeem period is not open");
        _;
    }

    modifier hatchPeriodActive() {
        require(isHatchPeriodActive, "Hatch period is not open");
        _;
    }
        
    modifier onlyTokenHolder(uint256 tokenId) {
        require(msg.sender == ownerOf(tokenId), "Only the owner can hatch");
        _;
    }

    modifier isValidSign(uint8 sign) {
        require(
            sign >= 0 && sign < 12,
            "Sign must be between 0 and 11 inclusive"
        );
        _;
    }    

    constructor(address _mintPasses
    ) ERC721("CHRYSALISM", "CHRY") {
        mintPasses = _mintPasses;
    }

    // ============ PUBLIC FUNCTIONS FOR REDEEMING AND HATCHING ============

    function redeem(uint8 numberOfTokens, uint256[] calldata mintPassTokenIds, uint8[] memory signs, uint256 accountNonce)
        external
        nonReentrant
        redeemPeriodActive
    {
        for (uint8 i = 0; i < numberOfTokens; i++) {
            ERC721PartnerSeaDropBurnable mintPassContract = ERC721PartnerSeaDropBurnable(mintPasses);

            if (mintPassContract.ownerOf(mintPassTokenIds[i]) != msg.sender) {
                revert NotMintPassOwner(mintPassTokenIds[i], msg.sender);
            }

            mintPassContract.burn(mintPassTokenIds[i]);

            mint(signs[i], accountNonce);
        }
    }

    function hatch(uint256 tokenId, bytes32 hatchData) 
        external 
        nonReentrant 
        hatchPeriodActive
        onlyTokenHolder(tokenId) {
        require(hatched[tokenId] == false, "Token is hatched already");

        hatchDataOf[tokenId] = hatchData;
        hatched[tokenId] = true;

        emit Hatched(
            msg.sender, 
            tokenId);  
    }

    // ============ PUBLIC READ-ONLY FUNCTIONS ============

    function getBaseURI() external view returns (string memory) {
        return baseURI;
    }

    function getLastTokenId() external view returns (uint256) {
        return tokenCounter.current();
    }

    function getSeed(uint tokenId) public view returns(bytes32) {
        return seedOf[tokenId];
    }

    function getHatchData(uint tokenId) public view returns(bytes32) {
        return hatchDataOf[tokenId];
    }    

    function getSign(uint tokenId) public view returns(uint8) {
        return signOf[tokenId];
    }

    function getAccountNonce(uint tokenId) public view returns(uint256) {
        return accountNonceOf[tokenId];
    }    

    function getHatched(uint tokenId) public view returns(bool) {
        return hatched[tokenId];
    }

    // ============ OWNER-ONLY ADMIN FUNCTIONS ============

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

    // prevent updating of baseUri. cannot be reversed
    function freezeMetadata() 
        external
        onlyOwner
    {
        isMetadataFrozen = true;
    }

    function setBaseURI(string memory _baseURI) 
        external 
        onlyOwner
        canUpdateMetadata 
    {
        baseURI = _baseURI;
    }

    function setVerificationHash(string memory _verificationHash)
        external
        onlyOwner
    {
        verificationHash = _verificationHash;
    }

    function setIsRedeemPeriodActive(bool _isRedeemPeriodActive)
        external
        onlyOwner
    {
        isRedeemPeriodActive = _isRedeemPeriodActive;
    }

    function setIsHatchPeriodActive(bool _isHatchPeriodActive)
        external
        onlyOwner
    {
        isHatchPeriodActive = _isHatchPeriodActive;
    }

    function withdraw() 
        public 
        onlyOwner 
    {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function withdrawTokens(IERC20 token) 
        public 
        onlyOwner 
    {
        uint256 balance = token.balanceOf(address(this));
        token.transfer(msg.sender, balance);
    }

    // ============ SUPPORTING FUNCTIONS ============ 

    function mint(uint8 sign, uint256 accountNonce)
        isValidSign(sign)
        private
    {
        uint256 tokenId = nextTokenId();

        bytes32 seed = bytes32(keccak256(abi.encodePacked(msg.sender, sign, block.number, tokenId)));

        seedOf[tokenId] = seed;
        signOf[tokenId] = sign;
        accountNonceOf[tokenId] = accountNonce;
        hatched[tokenId] = false;

        _safeMint(msg.sender, tokenId);

        emit Minted(
            msg.sender, 
            tokenId);  
    }

    function nextTokenId() 
        private
        returns (uint256) 
    {
        tokenCounter.increment();
        return tokenCounter.current();
    }

    // ============ FUNCTION OVERRIDES ============

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC2981)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

        return
            string(abi.encodePacked(baseURI, "/", tokenId.toString()));
    }

    // OPERATOR FILTER OVERRIDES
    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);
    }
}

contract ERC721PartnerSeaDropBurnable {
    function burn(uint256 tokenId) external {}
    function ownerOf(uint256 tokenId) external view returns (address) {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_mintPasses","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BurnFailed","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"collector","type":"address"}],"name":"NotMintPassOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":"hatcher","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Hatched","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Minted","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":"uint256","name":"","type":"uint256"}],"name":"accountNonceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAccountNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHatchData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHatched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSeed","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSign","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"hatchData","type":"bytes32"}],"name":"hatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hatchDataOf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hatched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isHatchPeriodActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRedeemPeriodActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfTokens","type":"uint8"},{"internalType":"uint256[]","name":"mintPassTokenIds","type":"uint256[]"},{"internalType":"uint8[]","name":"signs","type":"uint8[]"},{"internalType":"uint256","name":"accountNonce","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seedOf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"_baseURI","type":"string"}],"name":"setBaseURI","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":"bool","name":"_isHatchPeriodActive","type":"bool"}],"name":"setIsHatchPeriodActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRedeemPeriodActive","type":"bool"}],"name":"setIsRedeemPeriodActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_verificationHash","type":"string"}],"name":"setVerificationHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"signOf","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"verificationHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002d6f38038062002d6f833981016040819052620000349162000290565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600a8152602001694348525953414c49534d60b01b815250604051806040016040528060048152602001634348525960e01b81525081600090816200009c919062000367565b506001620000ab828262000367565b505050620000c8620000c26200023a60201b60201c565b6200023e565b6daaeb6d7670e522a718067333cd4e3b156200020d5780156200015b57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200013c57600080fd5b505af115801562000151573d6000803e3d6000fd5b505050506200020d565b6001600160a01b03821615620001ac5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000121565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001f357600080fd5b505af115801562000208573d6000803e3d6000fd5b505050505b50506001600955600e80546001600160a01b0319166001600160a01b039290921691909117905562000433565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215620002a357600080fd5b81516001600160a01b0381168114620002bb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002ed57607f821691505b6020821081036200030e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200036257600081815260208120601f850160051c810160208610156200033d5750805b601f850160051c820191505b818110156200035e5782815560010162000349565b5050505b505050565b81516001600160401b03811115620003835762000383620002c2565b6200039b81620003948454620002d8565b8462000314565b602080601f831160018114620003d35760008415620003ba5750858301515b600019600386901b1c1916600185901b1785556200035e565b600085815260208120601f198616915b828110156200040457888601518255948401946001909101908401620003e3565b5085821015620004235787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61292c80620004436000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063b88d4fde116100c3578063d111515d11610087578063d111515d146105ec578063e0d4ea37146105f4578063e985e9c514610614578063ec8451da14610627578063f2fde38b1461064a578063f701a20a1461065d57600080fd5b8063b88d4fde1461057b578063bc5402a71461058e578063c0c36a37146105ae578063c87b56dd146105b6578063ce1095e2146105c957600080fd5b80638c77b42d116101155780638c77b42d146104e75780638da5cb5b146104fa578063918f49fa1461050b57806395d89b4114610540578063a22cb46514610548578063a32afbf31461055b57600080fd5b8063715018a61461048157806381842d8f1461048957806382829f74146104ac57806383c4c00d146104cc57806389d9376c146104d457600080fd5b806342842e0e116101ea5780635804236d116101ae5780635804236d1461040d5780636321367d1461042d5780636352211e1461044057806365cb53581461045357806370a0823114610466578063714c53981461047957600080fd5b806342842e0e1461039257806344879ca8146103a557806349df728c146103b957806352d8b2f2146103cc57806355f804b3146103fa57600080fd5b80630e24495e1161023c5780630e24495e1461030957806323b872dd1461031d57806324f985e9146103305780632a55205a146103435780633ccfd60b1461037557806341f434341461037d57600080fd5b806301ffc9a71461027957806304634d8d146102a157806306fdde03146102b6578063081812fc146102cb578063095ea7b3146102f6575b600080fd5b61028c610287366004611ffa565b610671565b60405190151581526020015b60405180910390f35b6102b46102af366004612033565b61069c565b005b6102be6106b2565b60405161029891906120c8565b6102de6102d93660046120db565b610744565b6040516001600160a01b039091168152602001610298565b6102b46103043660046120f4565b61076b565b600e5461028c90600160b01b900460ff1681565b6102b461032b366004612120565b610784565b6102b461033e366004612200565b6107af565b610356610351366004612249565b6107c3565b604080516001600160a01b039093168352602083019190915201610298565b6102b461086f565b6102de6daaeb6d7670e522a718067333cd4e81565b6102b46103a0366004612120565b6108a6565b600e5461028c90600160a81b900460ff1681565b6102b46103c736600461226b565b6108cb565b6103ec6103da3660046120db565b60009081526010602052604090205490565b604051908152602001610298565b6102b4610408366004612200565b6109b2565b6103ec61041b3660046120db565b60116020526000908152604090205481565b6102b461043b366004612296565b610a1a565b6102de61044e3660046120db565b610a40565b6102b4610461366004612296565b610aa0565b6103ec61047436600461226b565b610ac6565b6102be610b4c565b6102b4610b5b565b61028c6104973660046120db565b60136020526000908152604090205460ff1681565b6103ec6104ba3660046120db565b600f6020526000908152604090205481565b6103ec610b6f565b6102b46104e2366004612249565b610b7f565b6102b46104f5366004612350565b610d04565b6008546001600160a01b03166102de565b61052e6105193660046120db565b60126020526000908152604090205460ff1681565b60405160ff9091168152602001610298565b6102be610f18565b6102b4610556366004612403565b610f27565b6103ec6105693660046120db565b60009081526011602052604090205490565b6102b4610589366004612431565b610f3b565b6103ec61059c3660046120db565b60106020526000908152604090205481565b6102be610f61565b6102be6105c43660046120db565b610fef565b61028c6105d73660046120db565b60009081526013602052604090205460ff1690565b6102b461107c565b6103ec6106023660046120db565b6000908152600f602052604090205490565b61028c6106223660046124b1565b611099565b61052e6106353660046120db565b60009081526012602052604090205460ff1690565b6102b461065836600461226b565b6110c7565b600e5461028c90600160a01b900460ff1681565b60006001600160e01b0319821663152a902d60e11b1480610696575061069682611140565b92915050565b6106a4611165565b6106ae82826111bf565b5050565b6060600080546106c1906124df565b80601f01602080910402602001604051908101604052809291908181526020018280546106ed906124df565b801561073a5780601f1061070f5761010080835404028352916020019161073a565b820191906000526020600020905b81548152906001019060200180831161071d57829003601f168201915b5050505050905090565b600061074f826112bc565b506000908152600460205260409020546001600160a01b031690565b816107758161131b565b61077f83836113d4565b505050565b826001600160a01b038116331461079e5761079e3361131b565b6107a98484846114e4565b50505050565b6107b7611165565b600d6106ae8282612567565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108385750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610857906001600160601b03168761263d565b6108619190612654565b915196919550909350505050565b610877611165565b6040514790339082156108fc029083906000818181858888f193505050501580156106ae573d6000803e3d6000fd5b826001600160a01b03811633146108c0576108c03361131b565b6107a9848484611515565b6108d3611165565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561091a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093e9190612676565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561098e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077f919061268f565b6109ba611165565b600e54600160b01b900460ff1615610a0e5760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b60448201526064015b60405180910390fd5b600c6106ae8282612567565b610a22611165565b600e8054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260408120546001600160a01b0316806106965760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a05565b610aa8611165565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b60006001600160a01b038216610b305760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610a05565b506001600160a01b031660009081526003602052604090205490565b6060600c80546106c1906124df565b610b63611165565b610b6d6000611530565b565b6000610b7a600a5490565b905090565b610b87611582565b600e54600160a81b900460ff16610be05760405162461bcd60e51b815260206004820152601860248201527f486174636820706572696f64206973206e6f74206f70656e00000000000000006044820152606401610a05565b81610bea81610a40565b6001600160a01b0316336001600160a01b031614610c4a5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c7920746865206f776e65722063616e20686174636800000000000000006044820152606401610a05565b60008381526013602052604090205460ff1615610ca95760405162461bcd60e51b815260206004820152601860248201527f546f6b656e206973206861746368656420616c726561647900000000000000006044820152606401610a05565b60008381526010602090815260408083208590556013909152808220805460ff1916600117905551849133917f226357a480bcab31fbd8f2663fe2a14c625d8bab5c1cc23f15afe0b914732cdf9190a3506106ae6001600955565b610d0c611582565b600e54600160a01b900460ff16610d655760405162461bcd60e51b815260206004820152601960248201527f52656465656d20706572696f64206973206e6f74206f70656e000000000000006044820152606401610a05565b60005b8560ff168160ff161015610f0657600e546001600160a01b03163381636352211e888860ff8716818110610d9e57610d9e6126ac565b905060200201356040518263ffffffff1660e01b8152600401610dc391815260200190565b602060405180830381865afa158015610de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0491906126c2565b6001600160a01b031614610e525785858360ff16818110610e2757610e276126ac565b60405163ceeaa8a360e01b815260209091029290920135600483015250336024820152604401610a05565b806001600160a01b03166342966c6887878560ff16818110610e7657610e766126ac565b905060200201356040518263ffffffff1660e01b8152600401610e9b91815260200190565b600060405180830381600087803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050610ef3848360ff1681518110610ee557610ee56126ac565b6020026020010151846115db565b5080610efe816126df565b915050610d68565b50610f116001600955565b5050505050565b6060600180546106c1906124df565b81610f318161131b565b61077f8383611727565b836001600160a01b0381163314610f5557610f553361131b565b610f1185858585611732565b600d8054610f6e906124df565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9a906124df565b8015610fe75780601f10610fbc57610100808354040283529160200191610fe7565b820191906000526020600020905b815481529060010190602001808311610fca57829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b031661104a5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610a05565b600c61105583611764565b6040516020016110669291906126fe565b6040516020818303038152906040529050919050565b611084611165565b600e805460ff60b01b1916600160b01b179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6110cf611165565b6001600160a01b0381166111345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a05565b61113d81611530565b50565b60006001600160e01b0319821663152a902d60e11b14806106965750610696826117f7565b6008546001600160a01b03163314610b6d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a05565b6127106001600160601b038216111561122d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a05565b6001600160a01b0382166112835760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a05565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b031661113d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a05565b6daaeb6d7670e522a718067333cd4e3b1561113d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac919061268f565b61113d57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a05565b60006113df82610a40565b9050806001600160a01b0316836001600160a01b03160361144c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a05565b336001600160a01b038216148061146857506114688133611099565b6114da5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610a05565b61077f8383611847565b6114ee33826118b5565b61150a5760405162461bcd60e51b8152600401610a0590612792565b61077f838383611914565b61077f83838360405180602001604052806000815250610f3b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600954036115d45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a05565b6002600955565b81600c8160ff161061163f5760405162461bcd60e51b815260206004820152602760248201527f5369676e206d757374206265206265747765656e203020616e6420313120696e604482015266636c757369766560c81b6064820152608401610a05565b6000611649611a85565b6040516bffffffffffffffffffffffff193360601b1660208201526001600160f81b031960f887901b1660348201524360358201526055810182905290915060009060750160408051601f1981840301815291815281516020928301206000858152600f845282812082905560128452828120805460ff8b1660ff199182161790915560118552838220899055601390945291909120805490921690915590506116f33383611a9c565b604051829033907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe90600090a35050505050565b6106ae338383611ab6565b61173c33836118b5565b6117585760405162461bcd60e51b8152600401610a0590612792565b6107a984848484611b84565b6060600061177183611bb7565b600101905060008167ffffffffffffffff81111561179157611791612161565b6040519080825280601f01601f1916602001820160405280156117bb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846117c557509392505050565b60006001600160e01b031982166380ac58cd60e01b148061182857506001600160e01b03198216635b5e139f60e01b145b8061069657506301ffc9a760e01b6001600160e01b0319831614610696565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061187c82610a40565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118c183610a40565b9050806001600160a01b0316846001600160a01b031614806118e857506118e88185611099565b8061190c5750836001600160a01b031661190184610744565b6001600160a01b0316145b949350505050565b826001600160a01b031661192782610a40565b6001600160a01b03161461194d5760405162461bcd60e51b8152600401610a05906127df565b6001600160a01b0382166119af5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a05565b6119bc8383836001611c8f565b826001600160a01b03166119cf82610a40565b6001600160a01b0316146119f55760405162461bcd60e51b8152600401610a05906127df565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611a95600a80546001019055565b50600a5490565b6106ae828260405180602001604052806000815250611d17565b816001600160a01b0316836001600160a01b031603611b175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b8f848484611914565b611b9b84848484611d4a565b6107a95760405162461bcd60e51b8152600401610a0590612824565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bf65772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611c22576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c4057662386f26fc10000830492506010015b6305f5e1008310611c58576305f5e100830492506008015b6127108310611c6c57612710830492506004015b60648310611c7e576064830492506002015b600a83106106965760010192915050565b60018111156107a9576001600160a01b03841615611cd5576001600160a01b03841660009081526003602052604081208054839290611ccf908490612876565b90915550505b6001600160a01b038316156107a9576001600160a01b03831660009081526003602052604081208054839290611d0c908490612889565b909155505050505050565b611d218383611e4b565b611d2e6000848484611d4a565b61077f5760405162461bcd60e51b8152600401610a0590612824565b60006001600160a01b0384163b15611e4057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d8e90339089908890889060040161289c565b6020604051808303816000875af1925050508015611dc9575060408051601f3d908101601f19168201909252611dc6918101906128d9565b60015b611e26573d808015611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b508051600003611e1e5760405162461bcd60e51b8152600401610a0590612824565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061190c565b506001949350505050565b6001600160a01b038216611ea15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a05565b6000818152600260205260409020546001600160a01b031615611f065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a05565b611f14600083836001611c8f565b6000818152600260205260409020546001600160a01b031615611f795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a05565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461113d57600080fd5b60006020828403121561200c57600080fd5b813561201781611fe4565b9392505050565b6001600160a01b038116811461113d57600080fd5b6000806040838503121561204657600080fd5b82356120518161201e565b915060208301356001600160601b038116811461206d57600080fd5b809150509250929050565b60005b8381101561209357818101518382015260200161207b565b50506000910152565b600081518084526120b4816020860160208601612078565b601f01601f19169290920160200192915050565b602081526000612017602083018461209c565b6000602082840312156120ed57600080fd5b5035919050565b6000806040838503121561210757600080fd5b82356121128161201e565b946020939093013593505050565b60008060006060848603121561213557600080fd5b83356121408161201e565b925060208401356121508161201e565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121a0576121a0612161565b604052919050565b600067ffffffffffffffff8311156121c2576121c2612161565b6121d5601f8401601f1916602001612177565b90508281528383830111156121e957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561221257600080fd5b813567ffffffffffffffff81111561222957600080fd5b8201601f8101841361223a57600080fd5b61190c848235602084016121a8565b6000806040838503121561225c57600080fd5b50508035926020909101359150565b60006020828403121561227d57600080fd5b81356120178161201e565b801515811461113d57600080fd5b6000602082840312156122a857600080fd5b813561201781612288565b803560ff811681146122c457600080fd5b919050565b600082601f8301126122da57600080fd5b8135602067ffffffffffffffff8211156122f6576122f6612161565b8160051b612305828201612177565b928352848101820192828101908785111561231f57600080fd5b83870192505b8483101561234557612336836122b3565b82529183019190830190612325565b979650505050505050565b60008060008060006080868803121561236857600080fd5b612371866122b3565b9450602086013567ffffffffffffffff8082111561238e57600080fd5b818801915088601f8301126123a257600080fd5b8135818111156123b157600080fd5b8960208260051b85010111156123c657600080fd5b6020830196508095505060408801359150808211156123e457600080fd5b506123f1888289016122c9565b95989497509295606001359392505050565b6000806040838503121561241657600080fd5b82356124218161201e565b9150602083013561206d81612288565b6000806000806080858703121561244757600080fd5b84356124528161201e565b935060208501356124628161201e565b925060408501359150606085013567ffffffffffffffff81111561248557600080fd5b8501601f8101871361249657600080fd5b6124a5878235602084016121a8565b91505092959194509250565b600080604083850312156124c457600080fd5b82356124cf8161201e565b9150602083013561206d8161201e565b600181811c908216806124f357607f821691505b60208210810361251357634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561077f57600081815260208120601f850160051c810160208610156125405750805b601f850160051c820191505b8181101561255f5782815560010161254c565b505050505050565b815167ffffffffffffffff81111561258157612581612161565b6125958161258f84546124df565b84612519565b602080601f8311600181146125ca57600084156125b25750858301515b600019600386901b1c1916600185901b17855561255f565b600085815260208120601f198616915b828110156125f9578886015182559484019460019091019084016125da565b50858210156126175787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761069657610696612627565b60008261267157634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561268857600080fd5b5051919050565b6000602082840312156126a157600080fd5b815161201781612288565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156126d457600080fd5b81516120178161201e565b600060ff821660ff81036126f5576126f5612627565b60010192915050565b600080845461270c816124df565b60018281168015612724576001811461273957612768565b60ff1984168752821515830287019450612768565b8860005260208060002060005b8581101561275f5781548a820152908401908201612746565b50505082870194505b50602f60f81b8452865192506127848382860160208a01612078565b919092010195945050505050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b8181038181111561069657610696612627565b8082018082111561069657610696612627565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128cf9083018461209c565b9695505050505050565b6000602082840312156128eb57600080fd5b815161201781611fe456fea2646970667358221220c22fcca553396610618a8b2e1371abc51a2c5f82def8fc4150a9fd45633dbd7c64736f6c634300081100330000000000000000000000007c729bf7f93ad88686e3a4bb2854b7cffb7dfcb9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063b88d4fde116100c3578063d111515d11610087578063d111515d146105ec578063e0d4ea37146105f4578063e985e9c514610614578063ec8451da14610627578063f2fde38b1461064a578063f701a20a1461065d57600080fd5b8063b88d4fde1461057b578063bc5402a71461058e578063c0c36a37146105ae578063c87b56dd146105b6578063ce1095e2146105c957600080fd5b80638c77b42d116101155780638c77b42d146104e75780638da5cb5b146104fa578063918f49fa1461050b57806395d89b4114610540578063a22cb46514610548578063a32afbf31461055b57600080fd5b8063715018a61461048157806381842d8f1461048957806382829f74146104ac57806383c4c00d146104cc57806389d9376c146104d457600080fd5b806342842e0e116101ea5780635804236d116101ae5780635804236d1461040d5780636321367d1461042d5780636352211e1461044057806365cb53581461045357806370a0823114610466578063714c53981461047957600080fd5b806342842e0e1461039257806344879ca8146103a557806349df728c146103b957806352d8b2f2146103cc57806355f804b3146103fa57600080fd5b80630e24495e1161023c5780630e24495e1461030957806323b872dd1461031d57806324f985e9146103305780632a55205a146103435780633ccfd60b1461037557806341f434341461037d57600080fd5b806301ffc9a71461027957806304634d8d146102a157806306fdde03146102b6578063081812fc146102cb578063095ea7b3146102f6575b600080fd5b61028c610287366004611ffa565b610671565b60405190151581526020015b60405180910390f35b6102b46102af366004612033565b61069c565b005b6102be6106b2565b60405161029891906120c8565b6102de6102d93660046120db565b610744565b6040516001600160a01b039091168152602001610298565b6102b46103043660046120f4565b61076b565b600e5461028c90600160b01b900460ff1681565b6102b461032b366004612120565b610784565b6102b461033e366004612200565b6107af565b610356610351366004612249565b6107c3565b604080516001600160a01b039093168352602083019190915201610298565b6102b461086f565b6102de6daaeb6d7670e522a718067333cd4e81565b6102b46103a0366004612120565b6108a6565b600e5461028c90600160a81b900460ff1681565b6102b46103c736600461226b565b6108cb565b6103ec6103da3660046120db565b60009081526010602052604090205490565b604051908152602001610298565b6102b4610408366004612200565b6109b2565b6103ec61041b3660046120db565b60116020526000908152604090205481565b6102b461043b366004612296565b610a1a565b6102de61044e3660046120db565b610a40565b6102b4610461366004612296565b610aa0565b6103ec61047436600461226b565b610ac6565b6102be610b4c565b6102b4610b5b565b61028c6104973660046120db565b60136020526000908152604090205460ff1681565b6103ec6104ba3660046120db565b600f6020526000908152604090205481565b6103ec610b6f565b6102b46104e2366004612249565b610b7f565b6102b46104f5366004612350565b610d04565b6008546001600160a01b03166102de565b61052e6105193660046120db565b60126020526000908152604090205460ff1681565b60405160ff9091168152602001610298565b6102be610f18565b6102b4610556366004612403565b610f27565b6103ec6105693660046120db565b60009081526011602052604090205490565b6102b4610589366004612431565b610f3b565b6103ec61059c3660046120db565b60106020526000908152604090205481565b6102be610f61565b6102be6105c43660046120db565b610fef565b61028c6105d73660046120db565b60009081526013602052604090205460ff1690565b6102b461107c565b6103ec6106023660046120db565b6000908152600f602052604090205490565b61028c6106223660046124b1565b611099565b61052e6106353660046120db565b60009081526012602052604090205460ff1690565b6102b461065836600461226b565b6110c7565b600e5461028c90600160a01b900460ff1681565b60006001600160e01b0319821663152a902d60e11b1480610696575061069682611140565b92915050565b6106a4611165565b6106ae82826111bf565b5050565b6060600080546106c1906124df565b80601f01602080910402602001604051908101604052809291908181526020018280546106ed906124df565b801561073a5780601f1061070f5761010080835404028352916020019161073a565b820191906000526020600020905b81548152906001019060200180831161071d57829003601f168201915b5050505050905090565b600061074f826112bc565b506000908152600460205260409020546001600160a01b031690565b816107758161131b565b61077f83836113d4565b505050565b826001600160a01b038116331461079e5761079e3361131b565b6107a98484846114e4565b50505050565b6107b7611165565b600d6106ae8282612567565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108385750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610857906001600160601b03168761263d565b6108619190612654565b915196919550909350505050565b610877611165565b6040514790339082156108fc029083906000818181858888f193505050501580156106ae573d6000803e3d6000fd5b826001600160a01b03811633146108c0576108c03361131b565b6107a9848484611515565b6108d3611165565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561091a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093e9190612676565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561098e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077f919061268f565b6109ba611165565b600e54600160b01b900460ff1615610a0e5760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b60448201526064015b60405180910390fd5b600c6106ae8282612567565b610a22611165565b600e8054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260408120546001600160a01b0316806106965760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a05565b610aa8611165565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b60006001600160a01b038216610b305760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610a05565b506001600160a01b031660009081526003602052604090205490565b6060600c80546106c1906124df565b610b63611165565b610b6d6000611530565b565b6000610b7a600a5490565b905090565b610b87611582565b600e54600160a81b900460ff16610be05760405162461bcd60e51b815260206004820152601860248201527f486174636820706572696f64206973206e6f74206f70656e00000000000000006044820152606401610a05565b81610bea81610a40565b6001600160a01b0316336001600160a01b031614610c4a5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c7920746865206f776e65722063616e20686174636800000000000000006044820152606401610a05565b60008381526013602052604090205460ff1615610ca95760405162461bcd60e51b815260206004820152601860248201527f546f6b656e206973206861746368656420616c726561647900000000000000006044820152606401610a05565b60008381526010602090815260408083208590556013909152808220805460ff1916600117905551849133917f226357a480bcab31fbd8f2663fe2a14c625d8bab5c1cc23f15afe0b914732cdf9190a3506106ae6001600955565b610d0c611582565b600e54600160a01b900460ff16610d655760405162461bcd60e51b815260206004820152601960248201527f52656465656d20706572696f64206973206e6f74206f70656e000000000000006044820152606401610a05565b60005b8560ff168160ff161015610f0657600e546001600160a01b03163381636352211e888860ff8716818110610d9e57610d9e6126ac565b905060200201356040518263ffffffff1660e01b8152600401610dc391815260200190565b602060405180830381865afa158015610de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0491906126c2565b6001600160a01b031614610e525785858360ff16818110610e2757610e276126ac565b60405163ceeaa8a360e01b815260209091029290920135600483015250336024820152604401610a05565b806001600160a01b03166342966c6887878560ff16818110610e7657610e766126ac565b905060200201356040518263ffffffff1660e01b8152600401610e9b91815260200190565b600060405180830381600087803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050610ef3848360ff1681518110610ee557610ee56126ac565b6020026020010151846115db565b5080610efe816126df565b915050610d68565b50610f116001600955565b5050505050565b6060600180546106c1906124df565b81610f318161131b565b61077f8383611727565b836001600160a01b0381163314610f5557610f553361131b565b610f1185858585611732565b600d8054610f6e906124df565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9a906124df565b8015610fe75780601f10610fbc57610100808354040283529160200191610fe7565b820191906000526020600020905b815481529060010190602001808311610fca57829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b031661104a5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610a05565b600c61105583611764565b6040516020016110669291906126fe565b6040516020818303038152906040529050919050565b611084611165565b600e805460ff60b01b1916600160b01b179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6110cf611165565b6001600160a01b0381166111345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a05565b61113d81611530565b50565b60006001600160e01b0319821663152a902d60e11b14806106965750610696826117f7565b6008546001600160a01b03163314610b6d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a05565b6127106001600160601b038216111561122d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a05565b6001600160a01b0382166112835760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a05565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b031661113d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610a05565b6daaeb6d7670e522a718067333cd4e3b1561113d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac919061268f565b61113d57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a05565b60006113df82610a40565b9050806001600160a01b0316836001600160a01b03160361144c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a05565b336001600160a01b038216148061146857506114688133611099565b6114da5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610a05565b61077f8383611847565b6114ee33826118b5565b61150a5760405162461bcd60e51b8152600401610a0590612792565b61077f838383611914565b61077f83838360405180602001604052806000815250610f3b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600954036115d45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a05565b6002600955565b81600c8160ff161061163f5760405162461bcd60e51b815260206004820152602760248201527f5369676e206d757374206265206265747765656e203020616e6420313120696e604482015266636c757369766560c81b6064820152608401610a05565b6000611649611a85565b6040516bffffffffffffffffffffffff193360601b1660208201526001600160f81b031960f887901b1660348201524360358201526055810182905290915060009060750160408051601f1981840301815291815281516020928301206000858152600f845282812082905560128452828120805460ff8b1660ff199182161790915560118552838220899055601390945291909120805490921690915590506116f33383611a9c565b604051829033907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe90600090a35050505050565b6106ae338383611ab6565b61173c33836118b5565b6117585760405162461bcd60e51b8152600401610a0590612792565b6107a984848484611b84565b6060600061177183611bb7565b600101905060008167ffffffffffffffff81111561179157611791612161565b6040519080825280601f01601f1916602001820160405280156117bb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846117c557509392505050565b60006001600160e01b031982166380ac58cd60e01b148061182857506001600160e01b03198216635b5e139f60e01b145b8061069657506301ffc9a760e01b6001600160e01b0319831614610696565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061187c82610a40565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118c183610a40565b9050806001600160a01b0316846001600160a01b031614806118e857506118e88185611099565b8061190c5750836001600160a01b031661190184610744565b6001600160a01b0316145b949350505050565b826001600160a01b031661192782610a40565b6001600160a01b03161461194d5760405162461bcd60e51b8152600401610a05906127df565b6001600160a01b0382166119af5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a05565b6119bc8383836001611c8f565b826001600160a01b03166119cf82610a40565b6001600160a01b0316146119f55760405162461bcd60e51b8152600401610a05906127df565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611a95600a80546001019055565b50600a5490565b6106ae828260405180602001604052806000815250611d17565b816001600160a01b0316836001600160a01b031603611b175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b8f848484611914565b611b9b84848484611d4a565b6107a95760405162461bcd60e51b8152600401610a0590612824565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bf65772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611c22576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c4057662386f26fc10000830492506010015b6305f5e1008310611c58576305f5e100830492506008015b6127108310611c6c57612710830492506004015b60648310611c7e576064830492506002015b600a83106106965760010192915050565b60018111156107a9576001600160a01b03841615611cd5576001600160a01b03841660009081526003602052604081208054839290611ccf908490612876565b90915550505b6001600160a01b038316156107a9576001600160a01b03831660009081526003602052604081208054839290611d0c908490612889565b909155505050505050565b611d218383611e4b565b611d2e6000848484611d4a565b61077f5760405162461bcd60e51b8152600401610a0590612824565b60006001600160a01b0384163b15611e4057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d8e90339089908890889060040161289c565b6020604051808303816000875af1925050508015611dc9575060408051601f3d908101601f19168201909252611dc6918101906128d9565b60015b611e26573d808015611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b508051600003611e1e5760405162461bcd60e51b8152600401610a0590612824565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061190c565b506001949350505050565b6001600160a01b038216611ea15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a05565b6000818152600260205260409020546001600160a01b031615611f065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a05565b611f14600083836001611c8f565b6000818152600260205260409020546001600160a01b031615611f795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a05565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461113d57600080fd5b60006020828403121561200c57600080fd5b813561201781611fe4565b9392505050565b6001600160a01b038116811461113d57600080fd5b6000806040838503121561204657600080fd5b82356120518161201e565b915060208301356001600160601b038116811461206d57600080fd5b809150509250929050565b60005b8381101561209357818101518382015260200161207b565b50506000910152565b600081518084526120b4816020860160208601612078565b601f01601f19169290920160200192915050565b602081526000612017602083018461209c565b6000602082840312156120ed57600080fd5b5035919050565b6000806040838503121561210757600080fd5b82356121128161201e565b946020939093013593505050565b60008060006060848603121561213557600080fd5b83356121408161201e565b925060208401356121508161201e565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121a0576121a0612161565b604052919050565b600067ffffffffffffffff8311156121c2576121c2612161565b6121d5601f8401601f1916602001612177565b90508281528383830111156121e957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561221257600080fd5b813567ffffffffffffffff81111561222957600080fd5b8201601f8101841361223a57600080fd5b61190c848235602084016121a8565b6000806040838503121561225c57600080fd5b50508035926020909101359150565b60006020828403121561227d57600080fd5b81356120178161201e565b801515811461113d57600080fd5b6000602082840312156122a857600080fd5b813561201781612288565b803560ff811681146122c457600080fd5b919050565b600082601f8301126122da57600080fd5b8135602067ffffffffffffffff8211156122f6576122f6612161565b8160051b612305828201612177565b928352848101820192828101908785111561231f57600080fd5b83870192505b8483101561234557612336836122b3565b82529183019190830190612325565b979650505050505050565b60008060008060006080868803121561236857600080fd5b612371866122b3565b9450602086013567ffffffffffffffff8082111561238e57600080fd5b818801915088601f8301126123a257600080fd5b8135818111156123b157600080fd5b8960208260051b85010111156123c657600080fd5b6020830196508095505060408801359150808211156123e457600080fd5b506123f1888289016122c9565b95989497509295606001359392505050565b6000806040838503121561241657600080fd5b82356124218161201e565b9150602083013561206d81612288565b6000806000806080858703121561244757600080fd5b84356124528161201e565b935060208501356124628161201e565b925060408501359150606085013567ffffffffffffffff81111561248557600080fd5b8501601f8101871361249657600080fd5b6124a5878235602084016121a8565b91505092959194509250565b600080604083850312156124c457600080fd5b82356124cf8161201e565b9150602083013561206d8161201e565b600181811c908216806124f357607f821691505b60208210810361251357634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561077f57600081815260208120601f850160051c810160208610156125405750805b601f850160051c820191505b8181101561255f5782815560010161254c565b505050505050565b815167ffffffffffffffff81111561258157612581612161565b6125958161258f84546124df565b84612519565b602080601f8311600181146125ca57600084156125b25750858301515b600019600386901b1c1916600185901b17855561255f565b600085815260208120601f198616915b828110156125f9578886015182559484019460019091019084016125da565b50858210156126175787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761069657610696612627565b60008261267157634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561268857600080fd5b5051919050565b6000602082840312156126a157600080fd5b815161201781612288565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156126d457600080fd5b81516120178161201e565b600060ff821660ff81036126f5576126f5612627565b60010192915050565b600080845461270c816124df565b60018281168015612724576001811461273957612768565b60ff1984168752821515830287019450612768565b8860005260208060002060005b8581101561275f5781548a820152908401908201612746565b50505082870194505b50602f60f81b8452865192506127848382860160208a01612078565b919092010195945050505050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b8181038181111561069657610696612627565b8082018082111561069657610696612627565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128cf9083018461209c565b9695505050505050565b6000602082840312156128eb57600080fd5b815161201781611fe456fea2646970667358221220c22fcca553396610618a8b2e1371abc51a2c5f82def8fc4150a9fd45633dbd7c64736f6c63430008110033

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

0000000000000000000000007c729bf7f93ad88686e3a4bb2854b7cffb7dfcb9

-----Decoded View---------------
Arg [0] : _mintPasses (address): 0x7c729bf7F93aD88686E3a4BB2854B7cfFB7DFcb9

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007c729bf7f93ad88686e3a4bb2854b7cffb7dfcb9


Deployed Bytecode Sourcemap

88298:7927:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94597:291;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;94597:291:0;;;;;;;;92385:170;;;;;;:::i;:::-;;:::i;:::-;;72330:100;;;:::i;:::-;;;;;;;:::i;73842:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2273:32:1;;;2255:51;;2243:2;2228:18;73842:171:0;2109:203:1;95479:157:0;;;;;;:::i;:::-;;:::i;88762:28::-;;;;;-1:-1:-1;;;88762:28:0;;;;;;95644:163;;;;;;:::i;:::-;;:::i;92899:159::-;;;;;;:::i;:::-;;:::i;61581:442::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4823:32:1;;;4805:51;;4887:2;4872:18;;4865:34;;;;4778:18;61581:442:0;4631:274:1;93410:169:0;;;:::i;9974:143::-;;2390:42;9974:143;;95815:171;;;;;;:::i;:::-;;:::i;88722:31::-;;;;;-1:-1:-1;;;88722:31:0;;;;;;93587:194;;;;;;:::i;:::-;;:::i;91853:111::-;;;;;;:::i;:::-;91909:7;91936:20;;;:11;:20;;;;;;;91853:111;;;;5561:25:1;;;5549:2;5534:18;91853:111:0;5415:177:1;92738:153:0;;;;;;:::i;:::-;;:::i;88900:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;93066:166;;;;;;:::i;:::-;;:::i;72040:223::-;;;;;;:::i;:::-;;:::i;93240:162::-;;;;;;:::i;:::-;;:::i;71771:207::-;;;;;;:::i;:::-;;:::i;91529:93::-;;;:::i;45782:103::-;;;:::i;89002:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;88799:41;;;;;;:::i;:::-;;;;;;;;;;;;;;91630:106;;;:::i;91067:391::-;;;;;;:::i;:::-;;:::i;90415:644::-;;;;;;:::i;:::-;;:::i;45134:87::-;45207:6;;-1:-1:-1;;;;;45207:6:0;45134:87;;88956:39;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8686:4:1;8674:17;;;8656:36;;8644:2;8629:18;88956:39:0;8514:184:1;72499:104:0;;;:::i;95295:176::-;;;;;;:::i;:::-;;:::i;92083:117::-;;;;;;:::i;:::-;92142:7;92169:23;;;:14;:23;;;;;;;92083:117;95994:228;;;;;;:::i;:::-;;:::i;88847:46::-;;;;;;:::i;:::-;;;;;;;;;;;;;;88609:30;;;:::i;94959:294::-;;;;;;:::i;:::-;;:::i;92212:102::-;;;;;;:::i;:::-;92266:4;92290:16;;;:7;:16;;;;;;;;;92212:102;92619:111;;;:::i;91744:101::-;;;;;;:::i;:::-;91795:7;91822:15;;;:6;:15;;;;;;;91744:101;74311:164;;;;;;:::i;:::-;;:::i;91976:99::-;;;;;;:::i;:::-;92027:5;92052:15;;;:6;:15;;;;;;;;;91976:99;46040:201;;;;;;:::i;:::-;;:::i;88683:32::-;;;;;-1:-1:-1;;;88683:32:0;;;;;;94597:291;94744:4;-1:-1:-1;;;;;;94786:41:0;;-1:-1:-1;;;94786:41:0;;:94;;;94844:36;94868:11;94844:23;:36::i;:::-;94766:114;94597:291;-1:-1:-1;;94597:291:0:o;92385:170::-;45020:13;:11;:13::i;:::-;92503:44:::1;92522:9;92533:13;92503:18;:44::i;:::-;92385:170:::0;;:::o;72330:100::-;72384:13;72417:5;72410:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72330:100;:::o;73842:171::-;73918:7;73938:23;73953:7;73938:14;:23::i;:::-;-1:-1:-1;73981:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;73981:24:0;;73842:171::o;95479:157::-;95575:8;11756:30;11777:8;11756:20;:30::i;:::-;95596:32:::1;95610:8;95620:7;95596:13;:32::i;:::-;95479:157:::0;;;:::o;95644:163::-;95745:4;-1:-1:-1;;;;;11482:18:0;;11490:10;11482:18;11478:83;;11517:32;11538:10;11517:20;:32::i;:::-;95762:37:::1;95781:4;95787:2;95791:7;95762:18;:37::i;:::-;95644:163:::0;;;;:::o;92899:159::-;45020:13;:11;:13::i;:::-;93014:16:::1;:36;93033:17:::0;93014:16;:36:::1;:::i;61581:442::-:0;61678:7;61736:27;;;:17;:27;;;;;;;;61707:56;;;;;;;;;-1:-1:-1;;;;;61707:56:0;;;;;-1:-1:-1;;;61707:56:0;;;-1:-1:-1;;;;;61707:56:0;;;;;;;;61678:7;;61776:92;;-1:-1:-1;61827:29:0;;;;;;;;;61837:19;61827:29;-1:-1:-1;;;;;61827:29:0;;;;-1:-1:-1;;;61827:29:0;;-1:-1:-1;;;;;61827:29:0;;;;;61776:92;61918:23;;;;61880:21;;62389:5;;61905:36;;-1:-1:-1;;;;;61905:36:0;:10;:36;:::i;:::-;61904:58;;;;:::i;:::-;61983:16;;;;;-1:-1:-1;61581:442:0;;-1:-1:-1;;;;61581:442:0:o;93410:169::-;45020:13;:11;:13::i;:::-;93534:37:::1;::::0;93502:21:::1;::::0;93542:10:::1;::::0;93534:37;::::1;;;::::0;93502:21;;93484:15:::1;93534:37:::0;93484:15;93534:37;93502:21;93542:10;93534:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;95815:171:::0;95920:4;-1:-1:-1;;;;;11482:18:0;;11490:10;11482:18;11478:83;;11517:32;11538:10;11517:20;:32::i;:::-;95937:41:::1;95960:4;95966:2;95970:7;95937:22;:41::i;93587:194::-:0;45020:13;:11;:13::i;:::-;93697:30:::1;::::0;-1:-1:-1;;;93697:30:0;;93721:4:::1;93697:30;::::0;::::1;2255:51:1::0;93679:15:0::1;::::0;-1:-1:-1;;;;;93697:15:0;::::1;::::0;::::1;::::0;2228:18:1;;93697:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93738:35;::::0;-1:-1:-1;;;93738:35:0;;93753:10:::1;93738:35;::::0;::::1;4805:51:1::0;4872:18;;;4865:34;;;93679:48:0;;-1:-1:-1;;;;;;93738:14:0;::::1;::::0;::::1;::::0;4778:18:1;;93738:35:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;92738:153::-:0;45020:13;:11;:13::i;:::-;89555:16:::1;::::0;-1:-1:-1;;;89555:16:0;::::1;;;89554:17;89546:48;;;::::0;-1:-1:-1;;;89546:48:0;;14172:2:1;89546:48:0::1;::::0;::::1;14154:21:1::0;14211:2;14191:18;;;14184:30;-1:-1:-1;;;14230:18:1;;;14223:48;14288:18;;89546:48:0::1;;;;;;;;;92865:7:::2;:18;92875:8:::0;92865:7;:18:::2;:::i;93066:166::-:0;45020:13;:11;:13::i;:::-;93180:20:::1;:44:::0;;;::::1;;-1:-1:-1::0;;;93180:44:0::1;-1:-1:-1::0;;;;93180:44:0;;::::1;::::0;;;::::1;::::0;;93066:166::o;72040:223::-;72112:7;76927:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76927:16:0;;72176:56;;;;-1:-1:-1;;;72176:56:0;;14519:2:1;72176:56:0;;;14501:21:1;14558:2;14538:18;;;14531:30;-1:-1:-1;;;14577:18:1;;;14570:54;14641:18;;72176:56:0;14317:348:1;93240:162:0;45020:13;:11;:13::i;:::-;93352:19:::1;:42:::0;;;::::1;;-1:-1:-1::0;;;93352:42:0::1;-1:-1:-1::0;;;;93352:42:0;;::::1;::::0;;;::::1;::::0;;93240:162::o;71771:207::-;71843:7;-1:-1:-1;;;;;71871:19:0;;71863:73;;;;-1:-1:-1;;;71863:73:0;;14872:2:1;71863:73:0;;;14854:21:1;14911:2;14891:18;;;14884:30;14950:34;14930:18;;;14923:62;-1:-1:-1;;;15001:18:1;;;14994:39;15050:19;;71863:73:0;14670:405:1;71863:73:0;-1:-1:-1;;;;;;71954:16:0;;;;;:9;:16;;;;;;;71771:207::o;91529:93::-;91574:13;91607:7;91600:14;;;;;:::i;45782:103::-;45020:13;:11;:13::i;:::-;45847:30:::1;45874:1;45847:18;:30::i;:::-;45782:103::o:0;91630:106::-;91679:7;91706:22;:12;21332:14;;21240:114;91706:22;91699:29;;91630:106;:::o;91067:391::-;24178:21;:19;:21::i;:::-;89797:19:::1;::::0;-1:-1:-1;;;89797:19:0;::::1;;;89789:56;;;::::0;-1:-1:-1;;;89789:56:0;;15282:2:1;89789:56:0::1;::::0;::::1;15264:21:1::0;15321:2;15301:18;;;15294:30;15360:26;15340:18;;;15333:54;15404:18;;89789:56:0::1;15080:348:1::0;89789:56:0::1;91213:7:::2;89956:16;89964:7;89956;:16::i;:::-;-1:-1:-1::0;;;;;89942:30:0::2;:10;-1:-1:-1::0;;;;;89942:30:0::2;;89934:67;;;::::0;-1:-1:-1;;;89934:67:0;;15635:2:1;89934:67:0::2;::::0;::::2;15617:21:1::0;15674:2;15654:18;;;15647:30;15713:26;15693:18;;;15686:54;15757:18;;89934:67:0::2;15433:348:1::0;89934:67:0::2;91241:16:::3;::::0;;;:7:::3;:16;::::0;;;;;::::3;;:25;91233:62;;;::::0;-1:-1:-1;;;91233:62:0;;15988:2:1;91233:62:0::3;::::0;::::3;15970:21:1::0;16027:2;16007:18;;;16000:30;16066:26;16046:18;;;16039:54;16110:18;;91233:62:0::3;15786:348:1::0;91233:62:0::3;91308:20;::::0;;;:11:::3;:20;::::0;;;;;;;:32;;;91351:7:::3;:16:::0;;;;;;:23;;-1:-1:-1;;91351:23:0::3;91370:4;91351:23;::::0;;91392:56;91320:7;;91414:10:::3;::::0;91392:56:::3;::::0;91308:20;91392:56:::3;89856:1:::2;24222:20:::0;23616:1;24742:7;:22;24559:213;90415:644;24178:21;:19;:21::i;:::-;89671:20:::1;::::0;-1:-1:-1;;;89671:20:0;::::1;;;89663:58;;;::::0;-1:-1:-1;;;89663:58:0;;16341:2:1;89663:58:0::1;::::0;::::1;16323:21:1::0;16380:2;16360:18;;;16353:30;16419:27;16399:18;;;16392:55;16464:18;;89663:58:0::1;16139:349:1::0;89663:58:0::1;90623:7:::2;90618:434;90640:14;90636:18;;:1;:18;;;90618:434;;;90753:10;::::0;-1:-1:-1;;;;;90753:10:0::2;90834;90753::::0;90785:24:::2;90810:16:::0;;:19:::2;::::0;::::2;::::0;;::::2;;;;;:::i;:::-;;;;;;;90785:45;;;;;;;;;;;;;5561:25:1::0;;5549:2;5534:18;;5415:177;90785:45:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;90785:59:0::2;;90781:156;;90889:16;;90906:1;90889:19;;;;;;;;;:::i;:::-;90872:49;::::0;-1:-1:-1;;;90872:49:0;;90889:19:::2;::::0;;::::2;::::0;;;::::2;;90872:49;::::0;::::2;17055:25:1::0;-1:-1:-1;90910:10:0::2;17096:18:1::0;;;17089:60;17028:18;;90872:49:0::2;16881:274:1::0;90781:156:0::2;90953:16;-1:-1:-1::0;;;;;90953:21:0::2;;90975:16;;90992:1;90975:19;;;;;;;;;:::i;:::-;;;;;;;90953:42;;;;;;;;;;;;;5561:25:1::0;;5549:2;5534:18;;5415:177;90953:42:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;91012:28;91017:5;91023:1;91017:8;;;;;;;;;;:::i;:::-;;;;;;;91027:12;91012:4;:28::i;:::-;-1:-1:-1::0;90656:3:0;::::2;::::0;::::2;:::i;:::-;;;;90618:434;;;;24222:20:::0;23616:1;24742:7;:22;24559:213;24222:20;90415:644;;;;;:::o;72499:104::-;72555:13;72588:7;72581:14;;;;;:::i;95295:176::-;95399:8;11756:30;11777:8;11756:20;:30::i;:::-;95420:43:::1;95444:8;95454;95420:23;:43::i;95994:228::-:0;96145:4;-1:-1:-1;;;;;11482:18:0;;11490:10;11482:18;11478:83;;11517:32;11538:10;11517:20;:32::i;:::-;96167:47:::1;96190:4;96196:2;96200:7;96209:4;96167:22;:47::i;88609:30::-:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;94959:294::-;77329:4;76927:16;;;:7;:16;;;;;;95077:13;;-1:-1:-1;;;;;76927:16:0;95108:46;;;;-1:-1:-1;;;95108:46:0;;17542:2:1;95108:46:0;;;17524:21:1;17581:2;17561:18;;;17554:30;-1:-1:-1;;;17600:18:1;;;17593:47;17657:18;;95108:46:0;17340:341:1;95108:46:0;95211:7;95225:18;:7;:16;:18::i;:::-;95194:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;95167:78;;94959:294;;;:::o;92619:111::-;45020:13;:11;:13::i;:::-;92699:16:::1;:23:::0;;-1:-1:-1;;;;92699:23:0::1;-1:-1:-1::0;;;92699:23:0::1;::::0;;92619:111::o;74311:164::-;-1:-1:-1;;;;;74432:25:0;;;74408:4;74432:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;74311:164::o;46040:201::-;45020:13;:11;:13::i;:::-;-1:-1:-1;;;;;46129:22:0;::::1;46121:73;;;::::0;-1:-1:-1;;;46121:73:0;;19057:2:1;46121:73:0::1;::::0;::::1;19039:21:1::0;19096:2;19076:18;;;19069:30;19135:34;19115:18;;;19108:62;-1:-1:-1;;;19186:18:1;;;19179:36;19232:19;;46121:73:0::1;18855:402:1::0;46121:73:0::1;46205:28;46224:8;46205:18;:28::i;:::-;46040:201:::0;:::o;61311:215::-;61413:4;-1:-1:-1;;;;;;61437:41:0;;-1:-1:-1;;;61437:41:0;;:81;;;61482:36;61506:11;61482:23;:36::i;45299:132::-;45207:6;;-1:-1:-1;;;;;45207:6:0;43765:10;45363:23;45355:68;;;;-1:-1:-1;;;45355:68:0;;19464:2:1;45355:68:0;;;19446:21:1;;;19483:18;;;19476:30;19542:34;19522:18;;;19515:62;19594:18;;45355:68:0;19262:356:1;62673:332:0;62389:5;-1:-1:-1;;;;;62776:33:0;;;;62768:88;;;;-1:-1:-1;;;62768:88:0;;19825:2:1;62768:88:0;;;19807:21:1;19864:2;19844:18;;;19837:30;19903:34;19883:18;;;19876:62;-1:-1:-1;;;19954:18:1;;;19947:40;20004:19;;62768:88:0;19623:406:1;62768:88:0;-1:-1:-1;;;;;62875:22:0;;62867:60;;;;-1:-1:-1;;;62867:60:0;;20236:2:1;62867:60:0;;;20218:21:1;20275:2;20255:18;;;20248:30;20314:27;20294:18;;;20287:55;20359:18;;62867:60:0;20034:349:1;62867:60:0;62962:35;;;;;;;;;-1:-1:-1;;;;;62962:35:0;;;;;;-1:-1:-1;;;;;62962:35:0;;;;;;;;;;-1:-1:-1;;;62940:57:0;;;;:19;:57;62673:332::o;83661:135::-;77329:4;76927:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76927:16:0;83735:53;;;;-1:-1:-1;;;83735:53:0;;14519:2:1;83735:53:0;;;14501:21:1;14558:2;14538:18;;;14531:30;-1:-1:-1;;;14577:18:1;;;14570:54;14641:18;;83735:53:0;14317:348:1;11899:647:0;2390:42;12090:45;:49;12086:453;;12389:67;;-1:-1:-1;;;12389:67:0;;12440:4;12389:67;;;20600:34:1;-1:-1:-1;;;;;20670:15:1;;20650:18;;;20643:43;2390:42:0;;12389;;20535:18:1;;12389:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12384:144;;12484:28;;-1:-1:-1;;;12484:28:0;;-1:-1:-1;;;;;2273:32:1;;12484:28:0;;;2255:51:1;2228:18;;12484:28:0;2109:203:1;73360:416:0;73441:13;73457:23;73472:7;73457:14;:23::i;:::-;73441:39;;73505:5;-1:-1:-1;;;;;73499:11:0;:2;-1:-1:-1;;;;;73499:11:0;;73491:57;;;;-1:-1:-1;;;73491:57:0;;20899:2:1;73491:57:0;;;20881:21:1;20938:2;20918:18;;;20911:30;20977:34;20957:18;;;20950:62;-1:-1:-1;;;21028:18:1;;;21021:31;21069:19;;73491:57:0;20697:397:1;73491:57:0;43765:10;-1:-1:-1;;;;;73583:21:0;;;;:62;;-1:-1:-1;73608:37:0;73625:5;43765:10;74311:164;:::i;73608:37::-;73561:173;;;;-1:-1:-1;;;73561:173:0;;21301:2:1;73561:173:0;;;21283:21:1;21340:2;21320:18;;;21313:30;21379:34;21359:18;;;21352:62;21450:31;21430:18;;;21423:59;21499:19;;73561:173:0;21099:425:1;73561:173:0;73747:21;73756:2;73760:7;73747:8;:21::i;74542:335::-;74737:41;43765:10;74770:7;74737:18;:41::i;:::-;74729:99;;;;-1:-1:-1;;;74729:99:0;;;;;;;:::i;:::-;74841:28;74851:4;74857:2;74861:7;74841:9;:28::i;74948:185::-;75086:39;75103:4;75109:2;75113:7;75086:39;;;;;;;;;;;;:16;:39::i;46401:191::-;46494:6;;;-1:-1:-1;;;;;46511:17:0;;;-1:-1:-1;;;;;;46511:17:0;;;;;;;46544:40;;46494:6;;;46511:17;46494:6;;46544:40;;46475:16;;46544:40;46464:128;46401:191;:::o;24258:293::-;23660:1;24392:7;;:19;24384:63;;;;-1:-1:-1;;;24384:63:0;;22145:2:1;24384:63:0;;;22127:21:1;22184:2;22164:18;;;22157:30;22223:33;22203:18;;;22196:61;22274:18;;24384:63:0;21943:355:1;24384:63:0;23660:1;24525:7;:18;24258:293::o;93847:522::-;93916:4;90115:2;90108:4;:9;;;90073:111;;;;-1:-1:-1;;;90073:111:0;;22505:2:1;90073:111:0;;;22487:21:1;22544:2;22524:18;;;22517:30;22583:34;22563:18;;;22556:62;-1:-1:-1;;;22634:18:1;;;22627:37;22681:19;;90073:111:0;22303:403:1;90073:111:0;93955:15:::1;93973:13;:11;:13::i;:::-;94032:57;::::0;-1:-1:-1;;94049:10:0::1;22940:2:1::0;22936:15;22932:53;94032:57:0::1;::::0;::::1;22920:66:1::0;-1:-1:-1;;;;;;23042:3:1;23020:16;;;23016:36;23002:12;;;22995:58;94067:12:0::1;23069::1::0;;;23062:28;23106:12;;;23099:28;;;93955:31:0;;-1:-1:-1;93999:12:0::1;::::0;23143::1;;94032:57:0::1;::::0;;-1:-1:-1;;94032:57:0;;::::1;::::0;;;;;;94022:68;;94032:57:::1;94022:68:::0;;::::1;::::0;94104:15:::1;::::0;;;:6:::1;:15:::0;;;;;:22;;;94137:6:::1;:15:::0;;;;;:22;;::::1;::::0;::::1;-1:-1:-1::0;;94137:22:0;;::::1;;::::0;;;94170:14:::1;:23:::0;;;;;:38;;;94219:7:::1;:16:::0;;;;;;;:24;;;;::::1;::::0;;;94022:68;-1:-1:-1;94256:30:0::1;94266:10;94111:7:::0;94256:9:::1;:30::i;:::-;94304:55;::::0;94351:7;;94325:10:::1;::::0;94304:55:::1;::::0;;;::::1;93944:425;;93847:522:::0;;;:::o;74085:155::-;74180:52;43765:10;74213:8;74223;74180:18;:52::i;75204:322::-;75378:41;43765:10;75411:7;75378:18;:41::i;:::-;75370:99;;;;-1:-1:-1;;;75370:99:0;;;;;;;:::i;:::-;75480:38;75494:4;75500:2;75504:7;75513:4;75480:13;:38::i;41112:716::-;41168:13;41219:14;41236:17;41247:5;41236:10;:17::i;:::-;41256:1;41236:21;41219:38;;41272:20;41306:6;41295:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41295:18:0;-1:-1:-1;41272:41:0;-1:-1:-1;41437:28:0;;;41453:2;41437:28;41494:288;-1:-1:-1;;41526:5:0;-1:-1:-1;;;41663:2:0;41652:14;;41647:30;41526:5;41634:44;41724:2;41715:11;;;-1:-1:-1;41745:21:0;41494:288;41745:21;-1:-1:-1;41803:6:0;41112:716;-1:-1:-1;;;41112:716:0:o;71402:305::-;71504:4;-1:-1:-1;;;;;;71541:40:0;;-1:-1:-1;;;71541:40:0;;:105;;-1:-1:-1;;;;;;;71598:48:0;;-1:-1:-1;;;71598:48:0;71541:105;:158;;;-1:-1:-1;;;;;;;;;;59870:40:0;;;71663:36;59761:157;82940:174;83015:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;83015:29:0;-1:-1:-1;;;;;83015:29:0;;;;;;;;:24;;83069:23;83015:24;83069:14;:23::i;:::-;-1:-1:-1;;;;;83060:46:0;;;;;;;;;;;82940:174;;:::o;77559:264::-;77652:4;77669:13;77685:23;77700:7;77685:14;:23::i;:::-;77669:39;;77738:5;-1:-1:-1;;;;;77727:16:0;:7;-1:-1:-1;;;;;77727:16:0;;:52;;;;77747:32;77764:5;77771:7;77747:16;:32::i;:::-;77727:87;;;;77807:7;-1:-1:-1;;;;;77783:31:0;:20;77795:7;77783:11;:20::i;:::-;-1:-1:-1;;;;;77783:31:0;;77727:87;77719:96;77559:264;-1:-1:-1;;;;77559:264:0:o;81558:1263::-;81717:4;-1:-1:-1;;;;;81690:31:0;:23;81705:7;81690:14;:23::i;:::-;-1:-1:-1;;;;;81690:31:0;;81682:81;;;;-1:-1:-1;;;81682:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;81782:16:0;;81774:65;;;;-1:-1:-1;;;81774:65:0;;23774:2:1;81774:65:0;;;23756:21:1;23813:2;23793:18;;;23786:30;23852:34;23832:18;;;23825:62;-1:-1:-1;;;23903:18:1;;;23896:34;23947:19;;81774:65:0;23572:400:1;81774:65:0;81852:42;81873:4;81879:2;81883:7;81892:1;81852:20;:42::i;:::-;82024:4;-1:-1:-1;;;;;81997:31:0;:23;82012:7;81997:14;:23::i;:::-;-1:-1:-1;;;;;81997:31:0;;81989:81;;;;-1:-1:-1;;;81989:81:0;;;;;;;:::i;:::-;82142:24;;;;:15;:24;;;;;;;;82135:31;;-1:-1:-1;;;;;;82135:31:0;;;;;;-1:-1:-1;;;;;82618:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;82618:20:0;;;82653:13;;;;;;;;;:18;;82135:31;82653:18;;;82693:16;;;:7;:16;;;;;;:21;;;;;;;;;;82732:27;;82158:7;;82732:27;;;95479:157;;;:::o;94377:::-;94436:7;94462:24;:12;21451:19;;21469:1;21451:19;;;21362:127;94462:24;-1:-1:-1;94504:12:0;21332:14;;91630:106::o;78165:110::-;78241:26;78251:2;78255:7;78241:26;;;;;;;;;;;;:9;:26::i;83257:315::-;83412:8;-1:-1:-1;;;;;83403:17:0;:5;-1:-1:-1;;;;;83403:17:0;;83395:55;;;;-1:-1:-1;;;83395:55:0;;24179:2:1;83395:55:0;;;24161:21:1;24218:2;24198:18;;;24191:30;24257:27;24237:18;;;24230:55;24302:18;;83395:55:0;23977:349:1;83395:55:0;-1:-1:-1;;;;;83461:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;83461:46:0;;;;;;;;;;83523:41;;540::1;;;83523::0;;513:18:1;83523:41:0;;;;;;;83257:315;;;:::o;76407:313::-;76563:28;76573:4;76579:2;76583:7;76563:9;:28::i;:::-;76610:47;76633:4;76639:2;76643:7;76652:4;76610:22;:47::i;:::-;76602:110;;;;-1:-1:-1;;;76602:110:0;;;;;;;:::i;37978:922::-;38031:7;;-1:-1:-1;;;38109:15:0;;38105:102;;-1:-1:-1;;;38145:15:0;;;-1:-1:-1;38189:2:0;38179:12;38105:102;38234:6;38225:5;:15;38221:102;;38270:6;38261:15;;;-1:-1:-1;38305:2:0;38295:12;38221:102;38350:6;38341:5;:15;38337:102;;38386:6;38377:15;;;-1:-1:-1;38421:2:0;38411:12;38337:102;38466:5;38457;:14;38453:99;;38501:5;38492:14;;;-1:-1:-1;38535:1:0;38525:11;38453:99;38579:5;38570;:14;38566:99;;38614:5;38605:14;;;-1:-1:-1;38648:1:0;38638:11;38566:99;38692:5;38683;:14;38679:99;;38727:5;38718:14;;;-1:-1:-1;38761:1:0;38751:11;38679:99;38805:5;38796;:14;38792:66;;38841:1;38831:11;38886:6;37978:922;-1:-1:-1;;37978:922:0:o;85945:410::-;86135:1;86123:9;:13;86119:229;;;-1:-1:-1;;;;;86157:18:0;;;86153:87;;-1:-1:-1;;;;;86196:15:0;;;;;;:9;:15;;;;;:28;;86215:9;;86196:15;:28;;86215:9;;86196:28;:::i;:::-;;;;-1:-1:-1;;86153:87:0;-1:-1:-1;;;;;86258:16:0;;;86254:83;;-1:-1:-1;;;;;86295:13:0;;;;;;:9;:13;;;;;:26;;86312:9;;86295:13;:26;;86312:9;;86295:26;:::i;:::-;;;;-1:-1:-1;;85945:410:0;;;;:::o;78502:319::-;78631:18;78637:2;78641:7;78631:5;:18::i;:::-;78682:53;78713:1;78717:2;78721:7;78730:4;78682:22;:53::i;:::-;78660:153;;;;-1:-1:-1;;;78660:153:0;;;;;;;:::i;84360:853::-;84514:4;-1:-1:-1;;;;;84535:13:0;;48127:19;:23;84531:675;;84571:71;;-1:-1:-1;;;84571:71:0;;-1:-1:-1;;;;;84571:36:0;;;;;:71;;43765:10;;84622:4;;84628:7;;84637:4;;84571:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;84571:71:0;;;;;;;;-1:-1:-1;;84571:71:0;;;;;;;;;;;;:::i;:::-;;;84567:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84812:6;:13;84829:1;84812:18;84808:328;;84855:60;;-1:-1:-1;;;84855:60:0;;;;;;;:::i;84808:328::-;85086:6;85080:13;85071:6;85067:2;85063:15;85056:38;84567:584;-1:-1:-1;;;;;;84693:51:0;-1:-1:-1;;;84693:51:0;;-1:-1:-1;84686:58:0;;84531:675;-1:-1:-1;85190:4:0;84360:853;;;;;;:::o;79157:942::-;-1:-1:-1;;;;;79237:16:0;;79229:61;;;;-1:-1:-1;;;79229:61:0;;25963:2:1;79229:61:0;;;25945:21:1;;;25982:18;;;25975:30;26041:34;26021:18;;;26014:62;26093:18;;79229:61:0;25761:356:1;79229:61:0;77329:4;76927:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76927:16:0;77353:31;79301:58;;;;-1:-1:-1;;;79301:58:0;;26324:2:1;79301:58:0;;;26306:21:1;26363:2;26343:18;;;26336:30;26402;26382:18;;;26375:58;26450:18;;79301:58:0;26122:352:1;79301:58:0;79372:48;79401:1;79405:2;79409:7;79418:1;79372:20;:48::i;:::-;77329:4;76927:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76927:16:0;77353:31;79510:58;;;;-1:-1:-1;;;79510:58:0;;26324:2:1;79510:58:0;;;26306:21:1;26363:2;26343:18;;;26336:30;26402;26382:18;;;26375:58;26450:18;;79510:58:0;26122:352:1;79510:58:0;-1:-1:-1;;;;;79917:13:0;;;;;;:9;:13;;;;;;;;:18;;79934:1;79917:18;;;79959:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;79959:21:0;;;;;79998:33;79967:7;;79917:13;;79998:33;;79917:13;;79998:33;92385:170;;:::o;14:131:1:-;-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;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:131::-;-1:-1:-1;;;;;667:31:1;;657:42;;647:70;;713:1;710;703:12;728:435;795:6;803;856:2;844:9;835:7;831:23;827:32;824:52;;;872:1;869;862:12;824:52;911:9;898:23;930:31;955:5;930:31;:::i;:::-;980:5;-1:-1:-1;1037:2:1;1022:18;;1009:32;-1:-1:-1;;;;;1072:40:1;;1060:53;;1050:81;;1127:1;1124;1117:12;1050:81;1150:7;1140:17;;;728:435;;;;;:::o;1168:250::-;1253:1;1263:113;1277:6;1274:1;1271:13;1263:113;;;1353:11;;;1347:18;1334:11;;;1327:39;1299:2;1292:10;1263:113;;;-1:-1:-1;;1410:1:1;1392:16;;1385:27;1168:250::o;1423:271::-;1465:3;1503:5;1497:12;1530:6;1525:3;1518:19;1546:76;1615:6;1608:4;1603:3;1599:14;1592:4;1585:5;1581:16;1546:76;:::i;:::-;1676:2;1655:15;-1:-1:-1;;1651:29:1;1642:39;;;;1683:4;1638:50;;1423:271;-1:-1:-1;;1423:271:1:o;1699:220::-;1848:2;1837:9;1830:21;1811:4;1868:45;1909:2;1898:9;1894:18;1886:6;1868:45;:::i;1924:180::-;1983:6;2036:2;2024:9;2015:7;2011:23;2007:32;2004:52;;;2052:1;2049;2042:12;2004:52;-1:-1:-1;2075:23:1;;1924:180;-1:-1:-1;1924:180:1:o;2317:315::-;2385:6;2393;2446:2;2434:9;2425:7;2421:23;2417:32;2414:52;;;2462:1;2459;2452:12;2414:52;2501:9;2488:23;2520:31;2545:5;2520:31;:::i;:::-;2570:5;2622:2;2607:18;;;;2594:32;;-1:-1:-1;;;2317:315:1:o;2637:456::-;2714:6;2722;2730;2783:2;2771:9;2762:7;2758:23;2754:32;2751:52;;;2799:1;2796;2789:12;2751:52;2838:9;2825:23;2857:31;2882:5;2857:31;:::i;:::-;2907:5;-1:-1:-1;2964:2:1;2949:18;;2936:32;2977:33;2936:32;2977:33;:::i;:::-;2637:456;;3029:7;;-1:-1:-1;;;3083:2:1;3068:18;;;;3055:32;;2637:456::o;3098:127::-;3159:10;3154:3;3150:20;3147:1;3140:31;3190:4;3187:1;3180:15;3214:4;3211:1;3204:15;3230:275;3301:2;3295:9;3366:2;3347:13;;-1:-1:-1;;3343:27:1;3331:40;;3401:18;3386:34;;3422:22;;;3383:62;3380:88;;;3448:18;;:::i;:::-;3484:2;3477:22;3230:275;;-1:-1:-1;3230:275:1:o;3510:407::-;3575:5;3609:18;3601:6;3598:30;3595:56;;;3631:18;;:::i;:::-;3669:57;3714:2;3693:15;;-1:-1:-1;;3689:29:1;3720:4;3685:40;3669:57;:::i;:::-;3660:66;;3749:6;3742:5;3735:21;3789:3;3780:6;3775:3;3771:16;3768:25;3765:45;;;3806:1;3803;3796:12;3765:45;3855:6;3850:3;3843:4;3836:5;3832:16;3819:43;3909:1;3902:4;3893:6;3886:5;3882:18;3878:29;3871:40;3510:407;;;;;:::o;3922:451::-;3991:6;4044:2;4032:9;4023:7;4019:23;4015:32;4012:52;;;4060:1;4057;4050:12;4012:52;4100:9;4087:23;4133:18;4125:6;4122:30;4119:50;;;4165:1;4162;4155:12;4119:50;4188:22;;4241:4;4233:13;;4229:27;-1:-1:-1;4219:55:1;;4270:1;4267;4260:12;4219:55;4293:74;4359:7;4354:2;4341:16;4336:2;4332;4328:11;4293:74;:::i;4378:248::-;4446:6;4454;4507:2;4495:9;4486:7;4482:23;4478:32;4475:52;;;4523:1;4520;4513:12;4475:52;-1:-1:-1;;4546:23:1;;;4616:2;4601:18;;;4588:32;;-1:-1:-1;4378:248:1:o;5149:261::-;5222:6;5275:2;5263:9;5254:7;5250:23;5246:32;5243:52;;;5291:1;5288;5281:12;5243:52;5330:9;5317:23;5349:31;5374:5;5349:31;:::i;5779:118::-;5865:5;5858:13;5851:21;5844:5;5841:32;5831:60;;5887:1;5884;5877:12;5902:241;5958:6;6011:2;5999:9;5990:7;5986:23;5982:32;5979:52;;;6027:1;6024;6017:12;5979:52;6066:9;6053:23;6085:28;6107:5;6085:28;:::i;6653:156::-;6719:20;;6779:4;6768:16;;6758:27;;6748:55;;6799:1;6796;6789:12;6748:55;6653:156;;;:::o;6814:714::-;6866:5;6919:3;6912:4;6904:6;6900:17;6896:27;6886:55;;6937:1;6934;6927:12;6886:55;6973:6;6960:20;6999:4;7022:18;7018:2;7015:26;7012:52;;;7044:18;;:::i;:::-;7090:2;7087:1;7083:10;7113:28;7137:2;7133;7129:11;7113:28;:::i;:::-;7175:15;;;7245;;;7241:24;;;7206:12;;;;7277:15;;;7274:35;;;7305:1;7302;7295:12;7274:35;7341:2;7333:6;7329:15;7318:26;;7353:146;7369:6;7364:3;7361:15;7353:146;;;7435:21;7452:3;7435:21;:::i;:::-;7423:34;;7386:12;;;;7477;;;;7353:146;;;7517:5;6814:714;-1:-1:-1;;;;;;;6814:714:1:o;7533:976::-;7667:6;7675;7683;7691;7699;7752:3;7740:9;7731:7;7727:23;7723:33;7720:53;;;7769:1;7766;7759:12;7720:53;7792:27;7809:9;7792:27;:::i;:::-;7782:37;;7870:2;7859:9;7855:18;7842:32;7893:18;7934:2;7926:6;7923:14;7920:34;;;7950:1;7947;7940:12;7920:34;7988:6;7977:9;7973:22;7963:32;;8033:7;8026:4;8022:2;8018:13;8014:27;8004:55;;8055:1;8052;8045:12;8004:55;8095:2;8082:16;8121:2;8113:6;8110:14;8107:34;;;8137:1;8134;8127:12;8107:34;8190:7;8185:2;8175:6;8172:1;8168:14;8164:2;8160:23;8156:32;8153:45;8150:65;;;8211:1;8208;8201:12;8150:65;8242:2;8238;8234:11;8224:21;;8264:6;8254:16;;;8323:2;8312:9;8308:18;8295:32;8279:48;;8352:2;8342:8;8339:16;8336:36;;;8368:1;8365;8358:12;8336:36;;8391:61;8444:7;8433:8;8422:9;8418:24;8391:61;:::i;:::-;7533:976;;;;-1:-1:-1;7533:976:1;;8499:2;8484:18;8471:32;;7533:976;-1:-1:-1;;;7533:976:1:o;8703:382::-;8768:6;8776;8829:2;8817:9;8808:7;8804:23;8800:32;8797:52;;;8845:1;8842;8835:12;8797:52;8884:9;8871:23;8903:31;8928:5;8903:31;:::i;:::-;8953:5;-1:-1:-1;9010:2:1;8995:18;;8982:32;9023:30;8982:32;9023:30;:::i;9090:795::-;9185:6;9193;9201;9209;9262:3;9250:9;9241:7;9237:23;9233:33;9230:53;;;9279:1;9276;9269:12;9230:53;9318:9;9305:23;9337:31;9362:5;9337:31;:::i;:::-;9387:5;-1:-1:-1;9444:2:1;9429:18;;9416:32;9457:33;9416:32;9457:33;:::i;:::-;9509:7;-1:-1:-1;9563:2:1;9548:18;;9535:32;;-1:-1:-1;9618:2:1;9603:18;;9590:32;9645:18;9634:30;;9631:50;;;9677:1;9674;9667:12;9631:50;9700:22;;9753:4;9745:13;;9741:27;-1:-1:-1;9731:55:1;;9782:1;9779;9772:12;9731:55;9805:74;9871:7;9866:2;9853:16;9848:2;9844;9840:11;9805:74;:::i;:::-;9795:84;;;9090:795;;;;;;;:::o;9890:388::-;9958:6;9966;10019:2;10007:9;9998:7;9994:23;9990:32;9987:52;;;10035:1;10032;10025:12;9987:52;10074:9;10061:23;10093:31;10118:5;10093:31;:::i;:::-;10143:5;-1:-1:-1;10200:2:1;10185:18;;10172:32;10213:33;10172:32;10213:33;:::i;10283:380::-;10362:1;10358:12;;;;10405;;;10426:61;;10480:4;10472:6;10468:17;10458:27;;10426:61;10533:2;10525:6;10522:14;10502:18;10499:38;10496:161;;10579:10;10574:3;10570:20;10567:1;10560:31;10614:4;10611:1;10604:15;10642:4;10639:1;10632:15;10496:161;;10283:380;;;:::o;10794:545::-;10896:2;10891:3;10888:11;10885:448;;;10932:1;10957:5;10953:2;10946:17;11002:4;10998:2;10988:19;11072:2;11060:10;11056:19;11053:1;11049:27;11043:4;11039:38;11108:4;11096:10;11093:20;11090:47;;;-1:-1:-1;11131:4:1;11090:47;11186:2;11181:3;11177:12;11174:1;11170:20;11164:4;11160:31;11150:41;;11241:82;11259:2;11252:5;11249:13;11241:82;;;11304:17;;;11285:1;11274:13;11241:82;;;11245:3;;;10794:545;;;:::o;11515:1352::-;11641:3;11635:10;11668:18;11660:6;11657:30;11654:56;;;11690:18;;:::i;:::-;11719:97;11809:6;11769:38;11801:4;11795:11;11769:38;:::i;:::-;11763:4;11719:97;:::i;:::-;11871:4;;11935:2;11924:14;;11952:1;11947:663;;;;12654:1;12671:6;12668:89;;;-1:-1:-1;12723:19:1;;;12717:26;12668:89;-1:-1:-1;;11472:1:1;11468:11;;;11464:24;11460:29;11450:40;11496:1;11492:11;;;11447:57;12770:81;;11917:944;;11947:663;10741:1;10734:14;;;10778:4;10765:18;;-1:-1:-1;;11983:20:1;;;12101:236;12115:7;12112:1;12109:14;12101:236;;;12204:19;;;12198:26;12183:42;;12296:27;;;;12264:1;12252:14;;;;12131:19;;12101:236;;;12105:3;12365:6;12356:7;12353:19;12350:201;;;12426:19;;;12420:26;-1:-1:-1;;12509:1:1;12505:14;;;12521:3;12501:24;12497:37;12493:42;12478:58;12463:74;;12350:201;-1:-1:-1;;;;;12597:1:1;12581:14;;;12577:22;12564:36;;-1:-1:-1;11515:1352:1:o;12872:127::-;12933:10;12928:3;12924:20;12921:1;12914:31;12964:4;12961:1;12954:15;12988:4;12985:1;12978:15;13004:168;13077:9;;;13108;;13125:15;;;13119:22;;13105:37;13095:71;;13146:18;;:::i;13309:217::-;13349:1;13375;13365:132;;13419:10;13414:3;13410:20;13407:1;13400:31;13454:4;13451:1;13444:15;13482:4;13479:1;13472:15;13365:132;-1:-1:-1;13511:9:1;;13309:217::o;13531:184::-;13601:6;13654:2;13642:9;13633:7;13629:23;13625:32;13622:52;;;13670:1;13667;13660:12;13622:52;-1:-1:-1;13693:16:1;;13531:184;-1:-1:-1;13531:184:1:o;13720:245::-;13787:6;13840:2;13828:9;13819:7;13815:23;13811:32;13808:52;;;13856:1;13853;13846:12;13808:52;13888:9;13882:16;13907:28;13929:5;13907:28;:::i;16493:127::-;16554:10;16549:3;16545:20;16542:1;16535:31;16585:4;16582:1;16575:15;16609:4;16606:1;16599:15;16625:251;16695:6;16748:2;16736:9;16727:7;16723:23;16719:32;16716:52;;;16764:1;16761;16754:12;16716:52;16796:9;16790:16;16815:31;16840:5;16815:31;:::i;17160:175::-;17197:3;17241:4;17234:5;17230:16;17270:4;17261:7;17258:17;17255:43;;17278:18;;:::i;:::-;17327:1;17314:15;;17160:175;-1:-1:-1;;17160:175:1:o;17686:1164::-;17963:3;17992:1;18025:6;18019:13;18055:36;18081:9;18055:36;:::i;:::-;18110:1;18127:18;;;18154:133;;;;18301:1;18296:356;;;;18120:532;;18154:133;-1:-1:-1;;18187:24:1;;18175:37;;18260:14;;18253:22;18241:35;;18232:45;;;-1:-1:-1;18154:133:1;;18296:356;18327:6;18324:1;18317:17;18357:4;18402:2;18399:1;18389:16;18427:1;18441:165;18455:6;18452:1;18449:13;18441:165;;;18533:14;;18520:11;;;18513:35;18576:16;;;;18470:10;;18441:165;;;18445:3;;;18635:6;18630:3;18626:16;18619:23;;18120:532;;-1:-1:-1;;;18668:3:1;18661:16;18708:6;18702:13;18686:29;;18724:77;18792:8;18787:2;18782:3;18778:12;18771:4;18763:6;18759:17;18724:77;:::i;:::-;18821:18;;;;18817:27;;;-1:-1:-1;;;;;17686:1164:1:o;21529:409::-;21731:2;21713:21;;;21770:2;21750:18;;;21743:30;21809:34;21804:2;21789:18;;21782:62;-1:-1:-1;;;21875:2:1;21860:18;;21853:43;21928:3;21913:19;;21529:409::o;23166:401::-;23368:2;23350:21;;;23407:2;23387:18;;;23380:30;23446:34;23441:2;23426:18;;23419:62;-1:-1:-1;;;23512:2:1;23497:18;;23490:35;23557:3;23542:19;;23166:401::o;24331:414::-;24533:2;24515:21;;;24572:2;24552:18;;;24545:30;24611:34;24606:2;24591:18;;24584:62;-1:-1:-1;;;24677:2:1;24662:18;;24655:48;24735:3;24720:19;;24331:414::o;24750:128::-;24817:9;;;24838:11;;;24835:37;;;24852:18;;:::i;24883:125::-;24948:9;;;24969:10;;;24966:36;;;24982:18;;:::i;25013:489::-;-1:-1:-1;;;;;25282:15:1;;;25264:34;;25334:15;;25329:2;25314:18;;25307:43;25381:2;25366:18;;25359:34;;;25429:3;25424:2;25409:18;;25402:31;;;25207:4;;25450:46;;25476:19;;25468:6;25450:46;:::i;:::-;25442:54;25013:489;-1:-1:-1;;;;;;25013:489:1:o;25507:249::-;25576:6;25629:2;25617:9;25608:7;25604:23;25600:32;25597:52;;;25645:1;25642;25635:12;25597:52;25677:9;25671:16;25696:30;25720:5;25696:30;:::i

Swarm Source

ipfs://c22fcca553396610618a8b2e1371abc51a2c5f82def8fc4150a9fd45633dbd7c
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.