MATIC Price: $0.591191 (+3.31%)
Gas: 32 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Token Holdings

Sponsored

Transaction Hash
Method
Block
From
To
Value
External Mint428434882023-05-18 5:51:47399 days ago1684389107IN
0xeBCD9E41...1395093cc
0 MATIC0.01514288182.13281673
External Mint421357992023-04-30 12:13:06416 days ago1682856786IN
0xeBCD9E41...1395093cc
0 MATIC0.03868495465.28778379
External Mint420143352023-04-27 9:07:13419 days ago1682586433IN
0xeBCD9E41...1395093cc
0 MATIC0.05847259703.28593443
External Mint419971362023-04-26 22:42:27420 days ago1682548947IN
0xeBCD9E41...1395093cc
0 MATIC0.04463848536.89452466
External Mint419930612023-04-26 20:14:14420 days ago1682540054IN
0xeBCD9E41...1395093cc
0 MATIC0.07222937868.74713283
External Mint419869762023-04-26 16:30:06420 days ago1682526606IN
0xeBCD9E41...1395093cc
0 MATIC0.04659392560.41379342
External Mint419041192023-04-24 14:07:18422 days ago1682345238IN
0xeBCD9E41...1395093cc
0 MATIC0.06061389729.04058551
External Mint418801482023-04-23 22:20:16423 days ago1682288416IN
0xeBCD9E41...1395093cc
0 MATIC0.04371489525.78595409
External Mint418777292023-04-23 20:45:07423 days ago1682282707IN
0xeBCD9E41...1395093cc
0 MATIC0.05904431710.16237021
External Mint418638242023-04-23 12:08:06423 days ago1682251686IN
0xeBCD9E41...1395093cc
0 MATIC0.04954286595.88251231
External Mint418594692023-04-23 9:27:46423 days ago1682242066IN
0xeBCD9E41...1395093cc
0 MATIC0.03473336417.75958053
External Mint418592012023-04-23 9:18:17423 days ago1682241497IN
0xeBCD9E41...1395093cc
0 MATIC0.04204241505.66995622
External Mint418569932023-04-23 7:57:27424 days ago1682236647IN
0xeBCD9E41...1395093cc
0 MATIC0.04198205504.94403155
External Mint418568972023-04-23 7:54:03424 days ago1682236443IN
0xeBCD9E41...1395093cc
0 MATIC0.03662831440.55123642
External Mint418564712023-04-23 7:38:25424 days ago1682235505IN
0xeBCD9E41...1395093cc
0 MATIC0.03854393463.59164434
External Mint418545922023-04-23 6:27:43424 days ago1682231263IN
0xeBCD9E41...1395093cc
0 MATIC0.03560596428.25490232
External Mint418542252023-04-23 6:14:09424 days ago1682230449IN
0xeBCD9E41...1395093cc
0 MATIC0.0402549484.17055425
External Mint418541872023-04-23 6:12:47424 days ago1682230367IN
0xeBCD9E41...1395093cc
0 MATIC0.03434263413.06006309
External Mint418539272023-04-23 6:03:15424 days ago1682229795IN
0xeBCD9E41...1395093cc
0 MATIC0.03938203473.67202891
External Mint418535072023-04-23 5:47:38424 days ago1682228858IN
0xeBCD9E41...1395093cc
0 MATIC0.04456804536.04732101
External Mint418532032023-04-23 5:36:06424 days ago1682228166IN
0xeBCD9E41...1395093cc
0 MATIC0.04588082551.83686209
External Mint418530082023-04-23 5:28:40424 days ago1682227720IN
0xeBCD9E41...1395093cc
0 MATIC0.03989258479.81263005
External Mint418523762023-04-23 5:04:54424 days ago1682226294IN
0xeBCD9E41...1395093cc
0 MATIC0.03459407416.08424488
External Mint418523372023-04-23 5:03:32424 days ago1682226212IN
0xeBCD9E41...1395093cc
0 MATIC0.03389123407.63078365
External Mint418521432023-04-23 4:56:06424 days ago1682225766IN
0xeBCD9E41...1395093cc
0 MATIC0.04222766507.8981481
View all transactions

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZQNChanLineSBT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-11-10
*/

// 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: @openzeppelin/contracts/utils/introspection/IERC165.sol


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;


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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;





/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

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

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

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: erc721a/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: erc721a/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();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: base64-sol/base64.sol



pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

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

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

// File: zqn_line.sol


// Copyright (c) 2022 Keisuke OHNO

/*

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/

pragma solidity >=0.7.0 <0.9.0;







//tokenURI interface
interface iTokenURI {
    function tokenURI(uint256 _tokenId) external view returns (string memory);
}

contract ZQNChanLineSBT is Ownable, AccessControl , ERC721A{

    constructor(
    ) ERC721A("ZQN chan Line SBT", "ZLS") {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(MINTER_ROLE       , msg.sender);
        _setupRole(AIRDROP_ROLE      , msg.sender);

        setIsSBT(true);

        setUseSingleMetadata(true);
        setMetadataTitle("ZQN chan Line SBT");
        setMetadataDescription("Thank you for following me");
        setMetadataAttributes("LINE");
        setImageURI("https://data.zqn.wtf/line/images/1.png");//sanuqn
        _safeMint(0xdEcf4B112d4120B6998e5020a6B4819E490F7db6, 1);//atode kesu
    }


    //
    //withdraw section
    //

    address public constant withdrawAddress = 0xdEcf4B112d4120B6998e5020a6B4819E490F7db6;

    function withdraw() public onlyOwner {
        (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}('');
        require(os);
    }


    //
    //mint section
    //

    uint256 public cost = 0;
    uint256 public maxSupply = 9999999;
    uint256 public maxMintAmountPerTransaction = 10;
    uint256 public publicSaleMaxMintAmountPerAddress = 300;
    bool public paused = true;
    bool public onlyWhitelisted = true;
    bool public mintCount = true;
    mapping(address => uint256) public whitelistMintedAmount;
    mapping(address => uint256) public publicSaleMintedAmount;
    bytes32 public constant AIRDROP_ROLE = keccak256("AIRDROP_ROLE");

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract.");
        _;
    }
 
    //mint with merkle tree
    bytes32 public merkleRoot;
    function mint(uint256 _mintAmount , uint256 _maxMintAmount , bytes32[] calldata _merkleProof) public payable callerIsUser{
        require(!paused, "the contract is paused");
        require(0 < _mintAmount, "need to mint at least 1 NFT");
        require(_mintAmount <= maxMintAmountPerTransaction, "max mint amount per session exceeded");
        require(totalSupply() + _mintAmount <= maxSupply, "max NFT limit exceeded");
        require(cost * _mintAmount <= msg.value, "insufficient funds");
        if(onlyWhitelisted == true) {
            bytes32 leaf = keccak256( abi.encodePacked(msg.sender, _maxMintAmount) );
            require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "user is not whitelisted");
            if(mintCount == true){
                require(_mintAmount <= _maxMintAmount - whitelistMintedAmount[msg.sender] , "max NFT per address exceeded");
                whitelistMintedAmount[msg.sender] += _mintAmount;
            }
        }else{
            if(mintCount == true){
                require(_mintAmount <= publicSaleMaxMintAmountPerAddress - publicSaleMintedAmount[msg.sender] , "max NFT per address exceeded");
                publicSaleMintedAmount[msg.sender] += _mintAmount;
            }
        }
        _safeMint(msg.sender, _mintAmount);
    }

    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }




/*
    //mint with mapping
    mapping(address => uint256) public whitelistUserAmount;
    function mint(uint256 _mintAmount ) public payable callerIsUser{
        require(!paused, "the contract is paused");
        require(0 < _mintAmount, "need to mint at least 1 NFT");
        require(_mintAmount <= maxMintAmountPerTransaction, "max mint amount per session exceeded");
        require(totalSupply() + _mintAmount <= maxSupply, "max NFT limit exceeded");
        require(cost * _mintAmount <= msg.value, "insufficient funds");
        if(onlyWhitelisted == true) {
            require( whitelistUserAmount[msg.sender] != 0 , "user is not whitelisted");
            if(mintCount == true){
                require(_mintAmount <= whitelistUserAmount[msg.sender] - whitelistMintedAmount[msg.sender] , "max NFT per address exceeded");
                whitelistMintedAmount[msg.sender] += _mintAmount;
            }
        }else{
            if(mintCount == true){
                require(_mintAmount <= publicSaleMaxMintAmountPerAddress - publicSaleMintedAmount[msg.sender] , "max NFT per address exceeded");
                publicSaleMintedAmount[msg.sender] += _mintAmount;
            }
        }
        _safeMint(msg.sender, _mintAmount);
    }

    function setWhitelist(address[] memory addresses, uint256[] memory saleSupplies) public onlyOwner {
        require(addresses.length == saleSupplies.length);
        for (uint256 i = 0; i < addresses.length; i++) {
            whitelistUserAmount[addresses[i]] = saleSupplies[i];
        }
    }    

*/



    function airdropMint(address[] calldata _airdropAddresses , uint256[] memory _UserMintAmount) public {
        require(hasRole(AIRDROP_ROLE, msg.sender), "Caller is not a air dropper");
        uint256 _mintAmount = 0;
        for (uint256 i = 0; i < _UserMintAmount.length; i++) {
            _mintAmount += _UserMintAmount[i];
        }
        require(0 < _mintAmount , "need to mint at least 1 NFT");
        require(totalSupply() + _mintAmount <= maxSupply, "max NFT limit exceeded");
        for (uint256 i = 0; i < _UserMintAmount.length; i++) {
            _safeMint(_airdropAddresses[i], _UserMintAmount[i] );
        }
    }

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

    function setPublicSaleMaxMintAmountPerAddress(uint256 _publicSaleMaxMintAmountPerAddress) public onlyOwner() {
        publicSaleMaxMintAmountPerAddress = _publicSaleMaxMintAmountPerAddress;
    }

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

    function setOnlyWhitelisted(bool _state) public onlyOwner {
        onlyWhitelisted = _state;
    }

    function setMaxMintAmountPerTransaction(uint256 _maxMintAmountPerTransaction) public onlyOwner {
        maxMintAmountPerTransaction = _maxMintAmountPerTransaction;
    }
  
    function pause(bool _state) public onlyOwner {
        paused = _state;
    }

    function setMintCount(bool _state) public onlyOwner {
        mintCount = _state;
    }
 


    //
    //URI section
    //

    string public baseURI;
    string public baseExtension = ".json";

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

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

    function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
        baseExtension = _newBaseExtension;
    }



    //
    //interface metadata
    //

    iTokenURI public interfaceOfTokenURI;
    bool public useInterfaceMetadata = false;

    function setInterfaceOfTokenURI(address _address) public onlyOwner() {
        interfaceOfTokenURI = iTokenURI(_address);
    }

    function setUseInterfaceMetadata(bool _useInterfaceMetadata) public onlyOwner() {
        useInterfaceMetadata = _useInterfaceMetadata;
    }


    //
    //single metadata
    //

    bool public useSingleMetadata = false;
    string public imageURI;
    string public metadataTitle;
    string public metadataDescription;
    string public metadataAttributes;

    //single image metadata
    function setUseSingleMetadata(bool _useSingleMetadata) public onlyOwner() {
        useSingleMetadata = _useSingleMetadata;
    }
    function setMetadataTitle(string memory _metadataTitle) public onlyOwner {
        metadataTitle = _metadataTitle;
    }
    function setMetadataDescription(string memory _metadataDescription) public onlyOwner {
        metadataDescription = _metadataDescription;
    }
    function setMetadataAttributes(string memory _metadataAttributes) public onlyOwner {
        metadataAttributes = _metadataAttributes;
    }
    function setImageURI(string memory _newImageURI) public onlyOwner {
        imageURI = _newImageURI;
    }

    //
    //token URI
    //

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (useInterfaceMetadata == true) {
            return interfaceOfTokenURI.tokenURI(tokenId);
        }
        if(useSingleMetadata == true){
            return string( abi.encodePacked( 'data:application/json;base64,' , Base64.encode(
                abi.encodePacked(
                    '{'
                        '"name":"' , metadataTitle ,'",' ,
                        '"description":"' , metadataDescription ,  '",' ,
                        '"image": "' , imageURI , '",' ,
                        '"attributes":[{"trait_type":"type","value":"' , metadataAttributes , '"}]',
                    '}'
                )
            ) ) );
        }
        return string(abi.encodePacked(ERC721A.tokenURI(tokenId), baseExtension));
    }



    //
    //burnin' section
    //

    bytes32 public constant MINTER_ROLE  = keccak256("MINTER_ROLE");    
    function externalMint(address _address , uint256 _amount ) external payable {
        require(hasRole(MINTER_ROLE, msg.sender), "Caller is not a minter");
        require( _nextTokenId() -1 + _amount <= maxSupply , "max NFT limit exceeded");
        _safeMint( _address, _amount );
    }

