ETH Price: $3,412.25 (-0.27%)

Token

Grandma Apes Spa Club (GASC)
 

Overview

Max Total Supply

1,576 GASC

Holders

103

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
366 GASC
0x491d6d689ac41a4bca065a31dd8ea32ab20bbfc6
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:
GrandmaApesNft

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol


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

pragma solidity ^0.8.0;


/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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 = MathUpgradeable.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

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

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

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

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


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

pragma solidity ^0.8.0;

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

// File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol


// 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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;


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

        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 Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

    /**
     * @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 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // 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, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @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. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

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

        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 result) {
        if (_startTokenId() <= tokenId) {
            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

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

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (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.selector);

        _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;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // 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.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

        _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.selector);
            }
    }

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

        _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:
            // - `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)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            do {
                assembly {
                    // 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`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

            _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.selector);
        if (quantity == 0) _revert(MintZeroQuantity.selector);
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);

        _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.selector);
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) _revert(bytes4(0));
            }
        }
    }

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

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

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

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

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

    // =============================================================
    //                        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.selector);
        }

        _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.selector);
        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)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

// File: contracts/grandmas/GrandmaApesNft.sol


pragma solidity ^0.8.19;






contract GrandmaApesNft is ERC721A, Ownable {
    using StringsUpgradeable for uint256;
    address extendingContract;
    //fund wallets 
    address public gran  = 0x02263c4691916C26E2768c3d7d251106DA876273;
    address public devs = 0x30E6139e2154C8a4cc1b9bA0DEbC1AcD13589307;
    address public crossmintAddress;

    string public baseApiURI;

    //Utility
    bool public paused = false;
    bool public canClaim = true;
    bool public erc20PaymentsPause = false;

    //General Settings
    uint16 public maxMintAmountPerTransaction = 10;
    uint16 public maxMintAmountPerWallet = 500;

    //Inventory
    //total 8420
    //minted already 3100
    uint256 public maxSupply = 5320;

    //Prices
    uint256 public cost = 0.04 ether;

    //Merkle Tree Roots
    bytes32 private claimRoot;

    //mapping
    mapping(address => bool) private claims;
    mapping(address => bool) public _allowedErc20;
    mapping(address => uint256) public _erc20MintPrice;

    constructor(string memory _baseUrl) ERC721A("Grandma Apes Spa Club", "GASC") {
        baseApiURI = _baseUrl;
        //METH
        _erc20MintPrice[0xED5464bd5c477b7F71739Ce1d741b43E932b97b0] = 1500;
        _allowedErc20[0xED5464bd5c477b7F71739Ce1d741b43E932b97b0] = true;
        //APECOIN
        _erc20MintPrice[0x4d224452801ACEd8B2F0aebE155379bb5D594381] = 20 ether;
        _allowedErc20[0x4d224452801ACEd8B2F0aebE155379bb5D594381] = true;
    }

    modifier _checks(uint256 _amount) {
        require(!paused, "Contract is paused");
        require(_amount > 0, "Mint amount should be greater than 0");
        require((totalSupply() + _amount) <= maxSupply, "NFT Supply Passed");
        require(
            _amount <= maxMintAmountPerTransaction,
            "Passed Mint limit per transaction"
        );
        _;
    }

    modifier _erc20PaymentChecks(uint256 _amount, address _erc20) {
        require(!erc20PaymentsPause, "Contract is paused");
        require(_amount > 0, "Mint amount should be greater than 0");
        require((totalSupply() + _amount) <= maxSupply, "NFTS Supply Passed");
        require(
            _amount <= maxMintAmountPerTransaction,
            "Passed Mint limit per transaction"
        );
        //check if erc20 contract is allowed
        require(_allowedErc20[_erc20], "ERC20 is not allowed");
        //check if erc20 price is not 0
        require(_erc20MintPrice[_erc20] > 0, "ERC20 Mint price not set");
        //check allowance
        require(
            IERC20(_erc20).allowance(msg.sender, address(this)) >=
                (_erc20MintPrice[_erc20] * _amount),
            "Not enough Allowance"
        );

        _;
    }

    function setCrossmintAddress(address _crossmintAddress) public onlyOwner {
        crossmintAddress = _crossmintAddress;
    }

    function mint(uint256 _amount) external payable _checks(_amount) {
        //check price
        if (msg.sender != owner()) {
            require(msg.value >= (cost * _amount), "Not enough Funds");
        }
        _mint(msg.sender, _amount);
    }

    function crossmint(uint256 _amount) external payable _checks(_amount) {
        require(
            msg.sender == crossmintAddress,
            "This function is for Crossmint only."
        );
        require(msg.value >= (cost * _amount), "Not enough Funds");
        _mint(msg.sender, _amount);
    }

    function mintWithErc20(uint256 _amount, address _erc20)
        external
        payable
        _erc20PaymentChecks(_amount, _erc20)
    {
        uint totalVal = _erc20MintPrice[_erc20] * _amount;

        uint share1 = (totalVal * 10) / 100;
        uint share2 = (totalVal * 90) / 100;
        
        IERC20(_erc20).transferFrom(
            msg.sender,
            devs,
            share1
        );
        IERC20(_erc20).transferFrom(
            msg.sender,
            gran,
            share2
        );
        _mint(msg.sender, _amount);
    }

    //This function will be used to extend the project with more capabilities
    function setExternalContract(address _bAddress) public onlyOwner {
        extendingContract = _bAddress;
    }

    //this function can be called only from the extending contract
    function mintExternal(address _address, uint256 _mintAmount) external {
        require(
            msg.sender == extendingContract,
            "Sorry you don't have permission to mint"
        );
        _safeMint(_address, _mintAmount);
    }

    function setClaimRoot(bytes32 _root) public onlyOwner {
        claimRoot = _root;
    }

    function _verifyClaim(bytes32 _leafNode, bytes32[] memory proof)
        internal
        view
        returns (bool)
    {
        return MerkleProof.verify(proof, claimRoot, _leafNode);
    }

    function _leaf(address account, uint256 _amount)
        internal
        pure
        returns (bytes32)
    {
        return keccak256(abi.encodePacked(account, _amount));
    }

    //genesis Claim
    function claim(uint256 _amount, bytes32[] calldata proof) public payable {
        //verification

        require(canClaim, "Claim not enabled");
        require(
            _verifyClaim(_leaf(msg.sender, _amount), proof),
            "Invalid proof"
        );

        require(!claims[msg.sender], "Already Claimed");
        _mintLoop(msg.sender, _amount);
        claims[msg.sender] = true;
    }

    function isClaimed(address _owner) external view returns (bool) {
        return claims[_owner];
    }

    function gift(address _to, uint256 _mintAmount) public onlyOwner {
        _mintLoop(_to, _mintAmount);
    }

    function airdrop(address[] memory _airdropAddresses) public onlyOwner {
        for (uint256 i = 0; i < _airdropAddresses.length; i++) {
            address to = _airdropAddresses[i];
            _mintLoop(to, 1);
        }
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        string memory currentBaseURI = _baseURI();
        return
            bytes(currentBaseURI).length > 0
                ? string(abi.encodePacked(currentBaseURI, tokenId.toString()))
                : "";
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }

    function setErc20ContractState(
        address _a,
        uint256 _p,
        bool _val
    ) external onlyOwner {
        _allowedErc20[_a] = _val;
        _erc20MintPrice[_a] = _p;
    }

    

    function setmaxMintAmountPerTransaction(uint16 _amount) public onlyOwner {
        maxMintAmountPerTransaction = _amount;
    }

    function setMaxMintAmountPerWallet(uint16 _amount) public onlyOwner {
        maxMintAmountPerWallet = _amount;
    }

    function setMaxSupply(uint256 _supply) public onlyOwner {
        maxSupply = _supply;
    }

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

    function togglePause() public onlyOwner {
        paused = !paused;
    }

    function toggleClaim() public onlyOwner {
        canClaim = !canClaim;
    }

    function _mintLoop(address _receiver, uint256 _mintAmount) internal {
        _safeMint(_receiver, _mintAmount);
    }

    function withdraw() public payable onlyOwner {
        (bool hs, ) = payable(devs).call{
            value: (address(this).balance * 10) / 100
        }("");
        require(hs);
        
        (bool os, ) = payable(gran).call{value: address(this).balance}("");
        require(os);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseUrl","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":[],"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_allowedErc20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_erc20MintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","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":[],"name":"baseApiURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"crossmintAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20PaymentsPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gran","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":"address","name":"_owner","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerWallet","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_erc20","type":"address"}],"name":"mintWithErc20","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setClaimRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_crossmintAddress","type":"address"}],"name":"setCrossmintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_a","type":"address"},{"internalType":"uint256","name":"_p","type":"uint256"},{"internalType":"bool","name":"_val","type":"bool"}],"name":"setErc20ContractState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bAddress","type":"address"}],"name":"setExternalContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxMintAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setmaxMintAmountPerTransaction","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":[],"name":"toggleClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","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":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600a80546001600160a01b03199081167302263c4691916c26e2768c3d7d251106da87627317909155600b80549091167330e6139e2154c8a4cc1b9ba0debc1acd13589307179055600e80546601f4000a00010066ffffffffffffff199091161790556114c8600f55668e1bc9bf0400006010553480156200008557600080fd5b5060405162002d1b38038062002d1b833981016040819052620000a89162000274565b6040518060400160405280601581526020017f4772616e646d6120417065732053706120436c75620000000000000000000000815250604051806040016040528060048152602001634741534360e01b81525081600290816200010c9190620003d8565b5060036200011b8282620003d8565b505060008055506200012d336200020c565b600d6200013b8282620003d8565b50506105dc7f3910c37b2e5d039efd97d8122537a638e9e3574722006ace635379f2dc22a52b557f5a63c41c781d58c85581a8e7b55bd0c7934e8488a75b6f8b6bec198f84b339568054600160ff199182168117909255734d224452801aced8b2f0aebe155379bb5d5943816000526801158e460913d000007f1f762cdffb552d3167786a171fbcec01f43d2e133c992832ffd8ea7e908bed525560136020527f0e0acf382b634abc73b16cf740d85b16f357061526fe13f18d3d8000af6fada880549091169091179055620004a4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200028857600080fd5b82516001600160401b0380821115620002a057600080fd5b818501915085601f830112620002b557600080fd5b815181811115620002ca57620002ca6200025e565b604051601f8201601f19908116603f01168101908382118183101715620002f557620002f56200025e565b8160405282815288868487010111156200030e57600080fd5b600093505b8284101562000332578484018601518185018701529285019262000313565b600086848301015280965050505050505092915050565b600181811c908216806200035e57607f821691505b6020821081036200037f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003d357600081815260208120601f850160051c81016020861015620003ae5750805b601f850160051c820191505b81811015620003cf57828155600101620003ba565b5050505b505050565b81516001600160401b03811115620003f457620003f46200025e565b6200040c8162000405845462000349565b8462000385565b602080601f8311600181146200044457600084156200042b5750858301515b600019600386901b1c1916600185901b178555620003cf565b600085815260208120601f198616915b82811015620004755788860151825594840194600190910190840162000454565b5085821015620004945787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61286780620004b46000396000f3fe6080604052600436106102c95760003560e01c8063729ad39e11610175578063bbb89744116100dc578063d112974511610095578063e97800cb1161006f578063e97800cb14610841578063e985e9c514610861578063f2fde38b14610881578063f4da1846146108a157600080fd5b8063d1129745146107f6578063d5abeb011461080b578063e459ad021461082157600080fd5b8063bbb8974414610728578063bc951b911461075d578063c4ae316814610781578063c87b56dd14610796578063cbce4c97146107b6578063cef11729146107d657600080fd5b8063997556241161012e57806399755624146106725780639a96f829146106925780639ebc3e07146106b2578063a0712d68146106e2578063a22cb465146106f5578063b88d4fde1461071557600080fd5b8063729ad39e146105b357806379875262146105d35780637bb348d1146105f35780638cc08025146106065780638da5cb5b1461063f57806395d89b411461065d57600080fd5b806341827f13116102345780636352211e116101ed5780636f8b44b0116101c75780636f8b44b01461054b57806370a082311461056b57806370e5120d1461058b578063715018a61461059e57600080fd5b80636352211e146104df5780636aaffa36146104ff5780636dc7a6271461052c57600080fd5b806341827f131461043d57806342842e0e1461045257806344a0d68a1461046557806355f804b3146104855780635b2a55e4146104a55780635c975abb146104c557600080fd5b806318160ddd1161028657806318160ddd146103b657806321b97f20146103cf57806323b872dd146103ef5780632bac46df146104025780632f52ebb7146104225780633ccfd60b1461043557600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806309e7fe1b1461037257806313faede614610392575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612011565b6108c1565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610913565b6040516102fa919061207e565b34801561033157600080fd5b50610345610340366004612091565b6109a5565b6040516001600160a01b0390911681526020016102fa565b61037061036b3660046120c1565b6109e0565b005b34801561037e57600080fd5b5061037061038d3660046120eb565b6109f0565b34801561039e57600080fd5b506103a860105481565b6040519081526020016102fa565b3480156103c257600080fd5b50600154600054036103a8565b3480156103db57600080fd5b506103706103ea366004612091565b610a1a565b6103706103fd366004612106565b610a27565b34801561040e57600080fd5b50600e546102ee9062010000900460ff1681565b610370610430366004612142565b610b8c565b610370610d0f565b34801561044957600080fd5b50610318610dec565b610370610460366004612106565b610e7a565b34801561047157600080fd5b50610370610480366004612091565b610e9a565b34801561049157600080fd5b506103706104a0366004612260565b610ea7565b3480156104b157600080fd5b50600c54610345906001600160a01b031681565b3480156104d157600080fd5b50600e546102ee9060ff1681565b3480156104eb57600080fd5b506103456104fa366004612091565b610ebb565b34801561050b57600080fd5b506103a861051a3660046120eb565b60146020526000908152604090205481565b34801561053857600080fd5b50600e546102ee90610100900460ff1681565b34801561055757600080fd5b50610370610566366004612091565b610ec6565b34801561057757600080fd5b506103a86105863660046120eb565b610ed3565b6103706105993660046122a9565b610f19565b3480156105aa57600080fd5b506103706112ee565b3480156105bf57600080fd5b506103706105ce3660046122d5565b611302565b3480156105df57600080fd5b50600a54610345906001600160a01b031681565b610370610601366004612091565b611352565b34801561061257600080fd5b506102ee6106213660046120eb565b6001600160a01b031660009081526012602052604090205460ff1690565b34801561064b57600080fd5b506008546001600160a01b0316610345565b34801561066957600080fd5b506103186114e1565b34801561067e57600080fd5b5061037061068d3660046120eb565b6114f0565b34801561069e57600080fd5b50600b54610345906001600160a01b031681565b3480156106be57600080fd5b506102ee6106cd3660046120eb565b60136020526000908152604090205460ff1681565b6103706106f0366004612091565b61151a565b34801561070157600080fd5b50610370610710366004612390565b611609565b6103706107233660046123c7565b611675565b34801561073457600080fd5b50600e5461074a906301000000900461ffff1681565b60405161ffff90911681526020016102fa565b34801561076957600080fd5b50600e5461074a9065010000000000900461ffff1681565b34801561078d57600080fd5b506103706116b6565b3480156107a257600080fd5b506103186107b1366004612091565b6116d2565b3480156107c257600080fd5b506103706107d13660046120c1565b61179d565b3480156107e257600080fd5b506103706107f1366004612443565b6117af565b34801561080257600080fd5b506103706117dd565b34801561081757600080fd5b506103a8600f5481565b34801561082d57600080fd5b5061037061083c366004612467565b611802565b34801561084d57600080fd5b5061037061085c366004612443565b611842565b34801561086d57600080fd5b506102ee61087c3660046124a7565b61186c565b34801561088d57600080fd5b5061037061089c3660046120eb565b61189a565b3480156108ad57600080fd5b506103706108bc3660046120c1565b611913565b60006301ffc9a760e01b6001600160e01b0319831614806108f257506380ac58cd60e01b6001600160e01b03198316145b8061090d5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610922906124d1565b80601f016020809104026020016040519081016040528092919081815260200182805461094e906124d1565b801561099b5780601f106109705761010080835404028352916020019161099b565b820191906000526020600020905b81548152906001019060200180831161097e57829003601f168201915b5050505050905090565b60006109b082611987565b6109c4576109c46333d1c03960e21b6119cc565b506000908152600660205260409020546001600160a01b031690565b6109ec828260016119d6565b5050565b6109f8611a79565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610a22611a79565b601155565b6000610a3282611ad3565b6001600160a01b039485169490915081168414610a5857610a5862a1148160e81b6119cc565b60008281526006602052604090208054338082146001600160a01b03881690911417610a9c57610a88863361186c565b610a9c57610a9c632ce44b5f60e11b6119cc565b8015610aa757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610b3957600184016000818152600460205260408120549003610b37576000548114610b375760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a480600003610b8357610b83633a954ecd60e21b6119cc565b50505050505050565b600e54610100900460ff16610bdc5760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b60448201526064015b60405180910390fd5b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018790528351808403909101815260549092019092528051910120610c5890838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611b6992505050565b610c945760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610bd3565b3360009081526012602052604090205460ff1615610ce65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4810db185a5b5959608a1b6044820152606401610bd3565b610cf0338461197d565b5050336000908152601260205260409020805460ff1916600117905550565b610d17611a79565b600b546000906001600160a01b03166064610d3347600a612521565b610d3d9190612538565b604051600081818185875af1925050503d8060008114610d79576040519150601f19603f3d011682016040523d82523d6000602084013e610d7e565b606091505b5050905080610d8c57600080fd5b600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610dd9576040519150601f19603f3d011682016040523d82523d6000602084013e610dde565b606091505b50509050806109ec57600080fd5b600d8054610df9906124d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610e25906124d1565b8015610e725780601f10610e4757610100808354040283529160200191610e72565b820191906000526020600020905b815481529060010190602001808311610e5557829003601f168201915b505050505081565b610e9583838360405180602001604052806000815250611675565b505050565b610ea2611a79565b601055565b610eaf611a79565b600d6109ec82826125a8565b600061090d82611ad3565b610ece611a79565b600f55565b60006001600160a01b038216610ef357610ef36323d3ad8160e21b6119cc565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600e548290829062010000900460ff1615610f465760405162461bcd60e51b8152600401610bd390612668565b60008211610f665760405162461bcd60e51b8152600401610bd390612694565b600f5482610f776001546000540390565b610f8191906126d8565b1115610fc45760405162461bcd60e51b815260206004820152601260248201527113919514c814dd5c1c1b1e4814185cdcd95960721b6044820152606401610bd3565b600e546301000000900461ffff16821115610ff15760405162461bcd60e51b8152600401610bd3906126eb565b6001600160a01b03811660009081526013602052604090205460ff166110505760405162461bcd60e51b8152602060048201526014602482015273115490cc8c081a5cc81b9bdd08185b1b1bddd95960621b6044820152606401610bd3565b6001600160a01b0381166000908152601460205260409020546110b55760405162461bcd60e51b815260206004820152601860248201527f4552433230204d696e74207072696365206e6f742073657400000000000000006044820152606401610bd3565b6001600160a01b0381166000908152601460205260409020546110d9908390612521565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e90604401602060405180830381865afa158015611123573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611147919061272c565b101561118c5760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820416c6c6f77616e636560601b6044820152606401610bd3565b6001600160a01b0383166000908152601460205260408120546111b0908690612521565b9050600060646111c183600a612521565b6111cb9190612538565b9050600060646111dc84605a612521565b6111e69190612538565b600b546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018590529192508716906323b872dd906064016020604051808303816000875af1158015611241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112659190612745565b50600a546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101839052908716906323b872dd906064016020604051808303816000875af11580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e39190612745565b50610b833388611b78565b6112f6611a79565b6113006000611c37565b565b61130a611a79565b60005b81518110156109ec57600082828151811061132a5761132a612762565b6020026020010151905061133f81600161197d565b508061134a81612778565b91505061130d565b600e54819060ff16156113775760405162461bcd60e51b8152600401610bd390612668565b600081116113975760405162461bcd60e51b8152600401610bd390612694565b600f54816113a86001546000540390565b6113b291906126d8565b11156113f45760405162461bcd60e51b81526020600482015260116024820152701391950814dd5c1c1b1e4814185cdcd959607a1b6044820152606401610bd3565b600e546301000000900461ffff168111156114215760405162461bcd60e51b8152600401610bd3906126eb565b600c546001600160a01b031633146114875760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610bd3565b816010546114959190612521565b3410156114d75760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682046756e647360801b6044820152606401610bd3565b6109ec3383611b78565b606060038054610922906124d1565b6114f8611a79565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600e54819060ff161561153f5760405162461bcd60e51b8152600401610bd390612668565b6000811161155f5760405162461bcd60e51b8152600401610bd390612694565b600f54816115706001546000540390565b61157a91906126d8565b11156115bc5760405162461bcd60e51b81526020600482015260116024820152701391950814dd5c1c1b1e4814185cdcd959607a1b6044820152606401610bd3565b600e546301000000900461ffff168111156115e95760405162461bcd60e51b8152600401610bd3906126eb565b6008546001600160a01b031633146114d757816010546114959190612521565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611680848484610a27565b6001600160a01b0383163b156116b05761169c84848484611c89565b6116b0576116b06368d2bf6b60e11b6119cc565b50505050565b6116be611a79565b600e805460ff19811660ff90911615179055565b60606116dd82611987565b6117415760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bd3565b600061174b611d6c565b9050600081511161176b5760405180602001604052806000815250611796565b8061177584611d7b565b604051602001611786929190612791565b6040516020818303038152906040525b9392505050565b6117a5611a79565b6109ec828261197d565b6117b7611a79565b600e805461ffff909216650100000000000266ffff000000000019909216919091179055565b6117e5611a79565b600e805461ff001981166101009182900460ff1615909102179055565b61180a611a79565b6001600160a01b03929092166000908152601360209081526040808320805460ff191695151595909517909455601490529190912055565b61184a611a79565b600e805461ffff90921663010000000264ffff00000019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6118a2611a79565b6001600160a01b0381166119075760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bd3565b61191081611c37565b50565b6009546001600160a01b0316331461197d5760405162461bcd60e51b815260206004820152602760248201527f536f72727920796f7520646f6e27742068617665207065726d697373696f6e206044820152661d1bc81b5a5b9d60ca1b6064820152608401610bd3565b6109ec8282611e0e565b600080548210156119c75760005b50600082815260046020526040812054908190036119bd576119b6836127c0565b9250611995565b600160e01b161590505b919050565b8060005260046000fd5b60006119e183610ebb565b90508180156119f95750336001600160a01b03821614155b15611a1c57611a08813361186c565b611a1c57611a1c6367d9dca160e11b6119cc565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b031633146113005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bd3565b60008181526004602052604081205490819003611b46576000548210611b0357611b03636f96cda160e11b6119cc565b5b50600019016000818152600460205260409020548015611b0457600160e01b8116600003611b3157919050565b611b41636f96cda160e11b6119cc565b611b04565b600160e01b8116600003611b5957919050565b6119c7636f96cda160e11b6119cc565b60006117968260115485611e28565b6000805490829003611b9457611b9463b562e8dd60e01b6119cc565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260059092528220805468010000000000000001860201905590819003611bf257611bf2622e076360e81b6119cc565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103611bf7575060005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611cbe9033908990889088906004016127d7565b6020604051808303816000875af1925050508015611cf9575060408051601f3d908101601f19168201909252611cf691810190612814565b60015b611d4e573d808015611d27576040519150601f19603f3d011682016040523d82523d6000602084013e611d2c565b606091505b508051600003611d4657611d466368d2bf6b60e11b6119cc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600d8054610922906124d1565b60606000611d8883611e3e565b600101905060008167ffffffffffffffff811115611da857611da86121c1565b6040519080825280601f01601f191660200182016040528015611dd2576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611ddc57509392505050565b6109ec828260405180602001604052806000815250611f16565b600082611e358584611f7f565b14949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611e7d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611ea9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611ec757662386f26fc10000830492506010015b6305f5e1008310611edf576305f5e100830492506008015b6127108310611ef357612710830492506004015b60648310611f05576064830492506002015b600a831061090d5760010192915050565b611f208383611b78565b6001600160a01b0383163b15610e95576000548281035b611f4a6000868380600101945086611c89565b611f5e57611f5e6368d2bf6b60e11b6119cc565b818110611f37578160005414611f7857611f7860006119cc565b5050505050565b600081815b8451811015611fc457611fb082868381518110611fa357611fa3612762565b6020026020010151611fcc565b915080611fbc81612778565b915050611f84565b509392505050565b6000818310611fe8576000828152602084905260409020611796565b6000838152602083905260409020611796565b6001600160e01b03198116811461191057600080fd5b60006020828403121561202357600080fd5b813561179681611ffb565b60005b83811015612049578181015183820152602001612031565b50506000910152565b6000815180845261206a81602086016020860161202e565b601f01601f19169290920160200192915050565b6020815260006117966020830184612052565b6000602082840312156120a357600080fd5b5035919050565b80356001600160a01b03811681146119c757600080fd5b600080604083850312156120d457600080fd5b6120dd836120aa565b946020939093013593505050565b6000602082840312156120fd57600080fd5b611796826120aa565b60008060006060848603121561211b57600080fd5b612124846120aa565b9250612132602085016120aa565b9150604084013590509250925092565b60008060006040848603121561215757600080fd5b83359250602084013567ffffffffffffffff8082111561217657600080fd5b818601915086601f83011261218a57600080fd5b81358181111561219957600080fd5b8760208260051b85010111156121ae57600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612200576122006121c1565b604052919050565b600067ffffffffffffffff831115612222576122226121c1565b612235601f8401601f19166020016121d7565b905082815283838301111561224957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561227257600080fd5b813567ffffffffffffffff81111561228957600080fd5b8201601f8101841361229a57600080fd5b611d6484823560208401612208565b600080604083850312156122bc57600080fd5b823591506122cc602084016120aa565b90509250929050565b600060208083850312156122e857600080fd5b823567ffffffffffffffff8082111561230057600080fd5b818501915085601f83011261231457600080fd5b813581811115612326576123266121c1565b8060051b91506123378483016121d7565b818152918301840191848101908884111561235157600080fd5b938501935b8385101561237657612367856120aa565b82529385019390850190612356565b98975050505050505050565b801515811461191057600080fd5b600080604083850312156123a357600080fd5b6123ac836120aa565b915060208301356123bc81612382565b809150509250929050565b600080600080608085870312156123dd57600080fd5b6123e6856120aa565b93506123f4602086016120aa565b925060408501359150606085013567ffffffffffffffff81111561241757600080fd5b8501601f8101871361242857600080fd5b61243787823560208401612208565b91505092959194509250565b60006020828403121561245557600080fd5b813561ffff8116811461179657600080fd5b60008060006060848603121561247c57600080fd5b612485846120aa565b925060208401359150604084013561249c81612382565b809150509250925092565b600080604083850312156124ba57600080fd5b6124c3836120aa565b91506122cc602084016120aa565b600181811c908216806124e557607f821691505b60208210810361250557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761090d5761090d61250b565b60008261255557634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610e9557600081815260208120601f850160051c810160208610156125815750805b601f850160051c820191505b818110156125a05782815560010161258d565b505050505050565b815167ffffffffffffffff8111156125c2576125c26121c1565b6125d6816125d084546124d1565b8461255a565b602080601f83116001811461260b57600084156125f35750858301515b600019600386901b1c1916600185901b1785556125a0565b600085815260208120601f198616915b8281101561263a5788860151825594840194600190910190840161261b565b50858210156126585787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b8082018082111561090d5761090d61250b565b60208082526021908201527f506173736564204d696e74206c696d697420706572207472616e73616374696f6040820152603760f91b606082015260800190565b60006020828403121561273e57600080fd5b5051919050565b60006020828403121561275757600080fd5b815161179681612382565b634e487b7160e01b600052603260045260246000fd5b60006001820161278a5761278a61250b565b5060010190565b600083516127a381846020880161202e565b8351908301906127b781836020880161202e565b01949350505050565b6000816127cf576127cf61250b565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061280a90830184612052565b9695505050505050565b60006020828403121561282657600080fd5b815161179681611ffb56fea264697066735822122027efb55fc19f7bf04e29210579a71f4cb4493d474afe788426f294ef112a247264736f6c634300081300330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f73776d323933636e65612e657865637574652d6170692e61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f70726f642f6170692f76312f6e66742f676173632f000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102c95760003560e01c8063729ad39e11610175578063bbb89744116100dc578063d112974511610095578063e97800cb1161006f578063e97800cb14610841578063e985e9c514610861578063f2fde38b14610881578063f4da1846146108a157600080fd5b8063d1129745146107f6578063d5abeb011461080b578063e459ad021461082157600080fd5b8063bbb8974414610728578063bc951b911461075d578063c4ae316814610781578063c87b56dd14610796578063cbce4c97146107b6578063cef11729146107d657600080fd5b8063997556241161012e57806399755624146106725780639a96f829146106925780639ebc3e07146106b2578063a0712d68146106e2578063a22cb465146106f5578063b88d4fde1461071557600080fd5b8063729ad39e146105b357806379875262146105d35780637bb348d1146105f35780638cc08025146106065780638da5cb5b1461063f57806395d89b411461065d57600080fd5b806341827f13116102345780636352211e116101ed5780636f8b44b0116101c75780636f8b44b01461054b57806370a082311461056b57806370e5120d1461058b578063715018a61461059e57600080fd5b80636352211e146104df5780636aaffa36146104ff5780636dc7a6271461052c57600080fd5b806341827f131461043d57806342842e0e1461045257806344a0d68a1461046557806355f804b3146104855780635b2a55e4146104a55780635c975abb146104c557600080fd5b806318160ddd1161028657806318160ddd146103b657806321b97f20146103cf57806323b872dd146103ef5780632bac46df146104025780632f52ebb7146104225780633ccfd60b1461043557600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d57806309e7fe1b1461037257806313faede614610392575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612011565b6108c1565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610913565b6040516102fa919061207e565b34801561033157600080fd5b50610345610340366004612091565b6109a5565b6040516001600160a01b0390911681526020016102fa565b61037061036b3660046120c1565b6109e0565b005b34801561037e57600080fd5b5061037061038d3660046120eb565b6109f0565b34801561039e57600080fd5b506103a860105481565b6040519081526020016102fa565b3480156103c257600080fd5b50600154600054036103a8565b3480156103db57600080fd5b506103706103ea366004612091565b610a1a565b6103706103fd366004612106565b610a27565b34801561040e57600080fd5b50600e546102ee9062010000900460ff1681565b610370610430366004612142565b610b8c565b610370610d0f565b34801561044957600080fd5b50610318610dec565b610370610460366004612106565b610e7a565b34801561047157600080fd5b50610370610480366004612091565b610e9a565b34801561049157600080fd5b506103706104a0366004612260565b610ea7565b3480156104b157600080fd5b50600c54610345906001600160a01b031681565b3480156104d157600080fd5b50600e546102ee9060ff1681565b3480156104eb57600080fd5b506103456104fa366004612091565b610ebb565b34801561050b57600080fd5b506103a861051a3660046120eb565b60146020526000908152604090205481565b34801561053857600080fd5b50600e546102ee90610100900460ff1681565b34801561055757600080fd5b50610370610566366004612091565b610ec6565b34801561057757600080fd5b506103a86105863660046120eb565b610ed3565b6103706105993660046122a9565b610f19565b3480156105aa57600080fd5b506103706112ee565b3480156105bf57600080fd5b506103706105ce3660046122d5565b611302565b3480156105df57600080fd5b50600a54610345906001600160a01b031681565b610370610601366004612091565b611352565b34801561061257600080fd5b506102ee6106213660046120eb565b6001600160a01b031660009081526012602052604090205460ff1690565b34801561064b57600080fd5b506008546001600160a01b0316610345565b34801561066957600080fd5b506103186114e1565b34801561067e57600080fd5b5061037061068d3660046120eb565b6114f0565b34801561069e57600080fd5b50600b54610345906001600160a01b031681565b3480156106be57600080fd5b506102ee6106cd3660046120eb565b60136020526000908152604090205460ff1681565b6103706106f0366004612091565b61151a565b34801561070157600080fd5b50610370610710366004612390565b611609565b6103706107233660046123c7565b611675565b34801561073457600080fd5b50600e5461074a906301000000900461ffff1681565b60405161ffff90911681526020016102fa565b34801561076957600080fd5b50600e5461074a9065010000000000900461ffff1681565b34801561078d57600080fd5b506103706116b6565b3480156107a257600080fd5b506103186107b1366004612091565b6116d2565b3480156107c257600080fd5b506103706107d13660046120c1565b61179d565b3480156107e257600080fd5b506103706107f1366004612443565b6117af565b34801561080257600080fd5b506103706117dd565b34801561081757600080fd5b506103a8600f5481565b34801561082d57600080fd5b5061037061083c366004612467565b611802565b34801561084d57600080fd5b5061037061085c366004612443565b611842565b34801561086d57600080fd5b506102ee61087c3660046124a7565b61186c565b34801561088d57600080fd5b5061037061089c3660046120eb565b61189a565b3480156108ad57600080fd5b506103706108bc3660046120c1565b611913565b60006301ffc9a760e01b6001600160e01b0319831614806108f257506380ac58cd60e01b6001600160e01b03198316145b8061090d5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610922906124d1565b80601f016020809104026020016040519081016040528092919081815260200182805461094e906124d1565b801561099b5780601f106109705761010080835404028352916020019161099b565b820191906000526020600020905b81548152906001019060200180831161097e57829003601f168201915b5050505050905090565b60006109b082611987565b6109c4576109c46333d1c03960e21b6119cc565b506000908152600660205260409020546001600160a01b031690565b6109ec828260016119d6565b5050565b6109f8611a79565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610a22611a79565b601155565b6000610a3282611ad3565b6001600160a01b039485169490915081168414610a5857610a5862a1148160e81b6119cc565b60008281526006602052604090208054338082146001600160a01b03881690911417610a9c57610a88863361186c565b610a9c57610a9c632ce44b5f60e11b6119cc565b8015610aa757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610b3957600184016000818152600460205260408120549003610b37576000548114610b375760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a480600003610b8357610b83633a954ecd60e21b6119cc565b50505050505050565b600e54610100900460ff16610bdc5760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08195b98589b1959607a1b60448201526064015b60405180910390fd5b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348083018790528351808403909101815260549092019092528051910120610c5890838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611b6992505050565b610c945760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610bd3565b3360009081526012602052604090205460ff1615610ce65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4810db185a5b5959608a1b6044820152606401610bd3565b610cf0338461197d565b5050336000908152601260205260409020805460ff1916600117905550565b610d17611a79565b600b546000906001600160a01b03166064610d3347600a612521565b610d3d9190612538565b604051600081818185875af1925050503d8060008114610d79576040519150601f19603f3d011682016040523d82523d6000602084013e610d7e565b606091505b5050905080610d8c57600080fd5b600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610dd9576040519150601f19603f3d011682016040523d82523d6000602084013e610dde565b606091505b50509050806109ec57600080fd5b600d8054610df9906124d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610e25906124d1565b8015610e725780601f10610e4757610100808354040283529160200191610e72565b820191906000526020600020905b815481529060010190602001808311610e5557829003601f168201915b505050505081565b610e9583838360405180602001604052806000815250611675565b505050565b610ea2611a79565b601055565b610eaf611a79565b600d6109ec82826125a8565b600061090d82611ad3565b610ece611a79565b600f55565b60006001600160a01b038216610ef357610ef36323d3ad8160e21b6119cc565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600e548290829062010000900460ff1615610f465760405162461bcd60e51b8152600401610bd390612668565b60008211610f665760405162461bcd60e51b8152600401610bd390612694565b600f5482610f776001546000540390565b610f8191906126d8565b1115610fc45760405162461bcd60e51b815260206004820152601260248201527113919514c814dd5c1c1b1e4814185cdcd95960721b6044820152606401610bd3565b600e546301000000900461ffff16821115610ff15760405162461bcd60e51b8152600401610bd3906126eb565b6001600160a01b03811660009081526013602052604090205460ff166110505760405162461bcd60e51b8152602060048201526014602482015273115490cc8c081a5cc81b9bdd08185b1b1bddd95960621b6044820152606401610bd3565b6001600160a01b0381166000908152601460205260409020546110b55760405162461bcd60e51b815260206004820152601860248201527f4552433230204d696e74207072696365206e6f742073657400000000000000006044820152606401610bd3565b6001600160a01b0381166000908152601460205260409020546110d9908390612521565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e90604401602060405180830381865afa158015611123573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611147919061272c565b101561118c5760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820416c6c6f77616e636560601b6044820152606401610bd3565b6001600160a01b0383166000908152601460205260408120546111b0908690612521565b9050600060646111c183600a612521565b6111cb9190612538565b9050600060646111dc84605a612521565b6111e69190612538565b600b546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018590529192508716906323b872dd906064016020604051808303816000875af1158015611241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112659190612745565b50600a546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101839052908716906323b872dd906064016020604051808303816000875af11580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e39190612745565b50610b833388611b78565b6112f6611a79565b6113006000611c37565b565b61130a611a79565b60005b81518110156109ec57600082828151811061132a5761132a612762565b6020026020010151905061133f81600161197d565b508061134a81612778565b91505061130d565b600e54819060ff16156113775760405162461bcd60e51b8152600401610bd390612668565b600081116113975760405162461bcd60e51b8152600401610bd390612694565b600f54816113a86001546000540390565b6113b291906126d8565b11156113f45760405162461bcd60e51b81526020600482015260116024820152701391950814dd5c1c1b1e4814185cdcd959607a1b6044820152606401610bd3565b600e546301000000900461ffff168111156114215760405162461bcd60e51b8152600401610bd3906126eb565b600c546001600160a01b031633146114875760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610bd3565b816010546114959190612521565b3410156114d75760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682046756e647360801b6044820152606401610bd3565b6109ec3383611b78565b606060038054610922906124d1565b6114f8611a79565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600e54819060ff161561153f5760405162461bcd60e51b8152600401610bd390612668565b6000811161155f5760405162461bcd60e51b8152600401610bd390612694565b600f54816115706001546000540390565b61157a91906126d8565b11156115bc5760405162461bcd60e51b81526020600482015260116024820152701391950814dd5c1c1b1e4814185cdcd959607a1b6044820152606401610bd3565b600e546301000000900461ffff168111156115e95760405162461bcd60e51b8152600401610bd3906126eb565b6008546001600160a01b031633146114d757816010546114959190612521565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611680848484610a27565b6001600160a01b0383163b156116b05761169c84848484611c89565b6116b0576116b06368d2bf6b60e11b6119cc565b50505050565b6116be611a79565b600e805460ff19811660ff90911615179055565b60606116dd82611987565b6117415760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bd3565b600061174b611d6c565b9050600081511161176b5760405180602001604052806000815250611796565b8061177584611d7b565b604051602001611786929190612791565b6040516020818303038152906040525b9392505050565b6117a5611a79565b6109ec828261197d565b6117b7611a79565b600e805461ffff909216650100000000000266ffff000000000019909216919091179055565b6117e5611a79565b600e805461ff001981166101009182900460ff1615909102179055565b61180a611a79565b6001600160a01b03929092166000908152601360209081526040808320805460ff191695151595909517909455601490529190912055565b61184a611a79565b600e805461ffff90921663010000000264ffff00000019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6118a2611a79565b6001600160a01b0381166119075760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bd3565b61191081611c37565b50565b6009546001600160a01b0316331461197d5760405162461bcd60e51b815260206004820152602760248201527f536f72727920796f7520646f6e27742068617665207065726d697373696f6e206044820152661d1bc81b5a5b9d60ca1b6064820152608401610bd3565b6109ec8282611e0e565b600080548210156119c75760005b50600082815260046020526040812054908190036119bd576119b6836127c0565b9250611995565b600160e01b161590505b919050565b8060005260046000fd5b60006119e183610ebb565b90508180156119f95750336001600160a01b03821614155b15611a1c57611a08813361186c565b611a1c57611a1c6367d9dca160e11b6119cc565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b031633146113005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bd3565b60008181526004602052604081205490819003611b46576000548210611b0357611b03636f96cda160e11b6119cc565b5b50600019016000818152600460205260409020548015611b0457600160e01b8116600003611b3157919050565b611b41636f96cda160e11b6119cc565b611b04565b600160e01b8116600003611b5957919050565b6119c7636f96cda160e11b6119cc565b60006117968260115485611e28565b6000805490829003611b9457611b9463b562e8dd60e01b6119cc565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260059092528220805468010000000000000001860201905590819003611bf257611bf2622e076360e81b6119cc565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103611bf7575060005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611cbe9033908990889088906004016127d7565b6020604051808303816000875af1925050508015611cf9575060408051601f3d908101601f19168201909252611cf691810190612814565b60015b611d4e573d808015611d27576040519150601f19603f3d011682016040523d82523d6000602084013e611d2c565b606091505b508051600003611d4657611d466368d2bf6b60e11b6119cc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600d8054610922906124d1565b60606000611d8883611e3e565b600101905060008167ffffffffffffffff811115611da857611da86121c1565b6040519080825280601f01601f191660200182016040528015611dd2576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611ddc57509392505050565b6109ec828260405180602001604052806000815250611f16565b600082611e358584611f7f565b14949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611e7d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611ea9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611ec757662386f26fc10000830492506010015b6305f5e1008310611edf576305f5e100830492506008015b6127108310611ef357612710830492506004015b60648310611f05576064830492506002015b600a831061090d5760010192915050565b611f208383611b78565b6001600160a01b0383163b15610e95576000548281035b611f4a6000868380600101945086611c89565b611f5e57611f5e6368d2bf6b60e11b6119cc565b818110611f37578160005414611f7857611f7860006119cc565b5050505050565b600081815b8451811015611fc457611fb082868381518110611fa357611fa3612762565b6020026020010151611fcc565b915080611fbc81612778565b915050611f84565b509392505050565b6000818310611fe8576000828152602084905260409020611796565b6000838152602083905260409020611796565b6001600160e01b03198116811461191057600080fd5b60006020828403121561202357600080fd5b813561179681611ffb565b60005b83811015612049578181015183820152602001612031565b50506000910152565b6000815180845261206a81602086016020860161202e565b601f01601f19169290920160200192915050565b6020815260006117966020830184612052565b6000602082840312156120a357600080fd5b5035919050565b80356001600160a01b03811681146119c757600080fd5b600080604083850312156120d457600080fd5b6120dd836120aa565b946020939093013593505050565b6000602082840312156120fd57600080fd5b611796826120aa565b60008060006060848603121561211b57600080fd5b612124846120aa565b9250612132602085016120aa565b9150604084013590509250925092565b60008060006040848603121561215757600080fd5b83359250602084013567ffffffffffffffff8082111561217657600080fd5b818601915086601f83011261218a57600080fd5b81358181111561219957600080fd5b8760208260051b85010111156121ae57600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612200576122006121c1565b604052919050565b600067ffffffffffffffff831115612222576122226121c1565b612235601f8401601f19166020016121d7565b905082815283838301111561224957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561227257600080fd5b813567ffffffffffffffff81111561228957600080fd5b8201601f8101841361229a57600080fd5b611d6484823560208401612208565b600080604083850312156122bc57600080fd5b823591506122cc602084016120aa565b90509250929050565b600060208083850312156122e857600080fd5b823567ffffffffffffffff8082111561230057600080fd5b818501915085601f83011261231457600080fd5b813581811115612326576123266121c1565b8060051b91506123378483016121d7565b818152918301840191848101908884111561235157600080fd5b938501935b8385101561237657612367856120aa565b82529385019390850190612356565b98975050505050505050565b801515811461191057600080fd5b600080604083850312156123a357600080fd5b6123ac836120aa565b915060208301356123bc81612382565b809150509250929050565b600080600080608085870312156123dd57600080fd5b6123e6856120aa565b93506123f4602086016120aa565b925060408501359150606085013567ffffffffffffffff81111561241757600080fd5b8501601f8101871361242857600080fd5b61243787823560208401612208565b91505092959194509250565b60006020828403121561245557600080fd5b813561ffff8116811461179657600080fd5b60008060006060848603121561247c57600080fd5b612485846120aa565b925060208401359150604084013561249c81612382565b809150509250925092565b600080604083850312156124ba57600080fd5b6124c3836120aa565b91506122cc602084016120aa565b600181811c908216806124e557607f821691505b60208210810361250557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761090d5761090d61250b565b60008261255557634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610e9557600081815260208120601f850160051c810160208610156125815750805b601f850160051c820191505b818110156125a05782815560010161258d565b505050505050565b815167ffffffffffffffff8111156125c2576125c26121c1565b6125d6816125d084546124d1565b8461255a565b602080601f83116001811461260b57600084156125f35750858301515b600019600386901b1c1916600185901b1785556125a0565b600085815260208120601f198616915b8281101561263a5788860151825594840194600190910190840161261b565b50858210156126585787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b8082018082111561090d5761090d61250b565b60208082526021908201527f506173736564204d696e74206c696d697420706572207472616e73616374696f6040820152603760f91b606082015260800190565b60006020828403121561273e57600080fd5b5051919050565b60006020828403121561275757600080fd5b815161179681612382565b634e487b7160e01b600052603260045260246000fd5b60006001820161278a5761278a61250b565b5060010190565b600083516127a381846020880161202e565b8351908301906127b781836020880161202e565b01949350505050565b6000816127cf576127cf61250b565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061280a90830184612052565b9695505050505050565b60006020828403121561282657600080fd5b815161179681611ffb56fea264697066735822122027efb55fc19f7bf04e29210579a71f4cb4493d474afe788426f294ef112a247264736f6c63430008130033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f73776d323933636e65612e657865637574652d6170692e61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f70726f642f6170692f76312f6e66742f676173632f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseUrl (string): https://swm293cnea.execute-api.ap-southeast-1.amazonaws.com/prod/api/v1/nft/gasc/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [2] : 68747470733a2f2f73776d323933636e65612e657865637574652d6170692e61
Arg [3] : 702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f70726f64
Arg [4] : 2f6170692f76312f6e66742f676173632f000000000000000000000000000000


Deployed Bytecode Sourcemap

85171:7994:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49815:639;;;;;;;;;;-1:-1:-1;49815:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;49815:639:0;;;;;;;;50717:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;57751:227::-;;;;;;;;;;-1:-1:-1;57751:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;57751:227:0;1533:203:1;57468:124:0;;;;;;:::i;:::-;;:::i;:::-;;89302:113;;;;;;;;;;-1:-1:-1;89302:113:0;;;;;:::i;:::-;;:::i;85907:32::-;;;;;;;;;;;;;;;;;;;2515:25:1;;;2503:2;2488:18;85907:32:0;2369:177:1;46459:323:0;;;;;;;;;;-1:-1:-1;46733:12:0;;46520:7;46717:13;:28;46459:323;;89751:90;;;;;;;;;;-1:-1:-1;89751:90:0;;;;;:::i;:::-;;:::i;61485:3523::-;;;;;;:::i;:::-;;:::i;85616:38::-;;;;;;;;;;-1:-1:-1;85616:38:0;;;;;;;;;;;90269:414;;;;;;:::i;:::-;;:::i;92864:298::-;;;:::i;85501:24::-;;;;;;;;;;;;;:::i;65104:193::-;;;;;;:::i;:::-;;:::i;91778:86::-;;;;;;;;;;-1:-1:-1;91778:86:0;;;;;:::i;:::-;;:::i;92451:107::-;;;;;;;;;;-1:-1:-1;92451:107:0;;;;;:::i;:::-;;:::i;85461:31::-;;;;;;;;;;-1:-1:-1;85461:31:0;;;;-1:-1:-1;;;;;85461:31:0;;;85549:26;;;;;;;;;;-1:-1:-1;85549:26:0;;;;;;;;52119:152;;;;;;;;;;-1:-1:-1;52119:152:0;;;;;:::i;:::-;;:::i;86120:50::-;;;;;;;;;;-1:-1:-1;86120:50:0;;;;;:::i;:::-;;;;;;;;;;;;;;85582:27;;;;;;;;;;-1:-1:-1;85582:27:0;;;;;;;;;;;92349:94;;;;;;;;;;-1:-1:-1;92349:94:0;;;;;:::i;:::-;;:::i;47643:242::-;;;;;;;;;;-1:-1:-1;47643:242:0;;;;;:::i;:::-;;:::i;88636:579::-;;;;;;:::i;:::-;;:::i;20944:103::-;;;;;;;;;;;;;:::i;90922:234::-;;;;;;;;;;-1:-1:-1;90922:234:0;;;;;:::i;:::-;;:::i;85318:65::-;;;;;;;;;;-1:-1:-1;85318:65:0;;;;-1:-1:-1;;;;;85318:65:0;;;88317:311;;;;;;:::i;:::-;;:::i;90691:104::-;;;;;;;;;;-1:-1:-1;90691:104:0;;;;;:::i;:::-;-1:-1:-1;;;;;90773:14:0;90749:4;90773:14;;;:6;:14;;;;;;;;;90691:104;20296:87;;;;;;;;;;-1:-1:-1;20369:6:0;;-1:-1:-1;;;;;20369:6:0;20296:87;;50893:104;;;;;;;;;;;;;:::i;87918:128::-;;;;;;;;;;-1:-1:-1;87918:128:0;;;;;:::i;:::-;;:::i;85390:64::-;;;;;;;;;;-1:-1:-1;85390:64:0;;;;-1:-1:-1;;;;;85390:64:0;;;86068:45;;;;;;;;;;-1:-1:-1;86068:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;88054:255;;;;;;:::i;:::-;;:::i;58318:234::-;;;;;;;;;;-1:-1:-1;58318:234:0;;;;;:::i;:::-;;:::i;65895:416::-;;;;;;:::i;:::-;;:::i;85687:46::-;;;;;;;;;;-1:-1:-1;85687:46:0;;;;;;;;;;;;;;7542:6:1;7530:19;;;7512:38;;7500:2;7485:18;85687:46:0;7368:188:1;85740:42:0;;;;;;;;;;-1:-1:-1;85740:42:0;;;;;;;;;;;92566:75;;;;;;;;;;;;;:::i;91283:487::-;;;;;;;;;;-1:-1:-1;91283:487:0;;;;;:::i;:::-;;:::i;90803:111::-;;;;;;;;;;-1:-1:-1;90803:111:0;;;;;:::i;:::-;;:::i;92222:119::-;;;;;;;;;;-1:-1:-1;92222:119:0;;;;;:::i;:::-;;:::i;92649:79::-;;;;;;;;;;;;;:::i;85853:31::-;;;;;;;;;;;;;;;;91872:197;;;;;;;;;;-1:-1:-1;91872:197:0;;;;;:::i;:::-;;:::i;92085:129::-;;;;;;;;;;-1:-1:-1;92085:129:0;;;;;:::i;:::-;;:::i;58709:164::-;;;;;;;;;;-1:-1:-1;58709:164:0;;;;;:::i;:::-;;:::i;21202:201::-;;;;;;;;;;-1:-1:-1;21202:201:0;;;;;:::i;:::-;;:::i;89491:252::-;;;;;;;;;;-1:-1:-1;89491:252:0;;;;;:::i;:::-;;:::i;49815:639::-;49900:4;-1:-1:-1;;;;;;;;;50224:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;50301:25:0;;;50224:102;:179;;;-1:-1:-1;;;;;;;;;;50378:25:0;;;50224:179;50204:199;49815:639;-1:-1:-1;;49815:639:0:o;50717:100::-;50771:13;50804:5;50797:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50717:100;:::o;57751:227::-;57827:7;57852:16;57860:7;57852;:16::i;:::-;57847:73;;57870:50;-1:-1:-1;;;57870:7:0;:50::i;:::-;-1:-1:-1;57940:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;57940:30:0;;57751:227::o;57468:124::-;57557:27;57566:2;57570:7;57579:4;57557:8;:27::i;:::-;57468:124;;:::o;89302:113::-;20182:13;:11;:13::i;:::-;89378:17:::1;:29:::0;;-1:-1:-1;;;;;;89378:29:0::1;-1:-1:-1::0;;;;;89378:29:0;;;::::1;::::0;;;::::1;::::0;;89302:113::o;89751:90::-;20182:13;:11;:13::i;:::-;89816:9:::1;:17:::0;89751:90::o;61485:3523::-;61627:27;61657;61676:7;61657:18;:27::i;:::-;-1:-1:-1;;;;;61812:22:0;;;;61627:57;;-1:-1:-1;61872:45:0;;;;61868:95;;61919:44;-1:-1:-1;;;61919:7:0;:44::i;:::-;61977:27;60593:24;;;:15;:24;;;;;60821:26;;82977:10;60218:30;;;-1:-1:-1;;;;;59911:28:0;;60196:20;;;60193:56;62163:189;;62256:43;62273:4;82977:10;58709:164;:::i;62256:43::-;62251:101;;62301:51;-1:-1:-1;;;62301:7:0;:51::i;:::-;62501:15;62498:160;;;62641:1;62620:19;62613:30;62498:160;-1:-1:-1;;;;;63038:24:0;;;;;;;:18;:24;;;;;;63036:26;;-1:-1:-1;;63036:26:0;;;63107:22;;;;;;;;;63105:24;;-1:-1:-1;63105:24:0;;;56570:11;56545:23;56541:41;56528:63;-1:-1:-1;;;56528:63:0;63400:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;63695:47:0;;:52;;63691:627;;63800:1;63790:11;;63768:19;63923:30;;;:17;:30;;;;;;:35;;63919:384;;64061:13;;64046:11;:28;64042:242;;64208:30;;;;:17;:30;;;;;:52;;;64042:242;63749:569;63691:627;-1:-1:-1;;;;;64450:20:0;;64830:7;64450:20;64760:4;64702:25;64431:16;;64567:299;64891:8;64903:1;64891:13;64887:58;;64906:39;-1:-1:-1;;;64906:7:0;:39::i;:::-;61616:3392;;;;61485:3523;;;:::o;90269:414::-;90387:8;;;;;;;90379:38;;;;-1:-1:-1;;;90379:38:0;;9078:2:1;90379:38:0;;;9060:21:1;9117:2;9097:18;;;9090:30;-1:-1:-1;;;9136:18:1;;;9129:47;9193:18;;90379:38:0;;;;;;;;;90197:34;;;90469:10;20570:2:1;20566:15;-1:-1:-1;;20562:53:1;90197:34:0;;;;20550:66:1;;;;20632:12;;;;20625:28;;;90197:34:0;;;;;;;;;;20669:12:1;;;;90197:34:0;;;90187:45;;;;;90450:47;;90491:5;;90450:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90450:12:0;;-1:-1:-1;;;90450:47:0:i;:::-;90428:110;;;;-1:-1:-1;;;90428:110:0;;9424:2:1;90428:110:0;;;9406:21:1;9463:2;9443:18;;;9436:30;-1:-1:-1;;;9482:18:1;;;9475:43;9535:18;;90428:110:0;9222:337:1;90428:110:0;90567:10;90560:18;;;;:6;:18;;;;;;;;90559:19;90551:47;;;;-1:-1:-1;;;90551:47:0;;9766:2:1;90551:47:0;;;9748:21:1;9805:2;9785:18;;;9778:30;-1:-1:-1;;;9824:18:1;;;9817:45;9879:18;;90551:47:0;9564:339:1;90551:47:0;90609:30;90619:10;90631:7;90609:9;:30::i;:::-;-1:-1:-1;;90657:10:0;90650:18;;;;:6;:18;;;;;:25;;-1:-1:-1;;90650:25:0;90671:4;90650:25;;;-1:-1:-1;90269:414:0:o;92864:298::-;20182:13;:11;:13::i;:::-;92942:4:::1;::::0;92921:7:::1;::::0;-1:-1:-1;;;;;92942:4:0::1;93005:3;92975:26;:21;92999:2;92975:26;:::i;:::-;92974:34;;;;:::i;:::-;92934:89;::::0;::::1;::::0;;;;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92920:103;;;93042:2;93034:11;;;::::0;::::1;;93088:4;::::0;93080:52:::1;::::0;93067:7:::1;::::0;-1:-1:-1;;;;;93088:4:0::1;::::0;93106:21:::1;::::0;93067:7;93080:52;93067:7;93080:52;93106:21;93088:4;93080:52:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93066:66;;;93151:2;93143:11;;;::::0;::::1;85501:24:::0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;65104:193::-;65250:39;65267:4;65273:2;65277:7;65250:39;;;;;;;;;;;;:16;:39::i;:::-;65104:193;;;:::o;91778:86::-;20182:13;:11;:13::i;:::-;91841:4:::1;:15:::0;91778:86::o;92451:107::-;20182:13;:11;:13::i;:::-;92526:10:::1;:24;92539:11:::0;92526:10;:24:::1;:::i;52119:152::-:0;52191:7;52234:27;52253:7;52234:18;:27::i;92349:94::-;20182:13;:11;:13::i;:::-;92416:9:::1;:19:::0;92349:94::o;47643:242::-;47715:7;-1:-1:-1;;;;;47739:19:0;;47735:69;;47760:44;-1:-1:-1;;;47760:7:0;:44::i;:::-;-1:-1:-1;;;;;;47822:25:0;;;;;:18;:25;;;;;;41802:13;47822:55;;47643:242::o;88636:579::-;87122:18;;88756:7;;88765:6;;87122:18;;;;;87121:19;87113:50;;;;-1:-1:-1;;;87113:50:0;;;;;;;:::i;:::-;87192:1;87182:7;:11;87174:60;;;;-1:-1:-1;;;87174:60:0;;;;;;;:::i;:::-;87282:9;;87270:7;87254:13;46733:12;;46520:7;46717:13;:28;;46459:323;87254:13;:23;;;;:::i;:::-;87253:38;;87245:69;;;;-1:-1:-1;;;87245:69:0;;14065:2:1;87245:69:0;;;14047:21:1;14104:2;14084:18;;;14077:30;-1:-1:-1;;;14123:18:1;;;14116:48;14181:18;;87245:69:0;13863:342:1;87245:69:0;87358:27;;;;;;;87347:38;;;87325:121;;;;-1:-1:-1;;;87325:121:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;87511:21:0;;;;;;:13;:21;;;;;;;;87503:54;;;;-1:-1:-1;;;87503:54:0;;14814:2:1;87503:54:0;;;14796:21:1;14853:2;14833:18;;;14826:30;-1:-1:-1;;;14872:18:1;;;14865:50;14932:18;;87503:54:0;14612:344:1;87503:54:0;-1:-1:-1;;;;;87617:23:0;;87643:1;87617:23;;;:15;:23;;;;;;87609:64;;;;-1:-1:-1;;;87609:64:0;;15163:2:1;87609:64:0;;;15145:21:1;15202:2;15182:18;;;15175:30;15241:26;15221:18;;;15214:54;15285:18;;87609:64:0;14961:348:1;87609:64:0;-1:-1:-1;;;;;87806:23:0;;;;;;:15;:23;;;;;;:33;;87832:7;;87806:33;:::i;:::-;87733:51;;-1:-1:-1;;;87733:51:0;;87758:10;87733:51;;;15526:34:1;87778:4:0;15576:18:1;;;15569:43;-1:-1:-1;;;;;87733:24:0;;;;;15461:18:1;;87733:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:107;;87711:177;;;;-1:-1:-1;;;87711:177:0;;16014:2:1;87711:177:0;;;15996:21:1;16053:2;16033:18;;;16026:30;-1:-1:-1;;;16072:18:1;;;16065:50;16132:18;;87711:177:0;15812:344:1;87711:177:0;-1:-1:-1;;;;;88805:23:0;::::1;88789:13;88805:23:::0;;;:15:::1;:23;::::0;;;;;:33:::1;::::0;88831:7;;88805:33:::1;:::i;:::-;88789:49:::0;-1:-1:-1;88851:11:0::1;88883:3;88866:13;88789:49:::0;88877:2:::1;88866:13;:::i;:::-;88865:21;;;;:::i;:::-;88851:35:::0;-1:-1:-1;88897:11:0::1;88929:3;88912:13;:8:::0;88923:2:::1;88912:13;:::i;:::-;88911:21;;;;:::i;:::-;89020:4;::::0;88953:103:::1;::::0;-1:-1:-1;;;88953:103:0;;88995:10:::1;88953:103;::::0;::::1;16401:34:1::0;-1:-1:-1;;;;;89020:4:0;;::::1;16451:18:1::0;;;16444:43;16503:18;;;16496:34;;;88897:35:0;;-1:-1:-1;88953:27:0;::::1;::::0;::::1;::::0;16336:18:1;;88953:103:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;89134:4:0::1;::::0;89067:103:::1;::::0;-1:-1:-1;;;89067:103:0;;89109:10:::1;89067:103;::::0;::::1;16401:34:1::0;-1:-1:-1;;;;;89134:4:0;;::::1;16451:18:1::0;;;16444:43;16503:18;;;16496:34;;;89067:27:0;;::::1;::::0;::::1;::::0;16336:18:1;;89067:103:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;89181:26;89187:10;89199:7;89181:5;:26::i;20944:103::-:0;20182:13;:11;:13::i;:::-;21009:30:::1;21036:1;21009:18;:30::i;:::-;20944:103::o:0;90922:234::-;20182:13;:11;:13::i;:::-;91008:9:::1;91003:146;91027:17;:24;91023:1;:28;91003:146;;;91073:10;91086:17;91104:1;91086:20;;;;;;;;:::i;:::-;;;;;;;91073:33;;91121:16;91131:2;91135:1;91121:9;:16::i;:::-;-1:-1:-1::0;91053:3:0;::::1;::::0;::::1;:::i;:::-;;;;91003:146;;88317:311:::0;86701:6;;88378:7;;86701:6;;86700:7;86692:38;;;;-1:-1:-1;;;86692:38:0;;;;;;;:::i;:::-;86759:1;86749:7;:11;86741:60;;;;-1:-1:-1;;;86741:60:0;;;;;;;:::i;:::-;86849:9;;86837:7;86821:13;46733:12;;46520:7;46717:13;:28;;46459:323;86821:13;:23;;;;:::i;:::-;86820:38;;86812:68;;;;-1:-1:-1;;;86812:68:0;;17265:2:1;86812:68:0;;;17247:21:1;17304:2;17284:18;;;17277:30;-1:-1:-1;;;17323:18:1;;;17316:47;17380:18;;86812:68:0;17063:341:1;86812:68:0;86924:27;;;;;;;86913:38;;;86891:121;;;;-1:-1:-1;;;86891:121:0;;;;;;;:::i;:::-;88434:16:::1;::::0;-1:-1:-1;;;;;88434:16:0::1;88420:10;:30;88398:116;;;::::0;-1:-1:-1;;;88398:116:0;;17611:2:1;88398:116:0::1;::::0;::::1;17593:21:1::0;17650:2;17630:18;;;17623:30;17689:34;17669:18;;;17662:62;-1:-1:-1;;;17740:18:1;;;17733:34;17784:19;;88398:116:0::1;17409:400:1::0;88398:116:0::1;88554:7;88547:4;;:14;;;;:::i;:::-;88533:9;:29;;88525:58;;;::::0;-1:-1:-1;;;88525:58:0;;18016:2:1;88525:58:0::1;::::0;::::1;17998:21:1::0;18055:2;18035:18;;;18028:30;-1:-1:-1;;;18074:18:1;;;18067:46;18130:18;;88525:58:0::1;17814:340:1::0;88525:58:0::1;88594:26;88600:10;88612:7;88594:5;:26::i;50893:104::-:0;50949:13;50982:7;50975:14;;;;;:::i;87918:128::-;20182:13;:11;:13::i;:::-;88002:16:::1;:36:::0;;-1:-1:-1;;;;;;88002:36:0::1;-1:-1:-1::0;;;;;88002:36:0;;;::::1;::::0;;;::::1;::::0;;87918:128::o;88054:255::-;86701:6;;88110:7;;86701:6;;86700:7;86692:38;;;;-1:-1:-1;;;86692:38:0;;;;;;;:::i;:::-;86759:1;86749:7;:11;86741:60;;;;-1:-1:-1;;;86741:60:0;;;;;;;:::i;:::-;86849:9;;86837:7;86821:13;46733:12;;46520:7;46717:13;:28;;46459:323;86821:13;:23;;;;:::i;:::-;86820:38;;86812:68;;;;-1:-1:-1;;;86812:68:0;;17265:2:1;86812:68:0;;;17247:21:1;17304:2;17284:18;;;17277:30;-1:-1:-1;;;17323:18:1;;;17316:47;17380:18;;86812:68:0;17063:341:1;86812:68:0;86924:27;;;;;;;86913:38;;;86891:121;;;;-1:-1:-1;;;86891:121:0;;;;;;;:::i;:::-;20369:6;;-1:-1:-1;;;;;20369:6:0;88157:10:::1;:21;88153:112;;88224:7;88217:4;;:14;;;;:::i;58318:234::-:0;82977:10;58413:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;58413:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;58413:60:0;;;;;;;;;;58489:55;;540:41:1;;;58413:49:0;;82977:10;58489:55;;513:18:1;58489:55:0;;;;;;;58318:234;;:::o;65895:416::-;66070:31;66083:4;66089:2;66093:7;66070:12;:31::i;:::-;-1:-1:-1;;;;;66116:14:0;;;:19;66112:192;;66155:56;66186:4;66192:2;66196:7;66205:5;66155:30;:56::i;:::-;66150:154;;66232:56;-1:-1:-1;;;66232:7:0;:56::i;:::-;65895:416;;;;:::o;92566:75::-;20182:13;:11;:13::i;:::-;92627:6:::1;::::0;;-1:-1:-1;;92617:16:0;::::1;92627:6;::::0;;::::1;92626:7;92617:16;::::0;;92566:75::o;91283:487::-;91401:13;91454:16;91462:7;91454;:16::i;:::-;91432:113;;;;-1:-1:-1;;;91432:113:0;;18361:2:1;91432:113:0;;;18343:21:1;18400:2;18380:18;;;18373:30;18439:34;18419:18;;;18412:62;-1:-1:-1;;;18490:18:1;;;18483:45;18545:19;;91432:113:0;18159:411:1;91432:113:0;91556:28;91587:10;:8;:10::i;:::-;91556:41;;91659:1;91634:14;91628:28;:32;:134;;;;;;;;;;;;;;;;;91704:14;91720:18;:7;:16;:18::i;:::-;91687:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;91628:134;91608:154;91283:487;-1:-1:-1;;;91283:487:0:o;90803:111::-;20182:13;:11;:13::i;:::-;90879:27:::1;90889:3;90894:11;90879:9;:27::i;92222:119::-:0;20182:13;:11;:13::i;:::-;92301:22:::1;:32:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;92301:32:0;;::::1;::::0;;;::::1;::::0;;92222:119::o;92649:79::-;20182:13;:11;:13::i;:::-;92712:8:::1;::::0;;-1:-1:-1;;92700:20:0;::::1;92712:8;::::0;;;::::1;;;92711:9;92700:20:::0;;::::1;;::::0;;92649:79::o;91872:197::-;20182:13;:11;:13::i;:::-;-1:-1:-1;;;;;92002:17:0;;;::::1;;::::0;;;:13:::1;:17;::::0;;;;;;;:24;;-1:-1:-1;;92002:24:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;92037:15:::1;:19:::0;;;;;;:24;91872:197::o;92085:129::-;20182:13;:11;:13::i;:::-;92169:27:::1;:37:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;92169:37:0;;::::1;::::0;;;::::1;::::0;;92085:129::o;58709:164::-;-1:-1:-1;;;;;58830:25:0;;;58806:4;58830:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;58709:164::o;21202:201::-;20182:13;:11;:13::i;:::-;-1:-1:-1;;;;;21291:22:0;::::1;21283:73;;;::::0;-1:-1:-1;;;21283:73:0;;19278:2:1;21283:73:0::1;::::0;::::1;19260:21:1::0;19317:2;19297:18;;;19290:30;19356:34;19336:18;;;19329:62;-1:-1:-1;;;19407:18:1;;;19400:36;19453:19;;21283:73:0::1;19076:402:1::0;21283:73:0::1;21367:28;21386:8;21367:18;:28::i;:::-;21202:201:::0;:::o;89491:252::-;89608:17;;-1:-1:-1;;;;;89608:17:0;89594:10;:31;89572:120;;;;-1:-1:-1;;;89572:120:0;;19685:2:1;89572:120:0;;;19667:21:1;19724:2;19704:18;;;19697:30;19763:34;19743:18;;;19736:62;-1:-1:-1;;;19814:18:1;;;19807:37;19861:19;;89572:120:0;19483:403:1;89572:120:0;89703:32;89713:8;89723:11;89703:9;:32::i;59131:368::-;59196:11;59281:13;;59271:7;:23;59267:214;;;59315:14;59348:60;-1:-1:-1;59365:26:0;;;;:17;:26;;;;;;;59355:42;;;59348:60;;59399:9;;;:::i;:::-;;;59348:60;;;-1:-1:-1;;;59436:24:0;:29;;-1:-1:-1;59267:214:0;59131:368;;;:::o;84909:165::-;85010:13;85004:4;84997:27;85051:4;85045;85038:18;76342:474;76471:13;76487:16;76495:7;76487;:16::i;:::-;76471:32;;76520:13;:45;;;;-1:-1:-1;82977:10:0;-1:-1:-1;;;;;76537:28:0;;;;76520:45;76516:201;;;76585:44;76602:5;82977:10;58709:164;:::i;76585:44::-;76580:137;;76650:51;-1:-1:-1;;;76650:7:0;:51::i;:::-;76729:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;76729:35:0;-1:-1:-1;;;;;76729:35:0;;;;;;;;;76780:28;;76729:24;;76780:28;;;;;;;76460:356;76342:474;;;:::o;20461:132::-;20369:6;;-1:-1:-1;;;;;20369:6:0;82977:10;20525:23;20517:68;;;;-1:-1:-1;;;20517:68:0;;20234:2:1;20517:68:0;;;20216:21:1;;;20253:18;;;20246:30;20312:34;20292:18;;;20285:62;20364:18;;20517:68:0;20032:356:1;53599:2012:0;53749:26;;;;:17;:26;;;;;;;53875:11;;;53871:1292;;53922:13;;53911:7;:24;53907:77;;53937:47;-1:-1:-1;;;53937:7:0;:47::i;:::-;54541:607;-1:-1:-1;;;54637:9:0;54619:28;;;;:17;:28;;;;;;54693:25;;54541:607;54693:25;-1:-1:-1;;;54745:6:0;:24;54773:1;54745:29;54741:48;;53599:2012;;;:::o;54741:48::-;55081:47;-1:-1:-1;;;55081:7:0;:47::i;:::-;54541:607;;53871:1292;-1:-1:-1;;;55490:6:0;:24;55518:1;55490:29;55486:48;;53599:2012;;;:::o;55486:48::-;55556:47;-1:-1:-1;;;55556:7:0;:47::i;89849:199::-;89964:4;89993:47;90012:5;90019:9;;90030;89993:18;:47::i;69548:2305::-;69621:20;69644:13;;;69672;;;69668:53;;69687:34;-1:-1:-1;;;69687:7:0;:34::i;:::-;70234:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;56396:28:0;;56570:11;56545:23;56541:41;57014:1;57001:15;;56975:24;56971:46;56538:52;56528:63;;70234:173;;;70625:22;;;:18;:22;;;;;:71;;70663:32;70651:45;;70625:71;;;56396:28;70886:13;;;70882:54;;70901:35;-1:-1:-1;;;70901:7:0;:35::i;:::-;70967:23;;;:12;71052:676;71471:7;71427:8;71382:1;71316:25;71253:1;71188;71157:358;71723:3;71710:9;;;;;;:16;71052:676;;-1:-1:-1;71744:13:0;:19;-1:-1:-1;65104:193:0;;;:::o;21563:191::-;21656:6;;;-1:-1:-1;;;;;21673:17:0;;;-1:-1:-1;;;;;;21673:17:0;;;;;;;21706:40;;21656:6;;;21673:17;21656:6;;21706:40;;21637:16;;21706:40;21626:128;21563:191;:::o;68395:691::-;68579:88;;-1:-1:-1;;;68579:88:0;;68558:4;;-1:-1:-1;;;;;68579:45:0;;;;;:88;;82977:10;;68646:4;;68652:7;;68661:5;;68579:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68579:88:0;;;;;;;;-1:-1:-1;;68579:88:0;;;;;;;;;;;;:::i;:::-;;;68575:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68862:6;:13;68879:1;68862:18;68858:115;;68901:56;-1:-1:-1;;;68901:7:0;:56::i;:::-;69045:6;69039:13;69030:6;69026:2;69022:15;69015:38;68575:504;-1:-1:-1;;;;;;68738:64:0;-1:-1:-1;;;68738:64:0;;-1:-1:-1;68575:504:0;68395:691;;;;;;:::o;91164:111::-;91224:13;91257:10;91250:17;;;;;:::i;16252:727::-;16308:13;16359:14;16376:28;16398:5;16376:21;:28::i;:::-;16407:1;16376:32;16359:49;;16423:20;16457:6;16446:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16446:18:0;-1:-1:-1;16423:41:0;-1:-1:-1;16588:28:0;;;16604:2;16588:28;16645:288;-1:-1:-1;;16677:5:0;-1:-1:-1;;;16814:2:0;16803:14;;16798:30;16677:5;16785:44;16875:2;16866:11;;;-1:-1:-1;16896:21:0;16645:288;16896:21;-1:-1:-1;16954:6:0;16252:727;-1:-1:-1;;;16252:727:0:o;75424:112::-;75501:27;75511:2;75515:8;75501:27;;;;;;;;;;;;:9;:27::i;22983:190::-;23108:4;23161;23132:25;23145:5;23152:4;23132:12;:25::i;:::-;:33;;22983:190;-1:-1:-1;;;;22983:190:0:o;13084:922::-;13137:7;;-1:-1:-1;;;13215:15:0;;13211:102;;-1:-1:-1;;;13251:15:0;;;-1:-1:-1;13295:2:0;13285:12;13211:102;13340:6;13331:5;:15;13327:102;;13376:6;13367:15;;;-1:-1:-1;13411:2:0;13401:12;13327:102;13456:6;13447:5;:15;13443:102;;13492:6;13483:15;;;-1:-1:-1;13527:2:0;13517:12;13443:102;13572:5;13563;:14;13559:99;;13607:5;13598:14;;;-1:-1:-1;13641:1:0;13631:11;13559:99;13685:5;13676;:14;13672:99;;13720:5;13711:14;;;-1:-1:-1;13754:1:0;13744:11;13672:99;13798:5;13789;:14;13785:99;;13833:5;13824:14;;;-1:-1:-1;13867:1:0;13857:11;13785:99;13911:5;13902;:14;13898:66;;13947:1;13937:11;13992:6;13084:922;-1:-1:-1;;13084:922:0:o;74632:708::-;74763:19;74769:2;74773:8;74763:5;:19::i;:::-;-1:-1:-1;;;;;74824:14:0;;;:19;74820:502;;74864:11;74878:13;74926:14;;;74959:242;74990:62;75029:1;75033:2;75037:7;;;;;;75046:5;74990:30;:62::i;:::-;74985:176;;75081:56;-1:-1:-1;;;75081:7:0;:56::i;:::-;75196:3;75188:5;:11;74959:242;;75283:3;75266:13;;:20;75262:44;;75288:18;75303:1;75288:7;:18::i;:::-;74845:477;;74632:708;;;:::o;23850:296::-;23933:7;23976:4;23933:7;23991:118;24015:5;:12;24011:1;:16;23991:118;;;24064:33;24074:12;24088:5;24094:1;24088:8;;;;;;;;:::i;:::-;;;;;;;24064:9;:33::i;:::-;24049:48;-1:-1:-1;24029:3:0;;;;:::i;:::-;;;;23991:118;;;-1:-1:-1;24126:12:0;23850:296;-1:-1:-1;;;23850:296:0:o;30890:149::-;30953:7;30984:1;30980;:5;:51;;31115:13;31209:15;;;31245:4;31238:15;;;31292:4;31276:21;;30980:51;;;31115:13;31209:15;;;31245:4;31238:15;;;31292:4;31276:21;;30988:20;31047:268;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1919:254;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2178:186::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2329:29;2348:9;2329:29;:::i;2736:328::-;2813:6;2821;2829;2882:2;2870:9;2861:7;2857:23;2853:32;2850:52;;;2898:1;2895;2888:12;2850:52;2921:29;2940:9;2921:29;:::i;:::-;2911:39;;2969:38;3003:2;2992:9;2988:18;2969:38;:::i;:::-;2959:48;;3054:2;3043:9;3039:18;3026:32;3016:42;;2736:328;;;;;:::o;3069:683::-;3164:6;3172;3180;3233:2;3221:9;3212:7;3208:23;3204:32;3201:52;;;3249:1;3246;3239:12;3201:52;3285:9;3272:23;3262:33;;3346:2;3335:9;3331:18;3318:32;3369:18;3410:2;3402:6;3399:14;3396:34;;;3426:1;3423;3416:12;3396:34;3464:6;3453:9;3449:22;3439:32;;3509:7;3502:4;3498:2;3494:13;3490:27;3480:55;;3531:1;3528;3521:12;3480:55;3571:2;3558:16;3597:2;3589:6;3586:14;3583:34;;;3613:1;3610;3603:12;3583:34;3666:7;3661:2;3651:6;3648:1;3644:14;3640:2;3636:23;3632:32;3629:45;3626:65;;;3687:1;3684;3677:12;3626:65;3718:2;3714;3710:11;3700:21;;3740:6;3730:16;;;;;3069:683;;;;;:::o;3757:127::-;3818:10;3813:3;3809:20;3806:1;3799:31;3849:4;3846:1;3839:15;3873:4;3870:1;3863:15;3889:275;3960:2;3954:9;4025:2;4006:13;;-1:-1:-1;;4002:27:1;3990:40;;4060:18;4045:34;;4081:22;;;4042:62;4039:88;;;4107:18;;:::i;:::-;4143:2;4136:22;3889:275;;-1:-1:-1;3889:275:1:o;4169:407::-;4234:5;4268:18;4260:6;4257:30;4254:56;;;4290:18;;:::i;:::-;4328:57;4373:2;4352:15;;-1:-1:-1;;4348:29:1;4379:4;4344:40;4328:57;:::i;:::-;4319:66;;4408:6;4401:5;4394:21;4448:3;4439:6;4434:3;4430:16;4427:25;4424:45;;;4465:1;4462;4455:12;4424:45;4514:6;4509:3;4502:4;4495:5;4491:16;4478:43;4568:1;4561:4;4552:6;4545:5;4541:18;4537:29;4530:40;4169:407;;;;;:::o;4581:451::-;4650:6;4703:2;4691:9;4682:7;4678:23;4674:32;4671:52;;;4719:1;4716;4709:12;4671:52;4759:9;4746:23;4792:18;4784:6;4781:30;4778:50;;;4824:1;4821;4814:12;4778:50;4847:22;;4900:4;4892:13;;4888:27;-1:-1:-1;4878:55:1;;4929:1;4926;4919:12;4878:55;4952:74;5018:7;5013:2;5000:16;4995:2;4991;4987:11;4952:74;:::i;5037:254::-;5105:6;5113;5166:2;5154:9;5145:7;5141:23;5137:32;5134:52;;;5182:1;5179;5172:12;5134:52;5218:9;5205:23;5195:33;;5247:38;5281:2;5270:9;5266:18;5247:38;:::i;:::-;5237:48;;5037:254;;;;;:::o;5296:952::-;5380:6;5411:2;5454;5442:9;5433:7;5429:23;5425:32;5422:52;;;5470:1;5467;5460:12;5422:52;5510:9;5497:23;5539:18;5580:2;5572:6;5569:14;5566:34;;;5596:1;5593;5586:12;5566:34;5634:6;5623:9;5619:22;5609:32;;5679:7;5672:4;5668:2;5664:13;5660:27;5650:55;;5701:1;5698;5691:12;5650:55;5737:2;5724:16;5759:2;5755;5752:10;5749:36;;;5765:18;;:::i;:::-;5811:2;5808:1;5804:10;5794:20;;5834:28;5858:2;5854;5850:11;5834:28;:::i;:::-;5896:15;;;5966:11;;;5962:20;;;5927:12;;;;5994:19;;;5991:39;;;6026:1;6023;6016:12;5991:39;6050:11;;;;6070:148;6086:6;6081:3;6078:15;6070:148;;;6152:23;6171:3;6152:23;:::i;:::-;6140:36;;6103:12;;;;6196;;;;6070:148;;;6237:5;5296:952;-1:-1:-1;;;;;;;;5296:952:1:o;6253:118::-;6339:5;6332:13;6325:21;6318:5;6315:32;6305:60;;6361:1;6358;6351:12;6376:315;6441:6;6449;6502:2;6490:9;6481:7;6477:23;6473:32;6470:52;;;6518:1;6515;6508:12;6470:52;6541:29;6560:9;6541:29;:::i;:::-;6531:39;;6620:2;6609:9;6605:18;6592:32;6633:28;6655:5;6633:28;:::i;:::-;6680:5;6670:15;;;6376:315;;;;;:::o;6696:667::-;6791:6;6799;6807;6815;6868:3;6856:9;6847:7;6843:23;6839:33;6836:53;;;6885:1;6882;6875:12;6836:53;6908:29;6927:9;6908:29;:::i;:::-;6898:39;;6956:38;6990:2;6979:9;6975:18;6956:38;:::i;:::-;6946:48;;7041:2;7030:9;7026:18;7013:32;7003:42;;7096:2;7085:9;7081:18;7068:32;7123:18;7115:6;7112:30;7109:50;;;7155:1;7152;7145:12;7109:50;7178:22;;7231:4;7223:13;;7219:27;-1:-1:-1;7209:55:1;;7260:1;7257;7250:12;7209:55;7283:74;7349:7;7344:2;7331:16;7326:2;7322;7318:11;7283:74;:::i;:::-;7273:84;;;6696:667;;;;;;;:::o;7561:272::-;7619:6;7672:2;7660:9;7651:7;7647:23;7643:32;7640:52;;;7688:1;7685;7678:12;7640:52;7727:9;7714:23;7777:6;7770:5;7766:18;7759:5;7756:29;7746:57;;7799:1;7796;7789:12;7838:383;7912:6;7920;7928;7981:2;7969:9;7960:7;7956:23;7952:32;7949:52;;;7997:1;7994;7987:12;7949:52;8020:29;8039:9;8020:29;:::i;:::-;8010:39;;8096:2;8085:9;8081:18;8068:32;8058:42;;8150:2;8139:9;8135:18;8122:32;8163:28;8185:5;8163:28;:::i;:::-;8210:5;8200:15;;;7838:383;;;;;:::o;8226:260::-;8294:6;8302;8355:2;8343:9;8334:7;8330:23;8326:32;8323:52;;;8371:1;8368;8361:12;8323:52;8394:29;8413:9;8394:29;:::i;:::-;8384:39;;8442:38;8476:2;8465:9;8461:18;8442:38;:::i;8491:380::-;8570:1;8566:12;;;;8613;;;8634:61;;8688:4;8680:6;8676:17;8666:27;;8634:61;8741:2;8733:6;8730:14;8710:18;8707:38;8704:161;;8787:10;8782:3;8778:20;8775:1;8768:31;8822:4;8819:1;8812:15;8850:4;8847:1;8840:15;8704:161;;8491:380;;;:::o;9908:127::-;9969:10;9964:3;9960:20;9957:1;9950:31;10000:4;9997:1;9990:15;10024:4;10021:1;10014:15;10040:168;10113:9;;;10144;;10161:15;;;10155:22;;10141:37;10131:71;;10182:18;;:::i;10345:217::-;10385:1;10411;10401:132;;10455:10;10450:3;10446:20;10443:1;10436:31;10490:4;10487:1;10480:15;10518:4;10515:1;10508:15;10401:132;-1:-1:-1;10547:9:1;;10345:217::o;10903:545::-;11005:2;11000:3;10997:11;10994:448;;;11041:1;11066:5;11062:2;11055:17;11111:4;11107:2;11097:19;11181:2;11169:10;11165:19;11162:1;11158:27;11152:4;11148:38;11217:4;11205:10;11202:20;11199:47;;;-1:-1:-1;11240:4:1;11199:47;11295:2;11290:3;11286:12;11283:1;11279:20;11273:4;11269:31;11259:41;;11350:82;11368:2;11361:5;11358:13;11350:82;;;11413:17;;;11394:1;11383:13;11350:82;;;11354:3;;;10903:545;;;:::o;11624:1352::-;11750:3;11744:10;11777:18;11769:6;11766:30;11763:56;;;11799:18;;:::i;:::-;11828:97;11918:6;11878:38;11910:4;11904:11;11878:38;:::i;:::-;11872:4;11828:97;:::i;:::-;11980:4;;12044:2;12033:14;;12061:1;12056:663;;;;12763:1;12780:6;12777:89;;;-1:-1:-1;12832:19:1;;;12826:26;12777:89;-1:-1:-1;;11581:1:1;11577:11;;;11573:24;11569:29;11559:40;11605:1;11601:11;;;11556:57;12879:81;;12026:944;;12056:663;10850:1;10843:14;;;10887:4;10874:18;;-1:-1:-1;;12092:20:1;;;12210:236;12224:7;12221:1;12218:14;12210:236;;;12313:19;;;12307:26;12292:42;;12405:27;;;;12373:1;12361:14;;;;12240:19;;12210:236;;;12214:3;12474:6;12465:7;12462:19;12459:201;;;12535:19;;;12529:26;-1:-1:-1;;12618:1:1;12614:14;;;12630:3;12610:24;12606:37;12602:42;12587:58;12572:74;;12459:201;-1:-1:-1;;;;;12706:1:1;12690:14;;;12686:22;12673:36;;-1:-1:-1;11624:1352:1:o;12981:342::-;13183:2;13165:21;;;13222:2;13202:18;;;13195:30;-1:-1:-1;;;13256:2:1;13241:18;;13234:48;13314:2;13299:18;;12981:342::o;13328:400::-;13530:2;13512:21;;;13569:2;13549:18;;;13542:30;13608:34;13603:2;13588:18;;13581:62;-1:-1:-1;;;13674:2:1;13659:18;;13652:34;13718:3;13703:19;;13328:400::o;13733:125::-;13798:9;;;13819:10;;;13816:36;;;13832:18;;:::i;14210:397::-;14412:2;14394:21;;;14451:2;14431:18;;;14424:30;14490:34;14485:2;14470:18;;14463:62;-1:-1:-1;;;14556:2:1;14541:18;;14534:31;14597:3;14582:19;;14210:397::o;15623:184::-;15693:6;15746:2;15734:9;15725:7;15721:23;15717:32;15714:52;;;15762:1;15759;15752:12;15714:52;-1:-1:-1;15785:16:1;;15623:184;-1:-1:-1;15623:184:1:o;16541:245::-;16608:6;16661:2;16649:9;16640:7;16636:23;16632:32;16629:52;;;16677:1;16674;16667:12;16629:52;16709:9;16703:16;16728:28;16750:5;16728:28;:::i;16791:127::-;16852:10;16847:3;16843:20;16840:1;16833:31;16883:4;16880:1;16873:15;16907:4;16904:1;16897:15;16923:135;16962:3;16983:17;;;16980:43;;17003:18;;:::i;:::-;-1:-1:-1;17050:1:1;17039:13;;16923:135::o;18575:496::-;18754:3;18792:6;18786:13;18808:66;18867:6;18862:3;18855:4;18847:6;18843:17;18808:66;:::i;:::-;18937:13;;18896:16;;;;18959:70;18937:13;18896:16;19006:4;18994:17;;18959:70;:::i;:::-;19045:20;;18575:496;-1:-1:-1;;;;18575:496:1:o;19891:136::-;19930:3;19958:5;19948:39;;19967:18;;:::i;:::-;-1:-1:-1;;;20003:18:1;;19891:136::o;20692:489::-;-1:-1:-1;;;;;20961:15:1;;;20943:34;;21013:15;;21008:2;20993:18;;20986:43;21060:2;21045:18;;21038:34;;;21108:3;21103:2;21088:18;;21081:31;;;20886:4;;21129:46;;21155:19;;21147:6;21129:46;:::i;:::-;21121:54;20692:489;-1:-1:-1;;;;;;20692:489:1:o;21186:249::-;21255:6;21308:2;21296:9;21287:7;21283:23;21279:32;21276:52;;;21324:1;21321;21314:12;21276:52;21356:9;21350:16;21375:30;21399:5;21375:30;:::i

Swarm Source

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