ETH Price: $3,282.84 (+0.54%)
Gas: 18 Gwei

Token

MintDefense Lifetime License (MDFS)
 

Overview

Max Total Supply

813 MDFS

Holders

606

Total Transfers

-

Market

Volume (24H)

0.19 ETH

Min Price (24H)

$623.74 @ 0.190000 ETH

Max Price (24H)

$623.74 @ 0.190000 ETH
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MintDefense

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 2 of 21 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 3 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @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 4 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

File 5 of 21 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 6 of 21 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @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 7 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// 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 8 of 21 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 9 of 21 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        return
            (error == ECDSA.RecoverError.NoError && recovered == signer) ||
            isValidERC1271SignatureNow(signer, hash, signature);
    }

    /**
     * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated
     * against the signer smart contract using ERC1271.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidERC1271SignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length >= 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 10 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 11 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// 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 12 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, 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 << 3) < value ? 1 : 0);
        }
    }
}

File 13 of 21 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 14 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 15 of 21 : MintDefense.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract MintDefense is
    ERC721A,
    ERC2981,
    Pausable,
    Ownable,
    DefaultOperatorFilterer
{
    using ECDSA for bytes32;
    address private signer;
    address public payoutWallet;

    address private _recipient;
    uint256 private _royaltyPercentage;

    uint16 public immutable MAX_SUPPLY;
    uint8 public immutable MAX_MINTS_PER_TX;

    uint8 flags;

    uint72 public privateMintPrice;
    uint72 public publicMintPrice;

    uint8 constant PUBLIC_MINT_OPEN = 0x01;
    uint8 constant PRIVATE_MINT_OPEN = 0x02;
    uint8 constant PREPAID_MINT_OPEN = 0x04;

    mapping(uint256 => bytes32) private tokenLicences;
    string private _baseTokenURI;

    mapping (address => bool) public blockedMarketplaces;

    constructor(
        uint16 supply_,
        uint8 maxMintsPerTx_,
        address signer_,
        address payoutWallet_,
        uint72 privateMintPrice_,
        uint72 publicMintPrice_,
        string memory baseURI_
    ) ERC721A("MintDefense Lifetime License", "MDFS") {
        MAX_SUPPLY = supply_;
        MAX_MINTS_PER_TX = maxMintsPerTx_;

        signer = signer_;

        privateMintPrice = privateMintPrice_;
        publicMintPrice = publicMintPrice_;

        payoutWallet = payoutWallet_;
        _baseTokenURI = baseURI_;

        _recipient = payoutWallet_;
        _royaltyPercentage = 5;
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view override(ERC2981, ERC721A) returns (bool) {
        return
            ERC721A.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);
    }

    function mint(
        uint256 quantity,
        bytes calldata signature
    ) external payable whenNotPaused {
        require(_hasFlag(PUBLIC_MINT_OPEN), "mint: not open");
        require(quantity > 0, "mint: zero quantity");
        require(quantity <= MAX_MINTS_PER_TX, "mint: quantity too high");
        require(
            quantity * publicMintPrice <= msg.value,
            "mint: insufficient funds"
        );
        require(
            totalSupply() + quantity <= MAX_SUPPLY,
            "mint: supply exceeded"
        );

        bytes32 signedHash = keccak256(abi.encodePacked(msg.sender))
            .toEthSignedMessageHash();
        require(
            SignatureChecker.isValidSignatureNow(signer, signedHash, signature),
            "mint: unauthorized"
        );

        _safeMint(_msgSenderERC721A(), quantity);
    }

    function allowlistMint(
        uint256 quantity,
        uint256 maxMints,
        bool prepaidMint,
        bytes calldata signature
    ) external payable whenNotPaused {
        require(
            (prepaidMint && _hasFlag(PREPAID_MINT_OPEN)) ||
                _hasFlag(PRIVATE_MINT_OPEN),
            "allowlistMint: not open"
        );
        require(quantity > 0, "allowlistMint: zero quantity");
        require(
            prepaidMint || quantity * privateMintPrice <= msg.value,
            "allowlistMint: insufficient funds"
        );

        bytes32 signedHash = keccak256(
            abi.encodePacked(msg.sender, maxMints, prepaidMint)
        ).toEthSignedMessageHash();
        require(
            SignatureChecker.isValidSignatureNow(signer, signedHash, signature),
            "allowlistMint: unauthorized"
        );

        uint256 consumedAllowlists = _getAux(_msgSenderERC721A());
        require(
            consumedAllowlists + quantity <= maxMints,
            "allowlistMint: quantity too high"
        );
        require(
            totalSupply() + quantity <= MAX_SUPPLY,
            "allowlistMint: supply exceeded"
        );

        _setAux(_msgSenderERC721A(), uint64(consumedAllowlists + quantity));
        _safeMint(_msgSenderERC721A(), quantity);
    }

    function findLicence(uint256 tokenId) external view returns (bytes32) {
        require(_exists(tokenId), "findLicence: token not found");
        return tokenLicences[tokenId];
    }

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        require(!blockedMarketplaces[operator], "Invalid marketplace, not allowed");
        super.setApprovalForAll(operator, approved);
    }

    function approve(
        address operator,
        uint256 tokenId
    ) public payable override onlyAllowedOperatorApproval(operator) {
        require(!blockedMarketplaces[operator], "Invalid marketplace, not allowed");
        super.approve(operator, tokenId);
    }

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

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

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

    function tokenURI(
        uint256 tokenId
    ) public view override returns (string memory) {
        require(_exists(tokenId), "tokenURI: token not found");
        return _baseURI();
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function _baseURI() internal view override returns (string memory) {
        return _baseTokenURI;
    }

    function withdraw() external onlyOwner {
        require(payoutWallet != address(0), "withdraw: wallet not set");
        uint256 balance = address(this).balance;
        (bool success, ) = payable(payoutWallet).call{value: balance}("");
        require(success, "withdraw: failed to send funds");
    }

    function setPrepaidMint(bool open) external onlyOwner {
        _setFlag(PREPAID_MINT_OPEN, open);
    }

    function setPrivateMint(bool open) external onlyOwner {
        _setFlag(PRIVATE_MINT_OPEN, open);
    }

    function setPublicMint(bool open) external onlyOwner {
        _setFlag(PUBLIC_MINT_OPEN, open);
    }

    function pause() external onlyOwner whenNotPaused {
        _pause();
    }

    function unpause() external onlyOwner whenPaused {
        _unpause();
    }

    function setDefaultRoyalty(
        address recipient,
        uint96 value
    ) external onlyOwner {
        _setDefaultRoyalty(recipient, value);
    }

    function deleteDefaultRoyalty() external onlyOwner {
        _deleteDefaultRoyalty();
    }

    function setWithdrawalWallet(address wallet) external onlyOwner {
        require(wallet != address(0), "setWithdrawalWallet: address zero");
        payoutWallet = wallet;
    }

    function _hasFlag(uint8 flag) internal view returns (bool) {
        return flag & flags > 0;
    }

    function _setFlag(uint8 flag, bool open) internal {
        if (open) {
            flags |= flag;
        } else {
            flags &= ~flag;
        }
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {
        if (from != address(0)) {
            delete tokenLicences[startTokenId];
        }
    }

    function setblockedMarketplaces(address marketplace, bool allowed) public onlyOwner{
        blockedMarketplaces[marketplace] = allowed;
    }
}

File 16 of 21 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

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

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

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

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 17 of 21 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 18 of 21 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @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 19 of 21 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
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 20 of 21 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

File 21 of 21 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @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);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"supply_","type":"uint16"},{"internalType":"uint8","name":"maxMintsPerTx_","type":"uint8"},{"internalType":"address","name":"signer_","type":"address"},{"internalType":"address","name":"payoutWallet_","type":"address"},{"internalType":"uint72","name":"privateMintPrice_","type":"uint72"},{"internalType":"uint72","name":"publicMintPrice_","type":"uint72"},{"internalType":"string","name":"baseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MINTS_PER_TX","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"maxMints","type":"uint256"},{"internalType":"bool","name":"prepaidMint","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockedMarketplaces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"findLicence","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateMintPrice","outputs":[{"internalType":"uint72","name":"","type":"uint72"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint72","name":"","type":"uint72"}],"stateMutability":"view","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":"payable","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":"payable","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":"recipient","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setPrepaidMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setPrivateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"setWithdrawalWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"marketplace","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setblockedMarketplaces","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405234801562000010575f80fd5b5060405162005b9038038062005b908339818101604052810190620000369190620007e2565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601c81526020017f4d696e74446566656e7365204c69666574696d65204c6963656e7365000000008152506040518060400160405280600481526020017f4d444653000000000000000000000000000000000000000000000000000000008152508160029081620000ca919062000ae6565b508060039081620000dc919062000ae6565b50620000ed6200046e60201b60201c565b5f8190555050505f600a5f6101000a81548160ff0219169083151502179055506200012d620001216200047660201b60201c565b6200047d60201b60201c565b5f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111562000311578015620001e2576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001ad92919062000bdb565b5f604051808303815f87803b158015620001c5575f80fd5b505af1158015620001d8573d5f803e3d5ffd5b5050505062000310565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000296576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200026192919062000bdb565b5f604051808303815f87803b15801562000279575f80fd5b505af11580156200028c573d5f803e3d5ffd5b505050506200030f565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002df919062000c06565b5f604051808303815f87803b158015620002f7575f80fd5b505af11580156200030a573d5f803e3d5ffd5b505050505b5b5b50508661ffff1660808161ffff16815250508560ff1660a08160ff168152505084600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600f60016101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff16021790555081600f600a6101000a81548168ffffffffffffffffff021916908368ffffffffffffffffff16021790555083600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806011908162000418919062000ae6565b5083600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506005600e819055505050505050505062000c21565b5f6001905090565b5f33905090565b5f600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f604051905090565b5f80fd5b5f80fd5b5f61ffff82169050919050565b6200056b8162000553565b811462000576575f80fd5b50565b5f81519050620005898162000560565b92915050565b5f60ff82169050919050565b620005a6816200058f565b8114620005b1575f80fd5b50565b5f81519050620005c4816200059b565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620005f582620005ca565b9050919050565b6200060781620005e9565b811462000612575f80fd5b50565b5f815190506200062581620005fc565b92915050565b5f68ffffffffffffffffff82169050919050565b6200064a816200062b565b811462000655575f80fd5b50565b5f8151905062000668816200063f565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b620006be8262000676565b810181811067ffffffffffffffff82111715620006e057620006df62000686565b5b80604052505050565b5f620006f462000542565b9050620007028282620006b3565b919050565b5f67ffffffffffffffff82111562000724576200072362000686565b5b6200072f8262000676565b9050602081019050919050565b5f5b838110156200075b5780820151818401526020810190506200073e565b5f8484015250505050565b5f6200077c620007768462000707565b620006e9565b9050828152602081018484840111156200079b576200079a62000672565b5b620007a88482856200073c565b509392505050565b5f82601f830112620007c757620007c66200066e565b5b8151620007d984826020860162000766565b91505092915050565b5f805f805f805f60e0888a0312156200080057620007ff6200054b565b5b5f6200080f8a828b0162000579565b9750506020620008228a828b01620005b4565b9650506040620008358a828b0162000615565b9550506060620008488a828b0162000615565b94505060806200085b8a828b0162000658565b93505060a06200086e8a828b0162000658565b92505060c088015167ffffffffffffffff8111156200089257620008916200054f565b5b620008a08a828b01620007b0565b91505092959891949750929550565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620008fe57607f821691505b602082108103620009145762000913620008b9565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620009787fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200093b565b6200098486836200093b565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620009ce620009c8620009c2846200099c565b620009a5565b6200099c565b9050919050565b5f819050919050565b620009e983620009ae565b62000a01620009f882620009d5565b84845462000947565b825550505050565b5f90565b62000a1762000a09565b62000a24818484620009de565b505050565b5b8181101562000a4b5762000a3f5f8262000a0d565b60018101905062000a2a565b5050565b601f82111562000a9a5762000a64816200091a565b62000a6f846200092c565b8101602085101562000a7f578190505b62000a9762000a8e856200092c565b83018262000a29565b50505b505050565b5f82821c905092915050565b5f62000abc5f198460080262000a9f565b1980831691505092915050565b5f62000ad6838362000aab565b9150826002028217905092915050565b62000af182620008af565b67ffffffffffffffff81111562000b0d5762000b0c62000686565b5b62000b198254620008e6565b62000b2682828562000a4f565b5f60209050601f83116001811462000b5c575f841562000b47578287015190505b62000b53858262000ac9565b86555062000bc2565b601f19841662000b6c866200091a565b5f5b8281101562000b955784890151825560018201915060208501945060208101905062000b6e565b8683101562000bb5578489015162000bb1601f89168262000aab565b8355505b6001600288020188555050505b505050505050565b62000bd581620005e9565b82525050565b5f60408201905062000bf05f83018562000bca565b62000bff602083018462000bca565b9392505050565b5f60208201905062000c1b5f83018462000bca565b92915050565b60805160a051614f3862000c585f395f81816116df015261180501525f8181610d310152818161102001526118db0152614f385ff3fe608060405260043610610239575f3560e01c806370a082311161012d578063aa1b103f116100aa578063d85e5dd01161006e578063d85e5dd0146107d4578063db7fd408146107fc578063dc53fd9214610818578063e985e9c514610842578063f2fde38b1461087e57610239565b8063aa1b103f14610700578063b88d4fde14610716578063bf6d8b5714610732578063c6a91b421461076e578063c87b56dd1461079857610239565b80638456cb59116100f15780638456cb59146106445780638488bb4e1461065a5780638da5cb5b1461068457806395d89b41146106ae578063a22cb465146106d857610239565b806370a082311461056657806371269d96146105a2578063715018a6146105ca57806375796f76146105e057806379b417841461060857610239565b80632a55205a116101bb57806342842e0e1161017f57806342842e0e1461049457806355f804b3146104b05780635a928c55146104d85780635c975abb146105005780636352211e1461052a57610239565b80632a55205a146103d757806332cb6b0c146104145780633ccfd60b1461043e5780633f4ba83a1461045457806341f434341461046a57610239565b8063095ea7b311610202578063095ea7b3146103315780630e2d56cf1461034d5780630e9030bf1461037557806318160ddd1461039157806323b872dd146103bb57610239565b806204348e1461023d57806301ffc9a71461026757806304634d8d146102a357806306fdde03146102cb578063081812fc146102f5575b5f80fd5b348015610248575f80fd5b506102516108a6565b60405161025e9190613394565b60405180910390f35b348015610272575f80fd5b5061028d60048036038101906102889190613413565b6108c1565b60405161029a9190613458565b60405180910390f35b3480156102ae575f80fd5b506102c960048036038101906102c4919061350c565b6108e2565b005b3480156102d6575f80fd5b506102df6108f8565b6040516102ec91906135d4565b60405180910390f35b348015610300575f80fd5b5061031b60048036038101906103169190613627565b610988565b6040516103289190613661565b60405180910390f35b61034b6004803603810190610346919061367a565b610a02565b005b348015610358575f80fd5b50610373600480360381019061036e91906136e2565b610aa5565b005b61038f600480360381019061038a919061376e565b610abb565b005b34801561039c575f80fd5b506103a5610dde565b6040516103b29190613801565b60405180910390f35b6103d560048036038101906103d0919061381a565b610df3565b005b3480156103e2575f80fd5b506103fd60048036038101906103f8919061386a565b610e42565b60405161040b9291906138a8565b60405180910390f35b34801561041f575f80fd5b5061042861101e565b60405161043591906138eb565b60405180910390f35b348015610449575f80fd5b50610452611042565b005b34801561045f575f80fd5b506104686111aa565b005b348015610475575f80fd5b5061047e6111c4565b60405161048b919061395f565b60405180910390f35b6104ae60048036038101906104a9919061381a565b6111d6565b005b3480156104bb575f80fd5b506104d660048036038101906104d191906139cd565b611225565b005b3480156104e3575f80fd5b506104fe60048036038101906104f991906136e2565b611243565b005b34801561050b575f80fd5b50610514611259565b6040516105219190613458565b60405180910390f35b348015610535575f80fd5b50610550600480360381019061054b9190613627565b61126e565b60405161055d9190613661565b60405180910390f35b348015610571575f80fd5b5061058c60048036038101906105879190613a18565b61127f565b6040516105999190613801565b60405180910390f35b3480156105ad575f80fd5b506105c860048036038101906105c39190613a43565b611334565b005b3480156105d5575f80fd5b506105de611394565b005b3480156105eb575f80fd5b5061060660048036038101906106019190613a18565b6113a7565b005b348015610613575f80fd5b5061062e60048036038101906106299190613a18565b611460565b60405161063b9190613458565b60405180910390f35b34801561064f575f80fd5b5061065861147d565b005b348015610665575f80fd5b5061066e611497565b60405161067b9190613661565b60405180910390f35b34801561068f575f80fd5b506106986114bc565b6040516106a59190613661565b60405180910390f35b3480156106b9575f80fd5b506106c26114e5565b6040516106cf91906135d4565b60405180910390f35b3480156106e3575f80fd5b506106fe60048036038101906106f99190613a43565b611575565b005b34801561070b575f80fd5b50610714611618565b005b610730600480360381019061072b9190613ba9565b61162a565b005b34801561073d575f80fd5b5061075860048036038101906107539190613627565b61167b565b6040516107659190613c41565b60405180910390f35b348015610779575f80fd5b506107826116dd565b60405161078f9190613c75565b60405180910390f35b3480156107a3575f80fd5b506107be60048036038101906107b99190613627565b611701565b6040516107cb91906135d4565b60405180910390f35b3480156107df575f80fd5b506107fa60048036038101906107f591906136e2565b61175a565b005b61081660048036038101906108119190613c8e565b611770565b005b348015610823575f80fd5b5061082c611a49565b6040516108399190613394565b60405180910390f35b34801561084d575f80fd5b5061086860048036038101906108639190613ceb565b611a64565b6040516108759190613458565b60405180910390f35b348015610889575f80fd5b506108a4600480360381019061089f9190613a18565b611af2565b005b600f60019054906101000a900468ffffffffffffffffff1681565b5f6108cb82611b74565b806108db57506108da82611c05565b5b9050919050565b6108ea611c7e565b6108f48282611cfc565b5050565b60606002805461090790613d56565b80601f016020809104026020016040519081016040528092919081815260200182805461093390613d56565b801561097e5780601f106109555761010080835404028352916020019161097e565b820191905f5260205f20905b81548152906001019060200180831161096157829003601f168201915b5050505050905090565b5f61099282611e8c565b6109c8576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610a0c81611ee6565b60125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d90613dd0565b60405180910390fd5b610aa08383611fe0565b505050565b610aad611c7e565b610ab860018261211f565b50565b610ac3612188565b828015610ad65750610ad560046121d2565b5b80610ae75750610ae660026121d2565b5b610b26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1d90613e38565b60405180910390fd5b5f8511610b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5f90613ea0565b60405180910390fd5b8280610ba1575034600f60019054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1686610b9e9190613eeb565b11155b610be0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd790613f9c565b60405180910390fd5b5f610c14338686604051602001610bf993929190614064565b604051602081830303815290604052805190602001206121f0565b9050610c85600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168285858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050612223565b610cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbb906140ea565b60405180910390fd5b5f610cd5610cd06122af565b6122b6565b67ffffffffffffffff169050858782610cee9190614108565b1115610d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2690614185565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000061ffff1687610d5d610dde565b610d679190614108565b1115610da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9f906141ed565b60405180910390fd5b610dc4610db36122af565b8883610dbf9190614108565b612300565b610dd5610dcf6122af565b886123b0565b50505050505050565b5f610de76123cd565b6001545f540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e3157610e3033611ee6565b5b610e3c8484846123d5565b50505050565b5f805f60095f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff1603610fcb5760086040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f610fd46126e3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866110009190613eeb565b61100a9190614238565b9050815f0151819350935050509250929050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61104a611c7e565b5f73ffffffffffffffffffffffffffffffffffffffff16600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036110d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d0906142b2565b60405180910390fd5b5f4790505f600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051611123906142fd565b5f6040518083038185875af1925050503d805f811461115d576040519150601f19603f3d011682016040523d82523d5f602084013e611162565b606091505b50509050806111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119d9061435b565b60405180910390fd5b5050565b6111b2611c7e565b6111ba6126ec565b6111c2612735565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112145761121333611ee6565b5b61121f848484612796565b50505050565b61122d611c7e565b81816011918261123e929190614517565b505050565b61124b611c7e565b61125660028261211f565b50565b5f600a5f9054906101000a900460ff16905090565b5f611278826127b5565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112e5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b61133c611c7e565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b61139c611c7e565b6113a55f612878565b565b6113af611c7e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361141d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141490614654565b60405180910390fd5b80600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6012602052805f5260405f205f915054906101000a900460ff1681565b611485611c7e565b61148d612188565b61149561293d565b565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546114f490613d56565b80601f016020809104026020016040519081016040528092919081815260200182805461152090613d56565b801561156b5780601f106115425761010080835404028352916020019161156b565b820191905f5260205f20905b81548152906001019060200180831161154e57829003601f168201915b5050505050905090565b8161157f81611ee6565b60125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160090613dd0565b60405180910390fd5b611613838361299f565b505050565b611620611c7e565b611628612aa5565b565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116685761166733611ee6565b5b61167485858585612aef565b5050505050565b5f61168582611e8c565b6116c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bb906146bc565b60405180910390fd5b60105f8381526020019081526020015f20549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b606061170c82611e8c565b61174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290614724565b60405180910390fd5b611753612b61565b9050919050565b611762611c7e565b61176d60048261211f565b50565b611778612188565b61178260016121d2565b6117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b89061478c565b60405180910390fd5b5f8311611803576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fa906147f4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000060ff16831115611869576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118609061485c565b60405180910390fd5b34600f600a9054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16846118989190613eeb565b11156118d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d0906148c4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000061ffff1683611907610dde565b6119119190614108565b1115611952576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119499061492c565b60405180910390fd5b5f61198233604051602001611967919061494a565b604051602081830303815290604052805190602001206121f0565b90506119f3600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168285858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050612223565b611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a29906149ae565b60405180910390fd5b611a43611a3d6122af565b856123b0565b50505050565b600f600a9054906101000a900468ffffffffffffffffff1681565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611afa611c7e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5f90614a3c565b60405180910390fd5b611b7181612878565b50565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bce57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611bfe5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c775750611c7682612bf1565b5b9050919050565b611c86612c5a565b73ffffffffffffffffffffffffffffffffffffffff16611ca46114bc565b73ffffffffffffffffffffffffffffffffffffffff1614611cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf190614aa4565b60405180910390fd5b565b611d046126e3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990614b32565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc790614b9a565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff1681525060085f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b5f81611e966123cd565b11158015611ea457505f5482105b8015611edf57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611fdd576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611f5c929190614bb8565b602060405180830381865afa158015611f77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f9b9190614bf3565b611fdc57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611fd39190613661565b60405180910390fd5b5b50565b5f611fea8261126e565b90508073ffffffffffffffffffffffffffffffffffffffff1661200b6122af565b73ffffffffffffffffffffffffffffffffffffffff161461206e57612037816120326122af565b611a64565b61206d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b80156121565781600f5f8282829054906101000a900460ff161792506101000a81548160ff021916908360ff160217905550612184565b8119600f5f8282829054906101000a900460ff161692506101000a81548160ff021916908360ff1602179055505b5050565b612190611259565b156121d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c790614c68565b60405180910390fd5b565b5f80600f5f9054906101000a900460ff16831660ff16119050919050565b5f7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f5281601c52603c5f209050919050565b5f805f6122308585612c61565b915091505f600481111561224757612246614c86565b5b81600481111561225a57612259614c86565b5b14801561229257508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806122a457506122a3868686612cad565b5b925050509392505050565b5f33905090565b5f60c060055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c9050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f82905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff83161791508160055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050505050565b6123c9828260405180602001604052805f815250612dec565b5050565b5f6001905090565b5f6123df826127b5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612446576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061245184612e83565b9150915061246781876124626122af565b612ea6565b6124b35761247c866124776122af565b611a64565b6124b2576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612518576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125258686866001612ee9565b801561252f575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506125f7856125d3888887612eef565b7c020000000000000000000000000000000000000000000000000000000017612f16565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603612673575f6001850190505f60045f8381526020019081526020015f205403612671575f548114612670578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126db8686866001612f40565b505050505050565b5f612710905090565b6126f4611259565b612733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272a90614cfd565b60405180910390fd5b565b61273d6126ec565b5f600a5f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61277f612c5a565b60405161278c9190613661565b60405180910390a1565b6127b083838360405180602001604052805f81525061162a565b505050565b5f80829050806127c36123cd565b11612841575f54811015612840575f60045f8381526020019081526020015f205490505f7c010000000000000000000000000000000000000000000000000000000082160361283e575b5f81036128345760045f836001900393508381526020019081526020015f2054905061280d565b8092505050612873565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612945612188565b6001600a5f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612988612c5a565b6040516129959190613661565b60405180910390a1565b8060075f6129ab6122af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612a546122af565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a999190613458565b60405180910390a35050565b60085f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f820160146101000a8154906bffffffffffffffffffffffff02191690555050565b612afa848484610df3565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612b5b57612b2484848484612f8e565b612b5a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060118054612b7090613d56565b80601f0160208091040260200160405190810160405280929190818152602001828054612b9c90613d56565b8015612be75780601f10612bbe57610100808354040283529160200191612be7565b820191905f5260205f20905b815481529060010190602001808311612bca57829003601f168201915b5050505050905090565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f806041835103612c9e575f805f602086015192506040860151915060608601515f1a9050612c92878285856130d9565b94509450505050612ca6565b5f6002915091505b9250929050565b5f805f8573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b8686604051602401612ce2929190614d6d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051612d4c9190614dcb565b5f60405180830381855afa9150503d805f8114612d84576040519150601f19603f3d011682016040523d82523d5f602084013e612d89565b606091505b5091509150818015612d9d57506020815110155b8015612de15750631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051810190612ddf9190614e0b565b145b925050509392505050565b612df683836131b1565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612e7e575f805490505f83820390505b612e325f868380600101945086612f8e565b612e68576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e2057815f5414612e7b575f80fd5b50505b505050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612f0586868461335a565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f885760105f8381526020019081526020015f205f90555b50505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fb36122af565b8786866040518563ffffffff1660e01b8152600401612fd59493929190614e36565b6020604051808303815f875af192505050801561301057506040513d601f19601f8201168201806040525081019061300d9190614e94565b60015b613086573d805f811461303e576040519150601f19603f3d011682016040523d82523d5f602084013e613043565b606091505b505f81510361307e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0835f1c1115613111575f6003915091506131a8565b5f6001878787876040515f81526020016040526040516131349493929190614ebf565b6020604051602081039080840390855afa158015613154573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131a0575f600192509250506131a8565b805f92509250505b94509492505050565b5f805490505f82036131ef576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131fb5f848385612ee9565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254019250508190555061326d8361325e5f865f612eef565b61326785613362565b17612f16565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146133075780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001810190506132ce565b505f8203613341576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506133555f848385612f40565b505050565b5f9392505050565b5f6001821460e11b9050919050565b5f68ffffffffffffffffff82169050919050565b61338e81613371565b82525050565b5f6020820190506133a75f830184613385565b92915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133f2816133be565b81146133fc575f80fd5b50565b5f8135905061340d816133e9565b92915050565b5f60208284031215613428576134276133b6565b5b5f613435848285016133ff565b91505092915050565b5f8115159050919050565b6134528161343e565b82525050565b5f60208201905061346b5f830184613449565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61349a82613471565b9050919050565b6134aa81613490565b81146134b4575f80fd5b50565b5f813590506134c5816134a1565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b6134eb816134cb565b81146134f5575f80fd5b50565b5f81359050613506816134e2565b92915050565b5f8060408385031215613522576135216133b6565b5b5f61352f858286016134b7565b9250506020613540858286016134f8565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015613581578082015181840152602081019050613566565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6135a68261354a565b6135b08185613554565b93506135c0818560208601613564565b6135c98161358c565b840191505092915050565b5f6020820190508181035f8301526135ec818461359c565b905092915050565b5f819050919050565b613606816135f4565b8114613610575f80fd5b50565b5f81359050613621816135fd565b92915050565b5f6020828403121561363c5761363b6133b6565b5b5f61364984828501613613565b91505092915050565b61365b81613490565b82525050565b5f6020820190506136745f830184613652565b92915050565b5f80604083850312156136905761368f6133b6565b5b5f61369d858286016134b7565b92505060206136ae85828601613613565b9150509250929050565b6136c18161343e565b81146136cb575f80fd5b50565b5f813590506136dc816136b8565b92915050565b5f602082840312156136f7576136f66133b6565b5b5f613704848285016136ce565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261372e5761372d61370d565b5b8235905067ffffffffffffffff81111561374b5761374a613711565b5b60208301915083600182028301111561376757613766613715565b5b9250929050565b5f805f805f60808688031215613787576137866133b6565b5b5f61379488828901613613565b95505060206137a588828901613613565b94505060406137b6888289016136ce565b935050606086013567ffffffffffffffff8111156137d7576137d66133ba565b5b6137e388828901613719565b92509250509295509295909350565b6137fb816135f4565b82525050565b5f6020820190506138145f8301846137f2565b92915050565b5f805f60608486031215613831576138306133b6565b5b5f61383e868287016134b7565b935050602061384f868287016134b7565b925050604061386086828701613613565b9150509250925092565b5f80604083850312156138805761387f6133b6565b5b5f61388d85828601613613565b925050602061389e85828601613613565b9150509250929050565b5f6040820190506138bb5f830185613652565b6138c860208301846137f2565b9392505050565b5f61ffff82169050919050565b6138e5816138cf565b82525050565b5f6020820190506138fe5f8301846138dc565b92915050565b5f819050919050565b5f61392761392261391d84613471565b613904565b613471565b9050919050565b5f6139388261390d565b9050919050565b5f6139498261392e565b9050919050565b6139598161393f565b82525050565b5f6020820190506139725f830184613950565b92915050565b5f8083601f84011261398d5761398c61370d565b5b8235905067ffffffffffffffff8111156139aa576139a9613711565b5b6020830191508360018202830111156139c6576139c5613715565b5b9250929050565b5f80602083850312156139e3576139e26133b6565b5b5f83013567ffffffffffffffff811115613a00576139ff6133ba565b5b613a0c85828601613978565b92509250509250929050565b5f60208284031215613a2d57613a2c6133b6565b5b5f613a3a848285016134b7565b91505092915050565b5f8060408385031215613a5957613a586133b6565b5b5f613a66858286016134b7565b9250506020613a77858286016136ce565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b613abb8261358c565b810181811067ffffffffffffffff82111715613ada57613ad9613a85565b5b80604052505050565b5f613aec6133ad565b9050613af88282613ab2565b919050565b5f67ffffffffffffffff821115613b1757613b16613a85565b5b613b208261358c565b9050602081019050919050565b828183375f83830152505050565b5f613b4d613b4884613afd565b613ae3565b905082815260208101848484011115613b6957613b68613a81565b5b613b74848285613b2d565b509392505050565b5f82601f830112613b9057613b8f61370d565b5b8135613ba0848260208601613b3b565b91505092915050565b5f805f8060808587031215613bc157613bc06133b6565b5b5f613bce878288016134b7565b9450506020613bdf878288016134b7565b9350506040613bf087828801613613565b925050606085013567ffffffffffffffff811115613c1157613c106133ba565b5b613c1d87828801613b7c565b91505092959194509250565b5f819050919050565b613c3b81613c29565b82525050565b5f602082019050613c545f830184613c32565b92915050565b5f60ff82169050919050565b613c6f81613c5a565b82525050565b5f602082019050613c885f830184613c66565b92915050565b5f805f60408486031215613ca557613ca46133b6565b5b5f613cb286828701613613565b935050602084013567ffffffffffffffff811115613cd357613cd26133ba565b5b613cdf86828701613719565b92509250509250925092565b5f8060408385031215613d0157613d006133b6565b5b5f613d0e858286016134b7565b9250506020613d1f858286016134b7565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613d6d57607f821691505b602082108103613d8057613d7f613d29565b5b50919050565b7f496e76616c6964206d61726b6574706c6163652c206e6f7420616c6c6f7765645f82015250565b5f613dba602083613554565b9150613dc582613d86565b602082019050919050565b5f6020820190508181035f830152613de781613dae565b9050919050565b7f616c6c6f776c6973744d696e743a206e6f74206f70656e0000000000000000005f82015250565b5f613e22601783613554565b9150613e2d82613dee565b602082019050919050565b5f6020820190508181035f830152613e4f81613e16565b9050919050565b7f616c6c6f776c6973744d696e743a207a65726f207175616e74697479000000005f82015250565b5f613e8a601c83613554565b9150613e9582613e56565b602082019050919050565b5f6020820190508181035f830152613eb781613e7e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613ef5826135f4565b9150613f00836135f4565b9250828202613f0e816135f4565b91508282048414831517613f2557613f24613ebe565b5b5092915050565b7f616c6c6f776c6973744d696e743a20696e73756666696369656e742066756e645f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f613f86602183613554565b9150613f9182613f2c565b604082019050919050565b5f6020820190508181035f830152613fb381613f7a565b9050919050565b5f8160601b9050919050565b5f613fd082613fba565b9050919050565b5f613fe182613fc6565b9050919050565b613ff9613ff482613490565b613fd7565b82525050565b5f819050919050565b614019614014826135f4565b613fff565b82525050565b5f8160f81b9050919050565b5f6140358261401f565b9050919050565b5f6140468261402b565b9050919050565b61405e6140598261343e565b61403c565b82525050565b5f61406f8286613fe8565b60148201915061407f8285614008565b60208201915061408f828461404d565b600182019150819050949350505050565b7f616c6c6f776c6973744d696e743a20756e617574686f72697a656400000000005f82015250565b5f6140d4601b83613554565b91506140df826140a0565b602082019050919050565b5f6020820190508181035f830152614101816140c8565b9050919050565b5f614112826135f4565b915061411d836135f4565b925082820190508082111561413557614134613ebe565b5b92915050565b7f616c6c6f776c6973744d696e743a207175616e7469747920746f6f20686967685f82015250565b5f61416f602083613554565b915061417a8261413b565b602082019050919050565b5f6020820190508181035f83015261419c81614163565b9050919050565b7f616c6c6f776c6973744d696e743a20737570706c7920657863656564656400005f82015250565b5f6141d7601e83613554565b91506141e2826141a3565b602082019050919050565b5f6020820190508181035f830152614204816141cb565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614242826135f4565b915061424d836135f4565b92508261425d5761425c61420b565b5b828204905092915050565b7f77697468647261773a2077616c6c6574206e6f742073657400000000000000005f82015250565b5f61429c601883613554565b91506142a782614268565b602082019050919050565b5f6020820190508181035f8301526142c981614290565b9050919050565b5f81905092915050565b50565b5f6142e85f836142d0565b91506142f3826142da565b5f82019050919050565b5f614307826142dd565b9150819050919050565b7f77697468647261773a206661696c656420746f2073656e642066756e647300005f82015250565b5f614345601e83613554565b915061435082614311565b602082019050919050565b5f6020820190508181035f83015261437281614339565b9050919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026143df7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826143a4565b6143e986836143a4565b95508019841693508086168417925050509392505050565b5f61441b614416614411846135f4565b613904565b6135f4565b9050919050565b5f819050919050565b61443483614401565b61444861444082614422565b8484546143b0565b825550505050565b5f90565b61445c614450565b61446781848461442b565b505050565b5b8181101561448a5761447f5f82614454565b60018101905061446d565b5050565b601f8211156144cf576144a081614383565b6144a984614395565b810160208510156144b8578190505b6144cc6144c485614395565b83018261446c565b50505b505050565b5f82821c905092915050565b5f6144ef5f19846008026144d4565b1980831691505092915050565b5f61450783836144e0565b9150826002028217905092915050565b6145218383614379565b67ffffffffffffffff81111561453a57614539613a85565b5b6145448254613d56565b61454f82828561448e565b5f601f83116001811461457c575f841561456a578287013590505b61457485826144fc565b8655506145db565b601f19841661458a86614383565b5f5b828110156145b15784890135825560018201915060208501945060208101905061458c565b868310156145ce57848901356145ca601f8916826144e0565b8355505b6001600288020188555050505b50505050505050565b7f7365745769746864726177616c57616c6c65743a2061646472657373207a65725f8201527f6f00000000000000000000000000000000000000000000000000000000000000602082015250565b5f61463e602183613554565b9150614649826145e4565b604082019050919050565b5f6020820190508181035f83015261466b81614632565b9050919050565b7f66696e644c6963656e63653a20746f6b656e206e6f7420666f756e64000000005f82015250565b5f6146a6601c83613554565b91506146b182614672565b602082019050919050565b5f6020820190508181035f8301526146d38161469a565b9050919050565b7f746f6b656e5552493a20746f6b656e206e6f7420666f756e64000000000000005f82015250565b5f61470e601983613554565b9150614719826146da565b602082019050919050565b5f6020820190508181035f83015261473b81614702565b9050919050565b7f6d696e743a206e6f74206f70656e0000000000000000000000000000000000005f82015250565b5f614776600e83613554565b915061478182614742565b602082019050919050565b5f6020820190508181035f8301526147a38161476a565b9050919050565b7f6d696e743a207a65726f207175616e74697479000000000000000000000000005f82015250565b5f6147de601383613554565b91506147e9826147aa565b602082019050919050565b5f6020820190508181035f83015261480b816147d2565b9050919050565b7f6d696e743a207175616e7469747920746f6f20686967680000000000000000005f82015250565b5f614846601783613554565b915061485182614812565b602082019050919050565b5f6020820190508181035f8301526148738161483a565b9050919050565b7f6d696e743a20696e73756666696369656e742066756e647300000000000000005f82015250565b5f6148ae601883613554565b91506148b98261487a565b602082019050919050565b5f6020820190508181035f8301526148db816148a2565b9050919050565b7f6d696e743a20737570706c7920657863656564656400000000000000000000005f82015250565b5f614916601583613554565b9150614921826148e2565b602082019050919050565b5f6020820190508181035f8301526149438161490a565b9050919050565b5f6149558284613fe8565b60148201915081905092915050565b7f6d696e743a20756e617574686f72697a656400000000000000000000000000005f82015250565b5f614998601283613554565b91506149a382614964565b602082019050919050565b5f6020820190508181035f8301526149c58161498c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f614a26602683613554565b9150614a31826149cc565b604082019050919050565b5f6020820190508181035f830152614a5381614a1a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f614a8e602083613554565b9150614a9982614a5a565b602082019050919050565b5f6020820190508181035f830152614abb81614a82565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c206578636565645f8201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b5f614b1c602a83613554565b9150614b2782614ac2565b604082019050919050565b5f6020820190508181035f830152614b4981614b10565b9050919050565b7f455243323938313a20696e76616c6964207265636569766572000000000000005f82015250565b5f614b84601983613554565b9150614b8f82614b50565b602082019050919050565b5f6020820190508181035f830152614bb181614b78565b9050919050565b5f604082019050614bcb5f830185613652565b614bd86020830184613652565b9392505050565b5f81519050614bed816136b8565b92915050565b5f60208284031215614c0857614c076133b6565b5b5f614c1584828501614bdf565b91505092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f614c52601083613554565b9150614c5d82614c1e565b602082019050919050565b5f6020820190508181035f830152614c7f81614c46565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f614ce7601483613554565b9150614cf282614cb3565b602082019050919050565b5f6020820190508181035f830152614d1481614cdb565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f614d3f82614d1b565b614d498185614d25565b9350614d59818560208601613564565b614d628161358c565b840191505092915050565b5f604082019050614d805f830185613c32565b8181036020830152614d928184614d35565b90509392505050565b5f614da582614d1b565b614daf81856142d0565b9350614dbf818560208601613564565b80840191505092915050565b5f614dd68284614d9b565b915081905092915050565b614dea81613c29565b8114614df4575f80fd5b50565b5f81519050614e0581614de1565b92915050565b5f60208284031215614e2057614e1f6133b6565b5b5f614e2d84828501614df7565b91505092915050565b5f608082019050614e495f830187613652565b614e566020830186613652565b614e6360408301856137f2565b8181036060830152614e758184614d35565b905095945050505050565b5f81519050614e8e816133e9565b92915050565b5f60208284031215614ea957614ea86133b6565b5b5f614eb684828501614e80565b91505092915050565b5f608082019050614ed25f830187613c32565b614edf6020830186613c66565b614eec6040830185613c32565b614ef96060830184613c32565b9594505050505056fea2646970667358221220852bc8afa29e41740a8e35e565524704571001506d8480f267c057439e22854d64736f6c6343000814003300000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000000140000000000000000000000009365fd28b7121135f490bbe527933d7e3cfb4f69000000000000000000000000be0b84a0df82abd05e19ba24fce8cbe6d1d8ab3f000000000000000000000000000000000000000000000003bd913e6c1df40000000000000000000000000000000000000000000000000016c4abbebea010000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6547444d4443674b61364d594738484c42473372694342717a445733426e3946636f4d5a6f436a46564c66650000000000000000000000

Deployed Bytecode

0x608060405260043610610239575f3560e01c806370a082311161012d578063aa1b103f116100aa578063d85e5dd01161006e578063d85e5dd0146107d4578063db7fd408146107fc578063dc53fd9214610818578063e985e9c514610842578063f2fde38b1461087e57610239565b8063aa1b103f14610700578063b88d4fde14610716578063bf6d8b5714610732578063c6a91b421461076e578063c87b56dd1461079857610239565b80638456cb59116100f15780638456cb59146106445780638488bb4e1461065a5780638da5cb5b1461068457806395d89b41146106ae578063a22cb465146106d857610239565b806370a082311461056657806371269d96146105a2578063715018a6146105ca57806375796f76146105e057806379b417841461060857610239565b80632a55205a116101bb57806342842e0e1161017f57806342842e0e1461049457806355f804b3146104b05780635a928c55146104d85780635c975abb146105005780636352211e1461052a57610239565b80632a55205a146103d757806332cb6b0c146104145780633ccfd60b1461043e5780633f4ba83a1461045457806341f434341461046a57610239565b8063095ea7b311610202578063095ea7b3146103315780630e2d56cf1461034d5780630e9030bf1461037557806318160ddd1461039157806323b872dd146103bb57610239565b806204348e1461023d57806301ffc9a71461026757806304634d8d146102a357806306fdde03146102cb578063081812fc146102f5575b5f80fd5b348015610248575f80fd5b506102516108a6565b60405161025e9190613394565b60405180910390f35b348015610272575f80fd5b5061028d60048036038101906102889190613413565b6108c1565b60405161029a9190613458565b60405180910390f35b3480156102ae575f80fd5b506102c960048036038101906102c4919061350c565b6108e2565b005b3480156102d6575f80fd5b506102df6108f8565b6040516102ec91906135d4565b60405180910390f35b348015610300575f80fd5b5061031b60048036038101906103169190613627565b610988565b6040516103289190613661565b60405180910390f35b61034b6004803603810190610346919061367a565b610a02565b005b348015610358575f80fd5b50610373600480360381019061036e91906136e2565b610aa5565b005b61038f600480360381019061038a919061376e565b610abb565b005b34801561039c575f80fd5b506103a5610dde565b6040516103b29190613801565b60405180910390f35b6103d560048036038101906103d0919061381a565b610df3565b005b3480156103e2575f80fd5b506103fd60048036038101906103f8919061386a565b610e42565b60405161040b9291906138a8565b60405180910390f35b34801561041f575f80fd5b5061042861101e565b60405161043591906138eb565b60405180910390f35b348015610449575f80fd5b50610452611042565b005b34801561045f575f80fd5b506104686111aa565b005b348015610475575f80fd5b5061047e6111c4565b60405161048b919061395f565b60405180910390f35b6104ae60048036038101906104a9919061381a565b6111d6565b005b3480156104bb575f80fd5b506104d660048036038101906104d191906139cd565b611225565b005b3480156104e3575f80fd5b506104fe60048036038101906104f991906136e2565b611243565b005b34801561050b575f80fd5b50610514611259565b6040516105219190613458565b60405180910390f35b348015610535575f80fd5b50610550600480360381019061054b9190613627565b61126e565b60405161055d9190613661565b60405180910390f35b348015610571575f80fd5b5061058c60048036038101906105879190613a18565b61127f565b6040516105999190613801565b60405180910390f35b3480156105ad575f80fd5b506105c860048036038101906105c39190613a43565b611334565b005b3480156105d5575f80fd5b506105de611394565b005b3480156105eb575f80fd5b5061060660048036038101906106019190613a18565b6113a7565b005b348015610613575f80fd5b5061062e60048036038101906106299190613a18565b611460565b60405161063b9190613458565b60405180910390f35b34801561064f575f80fd5b5061065861147d565b005b348015610665575f80fd5b5061066e611497565b60405161067b9190613661565b60405180910390f35b34801561068f575f80fd5b506106986114bc565b6040516106a59190613661565b60405180910390f35b3480156106b9575f80fd5b506106c26114e5565b6040516106cf91906135d4565b60405180910390f35b3480156106e3575f80fd5b506106fe60048036038101906106f99190613a43565b611575565b005b34801561070b575f80fd5b50610714611618565b005b610730600480360381019061072b9190613ba9565b61162a565b005b34801561073d575f80fd5b5061075860048036038101906107539190613627565b61167b565b6040516107659190613c41565b60405180910390f35b348015610779575f80fd5b506107826116dd565b60405161078f9190613c75565b60405180910390f35b3480156107a3575f80fd5b506107be60048036038101906107b99190613627565b611701565b6040516107cb91906135d4565b60405180910390f35b3480156107df575f80fd5b506107fa60048036038101906107f591906136e2565b61175a565b005b61081660048036038101906108119190613c8e565b611770565b005b348015610823575f80fd5b5061082c611a49565b6040516108399190613394565b60405180910390f35b34801561084d575f80fd5b5061086860048036038101906108639190613ceb565b611a64565b6040516108759190613458565b60405180910390f35b348015610889575f80fd5b506108a4600480360381019061089f9190613a18565b611af2565b005b600f60019054906101000a900468ffffffffffffffffff1681565b5f6108cb82611b74565b806108db57506108da82611c05565b5b9050919050565b6108ea611c7e565b6108f48282611cfc565b5050565b60606002805461090790613d56565b80601f016020809104026020016040519081016040528092919081815260200182805461093390613d56565b801561097e5780601f106109555761010080835404028352916020019161097e565b820191905f5260205f20905b81548152906001019060200180831161096157829003601f168201915b5050505050905090565b5f61099282611e8c565b6109c8576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610a0c81611ee6565b60125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d90613dd0565b60405180910390fd5b610aa08383611fe0565b505050565b610aad611c7e565b610ab860018261211f565b50565b610ac3612188565b828015610ad65750610ad560046121d2565b5b80610ae75750610ae660026121d2565b5b610b26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1d90613e38565b60405180910390fd5b5f8511610b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5f90613ea0565b60405180910390fd5b8280610ba1575034600f60019054906101000a900468ffffffffffffffffff1668ffffffffffffffffff1686610b9e9190613eeb565b11155b610be0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd790613f9c565b60405180910390fd5b5f610c14338686604051602001610bf993929190614064565b604051602081830303815290604052805190602001206121f0565b9050610c85600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168285858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050612223565b610cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbb906140ea565b60405180910390fd5b5f610cd5610cd06122af565b6122b6565b67ffffffffffffffff169050858782610cee9190614108565b1115610d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2690614185565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000007d061ffff1687610d5d610dde565b610d679190614108565b1115610da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9f906141ed565b60405180910390fd5b610dc4610db36122af565b8883610dbf9190614108565b612300565b610dd5610dcf6122af565b886123b0565b50505050505050565b5f610de76123cd565b6001545f540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e3157610e3033611ee6565b5b610e3c8484846123d5565b50505050565b5f805f60095f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff1603610fcb5760086040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f610fd46126e3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866110009190613eeb565b61100a9190614238565b9050815f0151819350935050509250929050565b7f00000000000000000000000000000000000000000000000000000000000007d081565b61104a611c7e565b5f73ffffffffffffffffffffffffffffffffffffffff16600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036110d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d0906142b2565b60405180910390fd5b5f4790505f600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051611123906142fd565b5f6040518083038185875af1925050503d805f811461115d576040519150601f19603f3d011682016040523d82523d5f602084013e611162565b606091505b50509050806111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119d9061435b565b60405180910390fd5b5050565b6111b2611c7e565b6111ba6126ec565b6111c2612735565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112145761121333611ee6565b5b61121f848484612796565b50505050565b61122d611c7e565b81816011918261123e929190614517565b505050565b61124b611c7e565b61125660028261211f565b50565b5f600a5f9054906101000a900460ff16905090565b5f611278826127b5565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112e5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b61133c611c7e565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b61139c611c7e565b6113a55f612878565b565b6113af611c7e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361141d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141490614654565b60405180910390fd5b80600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6012602052805f5260405f205f915054906101000a900460ff1681565b611485611c7e565b61148d612188565b61149561293d565b565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546114f490613d56565b80601f016020809104026020016040519081016040528092919081815260200182805461152090613d56565b801561156b5780601f106115425761010080835404028352916020019161156b565b820191905f5260205f20905b81548152906001019060200180831161154e57829003601f168201915b5050505050905090565b8161157f81611ee6565b60125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160090613dd0565b60405180910390fd5b611613838361299f565b505050565b611620611c7e565b611628612aa5565b565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116685761166733611ee6565b5b61167485858585612aef565b5050505050565b5f61168582611e8c565b6116c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bb906146bc565b60405180910390fd5b60105f8381526020019081526020015f20549050919050565b7f000000000000000000000000000000000000000000000000000000000000001481565b606061170c82611e8c565b61174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290614724565b60405180910390fd5b611753612b61565b9050919050565b611762611c7e565b61176d60048261211f565b50565b611778612188565b61178260016121d2565b6117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b89061478c565b60405180910390fd5b5f8311611803576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fa906147f4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000001460ff16831115611869576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118609061485c565b60405180910390fd5b34600f600a9054906101000a900468ffffffffffffffffff1668ffffffffffffffffff16846118989190613eeb565b11156118d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d0906148c4565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000007d061ffff1683611907610dde565b6119119190614108565b1115611952576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119499061492c565b60405180910390fd5b5f61198233604051602001611967919061494a565b604051602081830303815290604052805190602001206121f0565b90506119f3600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168285858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050612223565b611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a29906149ae565b60405180910390fd5b611a43611a3d6122af565b856123b0565b50505050565b600f600a9054906101000a900468ffffffffffffffffff1681565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611afa611c7e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5f90614a3c565b60405180910390fd5b611b7181612878565b50565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bce57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611bfe5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c775750611c7682612bf1565b5b9050919050565b611c86612c5a565b73ffffffffffffffffffffffffffffffffffffffff16611ca46114bc565b73ffffffffffffffffffffffffffffffffffffffff1614611cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf190614aa4565b60405180910390fd5b565b611d046126e3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990614b32565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc790614b9a565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff1681525060085f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b5f81611e966123cd565b11158015611ea457505f5482105b8015611edf57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611fdd576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611f5c929190614bb8565b602060405180830381865afa158015611f77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f9b9190614bf3565b611fdc57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611fd39190613661565b60405180910390fd5b5b50565b5f611fea8261126e565b90508073ffffffffffffffffffffffffffffffffffffffff1661200b6122af565b73ffffffffffffffffffffffffffffffffffffffff161461206e57612037816120326122af565b611a64565b61206d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b80156121565781600f5f8282829054906101000a900460ff161792506101000a81548160ff021916908360ff160217905550612184565b8119600f5f8282829054906101000a900460ff161692506101000a81548160ff021916908360ff1602179055505b5050565b612190611259565b156121d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c790614c68565b60405180910390fd5b565b5f80600f5f9054906101000a900460ff16831660ff16119050919050565b5f7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f5281601c52603c5f209050919050565b5f805f6122308585612c61565b915091505f600481111561224757612246614c86565b5b81600481111561225a57612259614c86565b5b14801561229257508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806122a457506122a3868686612cad565b5b925050509392505050565b5f33905090565b5f60c060055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c9050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f82905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff83161791508160055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050505050565b6123c9828260405180602001604052805f815250612dec565b5050565b5f6001905090565b5f6123df826127b5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612446576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061245184612e83565b9150915061246781876124626122af565b612ea6565b6124b35761247c866124776122af565b611a64565b6124b2576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612518576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125258686866001612ee9565b801561252f575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506125f7856125d3888887612eef565b7c020000000000000000000000000000000000000000000000000000000017612f16565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603612673575f6001850190505f60045f8381526020019081526020015f205403612671575f548114612670578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126db8686866001612f40565b505050505050565b5f612710905090565b6126f4611259565b612733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272a90614cfd565b60405180910390fd5b565b61273d6126ec565b5f600a5f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61277f612c5a565b60405161278c9190613661565b60405180910390a1565b6127b083838360405180602001604052805f81525061162a565b505050565b5f80829050806127c36123cd565b11612841575f54811015612840575f60045f8381526020019081526020015f205490505f7c010000000000000000000000000000000000000000000000000000000082160361283e575b5f81036128345760045f836001900393508381526020019081526020015f2054905061280d565b8092505050612873565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612945612188565b6001600a5f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612988612c5a565b6040516129959190613661565b60405180910390a1565b8060075f6129ab6122af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612a546122af565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a999190613458565b60405180910390a35050565b60085f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f820160146101000a8154906bffffffffffffffffffffffff02191690555050565b612afa848484610df3565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612b5b57612b2484848484612f8e565b612b5a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060118054612b7090613d56565b80601f0160208091040260200160405190810160405280929190818152602001828054612b9c90613d56565b8015612be75780601f10612bbe57610100808354040283529160200191612be7565b820191905f5260205f20905b815481529060010190602001808311612bca57829003601f168201915b5050505050905090565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f806041835103612c9e575f805f602086015192506040860151915060608601515f1a9050612c92878285856130d9565b94509450505050612ca6565b5f6002915091505b9250929050565b5f805f8573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b8686604051602401612ce2929190614d6d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051612d4c9190614dcb565b5f60405180830381855afa9150503d805f8114612d84576040519150601f19603f3d011682016040523d82523d5f602084013e612d89565b606091505b5091509150818015612d9d57506020815110155b8015612de15750631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051810190612ddf9190614e0b565b145b925050509392505050565b612df683836131b1565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612e7e575f805490505f83820390505b612e325f868380600101945086612f8e565b612e68576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e2057815f5414612e7b575f80fd5b50505b505050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612f0586868461335a565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f885760105f8381526020019081526020015f205f90555b50505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fb36122af565b8786866040518563ffffffff1660e01b8152600401612fd59493929190614e36565b6020604051808303815f875af192505050801561301057506040513d601f19601f8201168201806040525081019061300d9190614e94565b60015b613086573d805f811461303e576040519150601f19603f3d011682016040523d82523d5f602084013e613043565b606091505b505f81510361307e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0835f1c1115613111575f6003915091506131a8565b5f6001878787876040515f81526020016040526040516131349493929190614ebf565b6020604051602081039080840390855afa158015613154573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131a0575f600192509250506131a8565b805f92509250505b94509492505050565b5f805490505f82036131ef576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131fb5f848385612ee9565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254019250508190555061326d8361325e5f865f612eef565b61326785613362565b17612f16565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146133075780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001810190506132ce565b505f8203613341576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506133555f848385612f40565b505050565b5f9392505050565b5f6001821460e11b9050919050565b5f68ffffffffffffffffff82169050919050565b61338e81613371565b82525050565b5f6020820190506133a75f830184613385565b92915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133f2816133be565b81146133fc575f80fd5b50565b5f8135905061340d816133e9565b92915050565b5f60208284031215613428576134276133b6565b5b5f613435848285016133ff565b91505092915050565b5f8115159050919050565b6134528161343e565b82525050565b5f60208201905061346b5f830184613449565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61349a82613471565b9050919050565b6134aa81613490565b81146134b4575f80fd5b50565b5f813590506134c5816134a1565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b6134eb816134cb565b81146134f5575f80fd5b50565b5f81359050613506816134e2565b92915050565b5f8060408385031215613522576135216133b6565b5b5f61352f858286016134b7565b9250506020613540858286016134f8565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015613581578082015181840152602081019050613566565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6135a68261354a565b6135b08185613554565b93506135c0818560208601613564565b6135c98161358c565b840191505092915050565b5f6020820190508181035f8301526135ec818461359c565b905092915050565b5f819050919050565b613606816135f4565b8114613610575f80fd5b50565b5f81359050613621816135fd565b92915050565b5f6020828403121561363c5761363b6133b6565b5b5f61364984828501613613565b91505092915050565b61365b81613490565b82525050565b5f6020820190506136745f830184613652565b92915050565b5f80604083850312156136905761368f6133b6565b5b5f61369d858286016134b7565b92505060206136ae85828601613613565b9150509250929050565b6136c18161343e565b81146136cb575f80fd5b50565b5f813590506136dc816136b8565b92915050565b5f602082840312156136f7576136f66133b6565b5b5f613704848285016136ce565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261372e5761372d61370d565b5b8235905067ffffffffffffffff81111561374b5761374a613711565b5b60208301915083600182028301111561376757613766613715565b5b9250929050565b5f805f805f60808688031215613787576137866133b6565b5b5f61379488828901613613565b95505060206137a588828901613613565b94505060406137b6888289016136ce565b935050606086013567ffffffffffffffff8111156137d7576137d66133ba565b5b6137e388828901613719565b92509250509295509295909350565b6137fb816135f4565b82525050565b5f6020820190506138145f8301846137f2565b92915050565b5f805f60608486031215613831576138306133b6565b5b5f61383e868287016134b7565b935050602061384f868287016134b7565b925050604061386086828701613613565b9150509250925092565b5f80604083850312156138805761387f6133b6565b5b5f61388d85828601613613565b925050602061389e85828601613613565b9150509250929050565b5f6040820190506138bb5f830185613652565b6138c860208301846137f2565b9392505050565b5f61ffff82169050919050565b6138e5816138cf565b82525050565b5f6020820190506138fe5f8301846138dc565b92915050565b5f819050919050565b5f61392761392261391d84613471565b613904565b613471565b9050919050565b5f6139388261390d565b9050919050565b5f6139498261392e565b9050919050565b6139598161393f565b82525050565b5f6020820190506139725f830184613950565b92915050565b5f8083601f84011261398d5761398c61370d565b5b8235905067ffffffffffffffff8111156139aa576139a9613711565b5b6020830191508360018202830111156139c6576139c5613715565b5b9250929050565b5f80602083850312156139e3576139e26133b6565b5b5f83013567ffffffffffffffff811115613a00576139ff6133ba565b5b613a0c85828601613978565b92509250509250929050565b5f60208284031215613a2d57613a2c6133b6565b5b5f613a3a848285016134b7565b91505092915050565b5f8060408385031215613a5957613a586133b6565b5b5f613a66858286016134b7565b9250506020613a77858286016136ce565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b613abb8261358c565b810181811067ffffffffffffffff82111715613ada57613ad9613a85565b5b80604052505050565b5f613aec6133ad565b9050613af88282613ab2565b919050565b5f67ffffffffffffffff821115613b1757613b16613a85565b5b613b208261358c565b9050602081019050919050565b828183375f83830152505050565b5f613b4d613b4884613afd565b613ae3565b905082815260208101848484011115613b6957613b68613a81565b5b613b74848285613b2d565b509392505050565b5f82601f830112613b9057613b8f61370d565b5b8135613ba0848260208601613b3b565b91505092915050565b5f805f8060808587031215613bc157613bc06133b6565b5b5f613bce878288016134b7565b9450506020613bdf878288016134b7565b9350506040613bf087828801613613565b925050606085013567ffffffffffffffff811115613c1157613c106133ba565b5b613c1d87828801613b7c565b91505092959194509250565b5f819050919050565b613c3b81613c29565b82525050565b5f602082019050613c545f830184613c32565b92915050565b5f60ff82169050919050565b613c6f81613c5a565b82525050565b5f602082019050613c885f830184613c66565b92915050565b5f805f60408486031215613ca557613ca46133b6565b5b5f613cb286828701613613565b935050602084013567ffffffffffffffff811115613cd357613cd26133ba565b5b613cdf86828701613719565b92509250509250925092565b5f8060408385031215613d0157613d006133b6565b5b5f613d0e858286016134b7565b9250506020613d1f858286016134b7565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613d6d57607f821691505b602082108103613d8057613d7f613d29565b5b50919050565b7f496e76616c6964206d61726b6574706c6163652c206e6f7420616c6c6f7765645f82015250565b5f613dba602083613554565b9150613dc582613d86565b602082019050919050565b5f6020820190508181035f830152613de781613dae565b9050919050565b7f616c6c6f776c6973744d696e743a206e6f74206f70656e0000000000000000005f82015250565b5f613e22601783613554565b9150613e2d82613dee565b602082019050919050565b5f6020820190508181035f830152613e4f81613e16565b9050919050565b7f616c6c6f776c6973744d696e743a207a65726f207175616e74697479000000005f82015250565b5f613e8a601c83613554565b9150613e9582613e56565b602082019050919050565b5f6020820190508181035f830152613eb781613e7e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613ef5826135f4565b9150613f00836135f4565b9250828202613f0e816135f4565b91508282048414831517613f2557613f24613ebe565b5b5092915050565b7f616c6c6f776c6973744d696e743a20696e73756666696369656e742066756e645f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f613f86602183613554565b9150613f9182613f2c565b604082019050919050565b5f6020820190508181035f830152613fb381613f7a565b9050919050565b5f8160601b9050919050565b5f613fd082613fba565b9050919050565b5f613fe182613fc6565b9050919050565b613ff9613ff482613490565b613fd7565b82525050565b5f819050919050565b614019614014826135f4565b613fff565b82525050565b5f8160f81b9050919050565b5f6140358261401f565b9050919050565b5f6140468261402b565b9050919050565b61405e6140598261343e565b61403c565b82525050565b5f61406f8286613fe8565b60148201915061407f8285614008565b60208201915061408f828461404d565b600182019150819050949350505050565b7f616c6c6f776c6973744d696e743a20756e617574686f72697a656400000000005f82015250565b5f6140d4601b83613554565b91506140df826140a0565b602082019050919050565b5f6020820190508181035f830152614101816140c8565b9050919050565b5f614112826135f4565b915061411d836135f4565b925082820190508082111561413557614134613ebe565b5b92915050565b7f616c6c6f776c6973744d696e743a207175616e7469747920746f6f20686967685f82015250565b5f61416f602083613554565b915061417a8261413b565b602082019050919050565b5f6020820190508181035f83015261419c81614163565b9050919050565b7f616c6c6f776c6973744d696e743a20737570706c7920657863656564656400005f82015250565b5f6141d7601e83613554565b91506141e2826141a3565b602082019050919050565b5f6020820190508181035f830152614204816141cb565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614242826135f4565b915061424d836135f4565b92508261425d5761425c61420b565b5b828204905092915050565b7f77697468647261773a2077616c6c6574206e6f742073657400000000000000005f82015250565b5f61429c601883613554565b91506142a782614268565b602082019050919050565b5f6020820190508181035f8301526142c981614290565b9050919050565b5f81905092915050565b50565b5f6142e85f836142d0565b91506142f3826142da565b5f82019050919050565b5f614307826142dd565b9150819050919050565b7f77697468647261773a206661696c656420746f2073656e642066756e647300005f82015250565b5f614345601e83613554565b915061435082614311565b602082019050919050565b5f6020820190508181035f83015261437281614339565b9050919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026143df7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826143a4565b6143e986836143a4565b95508019841693508086168417925050509392505050565b5f61441b614416614411846135f4565b613904565b6135f4565b9050919050565b5f819050919050565b61443483614401565b61444861444082614422565b8484546143b0565b825550505050565b5f90565b61445c614450565b61446781848461442b565b505050565b5b8181101561448a5761447f5f82614454565b60018101905061446d565b5050565b601f8211156144cf576144a081614383565b6144a984614395565b810160208510156144b8578190505b6144cc6144c485614395565b83018261446c565b50505b505050565b5f82821c905092915050565b5f6144ef5f19846008026144d4565b1980831691505092915050565b5f61450783836144e0565b9150826002028217905092915050565b6145218383614379565b67ffffffffffffffff81111561453a57614539613a85565b5b6145448254613d56565b61454f82828561448e565b5f601f83116001811461457c575f841561456a578287013590505b61457485826144fc565b8655506145db565b601f19841661458a86614383565b5f5b828110156145b15784890135825560018201915060208501945060208101905061458c565b868310156145ce57848901356145ca601f8916826144e0565b8355505b6001600288020188555050505b50505050505050565b7f7365745769746864726177616c57616c6c65743a2061646472657373207a65725f8201527f6f00000000000000000000000000000000000000000000000000000000000000602082015250565b5f61463e602183613554565b9150614649826145e4565b604082019050919050565b5f6020820190508181035f83015261466b81614632565b9050919050565b7f66696e644c6963656e63653a20746f6b656e206e6f7420666f756e64000000005f82015250565b5f6146a6601c83613554565b91506146b182614672565b602082019050919050565b5f6020820190508181035f8301526146d38161469a565b9050919050565b7f746f6b656e5552493a20746f6b656e206e6f7420666f756e64000000000000005f82015250565b5f61470e601983613554565b9150614719826146da565b602082019050919050565b5f6020820190508181035f83015261473b81614702565b9050919050565b7f6d696e743a206e6f74206f70656e0000000000000000000000000000000000005f82015250565b5f614776600e83613554565b915061478182614742565b602082019050919050565b5f6020820190508181035f8301526147a38161476a565b9050919050565b7f6d696e743a207a65726f207175616e74697479000000000000000000000000005f82015250565b5f6147de601383613554565b91506147e9826147aa565b602082019050919050565b5f6020820190508181035f83015261480b816147d2565b9050919050565b7f6d696e743a207175616e7469747920746f6f20686967680000000000000000005f82015250565b5f614846601783613554565b915061485182614812565b602082019050919050565b5f6020820190508181035f8301526148738161483a565b9050919050565b7f6d696e743a20696e73756666696369656e742066756e647300000000000000005f82015250565b5f6148ae601883613554565b91506148b98261487a565b602082019050919050565b5f6020820190508181035f8301526148db816148a2565b9050919050565b7f6d696e743a20737570706c7920657863656564656400000000000000000000005f82015250565b5f614916601583613554565b9150614921826148e2565b602082019050919050565b5f6020820190508181035f8301526149438161490a565b9050919050565b5f6149558284613fe8565b60148201915081905092915050565b7f6d696e743a20756e617574686f72697a656400000000000000000000000000005f82015250565b5f614998601283613554565b91506149a382614964565b602082019050919050565b5f6020820190508181035f8301526149c58161498c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f614a26602683613554565b9150614a31826149cc565b604082019050919050565b5f6020820190508181035f830152614a5381614a1a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f614a8e602083613554565b9150614a9982614a5a565b602082019050919050565b5f6020820190508181035f830152614abb81614a82565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c206578636565645f8201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b5f614b1c602a83613554565b9150614b2782614ac2565b604082019050919050565b5f6020820190508181035f830152614b4981614b10565b9050919050565b7f455243323938313a20696e76616c6964207265636569766572000000000000005f82015250565b5f614b84601983613554565b9150614b8f82614b50565b602082019050919050565b5f6020820190508181035f830152614bb181614b78565b9050919050565b5f604082019050614bcb5f830185613652565b614bd86020830184613652565b9392505050565b5f81519050614bed816136b8565b92915050565b5f60208284031215614c0857614c076133b6565b5b5f614c1584828501614bdf565b91505092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f614c52601083613554565b9150614c5d82614c1e565b602082019050919050565b5f6020820190508181035f830152614c7f81614c46565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f614ce7601483613554565b9150614cf282614cb3565b602082019050919050565b5f6020820190508181035f830152614d1481614cdb565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f614d3f82614d1b565b614d498185614d25565b9350614d59818560208601613564565b614d628161358c565b840191505092915050565b5f604082019050614d805f830185613c32565b8181036020830152614d928184614d35565b90509392505050565b5f614da582614d1b565b614daf81856142d0565b9350614dbf818560208601613564565b80840191505092915050565b5f614dd68284614d9b565b915081905092915050565b614dea81613c29565b8114614df4575f80fd5b50565b5f81519050614e0581614de1565b92915050565b5f60208284031215614e2057614e1f6133b6565b5b5f614e2d84828501614df7565b91505092915050565b5f608082019050614e495f830187613652565b614e566020830186613652565b614e6360408301856137f2565b8181036060830152614e758184614d35565b905095945050505050565b5f81519050614e8e816133e9565b92915050565b5f60208284031215614ea957614ea86133b6565b5b5f614eb684828501614e80565b91505092915050565b5f608082019050614ed25f830187613c32565b614edf6020830186613c66565b614eec6040830185613c32565b614ef96060830184613c32565b9594505050505056fea2646970667358221220852bc8afa29e41740a8e35e565524704571001506d8480f267c057439e22854d64736f6c63430008140033

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

00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000000140000000000000000000000009365fd28b7121135f490bbe527933d7e3cfb4f69000000000000000000000000be0b84a0df82abd05e19ba24fce8cbe6d1d8ab3f000000000000000000000000000000000000000000000003bd913e6c1df40000000000000000000000000000000000000000000000000016c4abbebea010000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6547444d4443674b61364d594738484c42473372694342717a445733426e3946636f4d5a6f436a46564c66650000000000000000000000

-----Decoded View---------------
Arg [0] : supply_ (uint16): 2000
Arg [1] : maxMintsPerTx_ (uint8): 20
Arg [2] : signer_ (address): 0x9365Fd28B7121135f490bBe527933D7E3Cfb4F69
Arg [3] : payoutWallet_ (address): 0xbe0b84A0Df82AbD05e19Ba24FCe8cBE6d1D8Ab3f
Arg [4] : privateMintPrice_ (uint72): 69000000000000000000
Arg [5] : publicMintPrice_ (uint72): 420000000000000000000
Arg [6] : baseURI_ (string): ipfs://QmeGDMDCgKa6MYG8HLBG3riCBqzDW3Bn9FcoMZoCjFVLfe

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [2] : 0000000000000000000000009365fd28b7121135f490bbe527933d7e3cfb4f69
Arg [3] : 000000000000000000000000be0b84a0df82abd05e19ba24fce8cbe6d1d8ab3f
Arg [4] : 000000000000000000000000000000000000000000000003bd913e6c1df40000
Arg [5] : 000000000000000000000000000000000000000000000016c4abbebea0100000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [8] : 697066733a2f2f516d6547444d4443674b61364d594738484c42473372694342
Arg [9] : 717a445733426e3946636f4d5a6f436a46564c66650000000000000000000000


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.