/*
    bytes32 public constant BURNER_ROLE  = keccak256("BURNER_ROLE");
    function externalBurn(uint256[] memory _burnTokenIds) external {
        require(hasRole(BURNER_ROLE, msg.sender), "Caller is not a burner");
        for (uint256 i = 0; i < _burnTokenIds.length; i++) {
            uint256 tokenId = _burnTokenIds[i];
            _burn(tokenId);
        }        
    }
*/

    //
    //viewer section
    //

    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }



    //
    //sbt section
    //

    bool public isSBT = false;

    function setIsSBT(bool _state) public onlyOwner {
        isSBT = _state;
    }

    function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity) internal virtual override{
        require( isSBT == false || from == address(0) || to == address(0x000000000000000000000000000000000000dEaD), "transfer is prohibited");
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require( isSBT == false , "setApprovalForAll is prohibited");
        super.setApprovalForAll(operator, approved);
    }

    function approve(address to, uint256 tokenId) public payable virtual override {
        require( isSBT == false , "approve is prohibited");
        super.approve(to, tokenId);
    }



    //
    //override
    //

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

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


}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AIRDROP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_UserMintAmount","type":"uint256[]"}],"name":"airdropMint","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":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"externalMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interfaceOfTokenURI","outputs":[{"internalType":"contract iTokenURI","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":[],"name":"isSBT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataAttributes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataTitle","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleMaxMintAmountPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicSaleMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newImageURI","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setInterfaceOfTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsSBT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTransaction","type":"uint256"}],"name":"setMaxMintAmountPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataAttributes","type":"string"}],"name":"setMetadataAttributes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataDescription","type":"string"}],"name":"setMetadataDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataTitle","type":"string"}],"name":"setMetadataTitle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMintCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleMaxMintAmountPerAddress","type":"uint256"}],"name":"setPublicSaleMaxMintAmountPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useInterfaceMetadata","type":"bool"}],"name":"setUseInterfaceMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useSingleMetadata","type":"bool"}],"name":"setUseSingleMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"useInterfaceMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useSingleMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6000600a9081556298967f600b55600c5561012c600d55600e805462ffffff19166201010117905560c06040526005608081905264173539b7b760d91b60a090815262000050916013919062000798565b506014805461ffff60a01b191690556019805460ff191690553480156200007657600080fd5b50604051806040016040528060118152602001701694538818da185b88131a5b994814d095607a1b815250604051806040016040528060038152602001625a4c5360e81b815250620000d7620000d16200026a60201b60201c565b6200026e565b8151620000ec90600490602085019062000798565b5080516200010290600590602084019062000798565b505060016002555062000117600033620002be565b620001437f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620002be565b6200016f7f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f33620002be565b6200017b6001620002ce565b620001876001620002eb565b6040805180820190915260118152701694538818da185b88131a5b994814d095607a1b6020820152620001ba9062000313565b60408051808201909152601a81527f5468616e6b20796f7520666f7220666f6c6c6f77696e67206d650000000000006020820152620001f99062000332565b6040805180820190915260048152634c494e4560e01b60208201526200021f9062000351565b6200024360405180606001604052806026815260200162003de06026913962000370565b6200026473decf4b112d4120b6998e5020a6b4819e490f7db660016200038f565b62000929565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620002ca8282620003b1565b5050565b620002d862000439565b6019805460ff1916911515919091179055565b620002f562000439565b60148054911515600160a81b0260ff60a81b19909216919091179055565b6200031d62000439565b8051620002ca90601690602084019062000798565b6200033c62000439565b8051620002ca90601790602084019062000798565b6200035b62000439565b8051620002ca90601890602084019062000798565b6200037a62000439565b8051620002ca90601590602084019062000798565b620002ca8282604051806020016040528060008152506200049b60201b60201c565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620002ca5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000546001600160a01b03163314620004995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b620004a7838362000512565b6001600160a01b0383163b156200050d576002548281035b6001810190620004d590600090879086620005fa565b620004f3576040516368d2bf6b60e11b815260040160405180910390fd5b818110620004bf5781600254146200050a57600080fd5b50505b505050565b60025481620005345760405163b562e8dd60e01b815260040160405180910390fd5b620005436000848385620006fb565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b1783179055828401908390839060008051602062003e068339815191528180a4600183015b818114620005d2578083600060008051602062003e06833981519152600080a4600101620005a9565b5081620005f157604051622e076360e81b815260040160405180910390fd5b60025550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200063190339089908890889060040162000871565b602060405180830381600087803b1580156200064c57600080fd5b505af19250505080156200067f575060408051601f3d908101601f191682019092526200067c918101906200083e565b60015b620006de573d808015620006b0576040519150601f19603f3d011682016040523d82523d6000602084013e620006b5565b606091505b508051620006d6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60195460ff1615806200071557506001600160a01b038416155b806200072b57506001600160a01b03831661dead145b620007795760405162461bcd60e51b815260206004820152601660248201527f7472616e736665722069732070726f6869626974656400000000000000000000604482015260640162000490565b62000792848484846200079260201b6200178f1760201c565b50505050565b828054620007a690620008ec565b90600052602060002090601f016020900481019282620007ca576000855562000815565b82601f10620007e557805160ff191683800117855562000815565b8280016001018555821562000815579182015b8281111562000815578251825591602001919060010190620007f8565b506200082392915062000827565b5090565b5b8082111562000823576000815560010162000828565b6000602082840312156200085157600080fd5b81516001600160e01b0319811681146200086a57600080fd5b9392505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620008c05785810182015185820160a001528101620008a2565b82811115620008d357600060a084870101525b5050601f01601f19169190910160a00195945050505050565b600181811c908216806200090157607f821691505b602082108114156200092357634e487b7160e01b600052602260045260246000fd5b50919050565b6134a780620009396000396000f3fe6080604052600436106103fa5760003560e01c806373ef64fd11610213578063aabb9a8611610123578063d5abeb01116100ab578063e6d37b881161007a578063e6d37b8814610bb9578063e985e9c514610bcc578063f138abfa14610c15578063f2fde38b14610c35578063fcd1aac914610c5557600080fd5b8063d5abeb0114610b42578063d6dfad7614610b58578063da3ef23f14610b79578063ddecc4d014610b9957600080fd5b8063bbb89744116100f2578063bbb8974414610aa3578063c668286214610ab9578063c87b56dd14610ace578063d539139314610aee578063d547741f14610b2257600080fd5b8063aabb9a8614610a3a578063b5f94d0614610a4f578063b88d4fde14610a6f578063ba6269c614610a8257600080fd5b806395d89b41116101a65780639c70b512116101755780639c70b51214610999578063a217fddf146109b8578063a22cb465146109cd578063a58c12ae146109ed578063a9e2acd514610a1a57600080fd5b806395d89b41146109315780639659867e14610946578063981eb3441461096657806399f988981461098657600080fd5b80638da5cb5b116101e25780638da5cb5b146108be5780638e73cf00146108dc57806391d14854146108fc578063942c92731461091c57600080fd5b806373ef64fd1461083b5780637cb64759146108515780638462151c14610871578063877984cb1461089e57600080fd5b80632eb4a7ab1161030e57806355f804b3116102a15780636b8ee0ec116102705780636b8ee0ec146107b15780636c0360eb146107d15780636f8b44b0146107e657806370a0823114610806578063715018a61461082657600080fd5b806355f804b314610737578063599487c3146107575780635c975abb146107775780636352211e1461079157600080fd5b80633ccfd60b116102dd5780633ccfd60b146106d55780633cf40df3146106ea57806342842e0e1461070457806344a0d68a1461071757600080fd5b80632eb4a7ab1461065f5780632f2ff15d1461067557806336568abe146106955780633c952764146106b557600080fd5b806313faede6116103915780631fac2a35116103605780631fac2a35146105ae57806323b872dd146105db57806323c03085146105ee578063248a9ca31461060e578063279a669e1461063f57600080fd5b806313faede6146105115780631581b6001461053557806318160ddd1461055d5780631e0fbfa21461057a57600080fd5b806306fdde03116103cd57806306fdde031461049c578063081812fc146104b1578063095ea7b3146104e9578063135d088d146104fc57600080fd5b806301340a32146103ff57806301ffc9a71461042a57806302329a291461045a57806304787ca21461047c575b600080fd5b34801561040b57600080fd5b50610414610c75565b6040516104219190613236565b60405180910390f35b34801561043657600080fd5b5061044a610445366004612dcb565b610d03565b6040519015158152602001610421565b34801561046657600080fd5b5061047a610475366004612d74565b610d32565b005b34801561048857600080fd5b5061047a610497366004612e05565b610d4d565b3480156104a857600080fd5b50610414610d6c565b3480156104bd57600080fd5b506104d16104cc366004612d8f565b610dfe565b6040516001600160a01b039091168152602001610421565b61047a6104f7366004612c75565b610e42565b34801561050857600080fd5b50610414610e9c565b34801561051d57600080fd5b50610527600a5481565b604051908152602001610421565b34801561054157600080fd5b506104d173decf4b112d4120b6998e5020a6b4819e490f7db681565b34801561056957600080fd5b506003546002540360001901610527565b34801561058657600080fd5b506105277f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f81565b3480156105ba57600080fd5b506105276105c9366004612b46565b600f6020526000908152604090205481565b61047a6105e9366004612b94565b610ea9565b3480156105fa57600080fd5b5061047a610609366004612b46565b611047565b34801561061a57600080fd5b50610527610629366004612d8f565b6000908152600160208190526040909120015490565b34801561064b57600080fd5b5061047a61065a366004612c9f565b611071565b34801561066b57600080fd5b5061052760115481565b34801561068157600080fd5b5061047a610690366004612da8565b611225565b3480156106a157600080fd5b5061047a6106b0366004612da8565b611250565b3480156106c157600080fd5b5061047a6106d0366004612d74565b6112ca565b3480156106e157600080fd5b5061047a6112ec565b3480156106f657600080fd5b5060195461044a9060ff1681565b61047a610712366004612b94565b611360565b34801561072357600080fd5b5061047a610732366004612d8f565b61137b565b34801561074357600080fd5b5061047a610752366004612e05565b611388565b34801561076357600080fd5b5061047a610772366004612e05565b6113a3565b34801561078357600080fd5b50600e5461044a9060ff1681565b34801561079d57600080fd5b506104d16107ac366004612d8f565b6113be565b3480156107bd57600080fd5b5061047a6107cc366004612d74565b6113c9565b3480156107dd57600080fd5b506104146113ef565b3480156107f257600080fd5b5061047a610801366004612d8f565b6113fc565b34801561081257600080fd5b50610527610821366004612b46565b611409565b34801561083257600080fd5b5061047a611457565b34801561084757600080fd5b50610527600d5481565b34801561085d57600080fd5b5061047a61086c366004612d8f565b61146b565b34801561087d57600080fd5b5061089161088c366004612b46565b611478565b60405161042191906131fe565b3480156108aa57600080fd5b506014546104d1906001600160a01b031681565b3480156108ca57600080fd5b506000546001600160a01b03166104d1565b3480156108e857600080fd5b5061047a6108f7366004612d74565b611587565b34801561090857600080fd5b5061044a610917366004612da8565b6115ab565b34801561092857600080fd5b506104146115d6565b34801561093d57600080fd5b506104146115e3565b34801561095257600080fd5b50600e5461044a9062010000900460ff1681565b34801561097257600080fd5b5061047a610981366004612e05565b6115f2565b61047a610994366004612c75565b61160d565b3480156109a557600080fd5b50600e5461044a90610100900460ff1681565b3480156109c457600080fd5b50610527600081565b3480156109d957600080fd5b5061047a6109e8366004612c4b565b6116c7565b3480156109f957600080fd5b50610527610a08366004612b46565b60106020526000908152604090205481565b348015610a2657600080fd5b5061047a610a35366004612d8f565b611724565b348015610a4657600080fd5b50610414611731565b348015610a5b57600080fd5b5061047a610a6a366004612d8f565b61173e565b61047a610a7d366004612bd0565b61174b565b348015610a8e57600080fd5b5060145461044a90600160a01b900460ff1681565b348015610aaf57600080fd5b50610527600c5481565b348015610ac557600080fd5b50610414611795565b348015610ada57600080fd5b50610414610ae9366004612d8f565b6117a2565b348015610afa57600080fd5b506105277f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610b2e57600080fd5b5061047a610b3d366004612da8565b6118c9565b348015610b4e57600080fd5b50610527600b5481565b348015610b6457600080fd5b5060145461044a90600160a81b900460ff1681565b348015610b8557600080fd5b5061047a610b94366004612e05565b6118ef565b348015610ba557600080fd5b5061047a610bb4366004612e05565b61190a565b61047a610bc7366004612ec3565b611925565b348015610bd857600080fd5b5061044a610be7366004612b61565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610c2157600080fd5b5061047a610c30366004612d74565b611d37565b348015610c4157600080fd5b5061047a610c50366004612b46565b611d5d565b348015610c6157600080fd5b5061047a610c70366004612d74565b611dd3565b60188054610c8290613383565b80601f0160208091040260200160405190810160405280929190818152602001828054610cae90613383565b8015610cfb5780601f10610cd057610100808354040283529160200191610cfb565b820191906000526020600020905b815481529060010190602001808311610cde57829003601f168201915b505050505081565b6000610d0e82611dee565b80610d1d5750610d1d82611e23565b80610d2c5750610d2c82611e23565b92915050565b610d3a611e71565b600e805460ff1916911515919091179055565b610d55611e71565b8051610d689060159060208401906129f8565b5050565b606060048054610d7b90613383565b80601f0160208091040260200160405190810160405280929190818152602001828054610da790613383565b8015610df45780601f10610dc957610100808354040283529160200191610df4565b820191906000526020600020905b815481529060010190602001808311610dd757829003601f168201915b5050505050905090565b6000610e0982611ecb565b610e26576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b60195460ff1615610e925760405162461bcd60e51b8152602060048201526015602482015274185c1c1c9bdd99481a5cc81c1c9bda1a589a5d1959605a1b60448201526064015b60405180910390fd5b610d688282611f00565b60158054610c8290613383565b6000610eb482611fa0565b9050836001600160a01b0316816001600160a01b031614610ee75760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610f3457610f178633610be7565b610f3457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f5b57604051633a954ecd60e21b815260040160405180910390fd5b610f688686866001612010565b8015610f7357600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040902055600160e11b8316610ffe5760018401600081815260066020526040902054610ffc576002548114610ffc5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61104f611e71565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b61109b7f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f336115ab565b6110e75760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f742061206169722064726f7070657200000000006044820152606401610e89565b6000805b825181101561112d57828181518110611106576111066133ef565b60200260200101518261111991906132d0565b915080611125816133be565b9150506110eb565b508060001061117e5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610e89565b600b54600354600254839190036000190161119991906132d0565b11156111b75760405162461bcd60e51b8152600401610e8990613249565b60005b825181101561121e5761120c8585838181106111d8576111d86133ef565b90506020020160208101906111ed9190612b46565b8483815181106111ff576111ff6133ef565b6020026020010151612088565b80611216816133be565b9150506111ba565b5050505050565b60008281526001602081905260409091200154611241816120a2565b61124b83836120ac565b505050565b6001600160a01b03811633146112c05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e89565b610d688282612117565b6112d2611e71565b600e80549115156101000261ff0019909216919091179055565b6112f4611e71565b60405160009073decf4b112d4120b6998e5020a6b4819e490f7db69047908381818185875af1925050503d806000811461134a576040519150601f19603f3d011682016040523d82523d6000602084013e61134f565b606091505b505090508061135d57600080fd5b50565b61124b8383836040518060200160405280600081525061174b565b611383611e71565b600a55565b611390611e71565b8051610d689060129060208401906129f8565b6113ab611e71565b8051610d689060179060208401906129f8565b6000610d2c82611fa0565b6113d1611e71565b60148054911515600160a81b0260ff60a81b19909216919091179055565b60128054610c8290613383565b611404611e71565b600b55565b60006001600160a01b038216611432576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b61145f611e71565b611469600061217e565b565b611473611e71565b601155565b6060600080600061148885611409565b90506000816001600160401b038111156114a4576114a4613405565b6040519080825280602002602001820160405280156114cd578160200160208202803683370190505b5090506114fa60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b83861461157b5761150d816121ce565b915081604001511561151e57611573565b81516001600160a01b03161561153357815194505b876001600160a01b0316856001600160a01b031614156115735780838780600101985081518110611566576115666133ef565b6020026020010181815250505b6001016114fd565b50909695505050505050565b61158f611e71565b600e8054911515620100000262ff000019909216919091179055565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60178054610c8290613383565b606060058054610d7b90613383565b6115fa611e71565b8051610d689060169060208401906129f8565b6116377f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336115ab565b61167c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba10309036b4b73a32b960511b6044820152606401610e89565b600b5481600161168b60025490565b6116959190613329565b61169f91906132d0565b11156116bd5760405162461bcd60e51b8152600401610e8990613249565b610d688282612088565b60195460ff161561171a5760405162461bcd60e51b815260206004820152601f60248201527f736574417070726f76616c466f72416c6c2069732070726f68696269746564006044820152606401610e89565b610d68828261224c565b61172c611e71565b600c55565b60168054610c8290613383565b611746611e71565b600d55565b611756848484610ea9565b6001600160a01b0383163b1561178f57611772848484846122b8565b61178f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60138054610c8290613383565b606060148054906101000a900460ff16151560011515141561183e5760145460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b15801561180257600080fd5b505afa158015611816573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d2c9190810190612e4d565b601454600160a81b900460ff161515600114156118ad5761188760166017601560186040516020016118739493929190613028565b6040516020818303038152906040526123b0565b6040516020016118979190613107565b6040516020818303038152906040529050919050565b6118b682612515565b601360405160200161189792919061300a565b600082815260016020819052604090912001546118e5816120a2565b61124b8383612117565b6118f7611e71565b8051610d689060139060208401906129f8565b611912611e71565b8051610d689060189060208401906129f8565b3233146119745760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e006044820152606401610e89565b600e5460ff16156119c05760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610e89565b83600010611a105760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610e89565b600c54841115611a6e5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610e89565b600b546003546002548691900360001901611a8991906132d0565b1115611aa75760405162461bcd60e51b8152600401610e8990613249565b3484600a54611ab6919061330a565b1115611af95760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610e89565b600e5460ff61010090910416151560011415611c86576040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052805190602001209050611b90838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150849050612599565b611bdc5760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c69737465640000000000000000006044820152606401610e89565b600e5462010000900460ff16151560011415611c8057336000908152600f6020526040902054611c0c9085613329565b851115611c5b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610e89565b336000908152600f602052604081208054879290611c7a9084906132d0565b90915550505b50611d2d565b600e5462010000900460ff16151560011415611d2d5733600090815260106020526040902054600d54611cb99190613329565b841115611d085760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610e89565b3360009081526010602052604081208054869290611d279084906132d0565b90915550505b61178f3385612088565b611d3f611e71565b60148054911515600160a01b0260ff60a01b19909216919091179055565b611d65611e71565b6001600160a01b038116611dca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e89565b61135d8161217e565b611ddb611e71565b6019805460ff1916911515919091179055565b60006001600160e01b03198216637965db0b60e01b1480610d2c57506301ffc9a760e01b6001600160e01b0319831614610d2c565b60006301ffc9a760e01b6001600160e01b031983161480611e5457506380ac58cd60e01b6001600160e01b03198316145b80610d2c5750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b031633146114695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e89565b600081600111158015611edf575060025482105b8015610d2c575050600090815260066020526040902054600160e01b161590565b6000611f0b826113be565b9050336001600160a01b03821614611f4457611f278133610be7565b611f44576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008180600111611ff757600254811015611ff757600081815260066020526040902054600160e01b8116611ff5575b80611fee575060001901600081815260066020526040902054611fd0565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60195460ff16158061202957506001600160a01b038416155b8061203e57506001600160a01b03831661dead145b6120835760405162461bcd60e51b81526020600482015260166024820152751d1c985b9cd9995c881a5cc81c1c9bda1a589a5d195960521b6044820152606401610e89565b61178f565b610d688282604051806020016040528060008152506125af565b61135d8133612615565b6120b682826115ab565b610d685760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b61212182826115ab565b15610d685760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260066020526040902054610d2c90604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122ed9033908990889088906004016131c1565b602060405180830381600087803b15801561230757600080fd5b505af1925050508015612337575060408051601f3d908101601f1916820190925261233491810190612de8565b60015b612392573d808015612365576040519150601f19603f3d011682016040523d82523d6000602084013e61236a565b606091505b50805161238a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608151600014156123d057505060408051602081019091526000815290565b600060405180606001604052806040815260200161343260409139905060006003845160026123ff91906132d0565b61240991906132e8565b61241490600461330a565b905060006124238260206132d0565b6001600160401b0381111561243a5761243a613405565b6040519080825280601f01601f191660200182016040528015612464576020820181803683370190505b509050818152600183018586518101602084015b818310156124d0576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612478565b6003895106600181146124ea57600281146124fb57612507565b613d3d60f01b600119830152612507565b603d60f81b6000198301525b509398975050505050505050565b606061252082611ecb565b61253d57604051630a14c4b560e41b815260040160405180910390fd5b600061254761266e565b90508051600014156125685760405180602001604052806000815250611fee565b806125728461267d565b604051602001612583929190612fdb565b6040516020818303038152906040529392505050565b6000826125a685846126cb565b14949350505050565b6125b98383612718565b6001600160a01b0383163b1561124b576002548281035b6125e360008683806001019450866122b8565b612600576040516368d2bf6b60e11b815260040160405180910390fd5b8181106125d057816002541461121e57600080fd5b61261f82826115ab565b610d685761262c8161281c565b61263783602061282e565b60405160200161264892919061314c565b60408051601f198184030181529082905262461bcd60e51b8252610e8991600401613236565b606060128054610d7b90613383565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806126b4576126b9565b612697565b50819003601f19909101908152919050565b600081815b8451811015612710576126fc828683815181106126ef576126ef6133ef565b60200260200101516129c9565b915080612708816133be565b9150506126d0565b509392505050565b600254816127395760405163b562e8dd60e01b815260040160405180910390fd5b6127466000848385612010565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146127f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016127bd565b508161281357604051622e076360e81b815260040160405180910390fd5b60025550505050565b6060610d2c6001600160a01b03831660145b6060600061283d83600261330a565b6128489060026132d0565b6001600160401b0381111561285f5761285f613405565b6040519080825280601f01601f191660200182016040528015612889576020820181803683370190505b509050600360fc1b816000815181106128a4576128a46133ef565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106128d3576128d36133ef565b60200101906001600160f81b031916908160001a90535060006128f784600261330a565b6129029060016132d0565b90505b600181111561297a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612936576129366133ef565b1a60f81b82828151811061294c5761294c6133ef565b60200101906001600160f81b031916908160001a90535060049490941c936129738161336c565b9050612905565b508315611fee5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e89565b60008183106129e5576000828152602084905260409020611fee565b6000838152602083905260409020611fee565b828054612a0490613383565b90600052602060002090601f016020900481019282612a265760008555612a6c565b82601f10612a3f57805160ff1916838001178555612a6c565b82800160010185558215612a6c579182015b82811115612a6c578251825591602001919060010190612a51565b50612a78929150612a7c565b5090565b5b80821115612a785760008155600101612a7d565b6000612aa4612a9f846132a9565b613279565b9050828152838383011115612ab857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612ae657600080fd5b919050565b60008083601f840112612afd57600080fd5b5081356001600160401b03811115612b1457600080fd5b6020830191508360208260051b8501011115612b2f57600080fd5b9250929050565b80358015158114612ae657600080fd5b600060208284031215612b5857600080fd5b611fee82612acf565b60008060408385031215612b7457600080fd5b612b7d83612acf565b9150612b8b60208401612acf565b90509250929050565b600080600060608486031215612ba957600080fd5b612bb284612acf565b9250612bc060208501612acf565b9150604084013590509250925092565b60008060008060808587031215612be657600080fd5b612bef85612acf565b9350612bfd60208601612acf565b92506040850135915060608501356001600160401b03811115612c1f57600080fd5b8501601f81018713612c3057600080fd5b612c3f87823560208401612a91565b91505092959194509250565b60008060408385031215612c5e57600080fd5b612c6783612acf565b9150612b8b60208401612b36565b60008060408385031215612c8857600080fd5b612c9183612acf565b946020939093013593505050565b600080600060408486031215612cb457600080fd5b83356001600160401b0380821115612ccb57600080fd5b612cd787838801612aeb565b9095509350602091508582013581811115612cf157600080fd5b8601601f81018813612d0257600080fd5b803582811115612d1457612d14613405565b8060051b9250612d25848401613279565b8181528481019083860185850187018c1015612d4057600080fd5b600095505b83861015612d63578035835260019590950194918601918601612d45565b508096505050505050509250925092565b600060208284031215612d8657600080fd5b611fee82612b36565b600060208284031215612da157600080fd5b5035919050565b60008060408385031215612dbb57600080fd5b82359150612b8b60208401612acf565b600060208284031215612ddd57600080fd5b8135611fee8161341b565b600060208284031215612dfa57600080fd5b8151611fee8161341b565b600060208284031215612e1757600080fd5b81356001600160401b03811115612e2d57600080fd5b8201601f81018413612e3e57600080fd5b6123a884823560208401612a91565b600060208284031215612e5f57600080fd5b81516001600160401b03811115612e7557600080fd5b8201601f81018413612e8657600080fd5b8051612e94612a9f826132a9565b818152856020838501011115612ea957600080fd5b612eba826020830160208601613340565b95945050505050565b60008060008060608587031215612ed957600080fd5b843593506020850135925060408501356001600160401b03811115612efd57600080fd5b612f0987828801612aeb565b95989497509550505050565b60008151808452612f2d816020860160208601613340565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612f5b57607f831692505b6020808410821415612f7d57634e487b7160e01b600052602260045260246000fd5b818015612f915760018114612fa257612fcf565b60ff19861689528489019650612fcf565b60008881526020902060005b86811015612fc75781548b820152908501908301612fae565b505084890196505b50505050505092915050565b60008351612fed818460208801613340565b835190830190613001818360208801613340565b01949350505050565b6000835161301c818460208801613340565b612eba81840185612f41565b683d913730b6b2911d1160b91b815260006130466009830187612f41565b61088b60f21b8082526e113232b9b1b934b83a34b7b7111d1160891b60028301526130746011830188612f41565b818152691134b6b0b3b2911d101160b11b60028201529150613099600c830187612f41565b9081527f2261747472696275746573223a5b7b2274726169745f74797065223a2274797060028201526b329116113b30b63ab2911d1160a11b602282015290506130e6602e820185612f41565b62227d5d60e81b8152607d60f81b6003820152600401979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161313f81601d850160208701613340565b91909101601d0192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613184816017850160208801613340565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516131b5816028840160208801613340565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131f490830184612f15565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561157b5783518352928401929184019160010161321a565b602081526000611fee6020830184612f15565b6020808252601690820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156132a1576132a1613405565b604052919050565b60006001600160401b038211156132c2576132c2613405565b50601f01601f191660200190565b600082198211156132e3576132e36133d9565b500190565b60008261330557634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613324576133246133d9565b500290565b60008282101561333b5761333b6133d9565b500390565b60005b8381101561335b578181015183820152602001613343565b8381111561178f5750506000910152565b60008161337b5761337b6133d9565b506000190190565b600181811c9082168061339757607f821691505b602082108114156133b857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156133d2576133d26133d9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461135d57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ec288caba984437b02c60d2443105f423a7cc0ec4741852af215b872c761070f64736f6c6343000807003368747470733a2f2f646174612e7a716e2e7774662f6c696e652f696d616765732f312e706e67ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Deployed Bytecode

