ETH Price: $2,677.55 (-0.73%)

X0X (X0X)
 

Overview

TokenID

991

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
X0X

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 12 : X0X.sol
// X X 0 X X
//  X 0 0 X
// X X 0 X X
// Kim Asendorf, 2024
// 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/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

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

	uint256 public supply;

	string private htmlPrefix;
	string private htmlSuffix;
	string private script;
	string private imageURI;
	string private externalURL;
	string private description;

	mapping(uint256 => bytes32) private hashes;

	struct Traits {
		uint256 image;
		uint256 noise0;
		uint256 noise1;
		uint256 mode;
		uint256 color;
	}
	mapping(uint256 => Traits) private traits;
	mapping(uint256 => string) private imageStrings;
	mapping(uint256 => string) private noiseStrings;
	mapping(uint256 => string) private modeStrings;
	mapping(uint256 => string) private colorStrings;

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

	event Mint(address minter, uint256 tokenId, uint256 quantity);

	error NotAllowed();
	error NotExists();
	error NotOwner();
	error NoSupply(uint256 total);

	constructor(address _owner, string memory _name, string memory _symbol, uint256 _supply) ERC721A(_name, _symbol) Ownable(_owner) {
		supply = _supply;
	}

	function mint(address target, uint256 quantity) external returns(uint256) {
		if ((!isAllowlist || !(allowlist[msg.sender] >= quantity))) {
			revert NotAllowed();
		}
		if (totalSupply() + quantity > supply) {
			revert NoSupply({ total: supply });
		}

		uint256 tokenId = _nextTokenId();
		for (uint256 i = 0; i < quantity; i++) {
			hashes[tokenId + i] = generateUniqueHash(target, tokenId + i);
    }

		_mint(target, quantity);
		allowlist[msg.sender] -= quantity;

		emit Mint(target, tokenId, quantity);
		return tokenId;
	}

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

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

	function setImageURI(string memory _imageURI) public onlyOwner {
		imageURI = _imageURI;
	}

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

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

	function setImageStrings(string[] calldata _imageStrings) external onlyOwner {
		for (uint256 i = 0; i < _imageStrings.length; i++) {
			imageStrings[i] = _imageStrings[i];
    }
	}

	function setNoiseStrings(string[] calldata _noiseStrings) external onlyOwner {
		for (uint256 i = 0; i < _noiseStrings.length; i++) {
			noiseStrings[i] = _noiseStrings[i];
    }
	}

	function setModeStrings(string[] calldata _modeStrings) external onlyOwner {
		for (uint256 i = 0; i < _modeStrings.length; i++) {
			modeStrings[i] = _modeStrings[i];
    }
	}

	function setColorStrings(string[] calldata _colorStrings) external onlyOwner {
		for (uint256 i = 0; i < _colorStrings.length; i++) {
			colorStrings[i] = _colorStrings[i];
    }
	}

	function setTraits(uint256 tokenId, uint256[] calldata images, uint256[] calldata noises0, uint256[] calldata noises1,	uint256[] calldata modes, uint256[] calldata colors) external onlyOwner {
		for (uint256 i = 0; i < images.length; i++) {
			traits[tokenId + i] = Traits(images[i], noises0[i], noises1[i], modes[i], colors[i]);
    }
	}

	function buildHTML(uint256 tokenId) internal view returns (bytes memory) {
		return abi.encodePacked(
			htmlPrefix,
			'let hash="', Strings.toHexString(uint256(hashes[tokenId])), '";', script,
			htmlSuffix
		);
	}

	function getHTML(uint256 tokenId) public view returns (string memory) {
		if (!_exists(tokenId)) {
			revert NotExists();
		}
		bytes memory html = buildHTML(tokenId);
		return string(html);
	}

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

		bytes memory html = buildHTML(tokenId);

		bytes memory attributes = abi.encodePacked(
			'[',
				'{"trait_type":"Image","value":"', imageStrings[traits[tokenId].image], '"},',
				'{"trait_type":"Noise","value":"', noiseStrings[traits[tokenId].noise0], '/', noiseStrings[traits[tokenId].noise1], '"},',
				'{"trait_type":"Mode","value":"', modeStrings[traits[tokenId].mode], '"},',
				'{"trait_type":"Color","value":"', colorStrings[traits[tokenId].color], '"}',
			']'
		);

		bytes memory dataURI = abi.encodePacked(
			'{',
				'"name":"', name(), tokenId.toString(), '",',
				'"description":"', description, '",',
				'"image":"', imageURI, tokenId.toString(), '.png",',
				'"external_url":"', externalURL, '?hash=', Strings.toHexString(uint256(hashes[tokenId])), '",',
				'"animation_url":"data:text/html;base64,', Base64.encode(html), '",'
				'"attributes":', attributes,
			'}'
		);

		return string(
			abi.encodePacked(
				"data:application/json;base64,",
				Base64.encode(dataURI)
			)
		);
	}

	function generateUniqueHash(address sender, uint256 tokenId) internal view returns (bytes32) {
		return keccak256(abi.encodePacked(sender, tokenId, block.timestamp));
	}

	function getHash(uint256 tokenId) external view returns (bytes32) {
		if (!_exists(tokenId)) {
			revert NotExists();
		}
		return hashes[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 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 getAllowance(address _address) external view returns (uint256) {
		return allowlist[_address];
	}

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

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

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 3 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) 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 FailedInnerCall();
        }
    }
}

File 4 of 12 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.2) (utils/Base64.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 */
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, 0x20)
            let dataPtr := data
            let endPtr := add(data, mload(data))

            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and
            // set it to zero to make sure no dirty bytes are read in that section.
            let afterPtr := add(endPtr, 0x20)
            let afterCache := mload(afterPtr)
            mstore(afterPtr, 0x00)

            // Run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

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

                // To write each character, shift the 3 byte (24 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.
                // Use this as an index into the lookup table, mload an entire word
                // so the desired character is in the least significant byte, and
                // mstore8 this least significant byte into the result and continue.

                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
            }

            // Reset the value that was cached
            mstore(afterPtr, afterCache)

            // 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 5 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 6 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the 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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                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.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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.

            uint256 twos = denominator & (0 - denominator);
            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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 7 of 12 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @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 8 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(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) {
        uint256 localValue = value;
        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] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        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 bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 9 of 12 : 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 10 of 12 : 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 11 of 12 : 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 12 of 12 : 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
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_supply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"FailedInnerCall","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"StringsInsufficientHexLength","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"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Mint","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":"address","name":"_address","type":"address"}],"name":"getAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHTML","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"_colorStrings","type":"string[]"}],"name":"setColorStrings","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":"_imageStrings","type":"string[]"}],"name":"setImageStrings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageURI","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllowlist","type":"bool"}],"name":"setIsAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_modeStrings","type":"string[]"}],"name":"setModeStrings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_noiseStrings","type":"string[]"}],"name":"setNoiseStrings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_script","type":"string"}],"name":"setScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256[]","name":"images","type":"uint256[]"},{"internalType":"uint256[]","name":"noises0","type":"uint256[]"},{"internalType":"uint256[]","name":"noises1","type":"uint256[]"},{"internalType":"uint256[]","name":"modes","type":"uint256[]"},{"internalType":"uint256[]","name":"colors","type":"uint256[]"}],"name":"setTraits","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"}]

