ETH Price: $2,626.35 (+0.98%)
Gas: 1 Gwei

Token

Alternate (ALTERN8)
 

Overview

Max Total Supply

200 ALTERN8

Holders

155

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bundo.eth
Balance
0 ALTERN8
0x2cae0ac9a7a7048516868aad672c49ab632b38c8
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Alternate

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 2 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 13 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

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

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

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 4 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 5 of 13 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 8 of 13 : Alternate.sol
// A L T E R N A T E
// Kim Asendorf, 2023
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.20;

import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./Generator.sol";

contract Alternate is ERC721A, ERC721ABurnable, Ownable {
	using Strings for uint256;

	uint256 public mintPrice;
	uint256 private modPrice;
	uint256 public supply;

	string private htmlPrefix;
	string private htmlSuffix;

	string private description;
	string private script;
	string private baseXML;
	string[2] private layoutXML;
	string private externalURL;

	mapping(uint256 => uint256) private versions;

	mapping(address => uint256) private allowlist;
	bool private isAllowlist = false;
	bool private isPublic = false;

	event Mint(address minter, uint256 tokenId);
	event Mod(address modder, uint256 tokenId, uint256 version);

	error InvalidAmount(uint256 required);
	error MaxVersionReached();
	error NotAllowed();
	error NotExists();
	error NotOwner();
	error NoSupply(uint256 total);

	constructor(string memory _name, string memory _symbol, uint256 _mintPrice, uint256 _modPrice, uint256 _supply) ERC721A(_name, _symbol) {
		mintPrice = _mintPrice;
		modPrice = _modPrice;
		supply = _supply;
	}

	function mint() external payable {
		if ((!isAllowlist || !(allowlist[msg.sender] > 0)) && !isPublic) {
			revert NotAllowed();
		}
		if (msg.value != mintPrice) {
			revert InvalidAmount({ required: mintPrice });
		}
		if (totalSupply() >= supply) {
			revert NoSupply({ total: supply });
		}
		uint256 tokenId = _nextTokenId();
		_mint(msg.sender, 1);
		versions[tokenId] = 1;
		if (!isPublic && isAllowlist) {
			allowlist[msg.sender]--;
		}
		emit Mint(msg.sender, tokenId);
	}

	function privateMint() external onlyOwner {
		if (totalSupply() >= supply) {
			revert NoSupply({ total: supply });
		}
		uint256 tokenId = _nextTokenId();
		_mint(msg.sender, 1);
		versions[tokenId] = 1;
		emit Mint(msg.sender, tokenId);
	}

	function modify(uint256 tokenId) external payable {
		if (!_exists(tokenId)) {
			revert NotExists();
		}
		if (msg.sender != ownerOf(tokenId)) {
			revert NotOwner();
		}
		uint256 version = versions[tokenId];
		if (version >= 4) {
			revert MaxVersionReached();
		}
		if (msg.value != modPrice * version && msg.sender != owner()) {
			revert InvalidAmount({ required: modPrice * version });
		}
		versions[tokenId] = ++version;
		emit Mod(msg.sender, tokenId, version);
	}

	function privateModify(uint256 tokenId) external onlyOwner {
		if (!_exists(tokenId)) {
			revert NotExists();
		}
		if (msg.sender != ownerOf(tokenId)) {
			revert NotOwner();
		}
		uint256 version = versions[tokenId];
		if (version >= 4) {
			revert MaxVersionReached();
		}
		versions[tokenId] = ++version;
		emit Mod(msg.sender, tokenId, version);
	}

	function setHTMLContainer(string calldata _htmlPrefix, string calldata _htmlSuffix) external onlyOwner {
		htmlPrefix = _htmlPrefix;
		htmlSuffix = _htmlSuffix;
	}

	function setDescription(string calldata _description) external onlyOwner {
		description = _description;
	}

	function setScript(string calldata _script) external onlyOwner {
		script = _script;
	}

	function setImageXML(string calldata _baseXML, string calldata _layout0XML, string calldata _layout1XML) external onlyOwner {
		baseXML = _baseXML;
		layoutXML[0] = _layout0XML;
		layoutXML[1] = _layout1XML;
	}

	function setExternalURL(string calldata _externalURL) external onlyOwner {
		externalURL = _externalURL;
	}

	function buildEdition(uint256 tokenId) private view returns (Generator.Edition memory) {
		Generator.Edition memory edition;

		edition.version = versions[tokenId];

		uint256 seed = tokenId + 1;
		for (uint256 i = 0; i < edition.version; i++) {
			seed = Generator.random(seed);
		}

		edition.jsSeed = seed;

		seed = Generator.random(seed);
		edition.layout = seed % 2;

		seed = Generator.random(seed);
		(Generator.Color[] memory colors, string memory system) = Generator.getPalette(seed);
		edition.colors[0] = colors[0];
		edition.colors[1] = colors[1];
		edition.colors[2] = colors[2];
		edition.system = system;

		return edition;
	}

	function tokenURI(uint256 tokenId) public view override(ERC721A, IERC721A) returns (string memory) {
		if (!_exists(tokenId)) {
			revert NotExists();
		}

		Generator.Edition memory edition = buildEdition(tokenId);

		string memory image = Generator.getImage(tokenId, edition, baseXML, layoutXML[edition.layout]);
		string memory animationURL = Generator.getAnimationURL(edition, htmlPrefix, htmlSuffix, script);
		bytes memory externalURLWithParams = Generator.getExternalURLWithParams(externalURL, tokenId, edition.version);

		return Generator.getTokenURI(name(), tokenId, edition, description, image, animationURL, externalURLWithParams);
	}

	function getModPrice(uint256 tokenId) external view returns (uint256) {
		uint256 version = versions[tokenId];
		if (version >= 4) {
			revert MaxVersionReached();
		}
		return version * modPrice;
	}

	function getEdition(uint256 tokenId) external view returns (string memory) {
		if (!_exists(tokenId)) {
			revert NotExists();
		}
		Generator.Edition memory edition = buildEdition(tokenId);
		return Generator.getEdition(tokenId, edition, ownerOf(tokenId));
	}

	function getVersion(uint256 tokenId) external view returns (uint256) {
		if (!_exists(tokenId)) {
			revert NotExists();
		}
		return versions[tokenId];
	}

	function getBalance() external view returns (uint256) {
		return address(this).balance;
	}

	function withdraw(address recipient, uint256 amount) external onlyOwner {
		Address.sendValue(payable(recipient), amount);
	}

	function getStatus() external view returns (string memory) {
		if (totalSupply() == supply) {
			return "Completed";
		} else if (isPublic) {
			return "Public";
		} else if (isAllowlist) {
			uint256 amount = allowlist[msg.sender];
			if (amount > 0) {
				return string(abi.encodePacked("Eligible: ", amount.toString()));
			} else {
				return "Allowlist";
			}
		} else {
			return "Closed";
		}
	}

	function addToAllowlist(address[] calldata addresses, uint256[] calldata amount) external onlyOwner {
		for (uint256 i = 0; i < addresses.length; i++) {
			allowlist[addresses[i]] = amount[i];
		}
	}

	function removeFromAllowlist(address[] calldata addresses) external onlyOwner {
		for (uint256 i = 0; i < addresses.length; i++) {
			delete allowlist[addresses[i]];
		}
	}

	function setIsAllowlist(bool _isAllowlist) external onlyOwner {
		isAllowlist = _isAllowlist;
	}

	function setIsPublic(bool _isPublic) external onlyOwner {
		isPublic = _isPublic;
	}

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

File 9 of 13 : Generator.sol
// A L T E R N A T E
// G E N E R A T O R
// Kim Asendorf, 2023
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.20;

import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

library Generator {
	using Strings for uint256;

	struct Color {
		uint256 hue;
		uint256 saturation;
		uint256 lightness;
	}

	struct Edition {
		uint256 version;
		uint256 jsSeed;
		uint256 layout;
		Color[3] colors;
		string system;
	}

	function random(uint256 seed) public pure returns (uint256) {
		uint256 r = seed;
		unchecked {
			r = r * 16807 % 2147483647;
		}
		return r;
	}

	function getPalette(uint256 seed) public pure returns (Color[] memory, string memory) {
		seed = random(seed);
		uint256 mode = seed % 9;

		if (mode < 2) {
			return (getRandomPalette(seed), "Random");
		} else if (mode < 4) {
			return (getMonochromePalette(seed), "Monochrome");
		} else if (mode < 6) {
			return (getTriadicPalette(seed), "Triadic");
		} else if (mode < 8) {
			return (getAnalogousPalette(seed), "Analogous");
		} else {
			return (getGreyscalePalette(seed), "Greyscale");
		}
	}

	function getRandomPalette(uint256 seed) private pure returns (Color[] memory) {
		Color[] memory colors = new Color[](3);

		seed = random(seed);
		uint256 h0 = seed % 360;

		seed = random(seed);
		uint256 h1 = seed % 360;

		seed = random(seed);
		uint256 s = seed % 25;

		seed = random(seed);
		uint256 l = 10 + seed % 15;

		colors[0] = Color(h0, 100, 50);
		colors[1] = Color(h1, 100, 50);
		colors[2] = Color(h0, s, l);

		return colors;
	}

	function getMonochromePalette(uint256 seed) private pure returns (Color[] memory) {
		Color[] memory colors = new Color[](3);

		seed = random(seed);
		uint256 h = seed % 360;

		seed = random(seed);
		uint256 s = 65 + seed % 20;

		seed = random(seed);
		uint256 l = 15 + seed % 15;

		colors[0] = Color(h, 100, 50);
		colors[1] = Color(h, 100, s);
		colors[2] = Color(h, 10, l);

		return colors;
	}

	function getTriadicPalette(uint256 seed) private pure returns (Color[] memory) {
		Color[] memory colors = new Color[](3);

		seed = random(seed);
		uint256 h0 = shiftHue(seed % 240);
		uint256 h1 = shiftHue((h0 + 120) % 240);
		uint256 h2 = shiftHue((h1 + 120) % 240);

		colors[0] = Color(h0, 100, 50);
		colors[1] = Color(h1, 80, 40);
		colors[2] = Color(h2, 10, 15);

		return colors;
	}

	function getAnalogousPalette(uint256 seed) private pure returns (Color[] memory) {
		Color[] memory colors = new Color[](3);

		seed = random(seed);
		uint256 h0 = seed % 360;
		uint256 h1 = (h0 + 30) % 360;

		seed = random(seed);
		uint256 l = 50 + seed % 25;

		colors[0] = Color(h0, 100, 50);
		colors[1] = Color(h1, 100, 25);
		colors[2] = Color(0, 0, l);

		return colors;
	}

	function getGreyscalePalette(uint256 seed) private pure returns (Color[] memory) {
		Color[] memory colors = new Color[](3);

		seed = random(seed);
		uint256 l0 = 4 + seed % 92;

		seed = random(seed);
		uint256 l1 = 4 + seed % 92;

		colors[0] = Color(0, 0, 0);
		colors[1] = Color(0, 0, l0);
		colors[2] = Color(0, 0, l1);

		return colors;
	}

	function shiftHue(uint256 h) private pure returns (uint256) {
		if (h > 90) h += 60;
		if (h > 270) h += 60;
		return h;
	}

	function getStyle(Color[3] memory colors) private pure returns (bytes memory) {
		bytes memory style;
		for (uint256 i = 0; i < 3; i++) {
			style = abi.encodePacked(style, ".c", i.toString(), "{fill:hsl(", colors[i].hue.toString(), ",", colors[i].saturation.toString(), "%,", colors[i].lightness.toString(), "%);}");
		}
		return style;
	}

	function getSVG(uint256 tokenId, Edition memory edition, string memory baseXML, string memory layoutXML) private pure returns (bytes memory) {
		bytes memory style = getStyle(edition.colors);
		return abi.encodePacked(
			'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">',
				'<style>', style, '</style>',
				'<defs>',
					'<text id="token">', tokenId.toString(), '</text>',
					'<text id="version">', edition.version.toString(), '/4</text>',
					'<text id="seed">', edition.jsSeed.toString(), '</text>',
					'<text id="system">', edition.system, '</text>',
				'</defs>',
				baseXML,
				layoutXML,
			'</svg>'
		);
	}

	function getImage(uint256 tokenId, Edition memory edition, string memory baseXML, string memory layoutXML) public pure returns (string memory) {
		bytes memory svg = getSVG(tokenId, edition, baseXML, layoutXML);
		return string(abi.encodePacked(
			"data:image/svg+xml;base64,",
			Base64.encode(svg)
		));
	}

	function getColorsString(Color[3] memory colors) private pure returns (bytes memory) {
		bytes memory str = "let colors=[";
		for (uint256 i = 0; i < 3; i++) {
			str = abi.encodePacked(str, "[", colors[i].hue.toString(), ",", colors[i].saturation.toString(), ",", colors[i].lightness.toString(), "]");
			if (i < 2) {
				str = abi.encodePacked(str, ',');
			}
		}
		return abi.encodePacked(str, "]");
	}

	function getHTML(Edition memory edition, string memory htmlPrefix, string memory htmlSuffix, string memory script) private pure returns (bytes memory) {
		bytes memory colorsStr = getColorsString(edition.colors);
		return abi.encodePacked(
			htmlPrefix,
			'let seed=', edition.jsSeed.toString(), ';let layout=', edition.layout.toString(), ';', colorsStr, ';', script,
			htmlSuffix
		);
	}

	function getAnimationURL(Edition memory edition, string memory htmlPrefix, string memory htmlSuffix, string memory script) public pure returns (string memory) {
		bytes memory html = getHTML(edition, htmlPrefix, htmlSuffix, script);
		return string(abi.encodePacked(
			"data:text/html;base64,",
			Base64.encode(html)
		));
	}

	function getExternalURLWithParams(string memory externalURL, uint256 tokenId, uint256 version) public pure returns (bytes memory) {
		return abi.encodePacked(
			externalURL, '?tokenId=', tokenId.toString(), '&version=', version.toString()
		);
	}

	function getAttributes(Edition memory edition) private pure returns (bytes memory) {
		return abi.encodePacked(
			'[',
				'{"trait_type":"Seed","value":"', edition.jsSeed.toString(), '"},',
				'{"trait_type":"Version","value":"', edition.version.toString(), '"},',
				'{"trait_type":"Layout","value":"', edition.layout == 0 ? 'Grid' : 'Rows', '"},',
				'{"trait_type":"Colors","value":"', edition.system, '"}',
			']'
		);
	}

	function getDataURI(string memory name, uint256 tokenId, Edition memory edition, string memory description, string memory image, string memory animationURL, bytes memory externalURLWithParams) private pure returns (bytes memory) {
		bytes memory attributes = getAttributes(edition);
		return abi.encodePacked(
			'{',
				'"name":"', name, ' ', tokenId.toString(), 'v', edition.version.toString(), '",',
				'"description":"', description, '",',
				'"image":"', image, '",',
				'"animation_url":"', animationURL, '",',
				'"external_url":"', externalURLWithParams, '",',
				'"attributes":', attributes,
			'}'
		);
	}

	function getTokenURI(string memory name, uint256 tokenId, Edition memory edition, string memory description, string memory image, string memory animationURL, bytes memory externalURLWithParams) public pure returns (string memory) {
		bytes memory dataURI = getDataURI(name, tokenId, edition, description, image, animationURL, externalURLWithParams);
		return string(
			abi.encodePacked(
				"data:application/json;base64,",
				Base64.encode(dataURI)
			)
		);
	}

	function getColorsJson(Color[3] memory colors) private pure returns (bytes memory) {
		bytes memory str = '[';
		for (uint256 i = 0; i < 3; i++) {
			str = abi.encodePacked(str, '{"hue":', colors[i].hue.toString(), ',"saturation":', colors[i].saturation.toString(), ',"lightness":', colors[i].lightness.toString(), '}');
			if (i < 2) {
				str = abi.encodePacked(str, ',');
			}
		}
		return abi.encodePacked(str, ']');
	}

	function getEdition(uint256 tokenId, Edition memory edition, address owner) public pure returns (string memory) {
		return string(
			abi.encodePacked(
				'{',
					'"tokenId":', tokenId.toString(), ',',
					'"version":', edition.version.toString(), ',',
					'"seed":', edition.jsSeed.toString(), ',',
					'"layout":', edition.layout.toString(), ',',
					'"system":"', edition.system, '",',
					'"colors":', getColorsJson(edition.colors), ',',
					'"owner":"', Strings.toHexString(uint256(uint160(owner)), 20), '"',
				'}'
			)
		);
	}
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 13 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721ABurnable.
 *
 * @dev ERC721A token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 12 of 13 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721ABurnable.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_modPrice","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"}],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"MaxVersionReached","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"name":"NoSupply","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"NotExists","type":"error"},{"inputs":[],"name":"NotOwner","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":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"modder","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"version","type":"uint256"}],"name":"Mod","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"addToAllowlist","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getEdition","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getModPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStatus","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"modify","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"privateModify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_externalURL","type":"string"}],"name":"setExternalURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_htmlPrefix","type":"string"},{"internalType":"string","name":"_htmlSuffix","type":"string"}],"name":"setHTMLContainer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseXML","type":"string"},{"internalType":"string","name":"_layout0XML","type":"string"},{"internalType":"string","name":"_layout1XML","type":"string"}],"name":"setImageXML","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllowlist","type":"bool"}],"name":"setIsAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublic","type":"bool"}],"name":"setIsPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_script","type":"string"}],"name":"setScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040525f60165f6101000a81548160ff0219169083151502179055505f601660016101000a81548160ff02191690831515021790555034801562000043575f80fd5b50604051620051ed380380620051ed833981810160405281019062000069919062000371565b848481600290816200007c919062000661565b5080600390816200008e919062000661565b506200009f620000e660201b60201c565b5f819055505050620000c6620000ba620000ea60201b60201c565b620000f160201b60201c565b8260098190555081600a8190555080600b81905550505050505062000745565b5f90565b5f33905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6200021582620001cd565b810181811067ffffffffffffffff82111715620002375762000236620001dd565b5b80604052505050565b5f6200024b620001b4565b90506200025982826200020a565b919050565b5f67ffffffffffffffff8211156200027b576200027a620001dd565b5b6200028682620001cd565b9050602081019050919050565b5f5b83811015620002b257808201518184015260208101905062000295565b5f8484015250505050565b5f620002d3620002cd846200025e565b62000240565b905082815260208101848484011115620002f257620002f1620001c9565b5b620002ff84828562000293565b509392505050565b5f82601f8301126200031e576200031d620001c5565b5b815162000330848260208601620002bd565b91505092915050565b5f819050919050565b6200034d8162000339565b811462000358575f80fd5b50565b5f815190506200036b8162000342565b92915050565b5f805f805f60a086880312156200038d576200038c620001bd565b5b5f86015167ffffffffffffffff811115620003ad57620003ac620001c1565b5b620003bb8882890162000307565b955050602086015167ffffffffffffffff811115620003df57620003de620001c1565b5b620003ed8882890162000307565b945050604062000400888289016200035b565b935050606062000413888289016200035b565b925050608062000426888289016200035b565b9150509295509295909350565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200048257607f821691505b6020821081036200049857620004976200043d565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620004fc7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004bf565b620005088683620004bf565b95508019841693508086168417925050509392505050565b5f819050919050565b5f62000549620005436200053d8462000339565b62000520565b62000339565b9050919050565b5f819050919050565b620005648362000529565b6200057c620005738262000550565b848454620004cb565b825550505050565b5f90565b6200059262000584565b6200059f81848462000559565b505050565b5b81811015620005c657620005ba5f8262000588565b600181019050620005a5565b5050565b601f8211156200061557620005df816200049e565b620005ea84620004b0565b81016020851015620005fa578190505b620006126200060985620004b0565b830182620005a4565b50505b505050565b5f82821c905092915050565b5f620006375f19846008026200061a565b1980831691505092915050565b5f62000651838362000626565b9150826002028217905092915050565b6200066c8262000433565b67ffffffffffffffff811115620006885762000687620001dd565b5b6200069482546200046a565b620006a1828285620005ca565b5f60209050601f831160018114620006d7575f8415620006c2578287015190505b620006ce858262000644565b8655506200073d565b601f198416620006e7866200049e565b5f5b828110156200071057848901518255600182019150602085019450602081019050620006e9565b868310156200073057848901516200072c601f89168262000626565b8355505b6001600288020188555050505b505050505050565b614a9a80620007535f395ff3fe60806040526004361061022f575f3560e01c80636c1925d91161012d578063a642c032116100aa578063d1aa21931161006e578063d1aa2193146107b5578063e985e9c5146107dd578063f2fde38b14610819578063f3fef3a314610841578063fdab3b3f146108695761022f565b8063a642c032146106bd578063b21ed050146106f9578063b88d4fde14610721578063b88da7591461073d578063c87b56dd146107795761022f565b806390c3f38f116100f157806390c3f38f146105ff578063916adad01461062757806395d89b41146106435780639622dc4b1461066d578063a22cb465146106955761022f565b80636c1925d91461053357806370a082311461055b578063715018a61461059757806378a4ab85146105ad5780638da5cb5b146105d55761022f565b806318160ddd116101bb5780634e69d5601161017f5780634e69d5601461043f5780635a88c6fb1461046957806360085198146104a55780636352211e146104cd5780636817c76c146105095761022f565b806318160ddd1461039f57806323b872dd146103c95780633f5ab224146103e557806342842e0e146103fb57806342966c68146104175761022f565b8063081812fc11610202578063081812fc146102eb578063095ea7b314610327578063104b6cb71461034357806312065fe01461036b5780631249c58b146103955761022f565b806301dbcd4a1461023357806301ffc9a71461025b578063047fc9aa1461029757806306fdde03146102c1575b5f80fd5b34801561023e575f80fd5b506102596004803603810190610254919061314a565b610891565b005b348015610266575f80fd5b50610281600480360381019061027c91906131ea565b6108af565b60405161028e919061322f565b60405180910390f35b3480156102a2575f80fd5b506102ab6108c0565b6040516102b89190613260565b60405180910390f35b3480156102cc575f80fd5b506102d56108c6565b6040516102e29190613303565b60405180910390f35b3480156102f6575f80fd5b50610311600480360381019061030c919061334d565b610956565b60405161031e91906133b7565b60405180910390f35b610341600480360381019061033c91906133fa565b6109d0565b005b34801561034e575f80fd5b506103696004803603810190610364919061348d565b610b0f565b005b348015610376575f80fd5b5061037f610ba3565b60405161038c9190613260565b60405180910390f35b61039d610baa565b005b3480156103aa575f80fd5b506103b3610dd2565b6040516103c09190613260565b60405180910390f35b6103e360048036038101906103de91906134d8565b610de7565b005b3480156103f0575f80fd5b506103f96110f5565b005b610415600480360381019061041091906134d8565b6111b5565b005b348015610422575f80fd5b5061043d6004803603810190610438919061334d565b6111d4565b005b34801561044a575f80fd5b506104536111e2565b6040516104609190613303565b60405180910390f35b348015610474575f80fd5b5061048f600480360381019061048a919061334d565b61138a565b60405161049c9190613260565b60405180910390f35b3480156104b0575f80fd5b506104cb60048036038101906104c69190613528565b6113f0565b005b3480156104d8575f80fd5b506104f360048036038101906104ee919061334d565b61145d565b60405161050091906133b7565b60405180910390f35b348015610514575f80fd5b5061051d61146e565b60405161052a9190613260565b60405180910390f35b34801561053e575f80fd5b506105596004803603810190610554919061334d565b611474565b005b348015610566575f80fd5b50610581600480360381019061057c91906135d8565b6115d8565b60405161058e9190613260565b60405180910390f35b3480156105a2575f80fd5b506105ab61168d565b005b3480156105b8575f80fd5b506105d360048036038101906105ce919061314a565b6116a0565b005b3480156105e0575f80fd5b506105e96116be565b6040516105f691906133b7565b60405180910390f35b34801561060a575f80fd5b506106256004803603810190610620919061314a565b6116e6565b005b610641600480360381019061063c919061334d565b611704565b005b34801561064e575f80fd5b506106576118ff565b6040516106649190613303565b60405180910390f35b348015610678575f80fd5b50610693600480360381019061068e9190613603565b61198f565b005b3480156106a0575f80fd5b506106bb60048036038101906106b691906136ab565b6119c1565b005b3480156106c8575f80fd5b506106e360048036038101906106de919061334d565b611ac7565b6040516106f09190613303565b60405180910390f35b348015610704575f80fd5b5061071f600480360381019061071a919061373e565b611ba0565b005b61073b600480360381019061073691906138e4565b611c51565b005b348015610748575f80fd5b50610763600480360381019061075e919061334d565b611cc3565b6040516107709190613260565b60405180910390f35b348015610784575f80fd5b5061079f600480360381019061079a919061334d565b611d1c565b6040516107ac9190613303565b60405180910390f35b3480156107c0575f80fd5b506107db60048036038101906107d69190613964565b611fa5565b005b3480156107e8575f80fd5b5061080360048036038101906107fe919061398f565b611fc9565b604051610810919061322f565b60405180910390f35b348015610824575f80fd5b5061083f600480360381019061083a91906135d8565b612057565b005b34801561084c575f80fd5b50610867600480360381019061086291906133fa565b6120d9565b005b348015610874575f80fd5b5061088f600480360381019061088a9190613964565b6120ef565b005b610899612114565b8181601391826108aa929190613bd1565b505050565b5f6108b982612192565b9050919050565b600b5481565b6060600280546108d590613a04565b80601f016020809104026020016040519081016040528092919081815260200182805461090190613a04565b801561094c5780601f106109235761010080835404028352916020019161094c565b820191905f5260205f20905b81548152906001019060200180831161092f57829003601f168201915b5050505050905090565b5f61096082612223565b610996576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6109da8261145d565b90508073ffffffffffffffffffffffffffffffffffffffff166109fb61227d565b73ffffffffffffffffffffffffffffffffffffffff1614610a5e57610a2781610a2261227d565b611fc9565b610a5d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610b17612114565b5f5b82829050811015610b9e5760155f848484818110610b3a57610b39613c9e565b5b9050602002016020810190610b4f91906135d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f90558080610b9690613cf8565b915050610b19565b505050565b5f47905090565b60165f9054906101000a900460ff161580610c0257505f60155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205411155b8015610c1b5750601660019054906101000a900460ff16155b15610c52576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009543414610c9a576009546040517f3728b83d000000000000000000000000000000000000000000000000000000008152600401610c919190613260565b60405180910390fd5b600b54610ca5610dd2565b10610ce957600b546040517fba666df7000000000000000000000000000000000000000000000000000000008152600401610ce09190613260565b60405180910390fd5b5f610cf2612284565b9050610cff33600161228c565b600160145f8381526020019081526020015f2081905550601660019054906101000a900460ff16158015610d3e575060165f9054906101000a900460ff165b15610d965760155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610d9090613d3f565b91905055505b7f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968853382604051610dc7929190613d66565b60405180910390a150565b5f610ddb612435565b6001545f540303905090565b5f610df182612439565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e58576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80610e63846124fc565b91509150610e798187610e7461227d565b61251f565b610ec557610e8e86610e8961227d565b611fc9565b610ec4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f2a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f378686866001612562565b8015610f41575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81546001019190508190555061100985610fe5888887612568565b7c02000000000000000000000000000000000000000000000000000000001761258f565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603611085575f6001850190505f60045f8381526020019081526020015f205403611083575f548114611082578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110ed86868660016125b9565b505050505050565b6110fd612114565b600b54611108610dd2565b1061114c57600b546040517fba666df70000000000000000000000000000000000000000000000000000000081526004016111439190613260565b60405180910390fd5b5f611155612284565b905061116233600161228c565b600160145f8381526020019081526020015f20819055507f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688533826040516111aa929190613d66565b60405180910390a150565b6111cf83838360405180602001604052805f815250611c51565b505050565b6111df8160016125bf565b50565b6060600b546111ef610dd2565b03611231576040518060400160405280600981526020017f436f6d706c6574656400000000000000000000000000000000000000000000008152509050611387565b601660019054906101000a900460ff1615611283576040518060400160405280600681526020017f5075626c696300000000000000000000000000000000000000000000000000008152509050611387565b60165f9054906101000a900460ff161561134e575f60155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f811115611310576112e9816127fb565b6040516020016112f99190613e11565b604051602081830303815290604052915050611387565b6040518060400160405280600981526020017f416c6c6f776c6973740000000000000000000000000000000000000000000000815250915050611387565b6040518060400160405280600681526020017f436c6f736564000000000000000000000000000000000000000000000000000081525090505b90565b5f8060145f8481526020019081526020015f20549050600481106113da576040517fa607294c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816113e89190613e32565b915050919050565b6113f8612114565b858560109182611409929190613bd1565b50838360115f600281106114205761141f613c9e565b5b01918261142e929190613bd1565b508181601160016002811061144657611445613c9e565b5b019182611454929190613bd1565b50505050505050565b5f61146782612439565b9050919050565b60095481565b61147c612114565b61148581612223565b6114bb576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114c48161145d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611528576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60145f8381526020019081526020015f2054905060048110611577576040517fa607294c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8061158190613cf8565b90508060145f8481526020019081526020015f20819055507f1bed38d346343a6e647b4896f5b7c8162ecdc1539eb2c1678ce61e57515197dc3383836040516115cc93929190613e73565b60405180910390a15050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361163e576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611695612114565b61169e5f6128c5565b565b6116a8612114565b8181600f91826116b9929190613bd1565b505050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116ee612114565b8181600e91826116ff929190613bd1565b505050565b61170d81612223565b611743576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61174c8161145d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117b0576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60145f8381526020019081526020015f20549050600481106117ff576040517fa607294c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a5461180d9190613e32565b341415801561184f575061181f6116be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561189e5780600a546118629190613e32565b6040517f3728b83d0000000000000000000000000000000000000000000000000000000081526004016118959190613260565b60405180910390fd5b806118a890613cf8565b90508060145f8481526020019081526020015f20819055507f1bed38d346343a6e647b4896f5b7c8162ecdc1539eb2c1678ce61e57515197dc3383836040516118f393929190613e73565b60405180910390a15050565b60606003805461190e90613a04565b80601f016020809104026020016040519081016040528092919081815260200182805461193a90613a04565b80156119855780601f1061195c57610100808354040283529160200191611985565b820191905f5260205f20905b81548152906001019060200180831161196857829003601f168201915b5050505050905090565b611997612114565b8383600c91826119a8929190613bd1565b508181600d91826119ba929190613bd1565b5050505050565b8060075f6119cd61227d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a7661227d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611abb919061322f565b60405180910390a35050565b6060611ad282612223565b611b08576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611b1283612988565b905073002becb35de933f4c8155a391679d1a01a54e01762258be08483611b388761145d565b6040518463ffffffff1660e01b8152600401611b5693929190614068565b5f60405180830381865af4158015611b70573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611b989190614142565b915050919050565b611ba8612114565b5f5b84849050811015611c4a57828282818110611bc857611bc7613c9e565b5b9050602002013560155f878785818110611be557611be4613c9e565b5b9050602002016020810190611bfa91906135d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508080611c4290613cf8565b915050611baa565b5050505050565b611c5c848484610de7565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14611cbd57611c8684848484612cb1565b611cbc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b5f611ccd82612223565b611d03576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60145f8381526020019081526020015f20549050919050565b6060611d2782612223565b611d5d576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d6783612988565b90505f73002becb35de933f4c8155a391679d1a01a54e0176353d7fb27858460106011876040015160028110611da057611d9f613c9e565b5b016040518563ffffffff1660e01b8152600401611dc0949392919061421a565b5f60405180830381865af4158015611dda573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611e029190614142565b90505f73002becb35de933f4c8155a391679d1a01a54e017635b03303884600c600d600f6040518563ffffffff1660e01b8152600401611e459493929190614272565b5f60405180830381865af4158015611e5f573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611e879190614142565b90505f73002becb35de933f4c8155a391679d1a01a54e017638ed7eaac601388875f01516040518463ffffffff1660e01b8152600401611ec9939291906142d1565b5f60405180830381865af4158015611ee3573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611f0b919061437b565b905073002becb35de933f4c8155a391679d1a01a54e01763a73dfb91611f2f6108c6565b8887600e8888886040518863ffffffff1660e01b8152600401611f58979695949392919061444c565b5f60405180830381865af4158015611f72573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611f9a9190614142565b945050505050919050565b611fad612114565b8060165f6101000a81548160ff02191690831515021790555050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61205f612114565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c490614553565b60405180910390fd5b6120d6816128c5565b50565b6120e1612114565b6120eb8282612dfc565b5050565b6120f7612114565b80601660016101000a81548160ff02191690831515021790555050565b61211c612eec565b73ffffffffffffffffffffffffffffffffffffffff1661213a6116be565b73ffffffffffffffffffffffffffffffffffffffff1614612190576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612187906145bb565b60405180910390fd5b565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121ec57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061221c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f8161222d612435565b1115801561223b57505f5482105b801561227657505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f33905090565b5f8054905090565b5f805490505f82036122ca576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122d65f848385612562565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550612348836123395f865f612568565b61234285612ef3565b1761258f565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146123e25780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001810190506123a9565b505f820361241c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506124305f8483856125b9565b505050565b5f90565b5f8082905080612447612435565b116124c5575f548110156124c4575f60045f8381526020019081526020015f205490505f7c01000000000000000000000000000000000000000000000000000000008216036124c2575b5f81036124b85760045f836001900393508381526020019081526020015f20549050612491565b80925050506124f7565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e861257e868684612f02565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f6125c983612439565b90505f8190505f806125da866124fc565b915091508415612643576125f681846125f161227d565b61251f565b6126425761260b8361260661227d565b611fc9565b612641576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612650835f886001612562565b801561265a575f82555b600160806001901b0360055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055506126fe836126bb855f88612568565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761258f565b60045f8881526020019081526020015f20819055505f7c020000000000000000000000000000000000000000000000000000000085160361277a575f6001870190505f60045f8381526020019081526020015f205403612778575f548114612777578460045f8381526020019081526020015f20819055505b5b505b855f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127e2835f8860016125b9565b60015f8154809291906001019190505550505050505050565b60605f600161280984612f0a565b0190505f8167ffffffffffffffff811115612827576128266137c0565b5b6040519080825280601f01601f1916602001820160405280156128595781602001600182028036833780820191505090505b5090505f82602001820190505b6001156128ba578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816128af576128ae6145d9565b5b0494505f8503612866575b819350505050919050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61299061305b565b61299861305b565b60145f8481526020019081526020015f2054815f0181815250505f6001846129c09190614606565b90505f5b825f0151811015612a5a5773002becb35de933f4c8155a391679d1a01a54e01763b863bd37836040518263ffffffff1660e01b8152600401612a069190614639565b602060405180830381865af4158015612a21573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a459190614666565b91508080612a5290613cf8565b9150506129c4565b508082602001818152505073002becb35de933f4c8155a391679d1a01a54e01763b863bd37826040518263ffffffff1660e01b8152600401612a9c9190614639565b602060405180830381865af4158015612ab7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612adb9190614666565b9050600281612aea9190614691565b82604001818152505073002becb35de933f4c8155a391679d1a01a54e01763b863bd37826040518263ffffffff1660e01b8152600401612b2a9190614639565b602060405180830381865af4158015612b45573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b699190614666565b90505f8073002becb35de933f4c8155a391679d1a01a54e01763505e570a846040518263ffffffff1660e01b8152600401612ba49190614639565b5f60405180830381865af4158015612bbe573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190612be691906147e6565b91509150815f81518110612bfd57612bfc613c9e565b5b602002602001015184606001515f60038110612c1c57612c1b613c9e565b5b602002018190525081600181518110612c3857612c37613c9e565b5b60200260200101518460600151600160038110612c5857612c57613c9e565b5b602002018190525081600281518110612c7457612c73613c9e565b5b60200260200101518460600151600260038110612c9457612c93613c9e565b5b602002018190525080846080018190525083945050505050919050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cd661227d565b8786866040518563ffffffff1660e01b8152600401612cf894939291906148a4565b6020604051808303815f875af1925050508015612d3357506040513d601f19601f82011682018060405250810190612d309190614902565b60015b612da9573d805f8114612d61576040519150601f19603f3d011682016040523d82523d5f602084013e612d66565b606091505b505f815103612da1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b80471015612e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3690614977565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff1682604051612e64906149c2565b5f6040518083038185875af1925050503d805f8114612e9e576040519150601f19603f3d011682016040523d82523d5f602084013e612ea3565b606091505b5050905080612ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ede90614a46565b60405180910390fd5b505050565b5f33905090565b5f6001821460e11b9050919050565b5f9392505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f66577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f5c57612f5b6145d9565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612fa3576d04ee2d6d415b85acef81000000008381612f9957612f986145d9565b5b0492506020810190505b662386f26fc100008310612fd257662386f26fc100008381612fc857612fc76145d9565b5b0492506010810190505b6305f5e1008310612ffb576305f5e1008381612ff157612ff06145d9565b5b0492506008810190505b6127108310613020576127108381613016576130156145d9565b5b0492506004810190505b606483106130435760648381613039576130386145d9565b5b0492506002810190505b600a8310613052576001810190505b80915050919050565b6040518060a001604052805f81526020015f81526020015f815260200161308061308d565b8152602001606081525090565b60405180606001604052806003905b6130a46130ba565b81526020019060019003908161309c5790505090565b60405180606001604052805f81526020015f81526020015f81525090565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261310a576131096130e9565b5b8235905067ffffffffffffffff811115613127576131266130ed565b5b602083019150836001820283011115613143576131426130f1565b5b9250929050565b5f80602083850312156131605761315f6130e1565b5b5f83013567ffffffffffffffff81111561317d5761317c6130e5565b5b613189858286016130f5565b92509250509250929050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131c981613195565b81146131d3575f80fd5b50565b5f813590506131e4816131c0565b92915050565b5f602082840312156131ff576131fe6130e1565b5b5f61320c848285016131d6565b91505092915050565b5f8115159050919050565b61322981613215565b82525050565b5f6020820190506132425f830184613220565b92915050565b5f819050919050565b61325a81613248565b82525050565b5f6020820190506132735f830184613251565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156132b0578082015181840152602081019050613295565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6132d582613279565b6132df8185613283565b93506132ef818560208601613293565b6132f8816132bb565b840191505092915050565b5f6020820190508181035f83015261331b81846132cb565b905092915050565b61332c81613248565b8114613336575f80fd5b50565b5f8135905061334781613323565b92915050565b5f60208284031215613362576133616130e1565b5b5f61336f84828501613339565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6133a182613378565b9050919050565b6133b181613397565b82525050565b5f6020820190506133ca5f8301846133a8565b92915050565b6133d981613397565b81146133e3575f80fd5b50565b5f813590506133f4816133d0565b92915050565b5f80604083850312156134105761340f6130e1565b5b5f61341d858286016133e6565b925050602061342e85828601613339565b9150509250929050565b5f8083601f84011261344d5761344c6130e9565b5b8235905067ffffffffffffffff81111561346a576134696130ed565b5b602083019150836020820283011115613486576134856130f1565b5b9250929050565b5f80602083850312156134a3576134a26130e1565b5b5f83013567ffffffffffffffff8111156134c0576134bf6130e5565b5b6134cc85828601613438565b92509250509250929050565b5f805f606084860312156134ef576134ee6130e1565b5b5f6134fc868287016133e6565b935050602061350d868287016133e6565b925050604061351e86828701613339565b9150509250925092565b5f805f805f8060608789031215613542576135416130e1565b5b5f87013567ffffffffffffffff81111561355f5761355e6130e5565b5b61356b89828a016130f5565b9650965050602087013567ffffffffffffffff81111561358e5761358d6130e5565b5b61359a89828a016130f5565b9450945050604087013567ffffffffffffffff8111156135bd576135bc6130e5565b5b6135c989828a016130f5565b92509250509295509295509295565b5f602082840312156135ed576135ec6130e1565b5b5f6135fa848285016133e6565b91505092915050565b5f805f806040858703121561361b5761361a6130e1565b5b5f85013567ffffffffffffffff811115613638576136376130e5565b5b613644878288016130f5565b9450945050602085013567ffffffffffffffff811115613667576136666130e5565b5b613673878288016130f5565b925092505092959194509250565b61368a81613215565b8114613694575f80fd5b50565b5f813590506136a581613681565b92915050565b5f80604083850312156136c1576136c06130e1565b5b5f6136ce858286016133e6565b92505060206136df85828601613697565b9150509250929050565b5f8083601f8401126136fe576136fd6130e9565b5b8235905067ffffffffffffffff81111561371b5761371a6130ed565b5b602083019150836020820283011115613737576137366130f1565b5b9250929050565b5f805f8060408587031215613756576137556130e1565b5b5f85013567ffffffffffffffff811115613773576137726130e5565b5b61377f87828801613438565b9450945050602085013567ffffffffffffffff8111156137a2576137a16130e5565b5b6137ae878288016136e9565b925092505092959194509250565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6137f6826132bb565b810181811067ffffffffffffffff82111715613815576138146137c0565b5b80604052505050565b5f6138276130d8565b905061383382826137ed565b919050565b5f67ffffffffffffffff821115613852576138516137c0565b5b61385b826132bb565b9050602081019050919050565b828183375f83830152505050565b5f61388861388384613838565b61381e565b9050828152602081018484840111156138a4576138a36137bc565b5b6138af848285613868565b509392505050565b5f82601f8301126138cb576138ca6130e9565b5b81356138db848260208601613876565b91505092915050565b5f805f80608085870312156138fc576138fb6130e1565b5b5f613909878288016133e6565b945050602061391a878288016133e6565b935050604061392b87828801613339565b925050606085013567ffffffffffffffff81111561394c5761394b6130e5565b5b613958878288016138b7565b91505092959194509250565b5f60208284031215613979576139786130e1565b5b5f61398684828501613697565b91505092915050565b5f80604083850312156139a5576139a46130e1565b5b5f6139b2858286016133e6565b92505060206139c3858286016133e6565b9150509250929050565b5f82905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613a1b57607f821691505b602082108103613a2e57613a2d6139d7565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613a907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a55565b613a9a8683613a55565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613ad5613ad0613acb84613248565b613ab2565b613248565b9050919050565b5f819050919050565b613aee83613abb565b613b02613afa82613adc565b848454613a61565b825550505050565b5f90565b613b16613b0a565b613b21818484613ae5565b505050565b5b81811015613b4457613b395f82613b0e565b600181019050613b27565b5050565b601f821115613b8957613b5a81613a34565b613b6384613a46565b81016020851015613b72578190505b613b86613b7e85613a46565b830182613b26565b50505b505050565b5f82821c905092915050565b5f613ba95f1984600802613b8e565b1980831691505092915050565b5f613bc18383613b9a565b9150826002028217905092915050565b613bdb83836139cd565b67ffffffffffffffff811115613bf457613bf36137c0565b5b613bfe8254613a04565b613c09828285613b48565b5f601f831160018114613c36575f8415613c24578287013590505b613c2e8582613bb6565b865550613c95565b601f198416613c4486613a34565b5f5b82811015613c6b57848901358255600182019150602085019450602081019050613c46565b86831015613c885784890135613c84601f891682613b9a565b8355505b6001600288020188555050505b50505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613d0282613248565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613d3457613d33613ccb565b5b600182019050919050565b5f613d4982613248565b91505f8203613d5b57613d5a613ccb565b5b600182039050919050565b5f604082019050613d795f8301856133a8565b613d866020830184613251565b9392505050565b5f81905092915050565b7f456c696769626c653a20000000000000000000000000000000000000000000005f82015250565b5f613dcb600a83613d8d565b9150613dd682613d97565b600a82019050919050565b5f613deb82613279565b613df58185613d8d565b9350613e05818560208601613293565b80840191505092915050565b5f613e1b82613dbf565b9150613e278284613de1565b915081905092915050565b5f613e3c82613248565b9150613e4783613248565b9250828202613e5581613248565b91508282048414831517613e6c57613e6b613ccb565b5b5092915050565b5f606082019050613e865f8301866133a8565b613e936020830185613251565b613ea06040830184613251565b949350505050565b613eb181613248565b82525050565b613ec081613248565b82525050565b5f60039050919050565b5f81905092915050565b5f819050919050565b606082015f820151613ef75f850182613eb7565b506020820151613f0a6020850182613eb7565b506040820151613f1d6040850182613eb7565b50505050565b5f613f2e8383613ee3565b60608301905092915050565b5f602082019050919050565b613f4f81613ec6565b613f598184613ed0565b9250613f6482613eda565b805f5b83811015613f94578151613f7b8782613f23565b9650613f8683613f3a565b925050600181019050613f67565b505050505050565b5f82825260208201905092915050565b5f613fb682613279565b613fc08185613f9c565b9350613fd0818560208601613293565b613fd9816132bb565b840191505092915050565b5f6101a083015f830151613ffa5f860182613eb7565b50602083015161400d6020860182613eb7565b5060408301516140206040860182613eb7565b5060608301516140336060860182613f46565b50608083015184820361018086015261404c8282613fac565b9150508091505092915050565b61406281613397565b82525050565b5f60608201905061407b5f830186613ea8565b818103602083015261408d8185613fe4565b905061409c6040830184614059565b949350505050565b5f67ffffffffffffffff8211156140be576140bd6137c0565b5b6140c7826132bb565b9050602081019050919050565b5f6140e66140e1846140a4565b61381e565b905082815260208101848484011115614102576141016137bc565b5b61410d848285613293565b509392505050565b5f82601f830112614129576141286130e9565b5b81516141398482602086016140d4565b91505092915050565b5f60208284031215614157576141566130e1565b5b5f82015167ffffffffffffffff811115614174576141736130e5565b5b61418084828501614115565b91505092915050565b5f82825260208201905092915050565b5f81546141a581613a04565b6141af8186614189565b9450600182165f81146141c957600181146141df57614211565b60ff198316865281151560200286019350614211565b6141e885613a34565b5f5b83811015614209578154818901526001820191506020810190506141ea565b808801955050505b50505092915050565b5f60808201905061422d5f830187613ea8565b818103602083015261423f8186613fe4565b905081810360408301526142538185614199565b905081810360608301526142678184614199565b905095945050505050565b5f6080820190508181035f83015261428a8187613fe4565b9050818103602083015261429e8186614199565b905081810360408301526142b28185614199565b905081810360608301526142c68184614199565b905095945050505050565b5f6060820190508181035f8301526142e98186614199565b90506142f86020830185613ea8565b6143056040830184613ea8565b949350505050565b5f61431f61431a84613838565b61381e565b90508281526020810184848401111561433b5761433a6137bc565b5b614346848285613293565b509392505050565b5f82601f830112614362576143616130e9565b5b815161437284826020860161430d565b91505092915050565b5f602082840312156143905761438f6130e1565b5b5f82015167ffffffffffffffff8111156143ad576143ac6130e5565b5b6143b98482850161434e565b91505092915050565b5f6143cc82613279565b6143d68185614189565b93506143e6818560208601613293565b6143ef816132bb565b840191505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f61441e826143fa565b6144288185614404565b9350614438818560208601613293565b614441816132bb565b840191505092915050565b5f60e0820190508181035f830152614464818a6143c2565b90506144736020830189613ea8565b81810360408301526144858188613fe4565b905081810360608301526144998187614199565b905081810360808301526144ad81866143c2565b905081810360a08301526144c181856143c2565b905081810360c08301526144d58184614414565b905098975050505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61453d602683613283565b9150614548826144e3565b604082019050919050565b5f6020820190508181035f83015261456a81614531565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6145a5602083613283565b91506145b082614571565b602082019050919050565b5f6020820190508181035f8301526145d281614599565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61461082613248565b915061461b83613248565b925082820190508082111561463357614632613ccb565b5b92915050565b5f60208201905061464c5f830184613ea8565b92915050565b5f8151905061466081613323565b92915050565b5f6020828403121561467b5761467a6130e1565b5b5f61468884828501614652565b91505092915050565b5f61469b82613248565b91506146a683613248565b9250826146b6576146b56145d9565b5b828206905092915050565b5f67ffffffffffffffff8211156146db576146da6137c0565b5b602082029050602081019050919050565b5f80fd5b5f60608284031215614705576147046146ec565b5b61470f606061381e565b90505f61471e84828501614652565b5f83015250602061473184828501614652565b602083015250604061474584828501614652565b60408301525092915050565b5f61476361475e846146c1565b61381e565b90508083825260208201905060608402830185811115614786576147856130f1565b5b835b818110156147af578061479b88826146f0565b845260208401935050606081019050614788565b5050509392505050565b5f82601f8301126147cd576147cc6130e9565b5b81516147dd848260208601614751565b91505092915050565b5f80604083850312156147fc576147fb6130e1565b5b5f83015167ffffffffffffffff811115614819576148186130e5565b5b614825858286016147b9565b925050602083015167ffffffffffffffff811115614846576148456130e5565b5b61485285828601614115565b9150509250929050565b5f82825260208201905092915050565b5f614876826143fa565b614880818561485c565b9350614890818560208601613293565b614899816132bb565b840191505092915050565b5f6080820190506148b75f8301876133a8565b6148c460208301866133a8565b6148d16040830185613251565b81810360608301526148e3818461486c565b905095945050505050565b5f815190506148fc816131c0565b92915050565b5f60208284031215614917576149166130e1565b5b5f614924848285016148ee565b91505092915050565b7f416464726573733a20696e73756666696369656e742062616c616e63650000005f82015250565b5f614961601d83613283565b915061496c8261492d565b602082019050919050565b5f6020820190508181035f83015261498e81614955565b9050919050565b5f81905092915050565b50565b5f6149ad5f83614995565b91506149b88261499f565b5f82019050919050565b5f6149cc826149a2565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c20725f8201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b5f614a30603a83613283565b9150614a3b826149d6565b604082019050919050565b5f6020820190508181035f830152614a5d81614a24565b905091905056fea26469706673582212204bc6a2c3f4d4c4922fd36877150d86bcb21f53d19f63d50a3553b8af6dfcf0d864736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000009416c7465726e61746500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007414c5445524e3800000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061022f575f3560e01c80636c1925d91161012d578063a642c032116100aa578063d1aa21931161006e578063d1aa2193146107b5578063e985e9c5146107dd578063f2fde38b14610819578063f3fef3a314610841578063fdab3b3f146108695761022f565b8063a642c032146106bd578063b21ed050146106f9578063b88d4fde14610721578063b88da7591461073d578063c87b56dd146107795761022f565b806390c3f38f116100f157806390c3f38f146105ff578063916adad01461062757806395d89b41146106435780639622dc4b1461066d578063a22cb465146106955761022f565b80636c1925d91461053357806370a082311461055b578063715018a61461059757806378a4ab85146105ad5780638da5cb5b146105d55761022f565b806318160ddd116101bb5780634e69d5601161017f5780634e69d5601461043f5780635a88c6fb1461046957806360085198146104a55780636352211e146104cd5780636817c76c146105095761022f565b806318160ddd1461039f57806323b872dd146103c95780633f5ab224146103e557806342842e0e146103fb57806342966c68146104175761022f565b8063081812fc11610202578063081812fc146102eb578063095ea7b314610327578063104b6cb71461034357806312065fe01461036b5780631249c58b146103955761022f565b806301dbcd4a1461023357806301ffc9a71461025b578063047fc9aa1461029757806306fdde03146102c1575b5f80fd5b34801561023e575f80fd5b506102596004803603810190610254919061314a565b610891565b005b348015610266575f80fd5b50610281600480360381019061027c91906131ea565b6108af565b60405161028e919061322f565b60405180910390f35b3480156102a2575f80fd5b506102ab6108c0565b6040516102b89190613260565b60405180910390f35b3480156102cc575f80fd5b506102d56108c6565b6040516102e29190613303565b60405180910390f35b3480156102f6575f80fd5b50610311600480360381019061030c919061334d565b610956565b60405161031e91906133b7565b60405180910390f35b610341600480360381019061033c91906133fa565b6109d0565b005b34801561034e575f80fd5b506103696004803603810190610364919061348d565b610b0f565b005b348015610376575f80fd5b5061037f610ba3565b60405161038c9190613260565b60405180910390f35b61039d610baa565b005b3480156103aa575f80fd5b506103b3610dd2565b6040516103c09190613260565b60405180910390f35b6103e360048036038101906103de91906134d8565b610de7565b005b3480156103f0575f80fd5b506103f96110f5565b005b610415600480360381019061041091906134d8565b6111b5565b005b348015610422575f80fd5b5061043d6004803603810190610438919061334d565b6111d4565b005b34801561044a575f80fd5b506104536111e2565b6040516104609190613303565b60405180910390f35b348015610474575f80fd5b5061048f600480360381019061048a919061334d565b61138a565b60405161049c9190613260565b60405180910390f35b3480156104b0575f80fd5b506104cb60048036038101906104c69190613528565b6113f0565b005b3480156104d8575f80fd5b506104f360048036038101906104ee919061334d565b61145d565b60405161050091906133b7565b60405180910390f35b348015610514575f80fd5b5061051d61146e565b60405161052a9190613260565b60405180910390f35b34801561053e575f80fd5b506105596004803603810190610554919061334d565b611474565b005b348015610566575f80fd5b50610581600480360381019061057c91906135d8565b6115d8565b60405161058e9190613260565b60405180910390f35b3480156105a2575f80fd5b506105ab61168d565b005b3480156105b8575f80fd5b506105d360048036038101906105ce919061314a565b6116a0565b005b3480156105e0575f80fd5b506105e96116be565b6040516105f691906133b7565b60405180910390f35b34801561060a575f80fd5b506106256004803603810190610620919061314a565b6116e6565b005b610641600480360381019061063c919061334d565b611704565b005b34801561064e575f80fd5b506106576118ff565b6040516106649190613303565b60405180910390f35b348015610678575f80fd5b50610693600480360381019061068e9190613603565b61198f565b005b3480156106a0575f80fd5b506106bb60048036038101906106b691906136ab565b6119c1565b005b3480156106c8575f80fd5b506106e360048036038101906106de919061334d565b611ac7565b6040516106f09190613303565b60405180910390f35b348015610704575f80fd5b5061071f600480360381019061071a919061373e565b611ba0565b005b61073b600480360381019061073691906138e4565b611c51565b005b348015610748575f80fd5b50610763600480360381019061075e919061334d565b611cc3565b6040516107709190613260565b60405180910390f35b348015610784575f80fd5b5061079f600480360381019061079a919061334d565b611d1c565b6040516107ac9190613303565b60405180910390f35b3480156107c0575f80fd5b506107db60048036038101906107d69190613964565b611fa5565b005b3480156107e8575f80fd5b5061080360048036038101906107fe919061398f565b611fc9565b604051610810919061322f565b60405180910390f35b348015610824575f80fd5b5061083f600480360381019061083a91906135d8565b612057565b005b34801561084c575f80fd5b50610867600480360381019061086291906133fa565b6120d9565b005b348015610874575f80fd5b5061088f600480360381019061088a9190613964565b6120ef565b005b610899612114565b8181601391826108aa929190613bd1565b505050565b5f6108b982612192565b9050919050565b600b5481565b6060600280546108d590613a04565b80601f016020809104026020016040519081016040528092919081815260200182805461090190613a04565b801561094c5780601f106109235761010080835404028352916020019161094c565b820191905f5260205f20905b81548152906001019060200180831161092f57829003601f168201915b5050505050905090565b5f61096082612223565b610996576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6109da8261145d565b90508073ffffffffffffffffffffffffffffffffffffffff166109fb61227d565b73ffffffffffffffffffffffffffffffffffffffff1614610a5e57610a2781610a2261227d565b611fc9565b610a5d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610b17612114565b5f5b82829050811015610b9e5760155f848484818110610b3a57610b39613c9e565b5b9050602002016020810190610b4f91906135d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f90558080610b9690613cf8565b915050610b19565b505050565b5f47905090565b60165f9054906101000a900460ff161580610c0257505f60155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205411155b8015610c1b5750601660019054906101000a900460ff16155b15610c52576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009543414610c9a576009546040517f3728b83d000000000000000000000000000000000000000000000000000000008152600401610c919190613260565b60405180910390fd5b600b54610ca5610dd2565b10610ce957600b546040517fba666df7000000000000000000000000000000000000000000000000000000008152600401610ce09190613260565b60405180910390fd5b5f610cf2612284565b9050610cff33600161228c565b600160145f8381526020019081526020015f2081905550601660019054906101000a900460ff16158015610d3e575060165f9054906101000a900460ff165b15610d965760155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610d9090613d3f565b91905055505b7f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968853382604051610dc7929190613d66565b60405180910390a150565b5f610ddb612435565b6001545f540303905090565b5f610df182612439565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e58576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80610e63846124fc565b91509150610e798187610e7461227d565b61251f565b610ec557610e8e86610e8961227d565b611fc9565b610ec4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f2a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f378686866001612562565b8015610f41575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81546001019190508190555061100985610fe5888887612568565b7c02000000000000000000000000000000000000000000000000000000001761258f565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603611085575f6001850190505f60045f8381526020019081526020015f205403611083575f548114611082578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110ed86868660016125b9565b505050505050565b6110fd612114565b600b54611108610dd2565b1061114c57600b546040517fba666df70000000000000000000000000000000000000000000000000000000081526004016111439190613260565b60405180910390fd5b5f611155612284565b905061116233600161228c565b600160145f8381526020019081526020015f20819055507f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688533826040516111aa929190613d66565b60405180910390a150565b6111cf83838360405180602001604052805f815250611c51565b505050565b6111df8160016125bf565b50565b6060600b546111ef610dd2565b03611231576040518060400160405280600981526020017f436f6d706c6574656400000000000000000000000000000000000000000000008152509050611387565b601660019054906101000a900460ff1615611283576040518060400160405280600681526020017f5075626c696300000000000000000000000000000000000000000000000000008152509050611387565b60165f9054906101000a900460ff161561134e575f60155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f811115611310576112e9816127fb565b6040516020016112f99190613e11565b604051602081830303815290604052915050611387565b6040518060400160405280600981526020017f416c6c6f776c6973740000000000000000000000000000000000000000000000815250915050611387565b6040518060400160405280600681526020017f436c6f736564000000000000000000000000000000000000000000000000000081525090505b90565b5f8060145f8481526020019081526020015f20549050600481106113da576040517fa607294c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816113e89190613e32565b915050919050565b6113f8612114565b858560109182611409929190613bd1565b50838360115f600281106114205761141f613c9e565b5b01918261142e929190613bd1565b508181601160016002811061144657611445613c9e565b5b019182611454929190613bd1565b50505050505050565b5f61146782612439565b9050919050565b60095481565b61147c612114565b61148581612223565b6114bb576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114c48161145d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611528576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60145f8381526020019081526020015f2054905060048110611577576040517fa607294c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8061158190613cf8565b90508060145f8481526020019081526020015f20819055507f1bed38d346343a6e647b4896f5b7c8162ecdc1539eb2c1678ce61e57515197dc3383836040516115cc93929190613e73565b60405180910390a15050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361163e576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611695612114565b61169e5f6128c5565b565b6116a8612114565b8181600f91826116b9929190613bd1565b505050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116ee612114565b8181600e91826116ff929190613bd1565b505050565b61170d81612223565b611743576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61174c8161145d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117b0576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60145f8381526020019081526020015f20549050600481106117ff576040517fa607294c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a5461180d9190613e32565b341415801561184f575061181f6116be565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561189e5780600a546118629190613e32565b6040517f3728b83d0000000000000000000000000000000000000000000000000000000081526004016118959190613260565b60405180910390fd5b806118a890613cf8565b90508060145f8481526020019081526020015f20819055507f1bed38d346343a6e647b4896f5b7c8162ecdc1539eb2c1678ce61e57515197dc3383836040516118f393929190613e73565b60405180910390a15050565b60606003805461190e90613a04565b80601f016020809104026020016040519081016040528092919081815260200182805461193a90613a04565b80156119855780601f1061195c57610100808354040283529160200191611985565b820191905f5260205f20905b81548152906001019060200180831161196857829003601f168201915b5050505050905090565b611997612114565b8383600c91826119a8929190613bd1565b508181600d91826119ba929190613bd1565b5050505050565b8060075f6119cd61227d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a7661227d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611abb919061322f565b60405180910390a35050565b6060611ad282612223565b611b08576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611b1283612988565b905073002becb35de933f4c8155a391679d1a01a54e01762258be08483611b388761145d565b6040518463ffffffff1660e01b8152600401611b5693929190614068565b5f60405180830381865af4158015611b70573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611b989190614142565b915050919050565b611ba8612114565b5f5b84849050811015611c4a57828282818110611bc857611bc7613c9e565b5b9050602002013560155f878785818110611be557611be4613c9e565b5b9050602002016020810190611bfa91906135d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508080611c4290613cf8565b915050611baa565b5050505050565b611c5c848484610de7565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14611cbd57611c8684848484612cb1565b611cbc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b5f611ccd82612223565b611d03576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60145f8381526020019081526020015f20549050919050565b6060611d2782612223565b611d5d576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611d6783612988565b90505f73002becb35de933f4c8155a391679d1a01a54e0176353d7fb27858460106011876040015160028110611da057611d9f613c9e565b5b016040518563ffffffff1660e01b8152600401611dc0949392919061421a565b5f60405180830381865af4158015611dda573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611e029190614142565b90505f73002becb35de933f4c8155a391679d1a01a54e017635b03303884600c600d600f6040518563ffffffff1660e01b8152600401611e459493929190614272565b5f60405180830381865af4158015611e5f573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611e879190614142565b90505f73002becb35de933f4c8155a391679d1a01a54e017638ed7eaac601388875f01516040518463ffffffff1660e01b8152600401611ec9939291906142d1565b5f60405180830381865af4158015611ee3573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611f0b919061437b565b905073002becb35de933f4c8155a391679d1a01a54e01763a73dfb91611f2f6108c6565b8887600e8888886040518863ffffffff1660e01b8152600401611f58979695949392919061444c565b5f60405180830381865af4158015611f72573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190611f9a9190614142565b945050505050919050565b611fad612114565b8060165f6101000a81548160ff02191690831515021790555050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61205f612114565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c490614553565b60405180910390fd5b6120d6816128c5565b50565b6120e1612114565b6120eb8282612dfc565b5050565b6120f7612114565b80601660016101000a81548160ff02191690831515021790555050565b61211c612eec565b73ffffffffffffffffffffffffffffffffffffffff1661213a6116be565b73ffffffffffffffffffffffffffffffffffffffff1614612190576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612187906145bb565b60405180910390fd5b565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121ec57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061221c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f8161222d612435565b1115801561223b57505f5482105b801561227657505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f33905090565b5f8054905090565b5f805490505f82036122ca576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122d65f848385612562565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550612348836123395f865f612568565b61234285612ef3565b1761258f565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146123e25780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001810190506123a9565b505f820361241c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506124305f8483856125b9565b505050565b5f90565b5f8082905080612447612435565b116124c5575f548110156124c4575f60045f8381526020019081526020015f205490505f7c01000000000000000000000000000000000000000000000000000000008216036124c2575b5f81036124b85760045f836001900393508381526020019081526020015f20549050612491565b80925050506124f7565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e861257e868684612f02565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f6125c983612439565b90505f8190505f806125da866124fc565b915091508415612643576125f681846125f161227d565b61251f565b6126425761260b8361260661227d565b611fc9565b612641576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612650835f886001612562565b801561265a575f82555b600160806001901b0360055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055506126fe836126bb855f88612568565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761258f565b60045f8881526020019081526020015f20819055505f7c020000000000000000000000000000000000000000000000000000000085160361277a575f6001870190505f60045f8381526020019081526020015f205403612778575f548114612777578460045f8381526020019081526020015f20819055505b5b505b855f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127e2835f8860016125b9565b60015f8154809291906001019190505550505050505050565b60605f600161280984612f0a565b0190505f8167ffffffffffffffff811115612827576128266137c0565b5b6040519080825280601f01601f1916602001820160405280156128595781602001600182028036833780820191505090505b5090505f82602001820190505b6001156128ba578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816128af576128ae6145d9565b5b0494505f8503612866575b819350505050919050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61299061305b565b61299861305b565b60145f8481526020019081526020015f2054815f0181815250505f6001846129c09190614606565b90505f5b825f0151811015612a5a5773002becb35de933f4c8155a391679d1a01a54e01763b863bd37836040518263ffffffff1660e01b8152600401612a069190614639565b602060405180830381865af4158015612a21573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a459190614666565b91508080612a5290613cf8565b9150506129c4565b508082602001818152505073002becb35de933f4c8155a391679d1a01a54e01763b863bd37826040518263ffffffff1660e01b8152600401612a9c9190614639565b602060405180830381865af4158015612ab7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612adb9190614666565b9050600281612aea9190614691565b82604001818152505073002becb35de933f4c8155a391679d1a01a54e01763b863bd37826040518263ffffffff1660e01b8152600401612b2a9190614639565b602060405180830381865af4158015612b45573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b699190614666565b90505f8073002becb35de933f4c8155a391679d1a01a54e01763505e570a846040518263ffffffff1660e01b8152600401612ba49190614639565b5f60405180830381865af4158015612bbe573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f82011682018060405250810190612be691906147e6565b91509150815f81518110612bfd57612bfc613c9e565b5b602002602001015184606001515f60038110612c1c57612c1b613c9e565b5b602002018190525081600181518110612c3857612c37613c9e565b5b60200260200101518460600151600160038110612c5857612c57613c9e565b5b602002018190525081600281518110612c7457612c73613c9e565b5b60200260200101518460600151600260038110612c9457612c93613c9e565b5b602002018190525080846080018190525083945050505050919050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cd661227d565b8786866040518563ffffffff1660e01b8152600401612cf894939291906148a4565b6020604051808303815f875af1925050508015612d3357506040513d601f19601f82011682018060405250810190612d309190614902565b60015b612da9573d805f8114612d61576040519150601f19603f3d011682016040523d82523d5f602084013e612d66565b606091505b505f815103612da1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b80471015612e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3690614977565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff1682604051612e64906149c2565b5f6040518083038185875af1925050503d805f8114612e9e576040519150601f19603f3d011682016040523d82523d5f602084013e612ea3565b606091505b5050905080612ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ede90614a46565b60405180910390fd5b505050565b5f33905090565b5f6001821460e11b9050919050565b5f9392505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f66577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f5c57612f5b6145d9565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612fa3576d04ee2d6d415b85acef81000000008381612f9957612f986145d9565b5b0492506020810190505b662386f26fc100008310612fd257662386f26fc100008381612fc857612fc76145d9565b5b0492506010810190505b6305f5e1008310612ffb576305f5e1008381612ff157612ff06145d9565b5b0492506008810190505b6127108310613020576127108381613016576130156145d9565b5b0492506004810190505b606483106130435760648381613039576130386145d9565b5b0492506002810190505b600a8310613052576001810190505b80915050919050565b6040518060a001604052805f81526020015f81526020015f815260200161308061308d565b8152602001606081525090565b60405180606001604052806003905b6130a46130ba565b81526020019060019003908161309c5790505090565b60405180606001604052805f81526020015f81526020015f81525090565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261310a576131096130e9565b5b8235905067ffffffffffffffff811115613127576131266130ed565b5b602083019150836001820283011115613143576131426130f1565b5b9250929050565b5f80602083850312156131605761315f6130e1565b5b5f83013567ffffffffffffffff81111561317d5761317c6130e5565b5b613189858286016130f5565b92509250509250929050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131c981613195565b81146131d3575f80fd5b50565b5f813590506131e4816131c0565b92915050565b5f602082840312156131ff576131fe6130e1565b5b5f61320c848285016131d6565b91505092915050565b5f8115159050919050565b61322981613215565b82525050565b5f6020820190506132425f830184613220565b92915050565b5f819050919050565b61325a81613248565b82525050565b5f6020820190506132735f830184613251565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156132b0578082015181840152602081019050613295565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6132d582613279565b6132df8185613283565b93506132ef818560208601613293565b6132f8816132bb565b840191505092915050565b5f6020820190508181035f83015261331b81846132cb565b905092915050565b61332c81613248565b8114613336575f80fd5b50565b5f8135905061334781613323565b92915050565b5f60208284031215613362576133616130e1565b5b5f61336f84828501613339565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6133a182613378565b9050919050565b6133b181613397565b82525050565b5f6020820190506133ca5f8301846133a8565b92915050565b6133d981613397565b81146133e3575f80fd5b50565b5f813590506133f4816133d0565b92915050565b5f80604083850312156134105761340f6130e1565b5b5f61341d858286016133e6565b925050602061342e85828601613339565b9150509250929050565b5f8083601f84011261344d5761344c6130e9565b5b8235905067ffffffffffffffff81111561346a576134696130ed565b5b602083019150836020820283011115613486576134856130f1565b5b9250929050565b5f80602083850312156134a3576134a26130e1565b5b5f83013567ffffffffffffffff8111156134c0576134bf6130e5565b5b6134cc85828601613438565b92509250509250929050565b5f805f606084860312156134ef576134ee6130e1565b5b5f6134fc868287016133e6565b935050602061350d868287016133e6565b925050604061351e86828701613339565b9150509250925092565b5f805f805f8060608789031215613542576135416130e1565b5b5f87013567ffffffffffffffff81111561355f5761355e6130e5565b5b61356b89828a016130f5565b9650965050602087013567ffffffffffffffff81111561358e5761358d6130e5565b5b61359a89828a016130f5565b9450945050604087013567ffffffffffffffff8111156135bd576135bc6130e5565b5b6135c989828a016130f5565b92509250509295509295509295565b5f602082840312156135ed576135ec6130e1565b5b5f6135fa848285016133e6565b91505092915050565b5f805f806040858703121561361b5761361a6130e1565b5b5f85013567ffffffffffffffff811115613638576136376130e5565b5b613644878288016130f5565b9450945050602085013567ffffffffffffffff811115613667576136666130e5565b5b613673878288016130f5565b925092505092959194509250565b61368a81613215565b8114613694575f80fd5b50565b5f813590506136a581613681565b92915050565b5f80604083850312156136c1576136c06130e1565b5b5f6136ce858286016133e6565b92505060206136df85828601613697565b9150509250929050565b5f8083601f8401126136fe576136fd6130e9565b5b8235905067ffffffffffffffff81111561371b5761371a6130ed565b5b602083019150836020820283011115613737576137366130f1565b5b9250929050565b5f805f8060408587031215613756576137556130e1565b5b5f85013567ffffffffffffffff811115613773576137726130e5565b5b61377f87828801613438565b9450945050602085013567ffffffffffffffff8111156137a2576137a16130e5565b5b6137ae878288016136e9565b925092505092959194509250565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6137f6826132bb565b810181811067ffffffffffffffff82111715613815576138146137c0565b5b80604052505050565b5f6138276130d8565b905061383382826137ed565b919050565b5f67ffffffffffffffff821115613852576138516137c0565b5b61385b826132bb565b9050602081019050919050565b828183375f83830152505050565b5f61388861388384613838565b61381e565b9050828152602081018484840111156138a4576138a36137bc565b5b6138af848285613868565b509392505050565b5f82601f8301126138cb576138ca6130e9565b5b81356138db848260208601613876565b91505092915050565b5f805f80608085870312156138fc576138fb6130e1565b5b5f613909878288016133e6565b945050602061391a878288016133e6565b935050604061392b87828801613339565b925050606085013567ffffffffffffffff81111561394c5761394b6130e5565b5b613958878288016138b7565b91505092959194509250565b5f60208284031215613979576139786130e1565b5b5f61398684828501613697565b91505092915050565b5f80604083850312156139a5576139a46130e1565b5b5f6139b2858286016133e6565b92505060206139c3858286016133e6565b9150509250929050565b5f82905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613a1b57607f821691505b602082108103613a2e57613a2d6139d7565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613a907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a55565b613a9a8683613a55565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613ad5613ad0613acb84613248565b613ab2565b613248565b9050919050565b5f819050919050565b613aee83613abb565b613b02613afa82613adc565b848454613a61565b825550505050565b5f90565b613b16613b0a565b613b21818484613ae5565b505050565b5b81811015613b4457613b395f82613b0e565b600181019050613b27565b5050565b601f821115613b8957613b5a81613a34565b613b6384613a46565b81016020851015613b72578190505b613b86613b7e85613a46565b830182613b26565b50505b505050565b5f82821c905092915050565b5f613ba95f1984600802613b8e565b1980831691505092915050565b5f613bc18383613b9a565b9150826002028217905092915050565b613bdb83836139cd565b67ffffffffffffffff811115613bf457613bf36137c0565b5b613bfe8254613a04565b613c09828285613b48565b5f601f831160018114613c36575f8415613c24578287013590505b613c2e8582613bb6565b865550613c95565b601f198416613c4486613a34565b5f5b82811015613c6b57848901358255600182019150602085019450602081019050613c46565b86831015613c885784890135613c84601f891682613b9a565b8355505b6001600288020188555050505b50505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613d0282613248565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613d3457613d33613ccb565b5b600182019050919050565b5f613d4982613248565b91505f8203613d5b57613d5a613ccb565b5b600182039050919050565b5f604082019050613d795f8301856133a8565b613d866020830184613251565b9392505050565b5f81905092915050565b7f456c696769626c653a20000000000000000000000000000000000000000000005f82015250565b5f613dcb600a83613d8d565b9150613dd682613d97565b600a82019050919050565b5f613deb82613279565b613df58185613d8d565b9350613e05818560208601613293565b80840191505092915050565b5f613e1b82613dbf565b9150613e278284613de1565b915081905092915050565b5f613e3c82613248565b9150613e4783613248565b9250828202613e5581613248565b91508282048414831517613e6c57613e6b613ccb565b5b5092915050565b5f606082019050613e865f8301866133a8565b613e936020830185613251565b613ea06040830184613251565b949350505050565b613eb181613248565b82525050565b613ec081613248565b82525050565b5f60039050919050565b5f81905092915050565b5f819050919050565b606082015f820151613ef75f850182613eb7565b506020820151613f0a6020850182613eb7565b506040820151613f1d6040850182613eb7565b50505050565b5f613f2e8383613ee3565b60608301905092915050565b5f602082019050919050565b613f4f81613ec6565b613f598184613ed0565b9250613f6482613eda565b805f5b83811015613f94578151613f7b8782613f23565b9650613f8683613f3a565b925050600181019050613f67565b505050505050565b5f82825260208201905092915050565b5f613fb682613279565b613fc08185613f9c565b9350613fd0818560208601613293565b613fd9816132bb565b840191505092915050565b5f6101a083015f830151613ffa5f860182613eb7565b50602083015161400d6020860182613eb7565b5060408301516140206040860182613eb7565b5060608301516140336060860182613f46565b50608083015184820361018086015261404c8282613fac565b9150508091505092915050565b61406281613397565b82525050565b5f60608201905061407b5f830186613ea8565b818103602083015261408d8185613fe4565b905061409c6040830184614059565b949350505050565b5f67ffffffffffffffff8211156140be576140bd6137c0565b5b6140c7826132bb565b9050602081019050919050565b5f6140e66140e1846140a4565b61381e565b905082815260208101848484011115614102576141016137bc565b5b61410d848285613293565b509392505050565b5f82601f830112614129576141286130e9565b5b81516141398482602086016140d4565b91505092915050565b5f60208284031215614157576141566130e1565b5b5f82015167ffffffffffffffff811115614174576141736130e5565b5b61418084828501614115565b91505092915050565b5f82825260208201905092915050565b5f81546141a581613a04565b6141af8186614189565b9450600182165f81146141c957600181146141df57614211565b60ff198316865281151560200286019350614211565b6141e885613a34565b5f5b83811015614209578154818901526001820191506020810190506141ea565b808801955050505b50505092915050565b5f60808201905061422d5f830187613ea8565b818103602083015261423f8186613fe4565b905081810360408301526142538185614199565b905081810360608301526142678184614199565b905095945050505050565b5f6080820190508181035f83015261428a8187613fe4565b9050818103602083015261429e8186614199565b905081810360408301526142b28185614199565b905081810360608301526142c68184614199565b905095945050505050565b5f6060820190508181035f8301526142e98186614199565b90506142f86020830185613ea8565b6143056040830184613ea8565b949350505050565b5f61431f61431a84613838565b61381e565b90508281526020810184848401111561433b5761433a6137bc565b5b614346848285613293565b509392505050565b5f82601f830112614362576143616130e9565b5b815161437284826020860161430d565b91505092915050565b5f602082840312156143905761438f6130e1565b5b5f82015167ffffffffffffffff8111156143ad576143ac6130e5565b5b6143b98482850161434e565b91505092915050565b5f6143cc82613279565b6143d68185614189565b93506143e6818560208601613293565b6143ef816132bb565b840191505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f61441e826143fa565b6144288185614404565b9350614438818560208601613293565b614441816132bb565b840191505092915050565b5f60e0820190508181035f830152614464818a6143c2565b90506144736020830189613ea8565b81810360408301526144858188613fe4565b905081810360608301526144998187614199565b905081810360808301526144ad81866143c2565b905081810360a08301526144c181856143c2565b905081810360c08301526144d58184614414565b905098975050505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61453d602683613283565b9150614548826144e3565b604082019050919050565b5f6020820190508181035f83015261456a81614531565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6145a5602083613283565b91506145b082614571565b602082019050919050565b5f6020820190508181035f8301526145d281614599565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61461082613248565b915061461b83613248565b925082820190508082111561463357614632613ccb565b5b92915050565b5f60208201905061464c5f830184613ea8565b92915050565b5f8151905061466081613323565b92915050565b5f6020828403121561467b5761467a6130e1565b5b5f61468884828501614652565b91505092915050565b5f61469b82613248565b91506146a683613248565b9250826146b6576146b56145d9565b5b828206905092915050565b5f67ffffffffffffffff8211156146db576146da6137c0565b5b602082029050602081019050919050565b5f80fd5b5f60608284031215614705576147046146ec565b5b61470f606061381e565b90505f61471e84828501614652565b5f83015250602061473184828501614652565b602083015250604061474584828501614652565b60408301525092915050565b5f61476361475e846146c1565b61381e565b90508083825260208201905060608402830185811115614786576147856130f1565b5b835b818110156147af578061479b88826146f0565b845260208401935050606081019050614788565b5050509392505050565b5f82601f8301126147cd576147cc6130e9565b5b81516147dd848260208601614751565b91505092915050565b5f80604083850312156147fc576147fb6130e1565b5b5f83015167ffffffffffffffff811115614819576148186130e5565b5b614825858286016147b9565b925050602083015167ffffffffffffffff811115614846576148456130e5565b5b61485285828601614115565b9150509250929050565b5f82825260208201905092915050565b5f614876826143fa565b614880818561485c565b9350614890818560208601613293565b614899816132bb565b840191505092915050565b5f6080820190506148b75f8301876133a8565b6148c460208301866133a8565b6148d16040830185613251565b81810360608301526148e3818461486c565b905095945050505050565b5f815190506148fc816131c0565b92915050565b5f60208284031215614917576149166130e1565b5b5f614924848285016148ee565b91505092915050565b7f416464726573733a20696e73756666696369656e742062616c616e63650000005f82015250565b5f614961601d83613283565b915061496c8261492d565b602082019050919050565b5f6020820190508181035f83015261498e81614955565b9050919050565b5f81905092915050565b50565b5f6149ad5f83614995565b91506149b88261499f565b5f82019050919050565b5f6149cc826149a2565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c20725f8201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b5f614a30603a83613283565b9150614a3b826149d6565b604082019050919050565b5f6020820190508181035f830152614a5d81614a24565b905091905056fea26469706673582212204bc6a2c3f4d4c4922fd36877150d86bcb21f53d19f63d50a3553b8af6dfcf0d864736f6c63430008140033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000009416c7465726e61746500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007414c5445524e3800000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Alternate
Arg [1] : _symbol (string): ALTERN8
Arg [2] : _mintPrice (uint256): 500000000000000000
Arg [3] : _modPrice (uint256): 100000000000000000
Arg [4] : _supply (uint256): 200

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000000000000000000000000000006f05b59d3b20000
Arg [3] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 416c7465726e6174650000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 414c5445524e3800000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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