0x6080604052600436106103fa5760003560e01c806373ef64fd11610213578063aabb9a8611610123578063d5abeb01116100ab578063e6d37b881161007a578063e6d37b8814610bb9578063e985e9c514610bcc578063f138abfa14610c15578063f2fde38b14610c35578063fcd1aac914610c5557600080fd5b8063d5abeb0114610b42578063d6dfad7614610b58578063da3ef23f14610b79578063ddecc4d014610b9957600080fd5b8063bbb89744116100f2578063bbb8974414610aa3578063c668286214610ab9578063c87b56dd14610ace578063d539139314610aee578063d547741f14610b2257600080fd5b8063aabb9a8614610a3a578063b5f94d0614610a4f578063b88d4fde14610a6f578063ba6269c614610a8257600080fd5b806395d89b41116101a65780639c70b512116101755780639c70b51214610999578063a217fddf146109b8578063a22cb465146109cd578063a58c12ae146109ed578063a9e2acd514610a1a57600080fd5b806395d89b41146109315780639659867e14610946578063981eb3441461096657806399f988981461098657600080fd5b80638da5cb5b116101e25780638da5cb5b146108be5780638e73cf00146108dc57806391d14854146108fc578063942c92731461091c57600080fd5b806373ef64fd1461083b5780637cb64759146108515780638462151c14610871578063877984cb1461089e57600080fd5b80632eb4a7ab1161030e57806355f804b3116102a15780636b8ee0ec116102705780636b8ee0ec146107b15780636c0360eb146107d15780636f8b44b0146107e657806370a0823114610806578063715018a61461082657600080fd5b806355f804b314610737578063599487c3146107575780635c975abb146107775780636352211e1461079157600080fd5b80633ccfd60b116102dd5780633ccfd60b146106d55780633cf40df3146106ea57806342842e0e1461070457806344a0d68a1461071757600080fd5b80632eb4a7ab1461065f5780632f2ff15d1461067557806336568abe146106955780633c952764146106b557600080fd5b806313faede6116103915780631fac2a35116103605780631fac2a35146105ae57806323b872dd146105db57806323c03085146105ee578063248a9ca31461060e578063279a669e1461063f57600080fd5b806313faede6146105115780631581b6001461053557806318160ddd1461055d5780631e0fbfa21461057a57600080fd5b806306fdde03116103cd57806306fdde031461049c578063081812fc146104b1578063095ea7b3146104e9578063135d088d146104fc57600080fd5b806301340a32146103ff57806301ffc9a71461042a57806302329a291461045a57806304787ca21461047c575b600080fd5b34801561040b57600080fd5b50610414610c75565b6040516104219190613236565b60405180910390f35b34801561043657600080fd5b5061044a610445366004612dcb565b610d03565b6040519015158152602001610421565b34801561046657600080fd5b5061047a610475366004612d74565b610d32565b005b34801561048857600080fd5b5061047a610497366004612e05565b610d4d565b3480156104a857600080fd5b50610414610d6c565b3480156104bd57600080fd5b506104d16104cc366004612d8f565b610dfe565b6040516001600160a01b039091168152602001610421565b61047a6104f7366004612c75565b610e42565b34801561050857600080fd5b50610414610e9c565b34801561051d57600080fd5b50610527600a5481565b604051908152602001610421565b34801561054157600080fd5b506104d173decf4b112d4120b6998e5020a6b4819e490f7db681565b34801561056957600080fd5b506003546002540360001901610527565b34801561058657600080fd5b506105277f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f81565b3480156105ba57600080fd5b506105276105c9366004612b46565b600f6020526000908152604090205481565b61047a6105e9366004612b94565b610ea9565b3480156105fa57600080fd5b5061047a610609366004612b46565b611047565b34801561061a57600080fd5b50610527610629366004612d8f565b6000908152600160208190526040909120015490565b34801561064b57600080fd5b5061047a61065a366004612c9f565b611071565b34801561066b57600080fd5b5061052760115481565b34801561068157600080fd5b5061047a610690366004612da8565b611225565b3480156106a157600080fd5b5061047a6106b0366004612da8565b611250565b3480156106c157600080fd5b5061047a6106d0366004612d74565b6112ca565b3480156106e157600080fd5b5061047a6112ec565b3480156106f657600080fd5b5060195461044a9060ff1681565b61047a610712366004612b94565b611360565b34801561072357600080fd5b5061047a610732366004612d8f565b61137b565b34801561074357600080fd5b5061047a610752366004612e05565b611388565b34801561076357600080fd5b5061047a610772366004612e05565b6113a3565b34801561078357600080fd5b50600e5461044a9060ff1681565b34801561079d57600080fd5b506104d16107ac366004612d8f565b6113be565b3480156107bd57600080fd5b5061047a6107cc366004612d74565b6113c9565b3480156107dd57600080fd5b506104146113ef565b3480156107f257600080fd5b5061047a610801366004612d8f565b6113fc565b34801561081257600080fd5b50610527610821366004612b46565b611409565b34801561083257600080fd5b5061047a611457565b34801561084757600080fd5b50610527600d5481565b34801561085d57600080fd5b5061047a61086c366004612d8f565b61146b565b34801561087d57600080fd5b5061089161088c366004612b46565b611478565b60405161042191906131fe565b3480156108aa57600080fd5b506014546104d1906001600160a01b031681565b3480156108ca57600080fd5b506000546001600160a01b03166104d1565b3480156108e857600080fd5b5061047a6108f7366004612d74565b611587565b34801561090857600080fd5b5061044a610917366004612da8565b6115ab565b34801561092857600080fd5b506104146115d6565b34801561093d57600080fd5b506104146115e3565b34801561095257600080fd5b50600e5461044a9062010000900460ff1681565b34801561097257600080fd5b5061047a610981366004612e05565b6115f2565b61047a610994366004612c75565b61160d565b3480156109a557600080fd5b50600e5461044a90610100900460ff1681565b3480156109c457600080fd5b50610527600081565b3480156109d957600080fd5b5061047a6109e8366004612c4b565b6116c7565b3480156109f957600080fd5b50610527610a08366004612b46565b60106020526000908152604090205481565b348015610a2657600080fd5b5061047a610a35366004612d8f565b611724565b348015610a4657600080fd5b50610414611731565b348015610a5b57600080fd5b5061047a610a6a366004612d8f565b61173e565b61047a610a7d366004612bd0565b61174b565b348015610a8e57600080fd5b5060145461044a90600160a01b900460ff1681565b348015610aaf57600080fd5b50610527600c5481565b348015610ac557600080fd5b50610414611795565b348015610ada57600080fd5b50610414610ae9366004612d8f565b6117a2565b348015610afa57600080fd5b506105277f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610b2e57600080fd5b5061047a610b3d366004612da8565b6118c9565b348015610b4e57600080fd5b50610527600b5481565b348015610b6457600080fd5b5060145461044a90600160a81b900460ff1681565b348015610b8557600080fd5b5061047a610b94366004612e05565b6118ef565b348015610ba557600080fd5b5061047a610bb4366004612e05565b61190a565b61047a610bc7366004612ec3565b611925565b348015610bd857600080fd5b5061044a610be7366004612b61565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610c2157600080fd5b5061047a610c30366004612d74565b611d37565b348015610c4157600080fd5b5061047a610c50366004612b46565b611d5d565b348015610c6157600080fd5b5061047a610c70366004612d74565b611dd3565b60188054610c8290613383565b80601f0160208091040260200160405190810160405280929190818152602001828054610cae90613383565b8015610cfb5780601f10610cd057610100808354040283529160200191610cfb565b820191906000526020600020905b815481529060010190602001808311610cde57829003601f168201915b505050505081565b6000610d0e82611dee565b80610d1d5750610d1d82611e23565b80610d2c5750610d2c82611e23565b92915050565b610d3a611e71565b600e805460ff1916911515919091179055565b610d55611e71565b8051610d689060159060208401906129f8565b5050565b606060048054610d7b90613383565b80601f0160208091040260200160405190810160405280929190818152602001828054610da790613383565b8015610df45780601f10610dc957610100808354040283529160200191610df4565b820191906000526020600020905b815481529060010190602001808311610dd757829003601f168201915b5050505050905090565b6000610e0982611ecb565b610e26576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b60195460ff1615610e925760405162461bcd60e51b8152602060048201526015602482015274185c1c1c9bdd99481a5cc81c1c9bda1a589a5d1959605a1b60448201526064015b60405180910390fd5b610d688282611f00565b60158054610c8290613383565b6000610eb482611fa0565b9050836001600160a01b0316816001600160a01b031614610ee75760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610f3457610f178633610be7565b610f3457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f5b57604051633a954ecd60e21b815260040160405180910390fd5b610f688686866001612010565b8015610f7357600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040902055600160e11b8316610ffe5760018401600081815260066020526040902054610ffc576002548114610ffc5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61104f611e71565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b61109b7f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f336115ab565b6110e75760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f742061206169722064726f7070657200000000006044820152606401610e89565b6000805b825181101561112d57828181518110611106576111066133ef565b60200260200101518261111991906132d0565b915080611125816133be565b9150506110eb565b508060001061117e5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610e89565b600b54600354600254839190036000190161119991906132d0565b11156111b75760405162461bcd60e51b8152600401610e8990613249565b60005b825181101561121e5761120c8585838181106111d8576111d86133ef565b90506020020160208101906111ed9190612b46565b8483815181106111ff576111ff6133ef565b6020026020010151612088565b80611216816133be565b9150506111ba565b5050505050565b60008281526001602081905260409091200154611241816120a2565b61124b83836120ac565b505050565b6001600160a01b03811633146112c05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e89565b610d688282612117565b6112d2611e71565b600e80549115156101000261ff0019909216919091179055565b6112f4611e71565b60405160009073decf4b112d4120b6998e5020a6b4819e490f7db69047908381818185875af1925050503d806000811461134a576040519150601f19603f3d011682016040523d82523d6000602084013e61134f565b606091505b505090508061135d57600080fd5b50565b61124b8383836040518060200160405280600081525061174b565b611383611e71565b600a55565b611390611e71565b8051610d689060129060208401906129f8565b6113ab611e71565b8051610d689060179060208401906129f8565b6000610d2c82611fa0565b6113d1611e71565b60148054911515600160a81b0260ff60a81b19909216919091179055565b60128054610c8290613383565b611404611e71565b600b55565b60006001600160a01b038216611432576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b61145f611e71565b611469600061217e565b565b611473611e71565b601155565b6060600080600061148885611409565b90506000816001600160401b038111156114a4576114a4613405565b6040519080825280602002602001820160405280156114cd578160200160208202803683370190505b5090506114fa60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b83861461157b5761150d816121ce565b915081604001511561151e57611573565b81516001600160a01b03161561153357815194505b876001600160a01b0316856001600160a01b031614156115735780838780600101985081518110611566576115666133ef565b6020026020010181815250505b6001016114fd565b50909695505050505050565b61158f611e71565b600e8054911515620100000262ff000019909216919091179055565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60178054610c8290613383565b606060058054610d7b90613383565b6115fa611e71565b8051610d689060169060208401906129f8565b6116377f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336115ab565b61167c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba10309036b4b73a32b960511b6044820152606401610e89565b600b5481600161168b60025490565b6116959190613329565b61169f91906132d0565b11156116bd5760405162461bcd60e51b8152600401610e8990613249565b610d688282612088565b60195460ff161561171a5760405162461bcd60e51b815260206004820152601f60248201527f736574417070726f76616c466f72416c6c2069732070726f68696269746564006044820152606401610e89565b610d68828261224c565b61172c611e71565b600c55565b60168054610c8290613383565b611746611e71565b600d55565b611756848484610ea9565b6001600160a01b0383163b1561178f57611772848484846122b8565b61178f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60138054610c8290613383565b606060148054906101000a900460ff16151560011515141561183e5760145460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b15801561180257600080fd5b505afa158015611816573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d2c9190810190612e4d565b601454600160a81b900460ff161515600114156118ad5761188760166017601560186040516020016118739493929190613028565b6040516020818303038152906040526123b0565b6040516020016118979190613107565b6040516020818303038152906040529050919050565b6118b682612515565b601360405160200161189792919061300a565b600082815260016020819052604090912001546118e5816120a2565b61124b8383612117565b6118f7611e71565b8051610d689060139060208401906129f8565b611912611e71565b8051610d689060189060208401906129f8565b3233146119745760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e006044820152606401610e89565b600e5460ff16156119c05760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610e89565b83600010611a105760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610e89565b600c54841115611a6e5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610e89565b600b546003546002548691900360001901611a8991906132d0565b1115611aa75760405162461bcd60e51b8152600401610e8990613249565b3484600a54611ab6919061330a565b1115611af95760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610e89565b600e5460ff61010090910416151560011415611c86576040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052805190602001209050611b90838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150849050612599565b611bdc5760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c69737465640000000000000000006044820152606401610e89565b600e5462010000900460ff16151560011415611c8057336000908152600f6020526040902054611c0c9085613329565b851115611c5b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610e89565b336000908152600f602052604081208054879290611c7a9084906132d0565b90915550505b50611d2d565b600e5462010000900460ff16151560011415611d2d5733600090815260106020526040902054600d54611cb99190613329565b841115611d085760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610e89565b3360009081526010602052604081208054869290611d279084906132d0565b90915550505b61178f3385612088565b611d3f611e71565b60148054911515600160a01b0260ff60a01b19909216919091179055565b611d65611e71565b6001600160a01b038116611dca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e89565b61135d8161217e565b611ddb611e71565b6019805460ff1916911515919091179055565b60006001600160e01b03198216637965db0b60e01b1480610d2c57506301ffc9a760e01b6001600160e01b0319831614610d2c565b60006301ffc9a760e01b6001600160e01b031983161480611e5457506380ac58cd60e01b6001600160e01b03198316145b80610d2c5750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b031633146114695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e89565b600081600111158015611edf575060025482105b8015610d2c575050600090815260066020526040902054600160e01b161590565b6000611f0b826113be565b9050336001600160a01b03821614611f4457611f278133610be7565b611f44576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008180600111611ff757600254811015611ff757600081815260066020526040902054600160e01b8116611ff5575b80611fee575060001901600081815260066020526040902054611fd0565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60195460ff16158061202957506001600160a01b038416155b8061203e57506001600160a01b03831661dead145b6120835760405162461bcd60e51b81526020600482015260166024820152751d1c985b9cd9995c881a5cc81c1c9bda1a589a5d195960521b6044820152606401610e89565b61178f565b610d688282604051806020016040528060008152506125af565b61135d8133612615565b6120b682826115ab565b610d685760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b61212182826115ab565b15610d685760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260066020526040902054610d2c90604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122ed9033908990889088906004016131c1565b602060405180830381600087803b15801561230757600080fd5b505af1925050508015612337575060408051601f3d908101601f1916820190925261233491810190612de8565b60015b612392573d808015612365576040519150601f19603f3d011682016040523d82523d6000602084013e61236a565b606091505b50805161238a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608151600014156123d057505060408051602081019091526000815290565b600060405180606001604052806040815260200161343260409139905060006003845160026123ff91906132d0565b61240991906132e8565b61241490600461330a565b905060006124238260206132d0565b6001600160401b0381111561243a5761243a613405565b6040519080825280601f01601f191660200182016040528015612464576020820181803683370190505b509050818152600183018586518101602084015b818310156124d0576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612478565b6003895106600181146124ea57600281146124fb57612507565b613d3d60f01b600119830152612507565b603d60f81b6000198301525b509398975050505050505050565b606061252082611ecb565b61253d57604051630a14c4b560e41b815260040160405180910390fd5b600061254761266e565b90508051600014156125685760405180602001604052806000815250611fee565b806125728461267d565b604051602001612583929190612fdb565b6040516020818303038152906040529392505050565b6000826125a685846126cb565b14949350505050565b6125b98383612718565b6001600160a01b0383163b1561124b576002548281035b6125e360008683806001019450866122b8565b612600576040516368d2bf6b60e11b815260040160405180910390fd5b8181106125d057816002541461121e57600080fd5b61261f82826115ab565b610d685761262c8161281c565b61263783602061282e565b60405160200161264892919061314c565b60408051601f198184030181529082905262461bcd60e51b8252610e8991600401613236565b606060128054610d7b90613383565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806126b4576126b9565b612697565b50819003601f19909101908152919050565b600081815b8451811015612710576126fc828683815181106126ef576126ef6133ef565b60200260200101516129c9565b915080612708816133be565b9150506126d0565b509392505050565b600254816127395760405163b562e8dd60e01b815260040160405180910390fd5b6127466000848385612010565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146127f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016127bd565b508161281357604051622e076360e81b815260040160405180910390fd5b60025550505050565b6060610d2c6001600160a01b03831660145b6060600061283d83600261330a565b6128489060026132d0565b6001600160401b0381111561285f5761285f613405565b6040519080825280601f01601f191660200182016040528015612889576020820181803683370190505b509050600360fc1b816000815181106128a4576128a46133ef565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106128d3576128d36133ef565b60200101906001600160f81b031916908160001a90535060006128f784600261330a565b6129029060016132d0565b90505b600181111561297a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612936576129366133ef565b1a60f81b82828151811061294c5761294c6133ef565b60200101906001600160f81b031916908160001a90535060049490941c936129738161336c565b9050612905565b508315611fee5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e89565b60008183106129e5576000828152602084905260409020611fee565b6000838152602083905260409020611fee565b828054612a0490613383565b90600052602060002090601f016020900481019282612a265760008555612a6c565b82601f10612a3f57805160ff1916838001178555612a6c565b82800160010185558215612a6c579182015b82811115612a6c578251825591602001919060010190612a51565b50612a78929150612a7c565b5090565b5b80821115612a785760008155600101612a7d565b6000612aa4612a9f846132a9565b613279565b9050828152838383011115612ab857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612ae657600080fd5b919050565b60008083601f840112612afd57600080fd5b5081356001600160401b03811115612b1457600080fd5b6020830191508360208260051b8501011115612b2f57600080fd5b9250929050565b80358015158114612ae657600080fd5b600060208284031215612b5857600080fd5b611fee82612acf565b60008060408385031215612b7457600080fd5b612b7d83612acf565b9150612b8b60208401612acf565b90509250929050565b600080600060608486031215612ba957600080fd5b612bb284612acf565b9250612bc060208501612acf565b9150604084013590509250925092565b60008060008060808587031215612be657600080fd5b612bef85612acf565b9350612bfd60208601612acf565b92506040850135915060608501356001600160401b03811115612c1f57600080fd5b8501601f81018713612c3057600080fd5b612c3f87823560208401612a91565b91505092959194509250565b60008060408385031215612c5e57600080fd5b612c6783612acf565b9150612b8b60208401612b36565b60008060408385031215612c8857600080fd5b612c9183612acf565b946020939093013593505050565b600080600060408486031215612cb457600080fd5b83356001600160401b0380821115612ccb57600080fd5b612cd787838801612aeb565b9095509350602091508582013581811115612cf157600080fd5b8601601f81018813612d0257600080fd5b803582811115612d1457612d14613405565b8060051b9250612d25848401613279565b8181528481019083860185850187018c1015612d4057600080fd5b600095505b83861015612d63578035835260019590950194918601918601612d45565b508096505050505050509250925092565b600060208284031215612d8657600080fd5b611fee82612b36565b600060208284031215612da157600080fd5b5035919050565b60008060408385031215612dbb57600080fd5b82359150612b8b60208401612acf565b600060208284031215612ddd57600080fd5b8135611fee8161341b565b600060208284031215612dfa57600080fd5b8151611fee8161341b565b600060208284031215612e1757600080fd5b81356001600160401b03811115612e2d57600080fd5b8201601f81018413612e3e57600080fd5b6123a884823560208401612a91565b600060208284031215612e5f57600080fd5b81516001600160401b03811115612e7557600080fd5b8201601f81018413612e8657600080fd5b8051612e94612a9f826132a9565b818152856020838501011115612ea957600080fd5b612eba826020830160208601613340565b95945050505050565b60008060008060608587031215612ed957600080fd5b843593506020850135925060408501356001600160401b03811115612efd57600080fd5b612f0987828801612aeb565b95989497509550505050565b60008151808452612f2d816020860160208601613340565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612f5b57607f831692505b6020808410821415612f7d57634e487b7160e01b600052602260045260246000fd5b818015612f915760018114612fa257612fcf565b60ff19861689528489019650612fcf565b60008881526020902060005b86811015612fc75781548b820152908501908301612fae565b505084890196505b50505050505092915050565b60008351612fed818460208801613340565b835190830190613001818360208801613340565b01949350505050565b6000835161301c818460208801613340565b612eba81840185612f41565b683d913730b6b2911d1160b91b815260006130466009830187612f41565b61088b60f21b8082526e113232b9b1b934b83a34b7b7111d1160891b60028301526130746011830188612f41565b818152691134b6b0b3b2911d101160b11b60028201529150613099600c830187612f41565b9081527f2261747472696275746573223a5b7b2274726169745f74797065223a2274797060028201526b329116113b30b63ab2911d1160a11b602282015290506130e6602e820185612f41565b62227d5d60e81b8152607d60f81b6003820152600401979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161313f81601d850160208701613340565b91909101601d0192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613184816017850160208801613340565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516131b5816028840160208801613340565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131f490830184612f15565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561157b5783518352928401929184019160010161321a565b602081526000611fee6020830184612f15565b6020808252601690820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156132a1576132a1613405565b604052919050565b60006001600160401b038211156132c2576132c2613405565b50601f01601f191660200190565b600082198211156132e3576132e36133d9565b500190565b60008261330557634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613324576133246133d9565b500290565b60008282101561333b5761333b6133d9565b500390565b60005b8381101561335b578181015183820152602001613343565b8381111561178f5750506000910152565b60008161337b5761337b6133d9565b506000190190565b600181811c9082168061339757607f821691505b602082108114156133b857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156133d2576133d26133d9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461135d57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ec288caba984437b02c60d2443105f423a7cc0ec4741852af215b872c761070f64736f6c63430008070033