60806040526000601760006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b50604051620054dd380380620054dd833981810160405281019062000052919062000427565b838383816002908162000066919062000718565b50806003908162000078919062000718565b50620000896200012960201b60201c565b6000819055505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001065760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000fd919062000810565b60405180910390fd5b62000117816200012e60201b60201c565b5080600981905550505050506200082d565b600090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002358262000208565b9050919050565b620002478162000228565b81146200025357600080fd5b50565b60008151905062000267816200023c565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002c28262000277565b810181811067ffffffffffffffff82111715620002e457620002e362000288565b5b80604052505050565b6000620002f9620001f4565b9050620003078282620002b7565b919050565b600067ffffffffffffffff8211156200032a576200032962000288565b5b620003358262000277565b9050602081019050919050565b60005b838110156200036257808201518184015260208101905062000345565b60008484015250505050565b6000620003856200037f846200030c565b620002ed565b905082815260208101848484011115620003a457620003a362000272565b5b620003b184828562000342565b509392505050565b600082601f830112620003d157620003d06200026d565b5b8151620003e38482602086016200036e565b91505092915050565b6000819050919050565b6200040181620003ec565b81146200040d57600080fd5b50565b6000815190506200042181620003f6565b92915050565b60008060008060808587031215620004445762000443620001fe565b5b6000620004548782880162000256565b945050602085015167ffffffffffffffff81111562000478576200047762000203565b5b6200048687828801620003b9565b935050604085015167ffffffffffffffff811115620004aa57620004a962000203565b5b620004b887828801620003b9565b9250506060620004cb8782880162000410565b91505092959194509250565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200052a57607f821691505b60208210810362000540576200053f620004e2565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005aa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200056b565b620005b686836200056b565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620005f9620005f3620005ed84620003ec565b620005ce565b620003ec565b9050919050565b6000819050919050565b6200061583620005d8565b6200062d620006248262000600565b84845462000578565b825550505050565b600090565b6200064462000635565b620006518184846200060a565b505050565b5b8181101562000679576200066d6000826200063a565b60018101905062000657565b5050565b601f821115620006c857620006928162000546565b6200069d846200055b565b81016020851015620006ad578190505b620006c5620006bc856200055b565b83018262000656565b50505b505050565b600082821c905092915050565b6000620006ed60001984600802620006cd565b1980831691505092915050565b6000620007088383620006da565b9150826002028217905092915050565b6200072382620004d7565b67ffffffffffffffff8111156200073f576200073e62000288565b5b6200074b825462000511565b620007588282856200067d565b600060209050601f8311600181146200079057600084156200077b578287015190505b620007878582620006fa565b865550620007f7565b601f198416620007a08662000546565b60005b82811015620007ca57848901518255600182019150602085019450602081019050620007a3565b86831015620007ea5784890151620007e6601f891682620006da565b8355505b6001600288020188555050505b505050505050565b6200080a8162000228565b82525050565b6000602082019050620008276000830184620007ff565b92915050565b614ca0806200083d6000396000f3fe6080604052600436106102255760003560e01c80636b2fafa911610123578063a22cb465116100ab578063d5523a801161006f578063d5523a80146107d9578063e985e9c514610802578063eb5a662e1461083f578063f2fde38b1461087c578063f3fef3a3146108a557610225565b8063a22cb46514610705578063b21ed0501461072e578063b88d4fde14610757578063c87b56dd14610773578063d1aa2193146107b057610225565b80638da5cb5b116100f25780638da5cb5b1461063457806390c3f38f1461065f57806395d89b41146106885780639622dc4b146106b357806399cf2f36146106dc57610225565b80636b2fafa91461057a57806370a08231146105b7578063715018a6146105f457806378a4ab851461060b57610225565b806312065fe0116101b157806340c10f191161017557806340c10f191461049257806342842e0e146104cf57806342966c68146104eb5780634c9496b4146105145780636352211e1461053d57610225565b806312065fe0146103ce578063164b34e6146103f957806318160ddd146104225780631ef61b801461044d57806323b872dd1461047657610225565b806306fdde03116101f857806306fdde03146102e4578063081812fc1461030f578063095ea7b31461034c578063102581d214610368578063104b6cb7146103a557610225565b806301dbcd4a1461022a57806301ffc9a71461025357806304787ca214610290578063047fc9aa146102b9575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190612ebd565b6108ce565b005b34801561025f57600080fd5b5061027a60048036038101906102759190612f62565b6108ec565b6040516102879190612faa565b60405180910390f35b34801561029c57600080fd5b506102b760048036038101906102b29190613106565b6108fe565b005b3480156102c557600080fd5b506102ce610919565b6040516102db9190613168565b60405180910390f35b3480156102f057600080fd5b506102f961091f565b6040516103069190613202565b60405180910390f35b34801561031b57600080fd5b5061033660048036038101906103319190613250565b6109b1565b60405161034391906132be565b60405180910390f35b61036660048036038101906103619190613305565b610a30565b005b34801561037457600080fd5b5061038f600480360381019061038a9190613250565b610b74565b60405161039c9190613202565b60405180910390f35b3480156103b157600080fd5b506103cc60048036038101906103c7919061339b565b610bcb565b005b3480156103da57600080fd5b506103e3610c63565b6040516103f09190613168565b60405180910390f35b34801561040557600080fd5b50610420600480360381019061041b919061343e565b610c6b565b005b34801561042e57600080fd5b50610437610cdf565b6040516104449190613168565b60405180910390f35b34801561045957600080fd5b50610474600480360381019061046f919061343e565b610cf6565b005b610490600480360381019061048b919061348b565b610d6a565b005b34801561049e57600080fd5b506104b960048036038101906104b49190613305565b61108c565b6040516104c69190613168565b60405180910390f35b6104e960048036038101906104e4919061348b565b611283565b005b3480156104f757600080fd5b50610512600480360381019061050d9190613250565b6112a3565b005b34801561052057600080fd5b5061053b6004803603810190610536919061343e565b6112b1565b005b34801561054957600080fd5b50610564600480360381019061055f9190613250565b611325565b60405161057191906132be565b60405180910390f35b34801561058657600080fd5b506105a1600480360381019061059c9190613250565b611337565b6040516105ae91906134f7565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d99190613512565b611393565b6040516105eb9190613168565b60405180910390f35b34801561060057600080fd5b5061060961144b565b005b34801561061757600080fd5b50610632600480360381019061062d9190612ebd565b61145f565b005b34801561064057600080fd5b5061064961147d565b60405161065691906132be565b60405180910390f35b34801561066b57600080fd5b5061068660048036038101906106819190612ebd565b6114a7565b005b34801561069457600080fd5b5061069d6114c5565b6040516106aa9190613202565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d5919061353f565b611557565b005b3480156106e857600080fd5b5061070360048036038101906106fe9190613616565b611589565b005b34801561071157600080fd5b5061072c60048036038101906107279190613773565b6116b7565b005b34801561073a57600080fd5b50610755600480360381019061075091906137b3565b6117c2565b005b610771600480360381019061076c91906138d5565b611876565b005b34801561077f57600080fd5b5061079a60048036038101906107959190613250565b6118e9565b6040516107a79190613202565b60405180910390f35b3480156107bc57600080fd5b506107d760048036038101906107d29190613958565b611ad1565b005b3480156107e557600080fd5b5061080060048036038101906107fb919061343e565b611af6565b005b34801561080e57600080fd5b5061082960048036038101906108249190613985565b611b6a565b6040516108369190612faa565b60405180910390f35b34801561084b57600080fd5b5061086660048036038101906108619190613512565b611bfe565b6040516108739190613168565b60405180910390f35b34801561088857600080fd5b506108a3600480360381019061089e9190613512565b611c47565b005b3480156108b157600080fd5b506108cc60048036038101906108c79190613305565b611ccd565b005b6108d6611ce3565b8181600e91826108e7929190613bdc565b505050565b60006108f782611d6a565b9050919050565b610906611ce3565b80600d90816109159190613cac565b5050565b60095481565b60606002805461092e906139ff565b80601f016020809104026020016040519081016040528092919081815260200182805461095a906139ff565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b5050505050905090565b60006109bc82611dfc565b6109f2576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3b82611325565b90508073ffffffffffffffffffffffffffffffffffffffff16610a5c611e5b565b73ffffffffffffffffffffffffffffffffffffffff1614610abf57610a8881610a83611e5b565b611b6a565b610abe576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6060610b7f82611dfc565b610bb5576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610bc083611e63565b905080915050919050565b610bd3611ce3565b60005b82829050811015610c5e5760166000848484818110610bf857610bf7613d7e565b5b9050602002016020810190610c0d9190613512565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090558080610c5690613ddc565b915050610bd6565b505050565b600047905090565b610c73611ce3565b60005b82829050811015610cda57828282818110610c9457610c93613d7e565b5b9050602002810190610ca69190613e33565b601360008481526020019081526020016000209182610cc6929190613bdc565b508080610cd290613ddc565b915050610c76565b505050565b6000610ce9611eb3565b6001546000540303905090565b610cfe611ce3565b60005b82829050811015610d6557828282818110610d1f57610d1e613d7e565b5b9050602002810190610d319190613e33565b601460008481526020019081526020016000209182610d51929190613bdc565b508080610d5d90613ddc565b915050610d01565b505050565b6000610d7582611eb8565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ddc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610de884611f84565b91509150610dfe8187610df9611e5b565b611fab565b610e4a57610e1386610e0e611e5b565b611b6a565b610e49576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610eb0576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ebd8686866001611fef565b8015610ec857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f9685610f72888887611ff5565b7c02000000000000000000000000000000000000000000000000000000001761201d565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361101c576000600185019050600060046000838152602001908152602001600020540361101a576000548114611019578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110848686866001612048565b505050505050565b6000601760009054906101000a900460ff1615806110ea575081601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015155b15611121576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009548261112d610cdf565b6111379190613e96565b111561117c576009546040517fba666df70000000000000000000000000000000000000000000000000000000081526004016111739190613168565b60405180910390fd5b600061118661204e565b905060005b838110156111dd576111a88582846111a39190613e96565b612057565b6010600083856111b89190613e96565b81526020019081526020016000208190555080806111d590613ddc565b91505061118b565b506111e8848461208c565b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112379190613eca565b925050819055507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f84828560405161127193929190613efe565b60405180910390a18091505092915050565b61129e83838360405180602001604052806000815250611876565b505050565b6112ae816001612247565b50565b6112b9611ce3565b60005b82829050811015611320578282828181106112da576112d9613d7e565b5b90506020028101906112ec9190613e33565b60156000848152602001908152602001600020918261130c929190613bdc565b50808061131890613ddc565b9150506112bc565b505050565b600061133082611eb8565b9050919050565b600061134282611dfc565b611378576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60106000838152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113fa576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611453611ce3565b61145d6000612499565b565b611467611ce3565b8181600c9182611478929190613bdc565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114af611ce3565b8181600f91826114c0929190613bdc565b505050565b6060600380546114d4906139ff565b80601f0160208091040260200160405190810160405280929190818152602001828054611500906139ff565b801561154d5780601f106115225761010080835404028352916020019161154d565b820191906000526020600020905b81548152906001019060200180831161153057829003601f168201915b5050505050905090565b61155f611ce3565b8383600a9182611570929190613bdc565b508181600b9182611582929190613bdc565b5050505050565b611591611ce3565b60005b8a8a90508110156116a9576040518060a001604052808c8c848181106115bd576115bc613d7e565b5b9050602002013581526020018a8a848181106115dc576115db613d7e565b5b9050602002013581526020018888848181106115fb576115fa613d7e565b5b90506020020135815260200186868481811061161a57611619613d7e565b5b90506020020135815260200184848481811061163957611638613d7e565b5b9050602002013581525060116000838f6116539190613e96565b8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505080806116a190613ddc565b915050611594565b505050505050505050505050565b80600760006116c4611e5b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611771611e5b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117b69190612faa565b60405180910390a35050565b6117ca611ce3565b60005b8484905081101561186f578282828181106117eb576117ea613d7e565b5b905060200201356016600087878581811061180957611808613d7e565b5b905060200201602081019061181e9190613512565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061186790613ddc565b9150506117cd565b5050505050565b611881848484610d6a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146118e3576118ac8484848461255f565b6118e2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606118f482611dfc565b61192a576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061193583611e63565b9050600060126000601160008781526020019081526020016000206000015481526020019081526020016000206013600060116000888152602001908152602001600020600101548152602001908152602001600020601360006011600089815260200190815260200160002060020154815260200190815260200160002060146000601160008a815260200190815260200160002060030154815260200190815260200160002060156000601160008b8152602001908152602001600020600401548152602001908152602001600020604051602001611a1a95949392919061426f565b60405160208183030381529060405290506000611a3561091f565b611a3e866126af565b600f600d611a4b896126af565b600e611a6c601060008d81526020019081526020016000205460001c61277d565b611a758a61279b565b89604051602001611a8e99989796959493929190614715565b6040516020818303038152906040529050611aa88161279b565b604051602001611ab8919061486f565b6040516020818303038152906040529350505050919050565b611ad9611ce3565b80601760006101000a81548160ff02191690831515021790555050565b611afe611ce3565b60005b82829050811015611b6557828282818110611b1f57611b1e613d7e565b5b9050602002810190611b319190613e33565b601260008481526020019081526020016000209182611b51929190613bdc565b508080611b5d90613ddc565b915050611b01565b505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c4f611ce3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611cc15760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611cb891906132be565b60405180910390fd5b611cca81612499565b50565b611cd5611ce3565b611cdf828261290d565b5050565b611ceb6129fa565b73ffffffffffffffffffffffffffffffffffffffff16611d0961147d565b73ffffffffffffffffffffffffffffffffffffffff1614611d6857611d2c6129fa565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611d5f91906132be565b60405180910390fd5b565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dc557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611df55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081611e07611eb3565b11158015611e16575060005482105b8015611e54575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6060600a611e86601060008581526020019081526020016000205460001c61277d565b600c600b604051602001611e9d9493929190614929565b6040516020818303038152906040529050919050565b600090565b60008082905080611ec7611eb3565b11611f4d57600054811015611f4c5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f4a575b60008103611f40576004600083600190039350838152602001908152602001600020549050611f16565b8092505050611f7f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861200c868684612a02565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008054905090565b600082824260405160200161206e939291906149e6565b60405160208183030381529060405280519060200120905092915050565b600080549050600082036120cc576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120d96000848385611fef565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612150836121416000866000611ff5565b61214a85612a0b565b1761201d565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146121f157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506121b6565b506000820361222c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122426000848385612048565b505050565b600061225283611eb8565b9050600081905060008061226586611f84565b9150915084156122ce57612281818461227c611e5b565b611fab565b6122cd5761229683612291611e5b565b611b6a565b6122cc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6122dc836000886001611fef565b80156122e757600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061238f8361234c85600088611ff5565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761201d565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036124155760006001870190506000600460008381526020019081526020016000205403612413576000548114612412578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461247f836000886001612048565b600160008154809291906001019190505550505050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612585611e5b565b8786866040518563ffffffff1660e01b81526004016125a79493929190614a6d565b6020604051808303816000875af19250505080156125e357506040513d601f19601f820116820180604052508101906125e09190614ace565b60015b61265c573d8060008114612613576040519150601f19603f3d011682016040523d82523d6000602084013e612618565b606091505b506000815103612654576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600060016126be84612a1b565b01905060008167ffffffffffffffff8111156126dd576126dc612fdb565b5b6040519080825280601f01601f19166020018201604052801561270f5781602001600182028036833780820191505090505b509050600082602001820190505b600115612772578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161276657612765614afb565b5b0494506000850361271d575b819350505050919050565b606061279482600161278e85612b6e565b01612bfe565b9050919050565b606060008251036127bd57604051806020016040528060008152509050612908565b6000604051806060016040528060408152602001614c2b60409139905060006003600285516127ec9190613e96565b6127f69190614b2a565b60046128029190614b5b565b67ffffffffffffffff81111561281b5761281a612fdb565b5b6040519080825280601f01601f19166020018201604052801561284d5781602001600182028036833780820191505090505b50905060018201602082018586518701602081018051600082525b828410156128c3576003840193508351603f8160121c168701518653600186019550603f81600c1c168701518653600186019550603f8160061c168701518653600186019550603f8116870151865360018601955050612868565b80825260038a5106600181146128e057600281146128f3576128fb565b603d6001870353603d60028703536128fb565b603d60018703535b5050505050505080925050505b919050565b8047101561295257306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161294991906132be565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161297890614bc3565b60006040518083038185875af1925050503d80600081146129b5576040519150601f19603f3d011682016040523d82523d6000602084013e6129ba565b606091505b50509050806129f5576040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612a79577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612a6f57612a6e614afb565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612ab6576d04ee2d6d415b85acef81000000008381612aac57612aab614afb565b5b0492506020810190505b662386f26fc100008310612ae557662386f26fc100008381612adb57612ada614afb565b5b0492506010810190505b6305f5e1008310612b0e576305f5e1008381612b0457612b03614afb565b5b0492506008810190505b6127108310612b33576127108381612b2957612b28614afb565b5b0492506004810190505b60648310612b565760648381612b4c57612b4b614afb565b5b0492506002810190505b600a8310612b65576001810190505b80915050919050565b600080600090506000608084901c1115612b9057608083901c92506010810190505b6000604084901c1115612bab57604083901c92506008810190505b6000602084901c1115612bc657602083901c92506004810190505b6000601084901c1115612be157601083901c92506002810190505b6000600884901c1115612bf5576001810190505b80915050919050565b6060600083905060006002846002612c169190614b5b565b612c209190613e96565b67ffffffffffffffff811115612c3957612c38612fdb565b5b6040519080825280601f01601f191660200182016040528015612c6b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612ca357612ca2613d7e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612d0757612d06613d7e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001856002612d479190614b5b565b612d519190613e96565b90505b6001811115612df1577f3031323334353637383961626364656600000000000000000000000000000000600f841660108110612d9357612d92613d7e565b5b1a60f81b828281518110612daa57612da9613d7e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c925080612dea90614bd8565b9050612d54565b5060008214612e395784846040517fe22e27eb000000000000000000000000000000000000000000000000000000008152600401612e30929190614c01565b60405180910390fd5b809250505092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112612e7d57612e7c612e58565b5b8235905067ffffffffffffffff811115612e9a57612e99612e5d565b5b602083019150836001820283011115612eb657612eb5612e62565b5b9250929050565b60008060208385031215612ed457612ed3612e4e565b5b600083013567ffffffffffffffff811115612ef257612ef1612e53565b5b612efe85828601612e67565b92509250509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f3f81612f0a565b8114612f4a57600080fd5b50565b600081359050612f5c81612f36565b92915050565b600060208284031215612f7857612f77612e4e565b5b6000612f8684828501612f4d565b91505092915050565b60008115159050919050565b612fa481612f8f565b82525050565b6000602082019050612fbf6000830184612f9b565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61301382612fca565b810181811067ffffffffffffffff8211171561303257613031612fdb565b5b80604052505050565b6000613045612e44565b9050613051828261300a565b919050565b600067ffffffffffffffff82111561307157613070612fdb565b5b61307a82612fca565b9050602081019050919050565b82818337600083830152505050565b60006130a96130a484613056565b61303b565b9050828152602081018484840111156130c5576130c4612fc5565b5b6130d0848285613087565b509392505050565b600082601f8301126130ed576130ec612e58565b5b81356130fd848260208601613096565b91505092915050565b60006020828403121561311c5761311b612e4e565b5b600082013567ffffffffffffffff81111561313a57613139612e53565b5b613146848285016130d8565b91505092915050565b6000819050919050565b6131628161314f565b82525050565b600060208201905061317d6000830184613159565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131bd5780820151818401526020810190506131a2565b60008484015250505050565b60006131d482613183565b6131de818561318e565b93506131ee81856020860161319f565b6131f781612fca565b840191505092915050565b6000602082019050818103600083015261321c81846131c9565b905092915050565b61322d8161314f565b811461323857600080fd5b50565b60008135905061324a81613224565b92915050565b60006020828403121561326657613265612e4e565b5b60006132748482850161323b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132a88261327d565b9050919050565b6132b88161329d565b82525050565b60006020820190506132d360008301846132af565b92915050565b6132e28161329d565b81146132ed57600080fd5b50565b6000813590506132ff816132d9565b92915050565b6000806040838503121561331c5761331b612e4e565b5b600061332a858286016132f0565b925050602061333b8582860161323b565b9150509250929050565b60008083601f84011261335b5761335a612e58565b5b8235905067ffffffffffffffff81111561337857613377612e5d565b5b60208301915083602082028301111561339457613393612e62565b5b9250929050565b600080602083850312156133b2576133b1612e4e565b5b600083013567ffffffffffffffff8111156133d0576133cf612e53565b5b6133dc85828601613345565b92509250509250929050565b60008083601f8401126133fe576133fd612e58565b5b8235905067ffffffffffffffff81111561341b5761341a612e5d565b5b60208301915083602082028301111561343757613436612e62565b5b9250929050565b6000806020838503121561345557613454612e4e565b5b600083013567ffffffffffffffff81111561347357613472612e53565b5b61347f858286016133e8565b92509250509250929050565b6000806000606084860312156134a4576134a3612e4e565b5b60006134b2868287016132f0565b93505060206134c3868287016132f0565b92505060406134d48682870161323b565b9150509250925092565b6000819050919050565b6134f1816134de565b82525050565b600060208201905061350c60008301846134e8565b92915050565b60006020828403121561352857613527612e4e565b5b6000613536848285016132f0565b91505092915050565b6000806000806040858703121561355957613558612e4e565b5b600085013567ffffffffffffffff81111561357757613576612e53565b5b61358387828801612e67565b9450945050602085013567ffffffffffffffff8111156135a6576135a5612e53565b5b6135b287828801612e67565b925092505092959194509250565b60008083601f8401126135d6576135d5612e58565b5b8235905067ffffffffffffffff8111156135f3576135f2612e5d565b5b60208301915083602082028301111561360f5761360e612e62565b5b9250929050565b600080600080600080600080600080600060c08c8e03121561363b5761363a612e4e565b5b60006136498e828f0161323b565b9b505060208c013567ffffffffffffffff81111561366a57613669612e53565b5b6136768e828f016135c0565b9a509a505060408c013567ffffffffffffffff81111561369957613698612e53565b5b6136a58e828f016135c0565b985098505060608c013567ffffffffffffffff8111156136c8576136c7612e53565b5b6136d48e828f016135c0565b965096505060808c013567ffffffffffffffff8111156136f7576136f6612e53565b5b6137038e828f016135c0565b945094505060a08c013567ffffffffffffffff81111561372657613725612e53565b5b6137328e828f016135c0565b92509250509295989b509295989b9093969950565b61375081612f8f565b811461375b57600080fd5b50565b60008135905061376d81613747565b92915050565b6000806040838503121561378a57613789612e4e565b5b6000613798858286016132f0565b92505060206137a98582860161375e565b9150509250929050565b600080600080604085870312156137cd576137cc612e4e565b5b600085013567ffffffffffffffff8111156137eb576137ea612e53565b5b6137f787828801613345565b9450945050602085013567ffffffffffffffff81111561381a57613819612e53565b5b613826878288016135c0565b925092505092959194509250565b600067ffffffffffffffff82111561384f5761384e612fdb565b5b61385882612fca565b9050602081019050919050565b600061387861387384613834565b61303b565b90508281526020810184848401111561389457613893612fc5565b5b61389f848285613087565b509392505050565b600082601f8301126138bc576138bb612e58565b5b81356138cc848260208601613865565b91505092915050565b600080600080608085870312156138ef576138ee612e4e565b5b60006138fd878288016132f0565b945050602061390e878288016132f0565b935050604061391f8782880161323b565b925050606085013567ffffffffffffffff8111156139405761393f612e53565b5b61394c878288016138a7565b91505092959194509250565b60006020828403121561396e5761396d612e4e565b5b600061397c8482850161375e565b91505092915050565b6000806040838503121561399c5761399b612e4e565b5b60006139aa858286016132f0565b92505060206139bb858286016132f0565b9150509250929050565b600082905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a1757607f821691505b602082108103613a2a57613a296139d0565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a55565b613a9c8683613a55565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613ad9613ad4613acf8461314f565b613ab4565b61314f565b9050919050565b6000819050919050565b613af383613abe565b613b07613aff82613ae0565b848454613a62565b825550505050565b600090565b613b1c613b0f565b613b27818484613aea565b505050565b5b81811015613b4b57613b40600082613b14565b600181019050613b2d565b5050565b601f821115613b9057613b6181613a30565b613b6a84613a45565b81016020851015613b79578190505b613b8d613b8585613a45565b830182613b2c565b50505b505050565b600082821c905092915050565b6000613bb360001984600802613b95565b1980831691505092915050565b6000613bcc8383613ba2565b9150826002028217905092915050565b613be683836139c5565b67ffffffffffffffff811115613bff57613bfe612fdb565b5b613c0982546139ff565b613c14828285613b4f565b6000601f831160018114613c435760008415613c31578287013590505b613c3b8582613bc0565b865550613ca3565b601f198416613c5186613a30565b60005b82811015613c7957848901358255600182019150602085019450602081019050613c54565b86831015613c965784890135613c92601f891682613ba2565b8355505b6001600288020188555050505b50505050505050565b613cb582613183565b67ffffffffffffffff811115613cce57613ccd612fdb565b5b613cd882546139ff565b613ce3828285613b4f565b600060209050601f831160018114613d165760008415613d04578287015190505b613d0e8582613bc0565b865550613d76565b601f198416613d2486613a30565b60005b82811015613d4c57848901518255600182019150602085019450602081019050613d27565b86831015613d695784890151613d65601f891682613ba2565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613de78261314f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e1957613e18613dad565b5b600182019050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613e5057613e4f613e24565b5b80840192508235915067ffffffffffffffff821115613e7257613e71613e29565b5b602083019250600182023603831315613e8e57613e8d613e2e565b5b509250929050565b6000613ea18261314f565b9150613eac8361314f565b9250828201905080821115613ec457613ec3613dad565b5b92915050565b6000613ed58261314f565b9150613ee08361314f565b9250828203905081811115613ef857613ef7613dad565b5b92915050565b6000606082019050613f1360008301866132af565b613f206020830185613159565b613f2d6040830184613159565b949350505050565b600081905092915050565b7f5b00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f76600183613f35565b9150613f8182613f40565b600182019050919050565b7f7b2274726169745f74797065223a22496d616765222c2276616c7565223a2200600082015250565b6000613fc2601f83613f35565b9150613fcd82613f8c565b601f82019050919050565b60008154613fe5816139ff565b613fef8186613f35565b9450600182166000811461400a576001811461401f57614052565b60ff1983168652811515820286019350614052565b61402885613a30565b60005b8381101561404a5781548189015260018201915060208101905061402b565b838801955050505b50505092915050565b7f227d2c0000000000000000000000000000000000000000000000000000000000600082015250565b6000614091600383613f35565b915061409c8261405b565b600382019050919050565b7f7b2274726169745f74797065223a224e6f697365222c2276616c7565223a2200600082015250565b60006140dd601f83613f35565b91506140e8826140a7565b601f82019050919050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614129600183613f35565b9150614134826140f3565b600182019050919050565b7f7b2274726169745f74797065223a224d6f6465222c2276616c7565223a220000600082015250565b6000614175601e83613f35565b91506141808261413f565b601e82019050919050565b7f7b2274726169745f74797065223a22436f6c6f72222c2276616c7565223a2200600082015250565b60006141c1601f83613f35565b91506141cc8261418b565b601f82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b600061420d600283613f35565b9150614218826141d7565b600282019050919050565b7f5d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614259600183613f35565b915061426482614223565b600182019050919050565b600061427a82613f69565b915061428582613fb5565b91506142918288613fd8565b915061429c82614084565b91506142a7826140d0565b91506142b38287613fd8565b91506142be8261411c565b91506142ca8286613fd8565b91506142d582614084565b91506142e082614168565b91506142ec8285613fd8565b91506142f782614084565b9150614302826141b4565b915061430e8284613fd8565b915061431982614200565b91506143248261424c565b91508190509695505050505050565b7f7b00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614369600183613f35565b915061437482614333565b600182019050919050565b7f226e616d65223a22000000000000000000000000000000000000000000000000600082015250565b60006143b5600883613f35565b91506143c08261437f565b600882019050919050565b60006143d682613183565b6143e08185613f35565b93506143f081856020860161319f565b80840191505092915050565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b6000614432600283613f35565b915061443d826143fc565b600282019050919050565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b600061447e600f83613f35565b915061448982614448565b600f82019050919050565b7f22696d616765223a220000000000000000000000000000000000000000000000600082015250565b60006144ca600983613f35565b91506144d582614494565b600982019050919050565b7f2e706e67222c0000000000000000000000000000000000000000000000000000600082015250565b6000614516600683613f35565b9150614521826144e0565b600682019050919050565b7f2265787465726e616c5f75726c223a2200000000000000000000000000000000600082015250565b6000614562601083613f35565b915061456d8261452c565b601082019050919050565b7f3f686173683d0000000000000000000000000000000000000000000000000000600082015250565b60006145ae600683613f35565b91506145b982614578565b600682019050919050565b7f22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6c3b60008201527f6261736536342c00000000000000000000000000000000000000000000000000602082015250565b6000614620602783613f35565b915061462b826145c4565b602782019050919050565b7f222c2261747472696275746573223a0000000000000000000000000000000000600082015250565b600061466c600f83613f35565b915061467782614636565b600f82019050919050565b600081519050919050565b600081905092915050565b60006146a382614682565b6146ad818561468d565b93506146bd81856020860161319f565b80840191505092915050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b60006146ff600183613f35565b915061470a826146c9565b600182019050919050565b60006147208261435c565b915061472b826143a8565b9150614737828c6143cb565b9150614743828b6143cb565b915061474e82614425565b915061475982614471565b9150614765828a613fd8565b915061477082614425565b915061477b826144bd565b91506147878289613fd8565b915061479382886143cb565b915061479e82614509565b91506147a982614555565b91506147b58287613fd8565b91506147c0826145a1565b91506147cc82866143cb565b91506147d782614425565b91506147e282614613565b91506147ee82856143cb565b91506147f98261465f565b91506148058284614698565b9150614810826146f2565b91508190509a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614859601d83613f35565b915061486482614823565b601d82019050919050565b600061487a8261484c565b915061488682846143cb565b915081905092915050565b7f6c657420686173683d2200000000000000000000000000000000000000000000600082015250565b60006148c7600a83613f35565b91506148d282614891565b600a82019050919050565b7f223b000000000000000000000000000000000000000000000000000000000000600082015250565b6000614913600283613f35565b915061491e826148dd565b600282019050919050565b60006149358287613fd8565b9150614940826148ba565b915061494c82866143cb565b915061495782614906565b91506149638285613fd8565b915061496f8284613fd8565b915081905095945050505050565b60008160601b9050919050565b60006149958261497d565b9050919050565b60006149a78261498a565b9050919050565b6149bf6149ba8261329d565b61499c565b82525050565b6000819050919050565b6149e06149db8261314f565b6149c5565b82525050565b60006149f282866149ae565b601482019150614a0282856149cf565b602082019150614a1282846149cf565b602082019150819050949350505050565b600082825260208201905092915050565b6000614a3f82614682565b614a498185614a23565b9350614a5981856020860161319f565b614a6281612fca565b840191505092915050565b6000608082019050614a8260008301876132af565b614a8f60208301866132af565b614a9c6040830185613159565b8181036060830152614aae8184614a34565b905095945050505050565b600081519050614ac881612f36565b92915050565b600060208284031215614ae457614ae3612e4e565b5b6000614af284828501614ab9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b358261314f565b9150614b408361314f565b925082614b5057614b4f614afb565b5b828204905092915050565b6000614b668261314f565b9150614b718361314f565b9250828202614b7f8161314f565b91508282048414831517614b9657614b95613dad565b5b5092915050565b50565b6000614bad60008361468d565b9150614bb882614b9d565b600082019050919050565b6000614bce82614ba0565b9150819050919050565b6000614be38261314f565b915060008203614bf657614bf5613dad565b5b600182039050919050565b6000604082019050614c166000830185613159565b614c236020830184613159565b939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122014af793d11f374d1b86ad61edbcb20a1662e878628b0b1dafdced31d7239339c64736f6c63430008140033000000000000000000000000a2feb99dbf3b355397532aef85d6066b7ed029d0000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000003583058000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035830580000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102255760003560e01c80636b2fafa911610123578063a22cb465116100ab578063d5523a801161006f578063d5523a80146107d9578063e985e9c514610802578063eb5a662e1461083f578063f2fde38b1461087c578063f3fef3a3146108a557610225565b8063a22cb46514610705578063b21ed0501461072e578063b88d4fde14610757578063c87b56dd14610773578063d1aa2193146107b057610225565b80638da5cb5b116100f25780638da5cb5b1461063457806390c3f38f1461065f57806395d89b41146106885780639622dc4b146106b357806399cf2f36146106dc57610225565b80636b2fafa91461057a57806370a08231146105b7578063715018a6146105f457806378a4ab851461060b57610225565b806312065fe0116101b157806340c10f191161017557806340c10f191461049257806342842e0e146104cf57806342966c68146104eb5780634c9496b4146105145780636352211e1461053d57610225565b806312065fe0146103ce578063164b34e6146103f957806318160ddd146104225780631ef61b801461044d57806323b872dd1461047657610225565b806306fdde03116101f857806306fdde03146102e4578063081812fc1461030f578063095ea7b31461034c578063102581d214610368578063104b6cb7146103a557610225565b806301dbcd4a1461022a57806301ffc9a71461025357806304787ca214610290578063047fc9aa146102b9575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190612ebd565b6108ce565b005b34801561025f57600080fd5b5061027a60048036038101906102759190612f62565b6108ec565b6040516102879190612faa565b60405180910390f35b34801561029c57600080fd5b506102b760048036038101906102b29190613106565b6108fe565b005b3480156102c557600080fd5b506102ce610919565b6040516102db9190613168565b60405180910390f35b3480156102f057600080fd5b506102f961091f565b6040516103069190613202565b60405180910390f35b34801561031b57600080fd5b5061033660048036038101906103319190613250565b6109b1565b60405161034391906132be565b60405180910390f35b61036660048036038101906103619190613305565b610a30565b005b34801561037457600080fd5b5061038f600480360381019061038a9190613250565b610b74565b60405161039c9190613202565b60405180910390f35b3480156103b157600080fd5b506103cc60048036038101906103c7919061339b565b610bcb565b005b3480156103da57600080fd5b506103e3610c63565b6040516103f09190613168565b60405180910390f35b34801561040557600080fd5b50610420600480360381019061041b919061343e565b610c6b565b005b34801561042e57600080fd5b50610437610cdf565b6040516104449190613168565b60405180910390f35b34801561045957600080fd5b50610474600480360381019061046f919061343e565b610cf6565b005b610490600480360381019061048b919061348b565b610d6a565b005b34801561049e57600080fd5b506104b960048036038101906104b49190613305565b61108c565b6040516104c69190613168565b60405180910390f35b6104e960048036038101906104e4919061348b565b611283565b005b3480156104f757600080fd5b50610512600480360381019061050d9190613250565b6112a3565b005b34801561052057600080fd5b5061053b6004803603810190610536919061343e565b6112b1565b005b34801561054957600080fd5b50610564600480360381019061055f9190613250565b611325565b60405161057191906132be565b60405180910390f35b34801561058657600080fd5b506105a1600480360381019061059c9190613250565b611337565b6040516105ae91906134f7565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d99190613512565b611393565b6040516105eb9190613168565b60405180910390f35b34801561060057600080fd5b5061060961144b565b005b34801561061757600080fd5b50610632600480360381019061062d9190612ebd565b61145f565b005b34801561064057600080fd5b5061064961147d565b60405161065691906132be565b60405180910390f35b34801561066b57600080fd5b5061068660048036038101906106819190612ebd565b6114a7565b005b34801561069457600080fd5b5061069d6114c5565b6040516106aa9190613202565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d5919061353f565b611557565b005b3480156106e857600080fd5b5061070360048036038101906106fe9190613616565b611589565b005b34801561071157600080fd5b5061072c60048036038101906107279190613773565b6116b7565b005b34801561073a57600080fd5b50610755600480360381019061075091906137b3565b6117c2565b005b610771600480360381019061076c91906138d5565b611876565b005b34801561077f57600080fd5b5061079a60048036038101906107959190613250565b6118e9565b6040516107a79190613202565b60405180910390f35b3480156107bc57600080fd5b506107d760048036038101906107d29190613958565b611ad1565b005b3480156107e557600080fd5b5061080060048036038101906107fb919061343e565b611af6565b005b34801561080e57600080fd5b5061082960048036038101906108249190613985565b611b6a565b6040516108369190612faa565b60405180910390f35b34801561084b57600080fd5b5061086660048036038101906108619190613512565b611bfe565b6040516108739190613168565b60405180910390f35b34801561088857600080fd5b506108a3600480360381019061089e9190613512565b611c47565b005b3480156108b157600080fd5b506108cc60048036038101906108c79190613305565b611ccd565b005b6108d6611ce3565b8181600e91826108e7929190613bdc565b505050565b60006108f782611d6a565b9050919050565b610906611ce3565b80600d90816109159190613cac565b5050565b60095481565b60606002805461092e906139ff565b80601f016020809104026020016040519081016040528092919081815260200182805461095a906139ff565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b5050505050905090565b60006109bc82611dfc565b6109f2576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3b82611325565b90508073ffffffffffffffffffffffffffffffffffffffff16610a5c611e5b565b73ffffffffffffffffffffffffffffffffffffffff1614610abf57610a8881610a83611e5b565b611b6a565b610abe576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6060610b7f82611dfc565b610bb5576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610bc083611e63565b905080915050919050565b610bd3611ce3565b60005b82829050811015610c5e5760166000848484818110610bf857610bf7613d7e565b5b9050602002016020810190610c0d9190613512565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090558080610c5690613ddc565b915050610bd6565b505050565b600047905090565b610c73611ce3565b60005b82829050811015610cda57828282818110610c9457610c93613d7e565b5b9050602002810190610ca69190613e33565b601360008481526020019081526020016000209182610cc6929190613bdc565b508080610cd290613ddc565b915050610c76565b505050565b6000610ce9611eb3565b6001546000540303905090565b610cfe611ce3565b60005b82829050811015610d6557828282818110610d1f57610d1e613d7e565b5b9050602002810190610d319190613e33565b601460008481526020019081526020016000209182610d51929190613bdc565b508080610d5d90613ddc565b915050610d01565b505050565b6000610d7582611eb8565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ddc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610de884611f84565b91509150610dfe8187610df9611e5b565b611fab565b610e4a57610e1386610e0e611e5b565b611b6a565b610e49576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610eb0576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ebd8686866001611fef565b8015610ec857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f9685610f72888887611ff5565b7c02000000000000000000000000000000000000000000000000000000001761201d565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361101c576000600185019050600060046000838152602001908152602001600020540361101a576000548114611019578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110848686866001612048565b505050505050565b6000601760009054906101000a900460ff1615806110ea575081601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015155b15611121576040517f3d693ada00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009548261112d610cdf565b6111379190613e96565b111561117c576009546040517fba666df70000000000000000000000000000000000000000000000000000000081526004016111739190613168565b60405180910390fd5b600061118661204e565b905060005b838110156111dd576111a88582846111a39190613e96565b612057565b6010600083856111b89190613e96565b81526020019081526020016000208190555080806111d590613ddc565b91505061118b565b506111e8848461208c565b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112379190613eca565b925050819055507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f84828560405161127193929190613efe565b60405180910390a18091505092915050565b61129e83838360405180602001604052806000815250611876565b505050565b6112ae816001612247565b50565b6112b9611ce3565b60005b82829050811015611320578282828181106112da576112d9613d7e565b5b90506020028101906112ec9190613e33565b60156000848152602001908152602001600020918261130c929190613bdc565b50808061131890613ddc565b9150506112bc565b505050565b600061133082611eb8565b9050919050565b600061134282611dfc565b611378576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60106000838152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113fa576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611453611ce3565b61145d6000612499565b565b611467611ce3565b8181600c9182611478929190613bdc565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114af611ce3565b8181600f91826114c0929190613bdc565b505050565b6060600380546114d4906139ff565b80601f0160208091040260200160405190810160405280929190818152602001828054611500906139ff565b801561154d5780601f106115225761010080835404028352916020019161154d565b820191906000526020600020905b81548152906001019060200180831161153057829003601f168201915b5050505050905090565b61155f611ce3565b8383600a9182611570929190613bdc565b508181600b9182611582929190613bdc565b5050505050565b611591611ce3565b60005b8a8a90508110156116a9576040518060a001604052808c8c848181106115bd576115bc613d7e565b5b9050602002013581526020018a8a848181106115dc576115db613d7e565b5b9050602002013581526020018888848181106115fb576115fa613d7e565b5b90506020020135815260200186868481811061161a57611619613d7e565b5b90506020020135815260200184848481811061163957611638613d7e565b5b9050602002013581525060116000838f6116539190613e96565b8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505080806116a190613ddc565b915050611594565b505050505050505050505050565b80600760006116c4611e5b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611771611e5b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117b69190612faa565b60405180910390a35050565b6117ca611ce3565b60005b8484905081101561186f578282828181106117eb576117ea613d7e565b5b905060200201356016600087878581811061180957611808613d7e565b5b905060200201602081019061181e9190613512565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061186790613ddc565b9150506117cd565b5050505050565b611881848484610d6a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146118e3576118ac8484848461255f565b6118e2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606118f482611dfc565b61192a576040517f5861b41d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061193583611e63565b9050600060126000601160008781526020019081526020016000206000015481526020019081526020016000206013600060116000888152602001908152602001600020600101548152602001908152602001600020601360006011600089815260200190815260200160002060020154815260200190815260200160002060146000601160008a815260200190815260200160002060030154815260200190815260200160002060156000601160008b8152602001908152602001600020600401548152602001908152602001600020604051602001611a1a95949392919061426f565b60405160208183030381529060405290506000611a3561091f565b611a3e866126af565b600f600d611a4b896126af565b600e611a6c601060008d81526020019081526020016000205460001c61277d565b611a758a61279b565b89604051602001611a8e99989796959493929190614715565b6040516020818303038152906040529050611aa88161279b565b604051602001611ab8919061486f565b6040516020818303038152906040529350505050919050565b611ad9611ce3565b80601760006101000a81548160ff02191690831515021790555050565b611afe611ce3565b60005b82829050811015611b6557828282818110611b1f57611b1e613d7e565b5b9050602002810190611b319190613e33565b601260008481526020019081526020016000209182611b51929190613bdc565b508080611b5d90613ddc565b915050611b01565b505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c4f611ce3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611cc15760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611cb891906132be565b60405180910390fd5b611cca81612499565b50565b611cd5611ce3565b611cdf828261290d565b5050565b611ceb6129fa565b73ffffffffffffffffffffffffffffffffffffffff16611d0961147d565b73ffffffffffffffffffffffffffffffffffffffff1614611d6857611d2c6129fa565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611d5f91906132be565b60405180910390fd5b565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dc557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611df55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081611e07611eb3565b11158015611e16575060005482105b8015611e54575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6060600a611e86601060008581526020019081526020016000205460001c61277d565b600c600b604051602001611e9d9493929190614929565b6040516020818303038152906040529050919050565b600090565b60008082905080611ec7611eb3565b11611f4d57600054811015611f4c5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f4a575b60008103611f40576004600083600190039350838152602001908152602001600020549050611f16565b8092505050611f7f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861200c868684612a02565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008054905090565b600082824260405160200161206e939291906149e6565b60405160208183030381529060405280519060200120905092915050565b600080549050600082036120cc576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120d96000848385611fef565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612150836121416000866000611ff5565b61214a85612a0b565b1761201d565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146121f157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506121b6565b506000820361222c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506122426000848385612048565b505050565b600061225283611eb8565b9050600081905060008061226586611f84565b9150915084156122ce57612281818461227c611e5b565b611fab565b6122cd5761229683612291611e5b565b611b6a565b6122cc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6122dc836000886001611fef565b80156122e757600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061238f8361234c85600088611ff5565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761201d565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036124155760006001870190506000600460008381526020019081526020016000205403612413576000548114612412578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461247f836000886001612048565b600160008154809291906001019190505550505050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612585611e5b565b8786866040518563ffffffff1660e01b81526004016125a79493929190614a6d565b6020604051808303816000875af19250505080156125e357506040513d601f19601f820116820180604052508101906125e09190614ace565b60015b61265c573d8060008114612613576040519150601f19603f3d011682016040523d82523d6000602084013e612618565b606091505b506000815103612654576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600060016126be84612a1b565b01905060008167ffffffffffffffff8111156126dd576126dc612fdb565b5b6040519080825280601f01601f19166020018201604052801561270f5781602001600182028036833780820191505090505b509050600082602001820190505b600115612772578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161276657612765614afb565b5b0494506000850361271d575b819350505050919050565b606061279482600161278e85612b6e565b01612bfe565b9050919050565b606060008251036127bd57604051806020016040528060008152509050612908565b6000604051806060016040528060408152602001614c2b60409139905060006003600285516127ec9190613e96565b6127f69190614b2a565b60046128029190614b5b565b67ffffffffffffffff81111561281b5761281a612fdb565b5b6040519080825280601f01601f19166020018201604052801561284d5781602001600182028036833780820191505090505b50905060018201602082018586518701602081018051600082525b828410156128c3576003840193508351603f8160121c168701518653600186019550603f81600c1c168701518653600186019550603f8160061c168701518653600186019550603f8116870151865360018601955050612868565b80825260038a5106600181146128e057600281146128f3576128fb565b603d6001870353603d60028703536128fb565b603d60018703535b5050505050505080925050505b919050565b8047101561295257306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161294991906132be565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161297890614bc3565b60006040518083038185875af1925050503d80600081146129b5576040519150601f19603f3d011682016040523d82523d6000602084013e6129ba565b606091505b50509050806129f5576040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612a79577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612a6f57612a6e614afb565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612ab6576d04ee2d6d415b85acef81000000008381612aac57612aab614afb565b5b0492506020810190505b662386f26fc100008310612ae557662386f26fc100008381612adb57612ada614afb565b5b0492506010810190505b6305f5e1008310612b0e576305f5e1008381612b0457612b03614afb565b5b0492506008810190505b6127108310612b33576127108381612b2957612b28614afb565b5b0492506004810190505b60648310612b565760648381612b4c57612b4b614afb565b5b0492506002810190505b600a8310612b65576001810190505b80915050919050565b600080600090506000608084901c1115612b9057608083901c92506010810190505b6000604084901c1115612bab57604083901c92506008810190505b6000602084901c1115612bc657602083901c92506004810190505b6000601084901c1115612be157601083901c92506002810190505b6000600884901c1115612bf5576001810190505b80915050919050565b6060600083905060006002846002612c169190614b5b565b612c209190613e96565b67ffffffffffffffff811115612c3957612c38612fdb565b5b6040519080825280601f01601f191660200182016040528015612c6b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612ca357612ca2613d7e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612d0757612d06613d7e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001856002612d479190614b5b565b612d519190613e96565b90505b6001811115612df1577f3031323334353637383961626364656600000000000000000000000000000000600f841660108110612d9357612d92613d7e565b5b1a60f81b828281518110612daa57612da9613d7e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c925080612dea90614bd8565b9050612d54565b5060008214612e395784846040517fe22e27eb000000000000000000000000000000000000000000000000000000008152600401612e30929190614c01565b60405180910390fd5b809250505092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112612e7d57612e7c612e58565b5b8235905067ffffffffffffffff811115612e9a57612e99612e5d565b5b602083019150836001820283011115612eb657612eb5612e62565b5b9250929050565b60008060208385031215612ed457612ed3612e4e565b5b600083013567ffffffffffffffff811115612ef257612ef1612e53565b5b612efe85828601612e67565b92509250509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f3f81612f0a565b8114612f4a57600080fd5b50565b600081359050612f5c81612f36565b92915050565b600060208284031215612f7857612f77612e4e565b5b6000612f8684828501612f4d565b91505092915050565b60008115159050919050565b612fa481612f8f565b82525050565b6000602082019050612fbf6000830184612f9b565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61301382612fca565b810181811067ffffffffffffffff8211171561303257613031612fdb565b5b80604052505050565b6000613045612e44565b9050613051828261300a565b919050565b600067ffffffffffffffff82111561307157613070612fdb565b5b61307a82612fca565b9050602081019050919050565b82818337600083830152505050565b60006130a96130a484613056565b61303b565b9050828152602081018484840111156130c5576130c4612fc5565b5b6130d0848285613087565b509392505050565b600082601f8301126130ed576130ec612e58565b5b81356130fd848260208601613096565b91505092915050565b60006020828403121561311c5761311b612e4e565b5b600082013567ffffffffffffffff81111561313a57613139612e53565b5b613146848285016130d8565b91505092915050565b6000819050919050565b6131628161314f565b82525050565b600060208201905061317d6000830184613159565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131bd5780820151818401526020810190506131a2565b60008484015250505050565b60006131d482613183565b6131de818561318e565b93506131ee81856020860161319f565b6131f781612fca565b840191505092915050565b6000602082019050818103600083015261321c81846131c9565b905092915050565b61322d8161314f565b811461323857600080fd5b50565b60008135905061324a81613224565b92915050565b60006020828403121561326657613265612e4e565b5b60006132748482850161323b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132a88261327d565b9050919050565b6132b88161329d565b82525050565b60006020820190506132d360008301846132af565b92915050565b6132e28161329d565b81146132ed57600080fd5b50565b6000813590506132ff816132d9565b92915050565b6000806040838503121561331c5761331b612e4e565b5b600061332a858286016132f0565b925050602061333b8582860161323b565b9150509250929050565b60008083601f84011261335b5761335a612e58565b5b8235905067ffffffffffffffff81111561337857613377612e5d565b5b60208301915083602082028301111561339457613393612e62565b5b9250929050565b600080602083850312156133b2576133b1612e4e565b5b600083013567ffffffffffffffff8111156133d0576133cf612e53565b5b6133dc85828601613345565b92509250509250929050565b60008083601f8401126133fe576133fd612e58565b5b8235905067ffffffffffffffff81111561341b5761341a612e5d565b5b60208301915083602082028301111561343757613436612e62565b5b9250929050565b6000806020838503121561345557613454612e4e565b5b600083013567ffffffffffffffff81111561347357613472612e53565b5b61347f858286016133e8565b92509250509250929050565b6000806000606084860312156134a4576134a3612e4e565b5b60006134b2868287016132f0565b93505060206134c3868287016132f0565b92505060406134d48682870161323b565b9150509250925092565b6000819050919050565b6134f1816134de565b82525050565b600060208201905061350c60008301846134e8565b92915050565b60006020828403121561352857613527612e4e565b5b6000613536848285016132f0565b91505092915050565b6000806000806040858703121561355957613558612e4e565b5b600085013567ffffffffffffffff81111561357757613576612e53565b5b61358387828801612e67565b9450945050602085013567ffffffffffffffff8111156135a6576135a5612e53565b5b6135b287828801612e67565b925092505092959194509250565b60008083601f8401126135d6576135d5612e58565b5b8235905067ffffffffffffffff8111156135f3576135f2612e5d565b5b60208301915083602082028301111561360f5761360e612e62565b5b9250929050565b600080600080600080600080600080600060c08c8e03121561363b5761363a612e4e565b5b60006136498e828f0161323b565b9b505060208c013567ffffffffffffffff81111561366a57613669612e53565b5b6136768e828f016135c0565b9a509a505060408c013567ffffffffffffffff81111561369957613698612e53565b5b6136a58e828f016135c0565b985098505060608c013567ffffffffffffffff8111156136c8576136c7612e53565b5b6136d48e828f016135c0565b965096505060808c013567ffffffffffffffff8111156136f7576136f6612e53565b5b6137038e828f016135c0565b945094505060a08c013567ffffffffffffffff81111561372657613725612e53565b5b6137328e828f016135c0565b92509250509295989b509295989b9093969950565b61375081612f8f565b811461375b57600080fd5b50565b60008135905061376d81613747565b92915050565b6000806040838503121561378a57613789612e4e565b5b6000613798858286016132f0565b92505060206137a98582860161375e565b9150509250929050565b600080600080604085870312156137cd576137cc612e4e565b5b600085013567ffffffffffffffff8111156137eb576137ea612e53565b5b6137f787828801613345565b9450945050602085013567ffffffffffffffff81111561381a57613819612e53565b5b613826878288016135c0565b925092505092959194509250565b600067ffffffffffffffff82111561384f5761384e612fdb565b5b61385882612fca565b9050602081019050919050565b600061387861387384613834565b61303b565b90508281526020810184848401111561389457613893612fc5565b5b61389f848285613087565b509392505050565b600082601f8301126138bc576138bb612e58565b5b81356138cc848260208601613865565b91505092915050565b600080600080608085870312156138ef576138ee612e4e565b5b60006138fd878288016132f0565b945050602061390e878288016132f0565b935050604061391f8782880161323b565b925050606085013567ffffffffffffffff8111156139405761393f612e53565b5b61394c878288016138a7565b91505092959194509250565b60006020828403121561396e5761396d612e4e565b5b600061397c8482850161375e565b91505092915050565b6000806040838503121561399c5761399b612e4e565b5b60006139aa858286016132f0565b92505060206139bb858286016132f0565b9150509250929050565b600082905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a1757607f821691505b602082108103613a2a57613a296139d0565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a55565b613a9c8683613a55565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613ad9613ad4613acf8461314f565b613ab4565b61314f565b9050919050565b6000819050919050565b613af383613abe565b613b07613aff82613ae0565b848454613a62565b825550505050565b600090565b613b1c613b0f565b613b27818484613aea565b505050565b5b81811015613b4b57613b40600082613b14565b600181019050613b2d565b5050565b601f821115613b9057613b6181613a30565b613b6a84613a45565b81016020851015613b79578190505b613b8d613b8585613a45565b830182613b2c565b50505b505050565b600082821c905092915050565b6000613bb360001984600802613b95565b1980831691505092915050565b6000613bcc8383613ba2565b9150826002028217905092915050565b613be683836139c5565b67ffffffffffffffff811115613bff57613bfe612fdb565b5b613c0982546139ff565b613c14828285613b4f565b6000601f831160018114613c435760008415613c31578287013590505b613c3b8582613bc0565b865550613ca3565b601f198416613c5186613a30565b60005b82811015613c7957848901358255600182019150602085019450602081019050613c54565b86831015613c965784890135613c92601f891682613ba2565b8355505b6001600288020188555050505b50505050505050565b613cb582613183565b67ffffffffffffffff811115613cce57613ccd612fdb565b5b613cd882546139ff565b613ce3828285613b4f565b600060209050601f831160018114613d165760008415613d04578287015190505b613d0e8582613bc0565b865550613d76565b601f198416613d2486613a30565b60005b82811015613d4c57848901518255600182019150602085019450602081019050613d27565b86831015613d695784890151613d65601f891682613ba2565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613de78261314f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e1957613e18613dad565b5b600182019050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613e5057613e4f613e24565b5b80840192508235915067ffffffffffffffff821115613e7257613e71613e29565b5b602083019250600182023603831315613e8e57613e8d613e2e565b5b509250929050565b6000613ea18261314f565b9150613eac8361314f565b9250828201905080821115613ec457613ec3613dad565b5b92915050565b6000613ed58261314f565b9150613ee08361314f565b9250828203905081811115613ef857613ef7613dad565b5b92915050565b6000606082019050613f1360008301866132af565b613f206020830185613159565b613f2d6040830184613159565b949350505050565b600081905092915050565b7f5b00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f76600183613f35565b9150613f8182613f40565b600182019050919050565b7f7b2274726169745f74797065223a22496d616765222c2276616c7565223a2200600082015250565b6000613fc2601f83613f35565b9150613fcd82613f8c565b601f82019050919050565b60008154613fe5816139ff565b613fef8186613f35565b9450600182166000811461400a576001811461401f57614052565b60ff1983168652811515820286019350614052565b61402885613a30565b60005b8381101561404a5781548189015260018201915060208101905061402b565b838801955050505b50505092915050565b7f227d2c0000000000000000000000000000000000000000000000000000000000600082015250565b6000614091600383613f35565b915061409c8261405b565b600382019050919050565b7f7b2274726169745f74797065223a224e6f697365222c2276616c7565223a2200600082015250565b60006140dd601f83613f35565b91506140e8826140a7565b601f82019050919050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614129600183613f35565b9150614134826140f3565b600182019050919050565b7f7b2274726169745f74797065223a224d6f6465222c2276616c7565223a220000600082015250565b6000614175601e83613f35565b91506141808261413f565b601e82019050919050565b7f7b2274726169745f74797065223a22436f6c6f72222c2276616c7565223a2200600082015250565b60006141c1601f83613f35565b91506141cc8261418b565b601f82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b600061420d600283613f35565b9150614218826141d7565b600282019050919050565b7f5d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614259600183613f35565b915061426482614223565b600182019050919050565b600061427a82613f69565b915061428582613fb5565b91506142918288613fd8565b915061429c82614084565b91506142a7826140d0565b91506142b38287613fd8565b91506142be8261411c565b91506142ca8286613fd8565b91506142d582614084565b91506142e082614168565b91506142ec8285613fd8565b91506142f782614084565b9150614302826141b4565b915061430e8284613fd8565b915061431982614200565b91506143248261424c565b91508190509695505050505050565b7f7b00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614369600183613f35565b915061437482614333565b600182019050919050565b7f226e616d65223a22000000000000000000000000000000000000000000000000600082015250565b60006143b5600883613f35565b91506143c08261437f565b600882019050919050565b60006143d682613183565b6143e08185613f35565b93506143f081856020860161319f565b80840191505092915050565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b6000614432600283613f35565b915061443d826143fc565b600282019050919050565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b600061447e600f83613f35565b915061448982614448565b600f82019050919050565b7f22696d616765223a220000000000000000000000000000000000000000000000600082015250565b60006144ca600983613f35565b91506144d582614494565b600982019050919050565b7f2e706e67222c0000000000000000000000000000000000000000000000000000600082015250565b6000614516600683613f35565b9150614521826144e0565b600682019050919050565b7f2265787465726e616c5f75726c223a2200000000000000000000000000000000600082015250565b6000614562601083613f35565b915061456d8261452c565b601082019050919050565b7f3f686173683d0000000000000000000000000000000000000000000000000000600082015250565b60006145ae600683613f35565b91506145b982614578565b600682019050919050565b7f22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6c3b60008201527f6261736536342c00000000000000000000000000000000000000000000000000602082015250565b6000614620602783613f35565b915061462b826145c4565b602782019050919050565b7f222c2261747472696275746573223a0000000000000000000000000000000000600082015250565b600061466c600f83613f35565b915061467782614636565b600f82019050919050565b600081519050919050565b600081905092915050565b60006146a382614682565b6146ad818561468d565b93506146bd81856020860161319f565b80840191505092915050565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b60006146ff600183613f35565b915061470a826146c9565b600182019050919050565b60006147208261435c565b915061472b826143a8565b9150614737828c6143cb565b9150614743828b6143cb565b915061474e82614425565b915061475982614471565b9150614765828a613fd8565b915061477082614425565b915061477b826144bd565b91506147878289613fd8565b915061479382886143cb565b915061479e82614509565b91506147a982614555565b91506147b58287613fd8565b91506147c0826145a1565b91506147cc82866143cb565b91506147d782614425565b91506147e282614613565b91506147ee82856143cb565b91506147f98261465f565b91506148058284614698565b9150614810826146f2565b91508190509a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614859601d83613f35565b915061486482614823565b601d82019050919050565b600061487a8261484c565b915061488682846143cb565b915081905092915050565b7f6c657420686173683d2200000000000000000000000000000000000000000000600082015250565b60006148c7600a83613f35565b91506148d282614891565b600a82019050919050565b7f223b000000000000000000000000000000000000000000000000000000000000600082015250565b6000614913600283613f35565b915061491e826148dd565b600282019050919050565b60006149358287613fd8565b9150614940826148ba565b915061494c82866143cb565b915061495782614906565b91506149638285613fd8565b915061496f8284613fd8565b915081905095945050505050565b60008160601b9050919050565b60006149958261497d565b9050919050565b60006149a78261498a565b9050919050565b6149bf6149ba8261329d565b61499c565b82525050565b6000819050919050565b6149e06149db8261314f565b6149c5565b82525050565b60006149f282866149ae565b601482019150614a0282856149cf565b602082019150614a1282846149cf565b602082019150819050949350505050565b600082825260208201905092915050565b6000614a3f82614682565b614a498185614a23565b9350614a5981856020860161319f565b614a6281612fca565b840191505092915050565b6000608082019050614a8260008301876132af565b614a8f60208301866132af565b614a9c6040830185613159565b8181036060830152614aae8184614a34565b905095945050505050565b600081519050614ac881612f36565b92915050565b600060208284031215614ae457614ae3612e4e565b5b6000614af284828501614ab9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b358261314f565b9150614b408361314f565b925082614b5057614b4f614afb565b5b828204905092915050565b6000614b668261314f565b9150614b718361314f565b9250828202614b7f8161314f565b91508282048414831517614b9657614b95613dad565b5b5092915050565b50565b6000614bad60008361468d565b9150614bb882614b9d565b600082019050919050565b6000614bce82614ba0565b9150819050919050565b6000614be38261314f565b915060008203614bf657614bf5613dad565b5b600182039050919050565b6000604082019050614c166000830185613159565b614c236020830184613159565b939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122014af793d11f374d1b86ad61edbcb20a1662e878628b0b1dafdced31d7239339c64736f6c63430008140033

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

000000000000000000000000a2feb99dbf3b355397532aef85d6066b7ed029d0000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000003583058000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035830580000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _owner (address): 0xA2feb99DbF3b355397532AeF85d6066b7eD029D0
Arg [1] : _name (string): X0X
Arg [2] : _symbol (string): X0X
Arg [3] : _supply (uint256): 1000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000a2feb99dbf3b355397532aef85d6066b7ed029d0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 5830580000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 5830580000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.