Deployed Bytecode Sourcemap

99277:12154:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106654:32;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111015:300;;;;;;;;;;-1:-1:-1;111015:300:0;;;;;:::i;:::-;;:::i;:::-;;;14643:14:1;;14636:22;14618:41;;14606:2;14591:18;111015:300:0;14478:187:1;105364:79:0;;;;;;;;;;-1:-1:-1;105364:79:0;;;;;:::i;:::-;;:::i;:::-;;107289:108;;;;;;;;;;-1:-1:-1;107289:108:0;;;;;:::i;:::-;;:::i;60892:100::-;;;;;;;;;;;;;:::i;67383:218::-;;;;;;;;;;-1:-1:-1;67383:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;13304:32:1;;;13286:51;;13274:2;13259:18;67383:218:0;13140:203:1;110785:184:0;;;;;;:::i;:::-;;:::i;106551:22::-;;;;;;;;;;;;;:::i;100284:23::-;;;;;;;;;;;;;;;;;;;14816:25:1;;;14804:2;14789:18;100284:23:0;14670:177:1;99988:84:0;;;;;;;;;;;;100030:42;99988:84;;56643:323;;;;;;;;;;-1:-1:-1;56917:12:0;;56901:13;;:28;-1:-1:-1;;56901:46:0;56643:323;;100705:64;;;;;;;;;;;;100744:25;100705:64;;100578:56;;;;;;;;;;-1:-1:-1;100578:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;71022:2825;;;;;;:::i;:::-;;:::i;106176:129::-;;;;;;;;;;-1:-1:-1;106176:129:0;;;;;:::i;:::-;;:::i;37740:131::-;;;;;;;;;;-1:-1:-1;37740:131:0;;;;;:::i;:::-;37814:7;37841:12;;;:6;:12;;;;;;;;:22;;;37740:131;104010:645;;;;;;;;;;-1:-1:-1;104010:645:0;;;;;:::i;:::-;;:::i;100938:25::-;;;;;;;;;;;;;;;;38181:147;;;;;;;;;;-1:-1:-1;38181:147:0;;;;;:::i;:::-;;:::i;39325:218::-;;;;;;;;;;-1:-1:-1;39325:218:0;;;;;:::i;:::-;;:::i;105073:101::-;;;;;;;;;;-1:-1:-1;105073:101:0;;;;;:::i;:::-;;:::i;100081:155::-;;;;;;;;;;;;;:::i;110082:25::-;;;;;;;;;;-1:-1:-1;110082:25:0;;;;;;;;73943:193;;;;;;:::i;:::-;;:::i;104979:86::-;;;;;;;;;;-1:-1:-1;104979:86:0;;;;;:::i;:::-;;:::i;105788:104::-;;;;;;;;;;-1:-1:-1;105788:104:0;;;;;:::i;:::-;;:::i;106989:146::-;;;;;;;;;;-1:-1:-1;106989:146:0;;;;;:::i;:::-;;:::i;100470:25::-;;;;;;;;;;-1:-1:-1;100470:25:0;;;;;;;;62285:152;;;;;;;;;;-1:-1:-1;62285:152:0;;;;;:::i;:::-;;:::i;106724:131::-;;;;;;;;;;-1:-1:-1;106724:131:0;;;;;:::i;:::-;;:::i;105590:21::-;;;;;;;;;;;;;:::i;104663:102::-;;;;;;;;;;-1:-1:-1;104663:102:0;;;;;:::i;:::-;;:::i;57827:233::-;;;;;;;;;;-1:-1:-1;57827:233:0;;;;;:::i;:::-;;:::i;29482:103::-;;;;;;;;;;;;;:::i;100409:54::-;;;;;;;;;;;;;;;;102295:104;;;;;;;;;;-1:-1:-1;102295:104:0;;;;;:::i;:::-;;:::i;109152:881::-;;;;;;;;;;-1:-1:-1;109152:881:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;106084:36::-;;;;;;;;;;-1:-1:-1;106084:36:0;;;;-1:-1:-1;;;;;106084:36:0;;;28834:87;;;;;;;;;;-1:-1:-1;28880:7:0;28907:6;-1:-1:-1;;;;;28907:6:0;28834:87;;105451:89;;;;;;;;;;-1:-1:-1;105451:89:0;;;;;:::i;:::-;;:::i;36213:147::-;;;;;;;;;;-1:-1:-1;36213:147:0;;;;;:::i;:::-;;:::i;106614:33::-;;;;;;;;;;;;;:::i;61068:104::-;;;;;;;;;;;;;:::i;100543:28::-;;;;;;;;;;-1:-1:-1;100543:28:0;;;;;;;;;;;106861:122;;;;;;;;;;-1:-1:-1;106861:122:0;;;;;:::i;:::-;;:::i;108419:291::-;;;;;;:::i;:::-;;:::i;100502:34::-;;;;;;;;;;-1:-1:-1;100502:34:0;;;;;;;;;;;35318:49;;;;;;;;;;-1:-1:-1;35318:49:0;35363:4;35318:49;;110560:217;;;;;;;;;;-1:-1:-1;110560:217:0;;;;;:::i;:::-;;:::i;100641:57::-;;;;;;;;;;-1:-1:-1;100641:57:0;;;;;:::i;:::-;;;;;;;;;;;;;;105182:172;;;;;;;;;;-1:-1:-1;105182:172:0;;;;;:::i;:::-;;:::i;106580:27::-;;;;;;;;;;;;;:::i;104773:198::-;;;;;;;;;;-1:-1:-1;104773:198:0;;;;;:::i;:::-;;:::i;74734:407::-;;;;;;:::i;:::-;;:::i;106127:40::-;;;;;;;;;;-1:-1:-1;106127:40:0;;;;-1:-1:-1;;;106127:40:0;;;;;;100355:47;;;;;;;;;;;;;;;;105618:37;;;;;;;;;;;;;:::i;107440:852::-;;;;;;;;;;-1:-1:-1;107440:852:0;;;;;:::i;:::-;;:::i;108345:63::-;;;;;;;;;;;;108384:24;108345:63;;38621:149;;;;;;;;;;-1:-1:-1;38621:149:0;;;;;:::i;:::-;;:::i;100314:34::-;;;;;;;;;;;;;;;;106507:37;;;;;;;;;;-1:-1:-1;106507:37:0;;;;-1:-1:-1;;;106507:37:0;;;;;;105900:128;;;;;;;;;;-1:-1:-1;105900:128:0;;;;;:::i;:::-;;:::i;107141:142::-;;;;;;;;;;-1:-1:-1;107141:142:0;;;;;:::i;:::-;;:::i;100970:1317::-;;;;;;:::i;:::-;;:::i;68332:164::-;;;;;;;;;;-1:-1:-1;68332:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;68453:25:0;;;68429:4;68453:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;68332:164;106313:143;;;;;;;;;;-1:-1:-1;106313:143:0;;;;;:::i;:::-;;:::i;29740:201::-;;;;;;;;;;-1:-1:-1;29740:201:0;;;;;:::i;:::-;;:::i;110116:81::-;;;;;;;;;;-1:-1:-1;110116:81:0;;;;;:::i;:::-;;:::i;106654:32::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;111015:300::-;111117:4;111155:44;111187:11;111155:31;:44::i;:::-;:99;;;;111216:38;111242:11;111216:25;:38::i;:::-;111155:152;;;;111271:36;111295:11;111271:23;:36::i;:::-;111134:173;111015:300;-1:-1:-1;;111015:300:0:o;105364:79::-;28720:13;:11;:13::i;:::-;105420:6:::1;:15:::0;;-1:-1:-1;;105420:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;105364:79::o;107289:108::-;28720:13;:11;:13::i;:::-;107366:23;;::::1;::::0;:8:::1;::::0;:23:::1;::::0;::::1;::::0;::::1;:::i;:::-;;107289:108:::0;:::o;60892:100::-;60946:13;60979:5;60972:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60892:100;:::o;67383:218::-;67459:7;67484:16;67492:7;67484;:16::i;:::-;67479:64;;67509:34;;-1:-1:-1;;;67509:34:0;;;;;;;;;;;67479:64;-1:-1:-1;67563:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;67563:30:0;;67383:218::o;110785:184::-;110883:5;;;;:14;110874:50;;;;-1:-1:-1;;;110874:50:0;;15865:2:1;110874:50:0;;;15847:21:1;15904:2;15884:18;;;15877:30;-1:-1:-1;;;15923:18:1;;;15916:51;15984:18;;110874:50:0;;;;;;;;;110935:26;110949:2;110953:7;110935:13;:26::i;106551:22::-;;;;;;;:::i;71022:2825::-;71164:27;71194;71213:7;71194:18;:27::i;:::-;71164:57;;71279:4;-1:-1:-1;;;;;71238:45:0;71254:19;-1:-1:-1;;;;;71238:45:0;;71234:86;;71292:28;;-1:-1:-1;;;71292:28:0;;;;;;;;;;;71234:86;71334:27;70130:24;;;:15;:24;;;;;70358:26;;91149:10;69755:30;;;-1:-1:-1;;;;;69448:28:0;;69733:20;;;69730:56;71520:180;;71613:43;71630:4;91149:10;68332:164;:::i;71613:43::-;71608:92;;71665:35;;-1:-1:-1;;;71665:35:0;;;;;;;;;;;71608:92;-1:-1:-1;;;;;71717:16:0;;71713:52;;71742:23;;-1:-1:-1;;;71742:23:0;;;;;;;;;;;71713:52;71778:43;71800:4;71806:2;71810:7;71819:1;71778:21;:43::i;:::-;71914:15;71911:160;;;72054:1;72033:19;72026:30;71911:160;-1:-1:-1;;;;;72451:24:0;;;;;;;:18;:24;;;;;;72449:26;;-1:-1:-1;;72449:26:0;;;72520:22;;;;;;;;;72518:24;;-1:-1:-1;72518:24:0;;;65674:11;65649:23;65645:41;65632:63;-1:-1:-1;;;65632:63:0;72813:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;73108:47:0;;73104:627;;73213:1;73203:11;;73181:19;73336:30;;;:17;:30;;;;;;73332:384;;73474:13;;73459:11;:28;73455:242;;73621:30;;;;:17;:30;;;;;:52;;;73455:242;73162:569;73104:627;73778:7;73774:2;-1:-1:-1;;;;;73759:27:0;73768:4;-1:-1:-1;;;;;73759:27:0;;;;;;;;;;;71153:2694;;;71022:2825;;;:::o;106176:129::-;28720:13;:11;:13::i;:::-;106256:19:::1;:41:::0;;-1:-1:-1;;;;;;106256:41:0::1;-1:-1:-1::0;;;;;106256:41:0;;;::::1;::::0;;;::::1;::::0;;106176:129::o;104010:645::-;104130:33;100744:25;104152:10;104130:7;:33::i;:::-;104122:73;;;;-1:-1:-1;;;104122:73:0;;17699:2:1;104122:73:0;;;17681:21:1;17738:2;17718:18;;;17711:30;17777:29;17757:18;;;17750:57;17824:18;;104122:73:0;17497:351:1;104122:73:0;104206:19;104245:9;104240:113;104264:15;:22;104260:1;:26;104240:113;;;104323:15;104339:1;104323:18;;;;;;;;:::i;:::-;;;;;;;104308:33;;;;;:::i;:::-;;-1:-1:-1;104288:3:0;;;;:::i;:::-;;;;104240:113;;;;104375:11;104371:1;:15;104363:56;;;;-1:-1:-1;;;104363:56:0;;20924:2:1;104363:56:0;;;20906:21:1;20963:2;20943:18;;;20936:30;21002:29;20982:18;;;20975:57;21049:18;;104363:56:0;20722:351:1;104363:56:0;104469:9;;56917:12;;56901:13;;104454:11;;56901:28;;-1:-1:-1;;56901:46:0;104438:27;;;;:::i;:::-;:40;;104430:75;;;;-1:-1:-1;;;104430:75:0;;;;;;;:::i;:::-;104521:9;104516:132;104540:15;:22;104536:1;:26;104516:132;;;104584:52;104594:17;;104612:1;104594:20;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;104616:15;104632:1;104616:18;;;;;;;;:::i;:::-;;;;;;;104584:9;:52::i;:::-;104564:3;;;;:::i;:::-;;;;104516:132;;;;104111:544;104010:645;;;:::o;38181:147::-;37814:7;37841:12;;;:6;:12;;;;;;;;:22;;35809:16;35820:4;35809:10;:16::i;:::-;38295:25:::1;38306:4;38312:7;38295:10;:25::i;:::-;38181:147:::0;;;:::o;39325:218::-;-1:-1:-1;;;;;39421:23:0;;91149:10;39421:23;39413:83;;;;-1:-1:-1;;;39413:83:0;;21280:2:1;39413:83:0;;;21262:21:1;21319:2;21299:18;;;21292:30;21358:34;21338:18;;;21331:62;-1:-1:-1;;;21409:18:1;;;21402:45;21464:19;;39413:83:0;21078:411:1;39413:83:0;39509:26;39521:4;39527:7;39509:11;:26::i;105073:101::-;28720:13;:11;:13::i;:::-;105142:15:::1;:24:::0;;;::::1;;;;-1:-1:-1::0;;105142:24:0;;::::1;::::0;;;::::1;::::0;;105073:101::o;100081:155::-;28720:13;:11;:13::i;:::-;100143:63:::1;::::0;100130:7:::1;::::0;100030:42:::1;::::0;100180:21:::1;::::0;100130:7;100143:63;100130:7;100143:63;100180:21;100030:42;100143:63:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100129:77;;;100225:2;100217:11;;;::::0;::::1;;100118:118;100081:155::o:0;73943:193::-;74089:39;74106:4;74112:2;74116:7;74089:39;;;;;;;;;;;;:16;:39::i;104979:86::-;28720:13;:11;:13::i;:::-;105042:4:::1;:15:::0;104979:86::o;105788:104::-;28720:13;:11;:13::i;:::-;105863:21;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;106989:146::-:0;28720:13;:11;:13::i;:::-;107085:42;;::::1;::::0;:19:::1;::::0;:42:::1;::::0;::::1;::::0;::::1;:::i;62285:152::-:0;62357:7;62400:27;62419:7;62400:18;:27::i;106724:131::-;28720:13;:11;:13::i;:::-;106809:17:::1;:38:::0;;;::::1;;-1:-1:-1::0;;;106809:38:0::1;-1:-1:-1::0;;;;106809:38:0;;::::1;::::0;;;::::1;::::0;;106724:131::o;105590:21::-;;;;;;;:::i;104663:102::-;28720:13;:11;:13::i;:::-;104735:9:::1;:22:::0;104663:102::o;57827:233::-;57899:7;-1:-1:-1;;;;;57923:19:0;;57919:60;;57951:28;;-1:-1:-1;;;57951:28:0;;;;;;;;;;;57919:60;-1:-1:-1;;;;;;57997:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;57997:55:0;;57827:233::o;29482:103::-;28720:13;:11;:13::i;:::-;29547:30:::1;29574:1;29547:18;:30::i;:::-;29482:103::o:0;102295:104::-;28720:13;:11;:13::i;:::-;102367:10:::1;:24:::0;102295:104::o;109152:881::-;109211:16;109265:19;109299:25;109339:22;109364:16;109374:5;109364:9;:16::i;:::-;109339:41;;109395:25;109437:14;-1:-1:-1;;;;;109423:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;109423:29:0;;109395:57;;109467:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109467:31:0;111415:1;109513:472;109562:14;109547:11;:29;109513:472;;109614:15;109627:1;109614:12;:15::i;:::-;109602:27;;109652:9;:16;;;109648:73;;;109693:8;;109648:73;109743:14;;-1:-1:-1;;;;;109743:28:0;;109739:111;;109816:14;;;-1:-1:-1;109739:111:0;109893:5;-1:-1:-1;;;;;109872:26:0;:17;-1:-1:-1;;;;;109872:26:0;;109868:102;;;109949:1;109923:8;109932:13;;;;;;109923:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;109868:102;109578:3;;109513:472;;;-1:-1:-1;110006:8:0;;109152:881;-1:-1:-1;;;;;;109152:881:0:o;105451:89::-;28720:13;:11;:13::i;:::-;105514:9:::1;:18:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;105514:18:0;;::::1;::::0;;;::::1;::::0;;105451:89::o;36213:147::-;36299:4;36323:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;36323:29:0;;;;;;;;;;;;;;;36213:147::o;106614:33::-;;;;;;;:::i;61068:104::-;61124:13;61157:7;61150:14;;;;;:::i;106861:122::-;28720:13;:11;:13::i;:::-;106945:30;;::::1;::::0;:13:::1;::::0;:30:::1;::::0;::::1;::::0;::::1;:::i;108419:291::-:0;108514:32;108384:24;108535:10;108514:7;:32::i;:::-;108506:67;;;;-1:-1:-1;;;108506:67:0;;18055:2:1;108506:67:0;;;18037:21:1;18094:2;18074:18;;;18067:30;-1:-1:-1;;;18113:18:1;;;18106:52;18175:18;;108506:67:0;17853:346:1;108506:67:0;108624:9;;108613:7;108609:1;108593:14;56412:13;;;56330:103;108593:14;:17;;;;:::i;:::-;:27;;;;:::i;:::-;:40;;108584:77;;;;-1:-1:-1;;;108584:77:0;;;;;;;:::i;:::-;108672:30;108683:8;108693:7;108672:9;:30::i;110560:217::-;110664:5;;;;:14;110655:60;;;;-1:-1:-1;;;110655:60:0;;16575:2:1;110655:60:0;;;16557:21:1;16614:2;16594:18;;;16587:30;16653:33;16633:18;;;16626:61;16704:18;;110655:60:0;16373:355:1;110655:60:0;110726:43;110750:8;110760;110726:23;:43::i;105182:172::-;28720:13;:11;:13::i;:::-;105288:27:::1;:58:::0;105182:172::o;106580:27::-;;;;;;;:::i;104773:198::-;28720:13;:11;:13::i;:::-;104893:33:::1;:70:::0;104773:198::o;74734:407::-;74909:31;74922:4;74928:2;74932:7;74909:12;:31::i;:::-;-1:-1:-1;;;;;74955:14:0;;;:19;74951:183;;74994:56;75025:4;75031:2;75035:7;75044:5;74994:30;:56::i;:::-;74989:145;;75078:40;;-1:-1:-1;;;75078:40:0;;;;;;;;;;;74989:145;74734:407;;;;:::o;105618:37::-;;;;;;;:::i;107440:852::-;107505:13;107535:20;;;;;;;;;;:28;;107559:4;107535:28;;;107531:105;;;107587:19;;:37;;-1:-1:-1;;;107587:37:0;;;;;14816:25:1;;;-1:-1:-1;;;;;107587:19:0;;;;:28;;14789:18:1;;107587:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;107587:37:0;;;;;;;;;;;;:::i;107531:105::-;107649:17;;-1:-1:-1;;;107649:17:0;;;;:25;;107670:4;107649:25;107646:555;;;107757:428;107870:13;107937:19;108007:8;108099:18;107789:381;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;107757:13;:428::i;:::-;107705:482;;;;;;;;:::i;:::-;;;;;;;;;;;;;107690:499;;107440:852;;;:::o;107646:555::-;108242:25;108259:7;108242:16;:25::i;:::-;108269:13;108225:58;;;;;;;;;:::i;38621:149::-;37814:7;37841:12;;;:6;:12;;;;;;;;:22;;35809:16;35820:4;35809:10;:16::i;:::-;38736:26:::1;38748:4;38754:7;38736:11;:26::i;105900:128::-:0;28720:13;:11;:13::i;:::-;105987:33;;::::1;::::0;:13:::1;::::0;:33:::1;::::0;::::1;::::0;::::1;:::i;107141:142::-:0;28720:13;:11;:13::i;:::-;107235:40;;::::1;::::0;:18:::1;::::0;:40:::1;::::0;::::1;::::0;::::1;:::i;100970:1317::-:0;100821:9;100834:10;100821:23;100813:67;;;;-1:-1:-1;;;100813:67:0;;16215:2:1;100813:67:0;;;16197:21:1;16254:2;16234:18;;;16227:30;16293:33;16273:18;;;16266:61;16344:18;;100813:67:0;16013:355:1;100813:67:0;101111:6:::1;::::0;::::1;;101110:7;101102:42;;;::::0;-1:-1:-1;;;101102:42:0;;19874:2:1;101102:42:0::1;::::0;::::1;19856:21:1::0;19913:2;19893:18;;;19886:30;-1:-1:-1;;;19932:18:1;;;19925:52;19994:18;;101102:42:0::1;19672:346:1::0;101102:42:0::1;101167:11;101163:1;:15;101155:55;;;::::0;-1:-1:-1;;;101155:55:0;;20924:2:1;101155:55:0::1;::::0;::::1;20906:21:1::0;20963:2;20943:18;;;20936:30;21002:29;20982:18;;;20975:57;21049:18;;101155:55:0::1;20722:351:1::0;101155:55:0::1;101244:27;;101229:11;:42;;101221:91;;;::::0;-1:-1:-1;;;101221:91:0;;18757:2:1;101221:91:0::1;::::0;::::1;18739:21:1::0;18796:2;18776:18;;;18769:30;18835:34;18815:18;;;18808:62;-1:-1:-1;;;18886:18:1;;;18879:34;18930:19;;101221:91:0::1;18555:400:1::0;101221:91:0::1;101362:9;::::0;56917:12;;56901:13;;101347:11;;56901:28;;-1:-1:-1;;56901:46:0;101331:27:::1;;;;:::i;:::-;:40;;101323:75;;;;-1:-1:-1::0;;;101323:75:0::1;;;;;;;:::i;:::-;101439:9;101424:11;101417:4;;:18;;;;:::i;:::-;:31;;101409:62;;;::::0;-1:-1:-1;;;101409:62:0;;20225:2:1;101409:62:0::1;::::0;::::1;20207:21:1::0;20264:2;20244:18;;;20237:30;-1:-1:-1;;;20283:18:1;;;20276:48;20341:18;;101409:62:0::1;20023:342:1::0;101409:62:0::1;101485:15;::::0;::::1;;::::0;;::::1;;:23;;:15;:23;101482:753;;;101551:44;::::0;-1:-1:-1;;101568:10:0::1;8733:2:1::0;8729:15;8725:53;101551:44:0::1;::::0;::::1;8713:66:1::0;8795:12;;;8788:28;;;101525:12:0::1;::::0;8832::1;;101551:44:0::1;;;;;;;;;;;;101540:57;;;;;;101525:72;;101620:50;101639:12;;101620:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;101653:10:0::1;::::0;;-1:-1:-1;101665:4:0;;-1:-1:-1;101620:18:0::1;:50::i;:::-;101612:86;;;::::0;-1:-1:-1;;;101612:86:0;;20572:2:1;101612:86:0::1;::::0;::::1;20554:21:1::0;20611:2;20591:18;;;20584:30;20650:25;20630:18;;;20623:53;20693:18;;101612:86:0::1;20370:347:1::0;101612:86:0::1;101716:9;::::0;;;::::1;;;:17;;101729:4;101716:17;101713:230;;;101815:10;101793:33;::::0;;;:21:::1;:33;::::0;;;;;101776:50:::1;::::0;:14;:50:::1;:::i;:::-;101761:11;:65;;101753:107;;;::::0;-1:-1:-1;;;101753:107:0;;17342:2:1;101753:107:0::1;::::0;::::1;17324:21:1::0;17381:2;17361:18;;;17354:30;17420;17400:18;;;17393:58;17468:18;;101753:107:0::1;17140:352:1::0;101753:107:0::1;101901:10;101879:33;::::0;;;:21:::1;:33;::::0;;;;:48;;101916:11;;101879:33;:48:::1;::::0;101916:11;;101879:48:::1;:::i;:::-;::::0;;;-1:-1:-1;;101713:230:0::1;101510:444;101482:753;;;101976:9;::::0;;;::::1;;;:17;;101989:4;101976:17;101973:251;;;102095:10;102072:34;::::0;;;:22:::1;:34;::::0;;;;;102036:33:::1;::::0;:70:::1;::::0;102072:34;102036:70:::1;:::i;:::-;102021:11;:85;;102013:127;;;::::0;-1:-1:-1;;;102013:127:0;;17342:2:1;102013:127:0::1;::::0;::::1;17324:21:1::0;17381:2;17361:18;;;17354:30;17420;17400:18;;;17393:58;17468:18;;102013:127:0::1;17140:352:1::0;102013:127:0::1;102182:10;102159:34;::::0;;;:22:::1;:34;::::0;;;;:49;;102197:11;;102159:34;:49:::1;::::0;102197:11;;102159:49:::1;:::i;:::-;::::0;;;-1:-1:-1;;101973:251:0::1;102245:34;102255:10;102267:11;102245:9;:34::i;106313:143::-:0;28720:13;:11;:13::i;:::-;106404:20:::1;:44:::0;;;::::1;;-1:-1:-1::0;;;106404:44:0::1;-1:-1:-1::0;;;;106404:44:0;;::::1;::::0;;;::::1;::::0;;106313:143::o;29740:201::-;28720:13;:11;:13::i;:::-;-1:-1:-1;;;;;29829:22:0;::::1;29821:73;;;::::0;-1:-1:-1;;;29821:73:0;;16935:2:1;29821:73:0::1;::::0;::::1;16917:21:1::0;16974:2;16954:18;;;16947:30;17013:34;16993:18;;;16986:62;-1:-1:-1;;;17064:18:1;;;17057:36;17110:19;;29821:73:0::1;16733:402:1::0;29821:73:0::1;29905:28;29924:8;29905:18;:28::i;110116:81::-:0;28720:13;:11;:13::i;:::-;110175:5:::1;:14:::0;;-1:-1:-1;;110175:14:0::1;::::0;::::1;;::::0;;;::::1;::::0;;110116:81::o;35917:204::-;36002:4;-1:-1:-1;;;;;;36026:47:0;;-1:-1:-1;;;36026:47:0;;:87;;-1:-1:-1;;;;;;;;;;11452:40:0;;;36077:36;11343:157;59990:639;60075:4;-1:-1:-1;;;;;;;;;60399:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;60476:25:0;;;60399:102;:179;;;-1:-1:-1;;;;;;;;60553:25:0;-1:-1:-1;;;60553:25:0;;59990:639::o;28999:132::-;28880:7;28907:6;-1:-1:-1;;;;;28907:6:0;91149:10;29063:23;29055:68;;;;-1:-1:-1;;;29055:68:0;;19513:2:1;29055:68:0;;;19495:21:1;;;19532:18;;;19525:30;19591:34;19571:18;;;19564:62;19643:18;;29055:68:0;19311:356:1;68754:282:0;68819:4;68875:7;111415:1;68856:26;;:66;;;;;68909:13;;68899:7;:23;68856:66;:153;;;;-1:-1:-1;;68960:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;68960:44:0;:49;;68754:282::o;66816:408::-;66905:13;66921:16;66929:7;66921;:16::i;:::-;66905:32;-1:-1:-1;91149:10:0;-1:-1:-1;;;;;66954:28:0;;;66950:175;;67002:44;67019:5;91149:10;68332:164;:::i;67002:44::-;66997:128;;67074:35;;-1:-1:-1;;;67074:35:0;;;;;;;;;;;66997:128;67137:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;67137:35:0;-1:-1:-1;;;;;67137:35:0;;;;;;;;;67188:28;;67137:24;;67188:28;;;;;;;66894:330;66816:408;;:::o;63440:1275::-;63507:7;63542;;111415:1;63591:23;63587:1061;;63644:13;;63637:4;:20;63633:1015;;;63682:14;63699:23;;;:17;:23;;;;;;-1:-1:-1;;;63788:24:0;;63784:845;;64453:113;64460:11;64453:113;;-1:-1:-1;;;64531:6:0;64513:25;;;;:17;:25;;;;;;64453:113;;;64599:6;63440:1275;-1:-1:-1;;;63440:1275:0:o;63784:845::-;63659:989;63633:1015;64676:31;;-1:-1:-1;;;64676:31:0;;;;;;;;;;;110205:347;110348:5;;;;:14;;:36;;-1:-1:-1;;;;;;110366:18:0;;;110348:36;:97;;;-1:-1:-1;;;;;;110388:57:0;;110402:42;110388:57;110348:97;110339:133;;;;-1:-1:-1;;;110339:133:0;;19162:2:1;110339:133:0;;;19144:21:1;19201:2;19181:18;;;19174:30;-1:-1:-1;;;19220:18:1;;;19213:52;19282:18;;110339:133:0;18960:346:1;110339:133:0;110483:61;74734:407;84894:112;84971:27;84981:2;84985:8;84971:27;;;;;;;;;;;;:9;:27::i;36664:105::-;36731:30;36742:4;91149:10;36731;:30::i;40922:238::-;41006:22;41014:4;41020:7;41006;:22::i;:::-;41001:152;;41045:12;;;;41077:4;41045:12;;;;;;;;-1:-1:-1;;;;;41045:29:0;;;;;;;;;;:36;;-1:-1:-1;;41045:36:0;;;;;;;41101:40;;91149:10;;41045:12;;41101:40;;41045:12;41101:40;40922:238;;:::o;41340:239::-;41424:22;41432:4;41438:7;41424;:22::i;:::-;41420:152;;;41495:5;41463:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;41463:29:0;;;;;;;;;;:37;;-1:-1:-1;;41463:37:0;;;41520:40;91149:10;;41463:12;;41520:40;;41495:5;41520:40;41340:239;;:::o;30101:191::-;30175:16;30194:6;;-1:-1:-1;;;;;30211:17:0;;;-1:-1:-1;;;;;;30211:17:0;;;;;;30244:40;;30194:6;;;;;;;30244:40;;30175:16;30244:40;30164:128;30101:191;:::o;62888:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63016:24:0;;;;:17;:24;;;;;;62997:44;;-1:-1:-1;;;;;;;;;;;;;64924:41:0;;;;52645:3;65010:33;;;-1:-1:-1;;;;;64976:68:0;-1:-1:-1;;;64976:68:0;-1:-1:-1;;;65074:24:0;;:29;;-1:-1:-1;;;65055:48:0;;;;53166:3;65143:28;;;;-1:-1:-1;;;65114:58:0;-1:-1:-1;64814:366:0;67941:234;91149:10;68036:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;68036:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;68036:60:0;;;;;;;;;;68112:55;;14618:41:1;;;68036:49:0;;91149:10;68112:55;;14591:18:1;68112:55:0;;;;;;;67941:234;;:::o;77225:716::-;77409:88;;-1:-1:-1;;;77409:88:0;;77388:4;;-1:-1:-1;;;;;77409:45:0;;;;;:88;;91149:10;;77476:4;;77482:7;;77491:5;;77409:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77409:88:0;;;;;;;;-1:-1:-1;;77409:88:0;;;;;;;;;;;;:::i;:::-;;;77405:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77692:13:0;;77688:235;;77738:40;;-1:-1:-1;;;77738:40:0;;;;;;;;;;;77688:235;77881:6;77875:13;77866:6;77862:2;77858:15;77851:38;77405:529;-1:-1:-1;;;;;;77568:64:0;-1:-1:-1;;;77568:64:0;;-1:-1:-1;77405:529:0;77225:716;;;;;;:::o;93815:1912::-;93873:13;93903:4;:11;93918:1;93903:16;93899:31;;;-1:-1:-1;;93921:9:0;;;;;;;;;-1:-1:-1;93921:9:0;;;93815:1912::o;93899:31::-;93982:19;94004:12;;;;;;;;;;;;;;;;;93982:34;;94068:18;94114:1;94095:4;:11;94109:1;94095:15;;;;:::i;:::-;94094:21;;;;:::i;:::-;94089:27;;:1;:27;:::i;:::-;94068:48;-1:-1:-1;94199:20:0;94233:15;94068:48;94246:2;94233:15;:::i;:::-;-1:-1:-1;;;;;94222:27:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;94222:27:0;;94199:50;;94346:10;94338:6;94331:26;94441:1;94434:5;94430:13;94500:4;94551;94545:11;94536:7;94532:25;94647:2;94639:6;94635:15;94720:754;94739:6;94730:7;94727:19;94720:754;;;94839:1;94830:7;94826:15;94815:26;;94878:7;94872:14;95004:4;94996:5;94992:2;94988:14;94984:25;94974:8;94970:40;94964:47;94953:9;94945:67;95058:1;95047:9;95043:17;95030:30;;95137:4;95129:5;95125:2;95121:14;95117:25;95107:8;95103:40;95097:47;95086:9;95078:67;95191:1;95180:9;95176:17;95163:30;;95270:4;95262:5;95259:1;95254:14;95250:25;95240:8;95236:40;95230:47;95219:9;95211:67;95324:1;95313:9;95309:17;95296:30;;95403:4;95395:5;95383:25;95373:8;95369:40;95363:47;95352:9;95344:67;-1:-1:-1;95457:1:0;95442:17;94720:754;;;95547:1;95540:4;95534:11;95530:19;95568:1;95563:54;;;;95636:1;95631:52;;;;95523:160;;95563:54;-1:-1:-1;;;;;95579:17:0;;95572:43;95563:54;;95631:52;-1:-1:-1;;;;;95647:17:0;;95640:41;95523:160;-1:-1:-1;95713:6:0;;93815:1912;-1:-1:-1;;;;;;;;93815:1912:0:o;61278:318::-;61351:13;61382:16;61390:7;61382;:16::i;:::-;61377:59;;61407:29;;-1:-1:-1;;;61407:29:0;;;;;;;;;;;61377:59;61449:21;61473:10;:8;:10::i;:::-;61449:34;;61507:7;61501:21;61526:1;61501:26;;:87;;;;;;;;;;;;;;;;;61554:7;61563:18;61573:7;61563:9;:18::i;:::-;61537:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;61494:94;61278:318;-1:-1:-1;;;61278:318:0:o;1222:190::-;1347:4;1400;1371:25;1384:5;1391:4;1371:12;:25::i;:::-;:33;;1222:190;-1:-1:-1;;;;1222:190:0:o;84121:689::-;84252:19;84258:2;84262:8;84252:5;:19::i;:::-;-1:-1:-1;;;;;84313:14:0;;;:19;84309:483;;84367:13;;84415:14;;;84448:233;84479:62;84518:1;84522:2;84526:7;;;;;;84535:5;84479:30;:62::i;:::-;84474:167;;84577:40;;-1:-1:-1;;;84577:40:0;;;;;;;;;;;84474:167;84676:3;84668:5;:11;84448:233;;84763:3;84746:13;;:20;84742:34;;84768:8;;;37059:492;37148:22;37156:4;37162:7;37148;:22::i;:::-;37143:401;;37336:28;37356:7;37336:19;:28::i;:::-;37437:38;37465:4;37472:2;37437:19;:38::i;:::-;37241:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;37241:257:0;;;;;;;;;;-1:-1:-1;;;37187:345:0;;;;;;;:::i;105664:116::-;105724:13;105757:7;105750:14;;;;;:::i;91269:1745::-;91334:17;91768:4;91761;91755:11;91751:22;91860:1;91854:4;91847:15;91935:4;91932:1;91928:12;91921:19;;;92017:1;92012:3;92005:14;92121:3;92360:5;92342:428;92408:1;92403:3;92399:11;92392:18;;92579:2;92573:4;92569:13;92565:2;92561:22;92556:3;92548:36;92673:2;92663:13;;;92730:25;;92748:5;;92730:25;92342:428;;;-1:-1:-1;92800:13:0;;;-1:-1:-1;;92915:14:0;;;92977:19;;;92915:14;91269:1745;-1:-1:-1;91269:1745:0:o;2089:296::-;2172:7;2215:4;2172:7;2230:118;2254:5;:12;2250:1;:16;2230:118;;;2303:33;2313:12;2327:5;2333:1;2327:8;;;;;;;;:::i;:::-;;;;;;;2303:9;:33::i;:::-;2288:48;-1:-1:-1;2268:3:0;;;;:::i;:::-;;;;2230:118;;;-1:-1:-1;2365:12:0;2089:296;-1:-1:-1;;;2089:296:0:o;78403:2966::-;78499:13;;78527;78523:44;;78549:18;;-1:-1:-1;;;78549:18:0;;;;;;;;;;;78523:44;78580:61;78610:1;78614:2;78618:12;78632:8;78580:21;:61::i;:::-;-1:-1:-1;;;;;79055:22:0;;;;;;:18;:22;;;;52124:2;79055:22;;;:71;;79093:32;79081:45;;79055:71;;;79369:31;;;:17;:31;;;;;-1:-1:-1;66105:15:0;;66079:24;66075:46;65674:11;65649:23;65645:41;65642:52;65632:63;;79369:173;;79604:23;;;;79369:31;;79055:22;;80369:25;79055:22;;80222:335;80883:1;80869:12;80865:20;80823:346;80924:3;80915:7;80912:16;80823:346;;81142:7;81132:8;81129:1;81102:25;81099:1;81096;81091:59;80977:1;80964:15;80823:346;;;-1:-1:-1;81202:13:0;81198:45;;81224:19;;-1:-1:-1;;;81224:19:0;;;;;;;;;;;81198:45;81260:13;:19;-1:-1:-1;38181:147:0;;;:::o;26548:151::-;26606:13;26639:52;-1:-1:-1;;;;;26651:22:0;;24703:2;25944:447;26019:13;26045:19;26077:10;26081:6;26077:1;:10;:::i;:::-;:14;;26090:1;26077:14;:::i;:::-;-1:-1:-1;;;;;26067:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26067:25:0;;26045:47;;-1:-1:-1;;;26103:6:0;26110:1;26103:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;26103:15:0;;;;;;;;;-1:-1:-1;;;26129:6:0;26136:1;26129:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;26129:15:0;;;;;;;;-1:-1:-1;26160:9:0;26172:10;26176:6;26172:1;:10;:::i;:::-;:14;;26185:1;26172:14;:::i;:::-;26160:26;;26155:131;26192:1;26188;:5;26155:131;;;-1:-1:-1;;;26236:5:0;26244:3;26236:11;26227:21;;;;;;;:::i;:::-;;;;26215:6;26222:1;26215:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;26215:33:0;;;;;;;;-1:-1:-1;26273:1:0;26263:11;;;;;26195:3;;;:::i;:::-;;;26155:131;;;-1:-1:-1;26304:10:0;;26296:55;;;;-1:-1:-1;;;26296:55:0;;15504:2:1;26296:55:0;;;15486:21:1;;;15523:18;;;15516:30;15582:34;15562:18;;;15555:62;15634:18;;26296:55:0;15302:356:1;9129:149:0;9192:7;9223:1;9219;:5;:51;;9354:13;9448:15;;;9484:4;9477:15;;;9531:4;9515:21;;9219:51;;;9354:13;9448:15;;;9484:4;9477:15;;;9531:4;9515:21;;9227:20;9286:268;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:336:1;78:5;107:52;123:35;151:6;123:35;:::i;:::-;107:52;:::i;:::-;98:61;;182:6;175:5;168:21;222:3;213:6;208:3;204:16;201:25;198:45;;;239:1;236;229:12;198:45;288:6;283:3;276:4;269:5;265:16;252:43;342:1;335:4;326:6;319:5;315:18;311:29;304:40;14:336;;;;;:::o;355:173::-;423:20;;-1:-1:-1;;;;;472:31:1;;462:42;;452:70;;518:1;515;508:12;452:70;355:173;;;:::o;533:367::-;596:8;606:6;660:3;653:4;645:6;641:17;637:27;627:55;;678:1;675;668:12;627:55;-1:-1:-1;701:20:1;;-1:-1:-1;;;;;733:30:1;;730:50;;;776:1;773;766:12;730:50;813:4;805:6;801:17;789:29;;873:3;866:4;856:6;853:1;849:14;841:6;837:27;833:38;830:47;827:67;;;890:1;887;880:12;827:67;533:367;;;;;:::o;905:160::-;970:20;;1026:13;;1019:21;1009:32;;999:60;;1055:1;1052;1045:12;1070:186;1129:6;1182:2;1170:9;1161:7;1157:23;1153:32;1150:52;;;1198:1;1195;1188:12;1150:52;1221:29;1240:9;1221:29;:::i;1261:260::-;1329:6;1337;1390:2;1378:9;1369:7;1365:23;1361:32;1358:52;;;1406:1;1403;1396:12;1358:52;1429:29;1448:9;1429:29;:::i;:::-;1419:39;;1477:38;1511:2;1500:9;1496:18;1477:38;:::i;:::-;1467:48;;1261:260;;;;;:::o;1526:328::-;1603:6;1611;1619;1672:2;1660:9;1651:7;1647:23;1643:32;1640:52;;;1688:1;1685;1678:12;1640:52;1711:29;1730:9;1711:29;:::i;:::-;1701:39;;1759:38;1793:2;1782:9;1778:18;1759:38;:::i;:::-;1749:48;;1844:2;1833:9;1829:18;1816:32;1806:42;;1526:328;;;;;:::o;1859:666::-;1954:6;1962;1970;1978;2031:3;2019:9;2010:7;2006:23;2002:33;1999:53;;;2048:1;2045;2038:12;1999:53;2071:29;2090:9;2071:29;:::i;:::-;2061:39;;2119:38;2153:2;2142:9;2138:18;2119:38;:::i;:::-;2109:48;;2204:2;2193:9;2189:18;2176:32;2166:42;;2259:2;2248:9;2244:18;2231:32;-1:-1:-1;;;;;2278:6:1;2275:30;2272:50;;;2318:1;2315;2308:12;2272:50;2341:22;;2394:4;2386:13;;2382:27;-1:-1:-1;2372:55:1;;2423:1;2420;2413:12;2372:55;2446:73;2511:7;2506:2;2493:16;2488:2;2484;2480:11;2446:73;:::i;:::-;2436:83;;;1859:666;;;;;;;:::o;2530:254::-;2595:6;2603;2656:2;2644:9;2635:7;2631:23;2627:32;2624:52;;;2672:1;2669;2662:12;2624:52;2695:29;2714:9;2695:29;:::i;:::-;2685:39;;2743:35;2774:2;2763:9;2759:18;2743:35;:::i;2789:254::-;2857:6;2865;2918:2;2906:9;2897:7;2893:23;2889:32;2886:52;;;2934:1;2931;2924:12;2886:52;2957:29;2976:9;2957:29;:::i;:::-;2947:39;3033:2;3018:18;;;;3005:32;;-1:-1:-1;;;2789:254:1:o;3048:1272::-;3168:6;3176;3184;3237:2;3225:9;3216:7;3212:23;3208:32;3205:52;;;3253:1;3250;3243:12;3205:52;3293:9;3280:23;-1:-1:-1;;;;;3363:2:1;3355:6;3352:14;3349:34;;;3379:1;3376;3369:12;3349:34;3418:70;3480:7;3471:6;3460:9;3456:22;3418:70;:::i;:::-;3507:8;;-1:-1:-1;3392:96:1;-1:-1:-1;3561:2:1;;-1:-1:-1;3601:18:1;;;3588:32;3632:16;;;3629:36;;;3661:1;3658;3651:12;3629:36;3684:24;;3739:4;3731:13;;3727:27;-1:-1:-1;3717:55:1;;3768:1;3765;3758:12;3717:55;3804:2;3791:16;3826:2;3822;3819:10;3816:36;;;3832:18;;:::i;:::-;3878:2;3875:1;3871:10;3861:20;;3901:28;3925:2;3921;3917:11;3901:28;:::i;:::-;3963:15;;;3994:12;;;;4026:11;;;4056;;;4052:20;;4049:33;-1:-1:-1;4046:53:1;;;4095:1;4092;4085:12;4046:53;4117:1;4108:10;;4127:163;4141:2;4138:1;4135:9;4127:163;;;4198:17;;4186:30;;4159:1;4152:9;;;;;4236:12;;;;4268;;4127:163;;;4131:3;4309:5;4299:15;;;;;;;;3048:1272;;;;;:::o;4325:180::-;4381:6;4434:2;4422:9;4413:7;4409:23;4405:32;4402:52;;;4450:1;4447;4440:12;4402:52;4473:26;4489:9;4473:26;:::i;4510:180::-;4569:6;4622:2;4610:9;4601:7;4597:23;4593:32;4590:52;;;4638:1;4635;4628:12;4590:52;-1:-1:-1;4661:23:1;;4510:180;-1:-1:-1;4510:180:1:o;4695:254::-;4763:6;4771;4824:2;4812:9;4803:7;4799:23;4795:32;4792:52;;;4840:1;4837;4830:12;4792:52;4876:9;4863:23;4853:33;;4905:38;4939:2;4928:9;4924:18;4905:38;:::i;4954:245::-;5012:6;5065:2;5053:9;5044:7;5040:23;5036:32;5033:52;;;5081:1;5078;5071:12;5033:52;5120:9;5107:23;5139:30;5163:5;5139:30;:::i;5204:249::-;5273:6;5326:2;5314:9;5305:7;5301:23;5297:32;5294:52;;;5342:1;5339;5332:12;5294:52;5374:9;5368:16;5393:30;5417:5;5393:30;:::i;5458:450::-;5527:6;5580:2;5568:9;5559:7;5555:23;5551:32;5548:52;;;5596:1;5593;5586:12;5548:52;5636:9;5623:23;-1:-1:-1;;;;;5661:6:1;5658:30;5655:50;;;5701:1;5698;5691:12;5655:50;5724:22;;5777:4;5769:13;;5765:27;-1:-1:-1;5755:55:1;;5806:1;5803;5796:12;5755:55;5829:73;5894:7;5889:2;5876:16;5871:2;5867;5863:11;5829:73;:::i;5913:635::-;5993:6;6046:2;6034:9;6025:7;6021:23;6017:32;6014:52;;;6062:1;6059;6052:12;6014:52;6095:9;6089:16;-1:-1:-1;;;;;6120:6:1;6117:30;6114:50;;;6160:1;6157;6150:12;6114:50;6183:22;;6236:4;6228:13;;6224:27;-1:-1:-1;6214:55:1;;6265:1;6262;6255:12;6214:55;6294:2;6288:9;6319:48;6335:31;6363:2;6335:31;:::i;6319:48::-;6390:2;6383:5;6376:17;6430:7;6425:2;6420;6416;6412:11;6408:20;6405:33;6402:53;;;6451:1;6448;6441:12;6402:53;6464:54;6515:2;6510;6503:5;6499:14;6494:2;6490;6486:11;6464:54;:::i;:::-;6537:5;5913:635;-1:-1:-1;;;;;5913:635:1:o;6738:573::-;6842:6;6850;6858;6866;6919:2;6907:9;6898:7;6894:23;6890:32;6887:52;;;6935:1;6932;6925:12;6887:52;6971:9;6958:23;6948:33;;7028:2;7017:9;7013:18;7000:32;6990:42;;7083:2;7072:9;7068:18;7055:32;-1:-1:-1;;;;;7102:6:1;7099:30;7096:50;;;7142:1;7139;7132:12;7096:50;7181:70;7243:7;7234:6;7223:9;7219:22;7181:70;:::i;:::-;6738:573;;;;-1:-1:-1;7270:8:1;-1:-1:-1;;;;6738:573:1:o;7316:257::-;7357:3;7395:5;7389:12;7422:6;7417:3;7410:19;7438:63;7494:6;7487:4;7482:3;7478:14;7471:4;7464:5;7460:16;7438:63;:::i;:::-;7555:2;7534:15;-1:-1:-1;;7530:29:1;7521:39;;;;7562:4;7517:50;;7316:257;-1:-1:-1;;7316:257:1:o;7578:973::-;7663:12;;7628:3;;7718:1;7738:18;;;;7791;;;;7818:61;;7872:4;7864:6;7860:17;7850:27;;7818:61;7898:2;7946;7938:6;7935:14;7915:18;7912:38;7909:161;;;7992:10;7987:3;7983:20;7980:1;7973:31;8027:4;8024:1;8017:15;8055:4;8052:1;8045:15;7909:161;8086:18;8113:104;;;;8231:1;8226:319;;;;8079:466;;8113:104;-1:-1:-1;;8146:24:1;;8134:37;;8191:16;;;;-1:-1:-1;8113:104:1;;8226:319;22220:1;22213:14;;;22257:4;22244:18;;8320:1;8334:165;8348:6;8345:1;8342:13;8334:165;;;8426:14;;8413:11;;;8406:35;8469:16;;;;8363:10;;8334:165;;;8338:3;;8528:6;8523:3;8519:16;8512:23;;8079:466;;;;;;;7578:973;;;;:::o;8855:470::-;9034:3;9072:6;9066:13;9088:53;9134:6;9129:3;9122:4;9114:6;9110:17;9088:53;:::i;:::-;9204:13;;9163:16;;;;9226:57;9204:13;9163:16;9260:4;9248:17;;9226:57;:::i;:::-;9299:20;;8855:470;-1:-1:-1;;;;8855:470:1:o;9330:356::-;9506:3;9544:6;9538:13;9560:53;9606:6;9601:3;9594:4;9586:6;9582:17;9560:53;:::i;:::-;9629:51;9672:6;9667:3;9663:16;9655:6;9629:51;:::i;9691:1990::-;-1:-1:-1;;;10881:43:1;;10863:3;10943:46;10986:1;10977:11;;10969:6;10943:46;:::i;:::-;-1:-1:-1;;;11031:14:1;;;-1:-1:-1;;;11069:1:1;11061:10;;11054:62;11135:46;11177:2;11169:11;;11161:6;11135:46;:::i;:::-;11190:14;;;-1:-1:-1;;;11228:1:1;11220:10;;11213:52;11125:56;-1:-1:-1;11284:46:1;11326:2;11318:11;;11310:6;11284:46;:::i;:::-;11339:14;;;11381:66;11377:1;11369:10;;11362:86;-1:-1:-1;;;11472:2:1;11464:11;;11457:57;11274:56;-1:-1:-1;11533:46:1;11575:2;11567:11;;11559:6;11533:46;:::i;:::-;-1:-1:-1;;;11588:29:1;;-1:-1:-1;;;11641:1:1;11633:10;;11626:23;11673:1;11665:10;;9691:1990;-1:-1:-1;;;;;;;9691:1990:1:o;11686:448::-;11948:31;11943:3;11936:44;11918:3;12009:6;12003:13;12025:62;12080:6;12075:2;12070:3;12066:12;12059:4;12051:6;12047:17;12025:62;:::i;:::-;12107:16;;;;12125:2;12103:25;;11686:448;-1:-1:-1;;11686:448:1:o;12349:786::-;12760:25;12755:3;12748:38;12730:3;12815:6;12809:13;12831:62;12886:6;12881:2;12876:3;12872:12;12865:4;12857:6;12853:17;12831:62;:::i;:::-;-1:-1:-1;;;12952:2:1;12912:16;;;12944:11;;;12937:40;13002:13;;13024:63;13002:13;13073:2;13065:11;;13058:4;13046:17;;13024:63;:::i;:::-;13107:17;13126:2;13103:26;;12349:786;-1:-1:-1;;;;12349:786:1:o;13348:488::-;-1:-1:-1;;;;;13617:15:1;;;13599:34;;13669:15;;13664:2;13649:18;;13642:43;13716:2;13701:18;;13694:34;;;13764:3;13759:2;13744:18;;13737:31;;;13542:4;;13785:45;;13810:19;;13802:6;13785:45;:::i;:::-;13777:53;13348:488;-1:-1:-1;;;;;;13348:488:1:o;13841:632::-;14012:2;14064:21;;;14134:13;;14037:18;;;14156:22;;;13983:4;;14012:2;14235:15;;;;14209:2;14194:18;;;13983:4;14278:169;14292:6;14289:1;14286:13;14278:169;;;14353:13;;14341:26;;14422:15;;;;14387:12;;;;14314:1;14307:9;14278:169;;15078:219;15227:2;15216:9;15209:21;15190:4;15247:44;15287:2;15276:9;15272:18;15264:6;15247:44;:::i;18204:346::-;18406:2;18388:21;;;18445:2;18425:18;;;18418:30;-1:-1:-1;;;18479:2:1;18464:18;;18457:52;18541:2;18526:18;;18204:346::o;21676:275::-;21747:2;21741:9;21812:2;21793:13;;-1:-1:-1;;21789:27:1;21777:40;;-1:-1:-1;;;;;21832:34:1;;21868:22;;;21829:62;21826:88;;;21894:18;;:::i;:::-;21930:2;21923:22;21676:275;;-1:-1:-1;21676:275:1:o;21956:186::-;22004:4;-1:-1:-1;;;;;22029:6:1;22026:30;22023:56;;;22059:18;;:::i;:::-;-1:-1:-1;22125:2:1;22104:15;-1:-1:-1;;22100:29:1;22131:4;22096:40;;21956:186::o;22273:128::-;22313:3;22344:1;22340:6;22337:1;22334:13;22331:39;;;22350:18;;:::i;:::-;-1:-1:-1;22386:9:1;;22273:128::o;22406:217::-;22446:1;22472;22462:132;;22516:10;22511:3;22507:20;22504:1;22497:31;22551:4;22548:1;22541:15;22579:4;22576:1;22569:15;22462:132;-1:-1:-1;22608:9:1;;22406:217::o;22628:168::-;22668:7;22734:1;22730;22726:6;22722:14;22719:1;22716:21;22711:1;22704:9;22697:17;22693:45;22690:71;;;22741:18;;:::i;:::-;-1:-1:-1;22781:9:1;;22628:168::o;22801:125::-;22841:4;22869:1;22866;22863:8;22860:34;;;22874:18;;:::i;:::-;-1:-1:-1;22911:9:1;;22801:125::o;22931:258::-;23003:1;23013:113;23027:6;23024:1;23021:13;23013:113;;;23103:11;;;23097:18;23084:11;;;23077:39;23049:2;23042:10;23013:113;;;23144:6;23141:1;23138:13;23135:48;;;-1:-1:-1;;23179:1:1;23161:16;;23154:27;22931:258::o;23194:136::-;23233:3;23261:5;23251:39;;23270:18;;:::i;:::-;-1:-1:-1;;;23306:18:1;;23194:136::o;23335:380::-;23414:1;23410:12;;;;23457;;;23478:61;;23532:4;23524:6;23520:17;23510:27;;23478:61;23585:2;23577:6;23574:14;23554:18;23551:38;23548:161;;;23631:10;23626:3;23622:20;23619:1;23612:31;23666:4;23663:1;23656:15;23694:4;23691:1;23684:15;23548:161;;23335:380;;;:::o;23720:135::-;23759:3;-1:-1:-1;;23780:17:1;;23777:43;;;23800:18;;:::i;:::-;-1:-1:-1;23847:1:1;23836:13;;23720:135::o;23860:127::-;23921:10;23916:3;23912:20;23909:1;23902:31;23952:4;23949:1;23942:15;23976:4;23973:1;23966:15;23992:127;24053:10;24048:3;24044:20;24041:1;24034:31;24084:4;24081:1;24074:15;24108:4;24105:1;24098:15;24124:127;24185:10;24180:3;24176:20;24173:1;24166:31;24216:4;24213:1;24206:15;24240:4;24237:1;24230:15;24256:131;-1:-1:-1;;;;;;24330:32:1;;24320:43;;24310:71;;24377:1;24374;24367:12

Swarm Source

ipfs://ec288caba984437b02c60d2443105f423a7cc0ec4741852af215b872c761070f

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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