ETH Price: $3,352.55 (-3.49%)
Gas: 4.02 Gwei

Token

Bored Grapes - Bottles ($BOTTLES)
 

Overview

Max Total Supply

5,555 $BOTTLES

Holders

2,771

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 $BOTTLES
0xf00ce3d8aaf3e3d7a299c595f12306e0bfbb3679
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:
BoredGrapesBottles

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-10-28
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

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

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

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

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

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

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

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

interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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

library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

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

abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

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

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

library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

/**
 * @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 {
    // Reference type for token approval.
    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 1;
    }

    /**
     * @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 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 {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _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]`.
        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 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 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 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.
            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`.
                )

                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 ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

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


abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

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

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

error Unauthorized();
error InsufficientValue(uint256 messageValue, uint256 required);

contract BoredGrapesBottles is Ownable, ERC721A, ERC721AQueryable, ERC721ABurnable {

    using ECDSA for bytes32;
    using Strings for uint;

    address private signerAddressPresale;
    address private signerAddressWinelist;

    enum Step {
        Before,
        PreSale,
        WinelistSale,
        PublicSale,
        SoldOut,
        Reveal
    }

    string public baseURI;

    Step public sellingStep;

    uint private constant MAX_SUPPLY = 5555;

    mapping(address => uint) public mintedAmountNFTsperWalletPreSale;
    mapping(address => uint) public mintedAmountNFTsperWalletWinelistSale;

    uint public maxMintAmountPerPresale = 1;
    uint public maxMintAmountPerWinelist = 1;

    uint private teamLength;

    address constant private TREASURY = 0xbcE824E921259749fbB77a10dC5EF64f546124C9;

    constructor(address _signerAddressPresale, address _signerAddressWinelist, string memory _baseURI) ERC721A("Bored Grapes - Bottles", "$BOTTLES")
    {
        signerAddressPresale = _signerAddressPresale;
        signerAddressWinelist = _signerAddressWinelist;
        baseURI = _baseURI;
    }

    function getOwnershipAt(uint256 index) public view returns (TokenOwnership memory) {
        return _ownershipAt(index);
    }

    function totalMinted() public view returns (uint256) {
        return _totalMinted();
    }

    function totalBurned() public view returns (uint256) {
        return _totalBurned();
    }

    function numberBurned(address owner) public view returns (uint256) {
        return _numberBurned(owner);
    }

    function mintForOpensea() external onlyOwner{
        if(totalSupply() != 0) revert Unauthorized();
        _mint(TREASURY, 100);
    }

    function PresaleMint(address _account, uint _quantity, bytes calldata signature) external {

        if(_quantity <= 0) revert("Quantity is 0");
        if(sellingStep != Step.PreSale) revert Unauthorized();
        if(totalSupply() + _quantity > MAX_SUPPLY) revert Unauthorized();
        if(signerAddressPresale != keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32",
                bytes32(uint256(uint160(msg.sender)))
            )
        ).recover(signature)) revert Unauthorized();

        if(mintedAmountNFTsperWalletPreSale[msg.sender] + _quantity > maxMintAmountPerPresale) revert Unauthorized();
            
        mintedAmountNFTsperWalletPreSale[msg.sender] += _quantity;

        _mint(_account, _quantity);
    }

    function WinelistMint(address _account, uint _quantity, bytes calldata signature) external {

        if(_quantity <= 0) revert("Quantity is 0");
        if(sellingStep != Step.WinelistSale) revert Unauthorized();
        if(totalSupply() + _quantity > MAX_SUPPLY) revert Unauthorized();
        if(signerAddressWinelist != keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32",
                bytes32(uint256(uint160(msg.sender)))
            )
        ).recover(signature)) revert Unauthorized();

        if(mintedAmountNFTsperWalletWinelistSale[msg.sender] + _quantity > maxMintAmountPerWinelist) revert Unauthorized();
            
        mintedAmountNFTsperWalletWinelistSale[msg.sender] += _quantity;

        _mint(_account, _quantity);
    }

    function publicSaleMint(address _account, uint _quantity) external {
        if(_quantity <= 0) revert("Quantity is 0");

        if(sellingStep != Step.PublicSale) revert Unauthorized();

        if(totalSupply() + _quantity > MAX_SUPPLY) revert Unauthorized();

        _mint(_account, _quantity);
    }

    function setBaseUri(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    function setStep(uint _step) external onlyOwner {
        sellingStep = Step(_step);
    }

    function setMaxMintPerPresale(uint amount) external onlyOwner{
        maxMintAmountPerPresale = amount;
    }

    function setMaxMintPerWinelist(uint amount) external onlyOwner{
        maxMintAmountPerWinelist = amount;
    }

    function currentState() external view returns (Step, uint, uint) {
        return (sellingStep, maxMintAmountPerPresale, maxMintAmountPerWinelist);
    }

    function getNumberMinted(address account) external view returns (uint256) {
        return _numberMinted(account);
    }

    function getNumberPresaleMinted(address account) external view returns (uint256) {
        return mintedAmountNFTsperWalletPreSale[account];
    }

    function getNumberWinelistMinted(address account) external view returns (uint256) {
        return mintedAmountNFTsperWalletWinelistSale[account];
    }

    function tokenURI(uint _tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) {
        require(_exists(_tokenId), "URI query for nonexistent token");
        return string(abi.encodePacked(baseURI, _toString(_tokenId), ".json"));
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signerAddressPresale","type":"address"},{"internalType":"address","name":"_signerAddressWinelist","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"PresaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"WinelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentState","outputs":[{"internalType":"enum BoredGrapesBottles.Step","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumberPresaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getNumberWinelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getOwnershipAt","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerWinelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintForOpensea","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountNFTsperWalletPreSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountNFTsperWalletWinelistSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","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":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[],"name":"sellingStep","outputs":[{"internalType":"enum BoredGrapesBottles.Step","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxMintPerPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxMintPerWinelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600f5560016010553480156200001b57600080fd5b5060405162002a3d38038062002a3d8339810160408190526200003e91620001a2565b6040518060400160405280601681526020017f426f72656420477261706573202d20426f74746c6573000000000000000000008152506040518060400160405280600881526020016724424f54544c455360c01b815250620000af620000a96200011b60201b60201c565b6200011f565b6003620000bd83826200032b565b506004620000cc82826200032b565b50600180555050600980546001600160a01b038086166001600160a01b031992831617909255600a805492851692909116919091179055600b6200011182826200032b565b50505050620003f7565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200018757600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215620001b857600080fd5b620001c3846200016f565b92506020620001d48186016200016f565b60408601519093506001600160401b0380821115620001f257600080fd5b818701915087601f8301126200020757600080fd5b8151818111156200021c576200021c6200018c565b604051601f8201601f19908116603f011681019083821181831017156200024757620002476200018c565b816040528281528a868487010111156200026057600080fd5b600093505b8284101562000284578484018601518185018701529285019262000265565b60008684830101528096505050505050509250925092565b600181811c90821680620002b157607f821691505b602082108103620002d257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032657600081815260208120601f850160051c81016020861015620003015750805b601f850160051c820191505b8181101562000322578281556001016200030d565b5050505b505050565b81516001600160401b038111156200034757620003476200018c565b6200035f816200035884546200029c565b84620002d8565b602080601f8311600181146200039757600084156200037e5750858301515b600019600386901b1c1916600185901b17855562000322565b600085815260208120601f198616915b82811015620003c857888601518255948401946001909101908401620003a7565b5085821015620003e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61263680620004076000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c80638a59a7fd11610151578063c23dc68f116100c3578063d89135cd11610087578063d89135cd146105a1578063e985e9c5146105a9578063f2523633146105e5578063f2fde38b146105f8578063f4221d681461060b578063f8dcbddb1461062b57600080fd5b8063c23dc68f1461052c578063c87b56dd1461054c578063c893575a1461055f578063cbccefb214610567578063d3417c561461058157600080fd5b8063a0bcfc7f11610115578063a0bcfc7f146104c5578063a22cb465146104d8578063a2309ff8146104eb578063ac5ae11b146104f3578063afde13ac14610506578063b88d4fde1461051957600080fd5b80638a59a7fd146104735780638da5cb5b146104865780638e5244041461049757806395d89b41146104aa57806399a2557a146104b257600080fd5b80633c70a06a116101ea5780636352211e116101ae5780636352211e146104145780636c0360eb1461042757806370a082311461042f578063715018a614610442578063823757671461044a5780638462151c1461045357600080fd5b80633c70a06a146103b257806342842e0e146103bb57806342966c68146103ce57806346b79575146103e15780635bbb2177146103f457600080fd5b80630e6f754c1161023c5780630e6f754c1461031157806313f7da201461034857806318160ddd1461037157806323b872dd146103795780632478d6391461038c5780633255c65b1461039f57600080fd5b806301ffc9a71461027957806306fdde03146102a1578063081812fc146102b6578063095ea7b3146102e15780630c3f6acf146102f6575b600080fd5b61028c610287366004611e09565b61063e565b60405190151581526020015b60405180910390f35b6102a9610690565b6040516102989190611e76565b6102c96102c4366004611e89565b610722565b6040516001600160a01b039091168152602001610298565b6102f46102ef366004611ebe565b610766565b005b600c54600f546010546040516102989360ff16929190611f20565b61033a61031f366004611f3f565b6001600160a01b03166000908152600d602052604090205490565b604051908152602001610298565b61033a610356366004611f3f565b6001600160a01b03166000908152600e602052604090205490565b61033a610806565b6102f4610387366004611f5a565b610814565b61033a61039a366004611f3f565b6109a5565b6102f46103ad366004611e89565b6109d2565b61033a600f5481565b6102f46103c9366004611f5a565b6109df565b6102f46103dc366004611e89565b6109ff565b6102f46103ef366004611f96565b610a0d565b61040761040236600461201c565b610bd4565b60405161029891906120cc565b6102c9610422366004611e89565b610c86565b6102a9610c91565b61033a61043d366004611f3f565b610d1f565b6102f4610d6d565b61033a60105481565b610466610461366004611f3f565b610d81565b604051610298919061210e565b61033a610481366004611f3f565b610e67565b6000546001600160a01b03166102c9565b6102f46104a5366004611f96565b610e91565b6102a9611015565b6104666104c0366004612146565b611024565b6102f46104d3366004612204565b6111ab565b6102f46104e636600461224c565b6111c3565b61033a611258565b6102f4610501366004611ebe565b61126c565b6102f4610514366004611e89565b611300565b6102f4610527366004612288565b61130d565b61053f61053a366004611e89565b611351565b6040516102989190612303565b6102a961055a366004611e89565b6113a1565b6102f461142a565b600c546105749060ff1681565b6040516102989190612311565b61033a61058f366004611f3f565b600e6020526000908152604090205481565b61033a611476565b61028c6105b736600461231f565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61053f6105f3366004611e89565b611481565b6102f4610606366004611f3f565b611492565b61033a610619366004611f3f565b600d6020526000908152604090205481565b6102f4610639366004611e89565b611508565b60006301ffc9a760e01b6001600160e01b03198316148061066f57506380ac58cd60e01b6001600160e01b03198316145b8061068a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461069f90612352565b80601f01602080910402602001604051908101604052809291908181526020018280546106cb90612352565b80156107185780601f106106ed57610100808354040283529160200191610718565b820191906000526020600020905b8154815290600101906020018083116106fb57829003601f168201915b5050505050905090565b600061072d82611546565b61074a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061077182610c86565b9050336001600160a01b038216146107aa5761078d81336105b7565b6107aa576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600254600154036000190190565b600061081f8261157b565b9050836001600160a01b0316816001600160a01b0316146108525760405162a1148160e81b815260040160405180910390fd5b6000828152600760205260409020805461087e8187335b6001600160a01b039081169116811491141790565b6108a95761088c86336105b7565b6108a957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166108d057604051633a954ecd60e21b815260040160405180910390fd5b80156108db57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361096d5760018401600081815260056020526040812054900361096b57600154811461096b5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206125e183398151915260405160405180910390a45b505050505050565b600061068a826001600160a01b031660009081526006602052604090205460801c6001600160401b031690565b6109da6115ea565b600f55565b6109fa8383836040518060200160405280600081525061130d565b505050565b610a0a816001611644565b50565b60008311610a365760405162461bcd60e51b8152600401610a2d9061238c565b60405180910390fd5b6002600c5460ff166005811115610a4f57610a4f611ee8565b14610a6c576040516282b42960e81b815260040160405180910390fd5b6115b383610a78610806565b610a8291906123b3565b1115610aa0576040516282b42960e81b815260040160405180910390fd5b610b3682828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c019150610b129050565b6040516020818303038152906040528051906020012061177d90919063ffffffff16565b600a546001600160a01b03908116911614610b63576040516282b42960e81b815260040160405180910390fd5b601054336000908152600e6020526040902054610b819085906123b3565b1115610b9f576040516282b42960e81b815260040160405180910390fd5b336000908152600e602052604081208054859290610bbe9084906123b3565b90915550610bce905084846117a1565b50505050565b6060816000816001600160401b03811115610bf157610bf1612179565b604051908082528060200260200182016040528015610c2a57816020015b610c17611dcc565b815260200190600190039081610c0f5790505b50905060005b828114610c7d57610c58868683818110610c4c57610c4c6123d4565b90506020020135611351565b828281518110610c6a57610c6a6123d4565b6020908102919091010152600101610c30565b50949350505050565b600061068a8261157b565b600b8054610c9e90612352565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90612352565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b505050505081565b60006001600160a01b038216610d48576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610d756115ea565b610d7f600061187b565b565b60606000806000610d9185610d1f565b90506000816001600160401b03811115610dad57610dad612179565b604051908082528060200260200182016040528015610dd6578160200160208202803683370190505b509050610de1611dcc565b60015b838614610e5b57610df4816118cb565b91508160400151610e535781516001600160a01b031615610e1457815194505b876001600160a01b0316856001600160a01b031603610e535780838780600101985081518110610e4657610e466123d4565b6020026020010181815250505b600101610de4565b50909695505050505050565b6001600160a01b038116600090815260066020526040808220546001600160401b03911c1661068a565b60008311610eb15760405162461bcd60e51b8152600401610a2d9061238c565b6001600c5460ff166005811115610eca57610eca611ee8565b14610ee7576040516282b42960e81b815260040160405180910390fd5b6115b383610ef3610806565b610efd91906123b3565b1115610f1b576040516282b42960e81b815260040160405180910390fd5b610f8d82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c019150610b129050565b6009546001600160a01b03908116911614610fba576040516282b42960e81b815260040160405180910390fd5b600f54336000908152600d6020526040902054610fd89085906123b3565b1115610ff6576040516282b42960e81b815260040160405180910390fd5b336000908152600d602052604081208054859290610bbe9084906123b3565b60606004805461069f90612352565b606081831061104657604051631960ccad60e11b815260040160405180910390fd5b60008061105260015490565b9050600185101561106257600194505b8084111561106e578093505b600061107987610d1f565b9050848610156110985785850381811015611092578091505b5061109c565b5060005b6000816001600160401b038111156110b6576110b6612179565b6040519080825280602002602001820160405280156110df578160200160208202803683370190505b509050816000036110f55793506111a492505050565b600061110088611351565b905060008160400151611111575080515b885b8881141580156111235750848714155b1561119857611131816118cb565b925082604001516111905782516001600160a01b03161561115157825191505b8a6001600160a01b0316826001600160a01b0316036111905780848880600101995081518110611183576111836123d4565b6020026020010181815250505b600101611113565b50505092835250909150505b9392505050565b6111b36115ea565b600b6111bf8282612430565b5050565b336001600160a01b038316036111ec5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006112676001546000190190565b905090565b6000811161128c5760405162461bcd60e51b8152600401610a2d9061238c565b6003600c5460ff1660058111156112a5576112a5611ee8565b146112c2576040516282b42960e81b815260040160405180910390fd5b6115b3816112ce610806565b6112d891906123b3565b11156112f6576040516282b42960e81b815260040160405180910390fd5b6111bf82826117a1565b6113086115ea565b601055565b611318848484610814565b6001600160a01b0383163b15610bce57611334848484846118eb565b610bce576040516368d2bf6b60e11b815260040160405180910390fd5b611359611dcc565b611361611dcc565b600183108061137257506001548310155b1561137d5792915050565b611386836118cb565b90508060400151156113985792915050565b6111a4836119d7565b60606113ac82611546565b6113f85760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610a2d565b600b611403836119f0565b6040516020016114149291906124ef565b6040516020818303038152906040529050919050565b6114326115ea565b61143a610806565b15611457576040516282b42960e81b815260040160405180910390fd5b610d7f73bce824e921259749fbb77a10dc5ef64f546124c960646117a1565b600061126760025490565b611489611dcc565b61068a826118cb565b61149a6115ea565b6001600160a01b0381166114ff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a2d565b610a0a8161187b565b6115106115ea565b80600581111561152257611522611ee8565b600c805460ff1916600183600581111561153e5761153e611ee8565b021790555050565b60008160011115801561155a575060015482105b801561068a575050600090815260056020526040902054600160e01b161590565b600081806001116115d1576001548110156115d15760008181526005602052604081205490600160e01b821690036115cf575b806000036111a45750600019016000818152600560205260409020546115ae565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314610d7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a2d565b600061164f8361157b565b90508060008061166d86600090815260076020526040902080549091565b9150915084156116ad57611682818433610869565b6116ad5761169083336105b7565b6116ad57604051632ce44b5f60e11b815260040160405180910390fd5b80156116b857600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b85169003611746576001860160008181526005602052604081205490036117445760015481146117445760008181526005602052604090208590555b505b60405186906000906001600160a01b038616906000805160206125e1833981519152908390a4505060028054600101905550505050565b600080600061178c8585611a3f565b9150915061179981611aad565b509392505050565b60015460008290036117c65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083906000805160206125e18339815191528180a4600183015b81811461185157808360006000805160206125e1833981519152600080a460010161182b565b508160000361187257604051622e076360e81b815260040160405180910390fd5b60015550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6118d3611dcc565b60008281526005602052604090205461068a90611c63565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611920903390899088908890600401612586565b6020604051808303816000875af192505050801561195b575060408051601f3d908101601f19168201909252611958918101906125c3565b60015b6119b9573d808015611989576040519150601f19603f3d011682016040523d82523d6000602084013e61198e565b606091505b5080516000036119b1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6119df611dcc565b61068a6119eb8361157b565b611c63565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611a2d57600183039250600a81066030018353600a9004611a0f565b50819003601f19909101908152919050565b6000808251604103611a755760208301516040840151606085015160001a611a6987828585611ca6565b94509450505050611aa6565b8251604003611a9e5760208301516040840151611a93868383611d93565b935093505050611aa6565b506000905060025b9250929050565b6000816004811115611ac157611ac1611ee8565b03611ac95750565b6001816004811115611add57611add611ee8565b03611b2a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a2d565b6002816004811115611b3e57611b3e611ee8565b03611b8b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a2d565b6003816004811115611b9f57611b9f611ee8565b03611bf75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a2d565b6004816004811115611c0b57611c0b611ee8565b03610a0a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a2d565b611c6b611dcc565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611cdd5750600090506003611d8a565b8460ff16601b14158015611cf557508460ff16601c14155b15611d065750600090506004611d8a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d5a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d8357600060019250925050611d8a565b9150600090505b94509492505050565b6000806001600160ff1b03831681611db060ff86901c601b6123b3565b9050611dbe87828885611ca6565b935093505050935093915050565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114610a0a57600080fd5b600060208284031215611e1b57600080fd5b81356111a481611df3565b60005b83811015611e41578181015183820152602001611e29565b50506000910152565b60008151808452611e62816020860160208601611e26565b601f01601f19169290920160200192915050565b6020815260006111a46020830184611e4a565b600060208284031215611e9b57600080fd5b5035919050565b80356001600160a01b0381168114611eb957600080fd5b919050565b60008060408385031215611ed157600080fd5b611eda83611ea2565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60068110611f1c57634e487b7160e01b600052602160045260246000fd5b9052565b60608101611f2e8286611efe565b602082019390935260400152919050565b600060208284031215611f5157600080fd5b6111a482611ea2565b600080600060608486031215611f6f57600080fd5b611f7884611ea2565b9250611f8660208501611ea2565b9150604084013590509250925092565b60008060008060608587031215611fac57600080fd5b611fb585611ea2565b93506020850135925060408501356001600160401b0380821115611fd857600080fd5b818701915087601f830112611fec57600080fd5b813581811115611ffb57600080fd5b88602082850101111561200d57600080fd5b95989497505060200194505050565b6000806020838503121561202f57600080fd5b82356001600160401b038082111561204657600080fd5b818501915085601f83011261205a57600080fd5b81358181111561206957600080fd5b8660208260051b850101111561207e57600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e5b576120fb838551612090565b92840192608092909201916001016120e8565b6020808252825182820181905260009190848201906040850190845b81811015610e5b5783518352928401929184019160010161212a565b60008060006060848603121561215b57600080fd5b61216484611ea2565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156121a9576121a9612179565b604051601f8501601f19908116603f011681019082821181831017156121d1576121d1612179565b816040528093508581528686860111156121ea57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561221657600080fd5b81356001600160401b0381111561222c57600080fd5b8201601f8101841361223d57600080fd5b6119cf8482356020840161218f565b6000806040838503121561225f57600080fd5b61226883611ea2565b91506020830135801515811461227d57600080fd5b809150509250929050565b6000806000806080858703121561229e57600080fd5b6122a785611ea2565b93506122b560208601611ea2565b92506040850135915060608501356001600160401b038111156122d757600080fd5b8501601f810187136122e857600080fd5b6122f78782356020840161218f565b91505092959194509250565b6080810161068a8284612090565b6020810161068a8284611efe565b6000806040838503121561233257600080fd5b61233b83611ea2565b915061234960208401611ea2565b90509250929050565b600181811c9082168061236657607f821691505b60208210810361238657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c05175616e74697479206973203609c1b604082015260600190565b8082018082111561068a57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b601f8211156109fa57600081815260208120601f850160051c810160208610156124115750805b601f850160051c820191505b8181101561099d5782815560010161241d565b81516001600160401b0381111561244957612449612179565b61245d816124578454612352565b846123ea565b602080601f831160018114612492576000841561247a5750858301515b600019600386901b1c1916600185901b17855561099d565b600085815260208120601f198616915b828110156124c1578886015182559484019460019091019084016124a2565b50858210156124df5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546124fd81612352565b60018281168015612515576001811461252a57612559565b60ff1984168752821515830287019450612559565b8860005260208060002060005b858110156125505781548a820152908401908201612537565b50505082870194505b50505050835161256d818360208801611e26565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125b990830184611e4a565b9695505050505050565b6000602082840312156125d557600080fd5b81516111a481611df356feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220fe015985c8aee5ce0349f64840d3ef89d4baebabe12864914b35b85d5c77117864736f6c634300081100330000000000000000000000004205d5ae579e9708b49347580e9e780f780012850000000000000000000000005cf769f252d4bcd973e025b9e074f5e45a7ba12300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696368376d777270757833743379327736787968756667656773336f33617a727478637368783232757a71793267367734657a33712f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102745760003560e01c80638a59a7fd11610151578063c23dc68f116100c3578063d89135cd11610087578063d89135cd146105a1578063e985e9c5146105a9578063f2523633146105e5578063f2fde38b146105f8578063f4221d681461060b578063f8dcbddb1461062b57600080fd5b8063c23dc68f1461052c578063c87b56dd1461054c578063c893575a1461055f578063cbccefb214610567578063d3417c561461058157600080fd5b8063a0bcfc7f11610115578063a0bcfc7f146104c5578063a22cb465146104d8578063a2309ff8146104eb578063ac5ae11b146104f3578063afde13ac14610506578063b88d4fde1461051957600080fd5b80638a59a7fd146104735780638da5cb5b146104865780638e5244041461049757806395d89b41146104aa57806399a2557a146104b257600080fd5b80633c70a06a116101ea5780636352211e116101ae5780636352211e146104145780636c0360eb1461042757806370a082311461042f578063715018a614610442578063823757671461044a5780638462151c1461045357600080fd5b80633c70a06a146103b257806342842e0e146103bb57806342966c68146103ce57806346b79575146103e15780635bbb2177146103f457600080fd5b80630e6f754c1161023c5780630e6f754c1461031157806313f7da201461034857806318160ddd1461037157806323b872dd146103795780632478d6391461038c5780633255c65b1461039f57600080fd5b806301ffc9a71461027957806306fdde03146102a1578063081812fc146102b6578063095ea7b3146102e15780630c3f6acf146102f6575b600080fd5b61028c610287366004611e09565b61063e565b60405190151581526020015b60405180910390f35b6102a9610690565b6040516102989190611e76565b6102c96102c4366004611e89565b610722565b6040516001600160a01b039091168152602001610298565b6102f46102ef366004611ebe565b610766565b005b600c54600f546010546040516102989360ff16929190611f20565b61033a61031f366004611f3f565b6001600160a01b03166000908152600d602052604090205490565b604051908152602001610298565b61033a610356366004611f3f565b6001600160a01b03166000908152600e602052604090205490565b61033a610806565b6102f4610387366004611f5a565b610814565b61033a61039a366004611f3f565b6109a5565b6102f46103ad366004611e89565b6109d2565b61033a600f5481565b6102f46103c9366004611f5a565b6109df565b6102f46103dc366004611e89565b6109ff565b6102f46103ef366004611f96565b610a0d565b61040761040236600461201c565b610bd4565b60405161029891906120cc565b6102c9610422366004611e89565b610c86565b6102a9610c91565b61033a61043d366004611f3f565b610d1f565b6102f4610d6d565b61033a60105481565b610466610461366004611f3f565b610d81565b604051610298919061210e565b61033a610481366004611f3f565b610e67565b6000546001600160a01b03166102c9565b6102f46104a5366004611f96565b610e91565b6102a9611015565b6104666104c0366004612146565b611024565b6102f46104d3366004612204565b6111ab565b6102f46104e636600461224c565b6111c3565b61033a611258565b6102f4610501366004611ebe565b61126c565b6102f4610514366004611e89565b611300565b6102f4610527366004612288565b61130d565b61053f61053a366004611e89565b611351565b6040516102989190612303565b6102a961055a366004611e89565b6113a1565b6102f461142a565b600c546105749060ff1681565b6040516102989190612311565b61033a61058f366004611f3f565b600e6020526000908152604090205481565b61033a611476565b61028c6105b736600461231f565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61053f6105f3366004611e89565b611481565b6102f4610606366004611f3f565b611492565b61033a610619366004611f3f565b600d6020526000908152604090205481565b6102f4610639366004611e89565b611508565b60006301ffc9a760e01b6001600160e01b03198316148061066f57506380ac58cd60e01b6001600160e01b03198316145b8061068a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461069f90612352565b80601f01602080910402602001604051908101604052809291908181526020018280546106cb90612352565b80156107185780601f106106ed57610100808354040283529160200191610718565b820191906000526020600020905b8154815290600101906020018083116106fb57829003601f168201915b5050505050905090565b600061072d82611546565b61074a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061077182610c86565b9050336001600160a01b038216146107aa5761078d81336105b7565b6107aa576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600254600154036000190190565b600061081f8261157b565b9050836001600160a01b0316816001600160a01b0316146108525760405162a1148160e81b815260040160405180910390fd5b6000828152600760205260409020805461087e8187335b6001600160a01b039081169116811491141790565b6108a95761088c86336105b7565b6108a957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166108d057604051633a954ecd60e21b815260040160405180910390fd5b80156108db57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361096d5760018401600081815260056020526040812054900361096b57600154811461096b5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206125e183398151915260405160405180910390a45b505050505050565b600061068a826001600160a01b031660009081526006602052604090205460801c6001600160401b031690565b6109da6115ea565b600f55565b6109fa8383836040518060200160405280600081525061130d565b505050565b610a0a816001611644565b50565b60008311610a365760405162461bcd60e51b8152600401610a2d9061238c565b60405180910390fd5b6002600c5460ff166005811115610a4f57610a4f611ee8565b14610a6c576040516282b42960e81b815260040160405180910390fd5b6115b383610a78610806565b610a8291906123b3565b1115610aa0576040516282b42960e81b815260040160405180910390fd5b610b3682828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c019150610b129050565b6040516020818303038152906040528051906020012061177d90919063ffffffff16565b600a546001600160a01b03908116911614610b63576040516282b42960e81b815260040160405180910390fd5b601054336000908152600e6020526040902054610b819085906123b3565b1115610b9f576040516282b42960e81b815260040160405180910390fd5b336000908152600e602052604081208054859290610bbe9084906123b3565b90915550610bce905084846117a1565b50505050565b6060816000816001600160401b03811115610bf157610bf1612179565b604051908082528060200260200182016040528015610c2a57816020015b610c17611dcc565b815260200190600190039081610c0f5790505b50905060005b828114610c7d57610c58868683818110610c4c57610c4c6123d4565b90506020020135611351565b828281518110610c6a57610c6a6123d4565b6020908102919091010152600101610c30565b50949350505050565b600061068a8261157b565b600b8054610c9e90612352565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90612352565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b505050505081565b60006001600160a01b038216610d48576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610d756115ea565b610d7f600061187b565b565b60606000806000610d9185610d1f565b90506000816001600160401b03811115610dad57610dad612179565b604051908082528060200260200182016040528015610dd6578160200160208202803683370190505b509050610de1611dcc565b60015b838614610e5b57610df4816118cb565b91508160400151610e535781516001600160a01b031615610e1457815194505b876001600160a01b0316856001600160a01b031603610e535780838780600101985081518110610e4657610e466123d4565b6020026020010181815250505b600101610de4565b50909695505050505050565b6001600160a01b038116600090815260066020526040808220546001600160401b03911c1661068a565b60008311610eb15760405162461bcd60e51b8152600401610a2d9061238c565b6001600c5460ff166005811115610eca57610eca611ee8565b14610ee7576040516282b42960e81b815260040160405180910390fd5b6115b383610ef3610806565b610efd91906123b3565b1115610f1b576040516282b42960e81b815260040160405180910390fd5b610f8d82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c019150610b129050565b6009546001600160a01b03908116911614610fba576040516282b42960e81b815260040160405180910390fd5b600f54336000908152600d6020526040902054610fd89085906123b3565b1115610ff6576040516282b42960e81b815260040160405180910390fd5b336000908152600d602052604081208054859290610bbe9084906123b3565b60606004805461069f90612352565b606081831061104657604051631960ccad60e11b815260040160405180910390fd5b60008061105260015490565b9050600185101561106257600194505b8084111561106e578093505b600061107987610d1f565b9050848610156110985785850381811015611092578091505b5061109c565b5060005b6000816001600160401b038111156110b6576110b6612179565b6040519080825280602002602001820160405280156110df578160200160208202803683370190505b509050816000036110f55793506111a492505050565b600061110088611351565b905060008160400151611111575080515b885b8881141580156111235750848714155b1561119857611131816118cb565b925082604001516111905782516001600160a01b03161561115157825191505b8a6001600160a01b0316826001600160a01b0316036111905780848880600101995081518110611183576111836123d4565b6020026020010181815250505b600101611113565b50505092835250909150505b9392505050565b6111b36115ea565b600b6111bf8282612430565b5050565b336001600160a01b038316036111ec5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006112676001546000190190565b905090565b6000811161128c5760405162461bcd60e51b8152600401610a2d9061238c565b6003600c5460ff1660058111156112a5576112a5611ee8565b146112c2576040516282b42960e81b815260040160405180910390fd5b6115b3816112ce610806565b6112d891906123b3565b11156112f6576040516282b42960e81b815260040160405180910390fd5b6111bf82826117a1565b6113086115ea565b601055565b611318848484610814565b6001600160a01b0383163b15610bce57611334848484846118eb565b610bce576040516368d2bf6b60e11b815260040160405180910390fd5b611359611dcc565b611361611dcc565b600183108061137257506001548310155b1561137d5792915050565b611386836118cb565b90508060400151156113985792915050565b6111a4836119d7565b60606113ac82611546565b6113f85760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610a2d565b600b611403836119f0565b6040516020016114149291906124ef565b6040516020818303038152906040529050919050565b6114326115ea565b61143a610806565b15611457576040516282b42960e81b815260040160405180910390fd5b610d7f73bce824e921259749fbb77a10dc5ef64f546124c960646117a1565b600061126760025490565b611489611dcc565b61068a826118cb565b61149a6115ea565b6001600160a01b0381166114ff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a2d565b610a0a8161187b565b6115106115ea565b80600581111561152257611522611ee8565b600c805460ff1916600183600581111561153e5761153e611ee8565b021790555050565b60008160011115801561155a575060015482105b801561068a575050600090815260056020526040902054600160e01b161590565b600081806001116115d1576001548110156115d15760008181526005602052604081205490600160e01b821690036115cf575b806000036111a45750600019016000818152600560205260409020546115ae565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314610d7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a2d565b600061164f8361157b565b90508060008061166d86600090815260076020526040902080549091565b9150915084156116ad57611682818433610869565b6116ad5761169083336105b7565b6116ad57604051632ce44b5f60e11b815260040160405180910390fd5b80156116b857600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b85169003611746576001860160008181526005602052604081205490036117445760015481146117445760008181526005602052604090208590555b505b60405186906000906001600160a01b038616906000805160206125e1833981519152908390a4505060028054600101905550505050565b600080600061178c8585611a3f565b9150915061179981611aad565b509392505050565b60015460008290036117c65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083906000805160206125e18339815191528180a4600183015b81811461185157808360006000805160206125e1833981519152600080a460010161182b565b508160000361187257604051622e076360e81b815260040160405180910390fd5b60015550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6118d3611dcc565b60008281526005602052604090205461068a90611c63565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611920903390899088908890600401612586565b6020604051808303816000875af192505050801561195b575060408051601f3d908101601f19168201909252611958918101906125c3565b60015b6119b9573d808015611989576040519150601f19603f3d011682016040523d82523d6000602084013e61198e565b606091505b5080516000036119b1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6119df611dcc565b61068a6119eb8361157b565b611c63565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611a2d57600183039250600a81066030018353600a9004611a0f565b50819003601f19909101908152919050565b6000808251604103611a755760208301516040840151606085015160001a611a6987828585611ca6565b94509450505050611aa6565b8251604003611a9e5760208301516040840151611a93868383611d93565b935093505050611aa6565b506000905060025b9250929050565b6000816004811115611ac157611ac1611ee8565b03611ac95750565b6001816004811115611add57611add611ee8565b03611b2a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a2d565b6002816004811115611b3e57611b3e611ee8565b03611b8b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a2d565b6003816004811115611b9f57611b9f611ee8565b03611bf75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a2d565b6004816004811115611c0b57611c0b611ee8565b03610a0a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a2d565b611c6b611dcc565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611cdd5750600090506003611d8a565b8460ff16601b14158015611cf557508460ff16601c14155b15611d065750600090506004611d8a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d5a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d8357600060019250925050611d8a565b9150600090505b94509492505050565b6000806001600160ff1b03831681611db060ff86901c601b6123b3565b9050611dbe87828885611ca6565b935093505050935093915050565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114610a0a57600080fd5b600060208284031215611e1b57600080fd5b81356111a481611df3565b60005b83811015611e41578181015183820152602001611e29565b50506000910152565b60008151808452611e62816020860160208601611e26565b601f01601f19169290920160200192915050565b6020815260006111a46020830184611e4a565b600060208284031215611e9b57600080fd5b5035919050565b80356001600160a01b0381168114611eb957600080fd5b919050565b60008060408385031215611ed157600080fd5b611eda83611ea2565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60068110611f1c57634e487b7160e01b600052602160045260246000fd5b9052565b60608101611f2e8286611efe565b602082019390935260400152919050565b600060208284031215611f5157600080fd5b6111a482611ea2565b600080600060608486031215611f6f57600080fd5b611f7884611ea2565b9250611f8660208501611ea2565b9150604084013590509250925092565b60008060008060608587031215611fac57600080fd5b611fb585611ea2565b93506020850135925060408501356001600160401b0380821115611fd857600080fd5b818701915087601f830112611fec57600080fd5b813581811115611ffb57600080fd5b88602082850101111561200d57600080fd5b95989497505060200194505050565b6000806020838503121561202f57600080fd5b82356001600160401b038082111561204657600080fd5b818501915085601f83011261205a57600080fd5b81358181111561206957600080fd5b8660208260051b850101111561207e57600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e5b576120fb838551612090565b92840192608092909201916001016120e8565b6020808252825182820181905260009190848201906040850190845b81811015610e5b5783518352928401929184019160010161212a565b60008060006060848603121561215b57600080fd5b61216484611ea2565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156121a9576121a9612179565b604051601f8501601f19908116603f011681019082821181831017156121d1576121d1612179565b816040528093508581528686860111156121ea57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561221657600080fd5b81356001600160401b0381111561222c57600080fd5b8201601f8101841361223d57600080fd5b6119cf8482356020840161218f565b6000806040838503121561225f57600080fd5b61226883611ea2565b91506020830135801515811461227d57600080fd5b809150509250929050565b6000806000806080858703121561229e57600080fd5b6122a785611ea2565b93506122b560208601611ea2565b92506040850135915060608501356001600160401b038111156122d757600080fd5b8501601f810187136122e857600080fd5b6122f78782356020840161218f565b91505092959194509250565b6080810161068a8284612090565b6020810161068a8284611efe565b6000806040838503121561233257600080fd5b61233b83611ea2565b915061234960208401611ea2565b90509250929050565b600181811c9082168061236657607f821691505b60208210810361238657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c05175616e74697479206973203609c1b604082015260600190565b8082018082111561068a57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b601f8211156109fa57600081815260208120601f850160051c810160208610156124115750805b601f850160051c820191505b8181101561099d5782815560010161241d565b81516001600160401b0381111561244957612449612179565b61245d816124578454612352565b846123ea565b602080601f831160018114612492576000841561247a5750858301515b600019600386901b1c1916600185901b17855561099d565b600085815260208120601f198616915b828110156124c1578886015182559484019460019091019084016124a2565b50858210156124df5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546124fd81612352565b60018281168015612515576001811461252a57612559565b60ff1984168752821515830287019450612559565b8860005260208060002060005b858110156125505781548a820152908401908201612537565b50505082870194505b50505050835161256d818360208801611e26565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125b990830184611e4a565b9695505050505050565b6000602082840312156125d557600080fd5b81516111a481611df356feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220fe015985c8aee5ce0349f64840d3ef89d4baebabe12864914b35b85d5c77117864736f6c63430008110033

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

0000000000000000000000004205d5ae579e9708b49347580e9e780f780012850000000000000000000000005cf769f252d4bcd973e025b9e074f5e45a7ba12300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696368376d777270757833743379327736787968756667656773336f33617a727478637368783232757a71793267367734657a33712f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _signerAddressPresale (address): 0x4205d5AE579e9708b49347580e9e780f78001285
Arg [1] : _signerAddressWinelist (address): 0x5Cf769F252d4BcD973e025b9e074f5E45A7ba123
Arg [2] : _baseURI (string): ipfs://bafybeich7mwrpux3t3y2w6xyhufgegs3o3azrtxcshx22uzqy2g6w4ez3q/

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000004205d5ae579e9708b49347580e9e780f78001285
Arg [1] : 0000000000000000000000005cf769f252d4bcd973e025b9e074f5e45a7ba123
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [4] : 697066733a2f2f626166796265696368376d7772707578337433793277367879
Arg [5] : 68756667656773336f33617a727478637368783232757a71793267367734657a
Arg [6] : 33712f0000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

90772:5029:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51055:639;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;51055:639:0;;;;;;;;51957:100;;;:::i;:::-;;;;;;;:::i;58440:218::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;58440:218:0;1533:203:1;57881:400:0;;;;;;:::i;:::-;;:::i;:::-;;94921:155;95005:11;;95018:23;;95043:24;;94921:155;;;;95005:11;;;95018:23;95043:24;94921:155;:::i;95214:148::-;;;;;;:::i;:::-;-1:-1:-1;;;;;95313:41:0;95286:7;95313:41;;;:32;:41;;;;;;;95214:148;;;;3229:25:1;;;3217:2;3202:18;95214:148:0;3083:177:1;95370:154:0;;;;;;:::i;:::-;-1:-1:-1;;;;;95470:46:0;95443:7;95470:46;;;:37;:46;;;;;;;95370:154;47708:323;;;:::i;62147:2817::-;;;;;;:::i;:::-;;:::i;92271:113::-;;;;;;:::i;:::-;;:::i;94679:112::-;;;;;;:::i;:::-;;:::i;91412:39::-;;;;;;65060:185;;;;;;:::i;:::-;;:::i;90580:94::-;;;;;;:::i;:::-;;:::i;93335:807::-;;;;;;:::i;:::-;;:::i;85284:528::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;53350:152::-;;;;;;:::i;:::-;;:::i;91153:21::-;;;:::i;48892:233::-;;;;;;:::i;:::-;;:::i;29399:103::-;;;:::i;91458:40::-;;;;;;89160:900;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;95084:122::-;;;;;;:::i;:::-;;:::i;28751:87::-;28797:7;28824:6;-1:-1:-1;;;;;28824:6:0;28751:87;;92538:789;;;;;;:::i;:::-;;:::i;52133:104::-;;;:::i;86200:2513::-;;;;;;:::i;:::-;;:::i;94471:100::-;;;;;;:::i;:::-;;:::i;58998:308::-;;;;;;:::i;:::-;;:::i;92069:93::-;;;:::i;94150:313::-;;;;;;:::i;:::-;;:::i;94799:114::-;;;;;;:::i;:::-;;:::i;65843:399::-;;;;;;:::i;:::-;;:::i;84697:428::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;95532:266::-;;;;;;:::i;:::-;;:::i;92392:138::-;;;:::i;91183:23::-;;;;;;;;;;;;;;;;:::i;91334:69::-;;;;;;:::i;:::-;;;;;;;;;;;;;;92170:93;;;:::i;59463:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;59584:25:0;;;59560:4;59584:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;59463:164;91933:128;;;;;;:::i;:::-;;:::i;29657:201::-;;;;;;:::i;:::-;;:::i;91263:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;94579:92;;;;;;:::i;:::-;;:::i;51055:639::-;51140:4;-1:-1:-1;;;;;;;;;51464:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;51541:25:0;;;51464:102;:179;;;-1:-1:-1;;;;;;;;;;51618:25:0;;;51464:179;51444:199;51055:639;-1:-1:-1;;51055:639:0:o;51957:100::-;52011:13;52044:5;52037:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51957:100;:::o;58440:218::-;58516:7;58541:16;58549:7;58541;:16::i;:::-;58536:64;;58566:34;;-1:-1:-1;;;58566:34:0;;;;;;;;;;;58536:64;-1:-1:-1;58620:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;58620:30:0;;58440:218::o;57881:400::-;57962:13;57978:16;57986:7;57978;:16::i;:::-;57962:32;-1:-1:-1;81738:10:0;-1:-1:-1;;;;;58011:28:0;;;58007:175;;58059:44;58076:5;81738:10;59463:164;:::i;58059:44::-;58054:128;;58131:35;;-1:-1:-1;;;58131:35:0;;;;;;;;;;;58054:128;58194:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;58194:35:0;-1:-1:-1;;;;;58194:35:0;;;;;;;;;58245:28;;58194:24;;58245:28;;;;;;;57951:330;57881:400;;:::o;47708:323::-;47982:12;;47307:1;47966:13;:28;-1:-1:-1;;47966:46:0;;47708:323::o;62147:2817::-;62281:27;62311;62330:7;62311:18;:27::i;:::-;62281:57;;62396:4;-1:-1:-1;;;;;62355:45:0;62371:19;-1:-1:-1;;;;;62355:45:0;;62351:86;;62409:28;;-1:-1:-1;;;62409:28:0;;;;;;;;;;;62351:86;62451:27;61261:24;;;:15;:24;;;;;61483:26;;62642:68;61483:26;62684:4;81738:10;62690:19;-1:-1:-1;;;;;60735:32:0;;;60579:28;;60864:20;;60886:30;;60861:56;;60276:659;62642:68;62637:180;;62730:43;62747:4;81738:10;59463:164;:::i;62730:43::-;62725:92;;62782:35;;-1:-1:-1;;;62782:35:0;;;;;;;;;;;62725:92;-1:-1:-1;;;;;62834:16:0;;62830:52;;62859:23;;-1:-1:-1;;;62859:23:0;;;;;;;;;;;62830:52;63031:15;63028:160;;;63171:1;63150:19;63143:30;63028:160;-1:-1:-1;;;;;63568:24:0;;;;;;;:18;:24;;;;;;63566:26;;-1:-1:-1;;63566:26:0;;;63637:22;;;;;;;;;63635:24;;-1:-1:-1;63635:24:0;;;56739:11;56714:23;56710:41;56697:63;-1:-1:-1;;;56697:63:0;63930:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;64225:47:0;;:52;;64221:627;;64330:1;64320:11;;64298:19;64453:30;;;:17;:30;;;;;;:35;;64449:384;;64591:13;;64576:11;:28;64572:242;;64738:30;;;;:17;:30;;;;;:52;;;64572:242;64279:569;64221:627;64895:7;64891:2;-1:-1:-1;;;;;64876:27:0;64885:4;-1:-1:-1;;;;;64876:27:0;-1:-1:-1;;;;;;;;;;;64876:27:0;;;;;;;;;64914:42;62270:2694;;;62147:2817;;;:::o;92271:113::-;92329:7;92356:20;92370:5;-1:-1:-1;;;;;49572:25:0;49544:7;49572:25;;;:18;:25;;;;;;43316:3;49572:50;-1:-1:-1;;;;;49571:82:0;;49483:178;94679:112;28637:13;:11;:13::i;:::-;94751:23:::1;:32:::0;94679:112::o;65060:185::-;65198:39;65215:4;65221:2;65225:7;65198:39;;;;;;;;;;;;:16;:39::i;:::-;65060:185;;;:::o;90580:94::-;90646:20;90652:7;90661:4;90646:5;:20::i;:::-;90580:94;:::o;93335:807::-;93455:1;93442:9;:14;93439:42;;93458:23;;-1:-1:-1;;;93458:23:0;;;;;;;:::i;:::-;;;;;;;;93439:42;93510:17;93495:11;;;;:32;;;;;;;;:::i;:::-;;93492:58;;93536:14;;-1:-1:-1;;;93536:14:0;;;;;;;;;;;93492:58;91250:4;93580:9;93564:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:38;93561:64;;;93611:14;;-1:-1:-1;;;93611:14:0;;;;;;;;;;;93561:64;93664:194;93848:9;;93664:194;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;93688:140:0;;11185:66:1;93688:140:0;;;11173:79:1;93800:10:0;11268:12:1;;;11261:28;11305:12;;;-1:-1:-1;93688:140:0;;-1:-1:-1;10943:380:1;93688:140:0;;;;;;;;;;;;;93664:175;;;;;;:183;;:194;;;;:::i;:::-;93639:21;;-1:-1:-1;;;;;93639:21:0;;;:219;;;93636:245;;93867:14;;-1:-1:-1;;;93867:14:0;;;;;;;;;;;93636:245;93961:24;;93935:10;93897:49;;;;:37;:49;;;;;;:61;;93949:9;;93897:61;:::i;:::-;:88;93894:114;;;93994:14;;-1:-1:-1;;;93994:14:0;;;;;;;;;;;93894:114;94071:10;94033:49;;;;:37;:49;;;;;:62;;94086:9;;94033:49;:62;;94086:9;;94033:62;:::i;:::-;;;;-1:-1:-1;94108:26:0;;-1:-1:-1;94114:8:0;94124:9;94108:5;:26::i;:::-;93335:807;;;;:::o;85284:528::-;85428:23;85519:8;85494:22;85519:8;-1:-1:-1;;;;;85586:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;85549:73;;85642:9;85637:125;85658:14;85653:1;:19;85637:125;;85714:32;85734:8;;85743:1;85734:11;;;;;;;:::i;:::-;;;;;;;85714:19;:32::i;:::-;85698:10;85709:1;85698:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;85674:3;;85637:125;;;-1:-1:-1;85783:10:0;85284:528;-1:-1:-1;;;;85284:528:0:o;53350:152::-;53422:7;53465:27;53484:7;53465:18;:27::i;91153:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;48892:233::-;48964:7;-1:-1:-1;;;;;48988:19:0;;48984:60;;49016:28;;-1:-1:-1;;;49016:28:0;;;;;;;;;;;48984:60;-1:-1:-1;;;;;;49062:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;49062:55:0;;48892:233::o;29399:103::-;28637:13;:11;:13::i;:::-;29464:30:::1;29491:1;29464:18;:30::i;:::-;29399:103::o:0;89160:900::-;89238:16;89292:19;89326:25;89366:22;89391:16;89401:5;89391:9;:16::i;:::-;89366:41;;89422:25;89464:14;-1:-1:-1;;;;;89450:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;89450:29:0;;89422:57;;89494:31;;:::i;:::-;47307:1;89540:472;89589:14;89574:11;:29;89540:472;;89641:15;89654:1;89641:12;:15::i;:::-;89629:27;;89679:9;:16;;;89720:8;89675:73;89770:14;;-1:-1:-1;;;;;89770:28:0;;89766:111;;89843:14;;;-1:-1:-1;89766:111:0;89920:5;-1:-1:-1;;;;;89899:26:0;:17;-1:-1:-1;;;;;89899:26:0;;89895:102;;89976:1;89950:8;89959:13;;;;;;89950:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;89895:102;89605:3;;89540:472;;;-1:-1:-1;90033:8:0;;89160:900;-1:-1:-1;;;;;;89160:900:0:o;95084:122::-;-1:-1:-1;;;;;49296:25:0;;95149:7;49296:25;;;:18;:25;;43189:2;49296:25;;;;-1:-1:-1;;;;;49296:50:0;;49295:82;95176:22;49207:178;92538:789;92657:1;92644:9;:14;92641:42;;92660:23;;-1:-1:-1;;;92660:23:0;;;;;;;:::i;92641:42::-;92712:12;92697:11;;;;:27;;;;;;;;:::i;:::-;;92694:53;;92733:14;;-1:-1:-1;;;92733:14:0;;;;;;;;;;;92694:53;91250:4;92777:9;92761:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:38;92758:64;;;92808:14;;-1:-1:-1;;;92808:14:0;;;;;;;;;;;92758:64;92860:194;93044:9;;92860:194;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;92884:140:0;;11185:66:1;92884:140:0;;;11173:79:1;92996:10:0;11268:12:1;;;11261:28;11305:12;;;-1:-1:-1;92884:140:0;;-1:-1:-1;10943:380:1;92860:194:0;92836:20;;-1:-1:-1;;;;;92836:20:0;;;:218;;;92833:244;;93063:14;;-1:-1:-1;;;93063:14:0;;;;;;;;;;;92833:244;93152:23;;93126:10;93093:44;;;;:32;:44;;;;;;:56;;93140:9;;93093:56;:::i;:::-;:82;93090:108;;;93184:14;;-1:-1:-1;;;93184:14:0;;;;;;;;;;;93090:108;93256:10;93223:44;;;;:32;:44;;;;;:57;;93271:9;;93223:44;:57;;93271:9;;93223:57;:::i;52133:104::-;52189:13;52222:7;52215:14;;;;;:::i;86200:2513::-;86343:16;86410:4;86401:5;:13;86397:45;;86423:19;;-1:-1:-1;;;86423:19:0;;;;;;;;;;;86397:45;86457:19;86491:17;86511:14;47477:13;;;47395:103;86511:14;86491:34;-1:-1:-1;47307:1:0;86603:5;:23;86599:87;;;47307:1;86647:23;;86599:87;86762:9;86755:4;:16;86751:73;;;86799:9;86792:16;;86751:73;86838:25;86866:16;86876:5;86866:9;:16::i;:::-;86838:44;;87060:4;87052:5;:12;87048:278;;;87107:12;;;87142:31;;;87138:111;;;87218:11;87198:31;;87138:111;87066:198;87048:278;;;-1:-1:-1;87309:1:0;87048:278;87340:25;87382:17;-1:-1:-1;;;;;87368:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87368:32:0;;87340:60;;87419:17;87440:1;87419:22;87415:78;;87469:8;-1:-1:-1;87462:15:0;;-1:-1:-1;;;87462:15:0;87415:78;87637:31;87671:26;87691:5;87671:19;:26::i;:::-;87637:60;;87712:25;87957:9;:16;;;87952:92;;-1:-1:-1;88014:14:0;;87952:92;88075:5;88058:478;88087:4;88082:1;:9;;:45;;;;;88110:17;88095:11;:32;;88082:45;88058:478;;;88165:15;88178:1;88165:12;:15::i;:::-;88153:27;;88203:9;:16;;;88244:8;88199:73;88294:14;;-1:-1:-1;;;;;88294:28:0;;88290:111;;88367:14;;;-1:-1:-1;88290:111:0;88444:5;-1:-1:-1;;;;;88423:26:0;:17;-1:-1:-1;;;;;88423:26:0;;88419:102;;88500:1;88474:8;88483:13;;;;;;88474:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;88419:102;88129:3;;88058:478;;;-1:-1:-1;;;88621:29:0;;;-1:-1:-1;88628:8:0;;-1:-1:-1;;86200:2513:0;;;;;;:::o;94471:100::-;28637:13;:11;:13::i;:::-;94545:7:::1;:18;94555:8:::0;94545:7;:18:::1;:::i;:::-;;94471:100:::0;:::o;58998:308::-;81738:10;-1:-1:-1;;;;;59097:31:0;;;59093:61;;59137:17;;-1:-1:-1;;;59137:17:0;;;;;;;;;;;59093:61;81738:10;59167:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;59167:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;59167:60:0;;;;;;;;;;59243:55;;540:41:1;;;59167:49:0;;81738:10;59243:55;;513:18:1;59243:55:0;;;;;;;58998:308;;:::o;92069:93::-;92113:7;92140:14;47307:1;48375:13;-1:-1:-1;;48375:31:0;;48129:296;92140:14;92133:21;;92069:93;:::o;94150:313::-;94244:1;94231:9;:14;94228:42;;94247:23;;-1:-1:-1;;;94247:23:0;;;;;;;:::i;94228:42::-;94301:15;94286:11;;;;:30;;;;;;;;:::i;:::-;;94283:56;;94325:14;;-1:-1:-1;;;94325:14:0;;;;;;;;;;;94283:56;91250:4;94371:9;94355:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:38;94352:64;;;94402:14;;-1:-1:-1;;;94402:14:0;;;;;;;;;;;94352:64;94429:26;94435:8;94445:9;94429:5;:26::i;94799:114::-;28637:13;:11;:13::i;:::-;94872:24:::1;:33:::0;94799:114::o;65843:399::-;66010:31;66023:4;66029:2;66033:7;66010:12;:31::i;:::-;-1:-1:-1;;;;;66056:14:0;;;:19;66052:183;;66095:56;66126:4;66132:2;66136:7;66145:5;66095:30;:56::i;:::-;66090:145;;66179:40;;-1:-1:-1;;;66179:40:0;;;;;;;;;;;84697:428;84781:21;;:::i;:::-;84815:31;;:::i;:::-;47307:1;84861:7;:25;:54;;;-1:-1:-1;47477:13:0;;84890:7;:25;;84861:54;84857:103;;;84939:9;84697:428;-1:-1:-1;;84697:428:0:o;84857:103::-;84982:21;84995:7;84982:12;:21::i;:::-;84970:33;;85018:9;:16;;;85014:65;;;85058:9;84697:428;-1:-1:-1;;84697:428:0:o;85014:65::-;85096:21;85109:7;85096:12;:21::i;95532:266::-;95622:13;95656:17;95664:8;95656:7;:17::i;:::-;95648:61;;;;-1:-1:-1;;;95648:61:0;;13866:2:1;95648:61:0;;;13848:21:1;13905:2;13885:18;;;13878:30;13944:33;13924:18;;;13917:61;13995:18;;95648:61:0;13664:355:1;95648:61:0;95751:7;95760:19;95770:8;95760:9;:19::i;:::-;95734:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;95720:70;;95532:266;;;:::o;92392:138::-;28637:13;:11;:13::i;:::-;92450::::1;:11;:13::i;:::-;:18:::0;92447:44:::1;;92477:14;;-1:-1:-1::0;;;92477:14:0::1;;;;;;;;;;;92447:44;92502:20;91575:42;92518:3;92502:5;:20::i;92170:93::-:0;92214:7;92241:14;48589:12;;;48507:102;91933:128;91993:21;;:::i;:::-;92034:19;92047:5;92034:12;:19::i;29657:201::-;28637:13;:11;:13::i;:::-;-1:-1:-1;;;;;29746:22:0;::::1;29738:73;;;::::0;-1:-1:-1;;;29738:73:0;;15418:2:1;29738:73:0::1;::::0;::::1;15400:21:1::0;15457:2;15437:18;;;15430:30;15496:34;15476:18;;;15469:62;-1:-1:-1;;;15547:18:1;;;15540:36;15593:19;;29738:73:0::1;15216:402:1::0;29738:73:0::1;29822:28;29841:8;29822:18;:28::i;94579:92::-:0;28637:13;:11;:13::i;:::-;94657:5:::1;94652:11;;;;;;;;:::i;:::-;94638;:25:::0;;-1:-1:-1;;94638:25:0::1;::::0;;::::1;::::0;::::1;;;;;;:::i;:::-;;;;;;94579:92:::0;:::o;59885:282::-;59950:4;60006:7;47307:1;59987:26;;:66;;;;;60040:13;;60030:7;:23;59987:66;:153;;;;-1:-1:-1;;60091:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;60091:44:0;:49;;59885:282::o;54505:1275::-;54572:7;54607;;47307:1;54656:23;54652:1061;;54709:13;;54702:4;:20;54698:1015;;;54747:14;54764:23;;;:17;:23;;;;;;;-1:-1:-1;;;54853:24:0;;:29;;54849:845;;55518:113;55525:6;55535:1;55525:11;55518:113;;-1:-1:-1;;;55596:6:0;55578:25;;;;:17;:25;;;;;;55518:113;;54849:845;54724:989;54698:1015;55741:31;;-1:-1:-1;;;55741:31:0;;;;;;;;;;;28916:132;28797:7;28824:6;-1:-1:-1;;;;;28824:6:0;81738:10;28980:23;28972:68;;;;-1:-1:-1;;;28972:68:0;;15825:2:1;28972:68:0;;;15807:21:1;;;15844:18;;;15837:30;15903:34;15883:18;;;15876:62;15955:18;;28972:68:0;15623:356:1;76180:3081:0;76260:27;76290;76309:7;76290:18;:27::i;:::-;76260:57;-1:-1:-1;76260:57:0;76330:12;;76452:35;76479:7;61150:27;61261:24;;;:15;:24;;;;;61483:26;;61261:24;;61048:479;76452:35;76395:92;;;;76504:13;76500:316;;;76625:68;76650:15;76667:4;81738:10;76673:19;81651:105;76625:68;76620:184;;76717:43;76734:4;81738:10;59463:164;:::i;76717:43::-;76712:92;;76769:35;;-1:-1:-1;;;76769:35:0;;;;;;;;;;;76712:92;76972:15;76969:160;;;77112:1;77091:19;77084:30;76969:160;-1:-1:-1;;;;;77731:24:0;;;;;;:18;:24;;;;;:60;;77759:32;77731:60;;;56739:11;56714:23;56710:41;56697:63;-1:-1:-1;;;56697:63:0;78029:26;;;;:17;:26;;;;;:205;;;;-1:-1:-1;;;78354:47:0;;:52;;78350:627;;78459:1;78449:11;;78427:19;78582:30;;;:17;:30;;;;;;:35;;78578:384;;78720:13;;78705:11;:28;78701:242;;78867:30;;;;:17;:30;;;;;:52;;;78701:242;78408:569;78350:627;79005:35;;79032:7;;79028:1;;-1:-1:-1;;;;;79005:35:0;;;-1:-1:-1;;;;;;;;;;;79005:35:0;79028:1;;79005:35;-1:-1:-1;;79228:12:0;:14;;;;;;-1:-1:-1;;;;76180:3081:0:o;34339:231::-;34417:7;34438:17;34457:18;34479:27;34490:4;34496:9;34479:10;:27::i;:::-;34437:69;;;;34517:18;34529:5;34517:11;:18::i;:::-;-1:-1:-1;34553:9:0;34339:231;-1:-1:-1;;;34339:231:0:o;69504:2454::-;69600:13;;69577:20;69628:13;;;69624:44;;69650:18;;-1:-1:-1;;;69650:18:0;;;;;;;;;;;69624:44;-1:-1:-1;;;;;70156:22:0;;;;;;:18;:22;;;;43189:2;70156:22;;;:71;;70194:32;70182:45;;70156:71;;;70470:31;;;:17;:31;;;;;-1:-1:-1;57170:15:0;;57144:24;57140:46;56739:11;56714:23;56710:41;56707:52;56697:63;;70470:173;;70705:23;;;;70470:31;;70156:22;;-1:-1:-1;;;;;;;;;;;70156:22:0;;71057:335;71472:1;71458:12;71454:20;71412:346;71513:3;71504:7;71501:16;71412:346;;71731:7;71721:8;71718:1;-1:-1:-1;;;;;;;;;;;71688:1:0;71685;71680:59;71566:1;71553:15;71412:346;;;71416:77;71791:8;71803:1;71791:13;71787:45;;71813:19;;-1:-1:-1;;;71813:19:0;;;;;;;;;;;71787:45;71849:13;:19;-1:-1:-1;65060:185:0;;;:::o;30018:191::-;30092:16;30111:6;;-1:-1:-1;;;;;30128:17:0;;;-1:-1:-1;;;;;;30128:17:0;;;;;;30161:40;;30111:6;;;;;;;30161:40;;30092:16;30161:40;30081:128;30018:191;:::o;53953:161::-;54021:21;;:::i;:::-;54081:24;;;;:17;:24;;;;;;54062:44;;:18;:44::i;68326:716::-;68510:88;;-1:-1:-1;;;68510:88:0;;68489:4;;-1:-1:-1;;;;;68510:45:0;;;;;:88;;81738:10;;68577:4;;68583:7;;68592:5;;68510:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68510:88:0;;;;;;;;-1:-1:-1;;68510:88:0;;;;;;;;;;;;:::i;:::-;;;68506:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68793:6;:13;68810:1;68793:18;68789:235;;68839:40;;-1:-1:-1;;;68839:40:0;;;;;;;;;;;68789:235;68982:6;68976:13;68967:6;68963:2;68959:15;68952:38;68506:529;-1:-1:-1;;;;;;68669:64:0;-1:-1:-1;;;68669:64:0;;-1:-1:-1;68506:529:0;68326:716;;;;;;:::o;53691:166::-;53761:21;;:::i;:::-;53802:47;53821:27;53840:7;53821:18;:27::i;:::-;53802:18;:47::i;81858:2002::-;82335:4;82329:11;;82342:3;82325:21;;82420:17;;;;83116:11;;;82995:5;83282:2;83296;83286:13;;83278:22;83116:11;83265:36;83337:2;83327:13;;82887:731;83356:4;82887:731;;;83547:1;83542:3;83538:11;83531:18;;83598:2;83592:4;83588:13;83584:2;83580:22;83575:3;83567:36;83451:2;83441:13;;82887:731;;;-1:-1:-1;83648:13:0;;;-1:-1:-1;;83763:12:0;;;83823:19;;;83763:12;81858:2002;-1:-1:-1;81858:2002:0:o;32133:1404::-;32214:7;32223:12;32448:9;:16;32468:2;32448:22;32444:1086;;32792:4;32777:20;;32771:27;32842:4;32827:20;;32821:27;32900:4;32885:20;;32879:27;32487:9;32871:36;32943:25;32954:4;32871:36;32771:27;32821;32943:10;:25::i;:::-;32936:32;;;;;;;;;32444:1086;32990:9;:16;33010:2;32990:22;32986:544;;33313:4;33298:20;;33292:27;33364:4;33349:20;;33343:27;33406:23;33417:4;33292:27;33343;33406:10;:23::i;:::-;33399:30;;;;;;;;32986:544;-1:-1:-1;33478:1:0;;-1:-1:-1;33482:35:0;32986:544;32133:1404;;;;;:::o;30404:643::-;30482:20;30473:5;:29;;;;;;;;:::i;:::-;;30469:571;;30404:643;:::o;30469:571::-;30580:29;30571:5;:38;;;;;;;;:::i;:::-;;30567:473;;30626:34;;-1:-1:-1;;;30626:34:0;;16934:2:1;30626:34:0;;;16916:21:1;16973:2;16953:18;;;16946:30;17012:26;16992:18;;;16985:54;17056:18;;30626:34:0;16732:348:1;30567:473:0;30691:35;30682:5;:44;;;;;;;;:::i;:::-;;30678:362;;30743:41;;-1:-1:-1;;;30743:41:0;;17287:2:1;30743:41:0;;;17269:21:1;17326:2;17306:18;;;17299:30;17365:33;17345:18;;;17338:61;17416:18;;30743:41:0;17085:355:1;30678:362:0;30815:30;30806:5;:39;;;;;;;;:::i;:::-;;30802:238;;30862:44;;-1:-1:-1;;;30862:44:0;;17647:2:1;30862:44:0;;;17629:21:1;17686:2;17666:18;;;17659:30;17725:34;17705:18;;;17698:62;-1:-1:-1;;;17776:18:1;;;17769:32;17818:19;;30862:44:0;17445:398:1;30802:238:0;30937:30;30928:5;:39;;;;;;;;:::i;:::-;;30924:116;;30984:44;;-1:-1:-1;;;30984:44:0;;18050:2:1;30984:44:0;;;18032:21:1;18089:2;18069:18;;;18062:30;18128:34;18108:18;;;18101:62;-1:-1:-1;;;18179:18:1;;;18172:32;18221:19;;30984:44:0;17848:398:1;55879:366:0;55945:31;;:::i;:::-;-1:-1:-1;;;;;55989:41:0;;;;-1:-1:-1;;;;;43710:3:0;56075:33;;;56041:68;:24;;;:68;-1:-1:-1;;;56139:24:0;;:29;;56120:16;;;:48;44231:3;56208:28;;;;56179:19;;;:58;55989:9;55879:366::o;35791:1632::-;35922:7;;36856:66;36843:79;;36839:163;;;-1:-1:-1;36955:1:0;;-1:-1:-1;36959:30:0;36939:51;;36839:163;37016:1;:7;;37021:2;37016:7;;:18;;;;;37027:1;:7;;37032:2;37027:7;;37016:18;37012:102;;;-1:-1:-1;37067:1:0;;-1:-1:-1;37071:30:0;37051:51;;37012:102;37228:24;;;37211:14;37228:24;;;;;;;;;18478:25:1;;;18551:4;18539:17;;18519:18;;;18512:45;;;;18573:18;;;18566:34;;;18616:18;;;18609:34;;;37228:24:0;;18450:19:1;;37228:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;37228:24:0;;-1:-1:-1;;37228:24:0;;;-1:-1:-1;;;;;;;37267:20:0;;37263:103;;37320:1;37324:29;37304:50;;;;;;;37263:103;37386:6;-1:-1:-1;37394:20:0;;-1:-1:-1;35791:1632:0;;;;;;;;:::o;34833:344::-;34947:7;;-1:-1:-1;;;;;34993:80:0;;34947:7;35100:25;35116:3;35101:18;;;35123:2;35100:25;:::i;:::-;35084:42;;35144:25;35155:4;35161:1;35164;35167;35144:10;:25::i;:::-;35137:32;;;;;;34833:344;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2178:127::-;2239:10;2234:3;2230:20;2227:1;2220:31;2270:4;2267:1;2260:15;2294:4;2291:1;2284:15;2310:232;2386:1;2379:5;2376:12;2366:143;;2431:10;2426:3;2422:20;2419:1;2412:31;2466:4;2463:1;2456:15;2494:4;2491:1;2484:15;2366:143;2518:18;;2310:232::o;2547:340::-;2744:2;2729:18;;2756:39;2733:9;2777:6;2756:39;:::i;:::-;2826:2;2811:18;;2804:34;;;;2869:2;2854:18;2847:34;2547:340;;-1:-1:-1;2547:340:1:o;2892:186::-;2951:6;3004:2;2992:9;2983:7;2979:23;2975:32;2972:52;;;3020:1;3017;3010:12;2972:52;3043:29;3062:9;3043:29;:::i;3265:328::-;3342:6;3350;3358;3411:2;3399:9;3390:7;3386:23;3382:32;3379:52;;;3427:1;3424;3417:12;3379:52;3450:29;3469:9;3450:29;:::i;:::-;3440:39;;3498:38;3532:2;3521:9;3517:18;3498:38;:::i;:::-;3488:48;;3583:2;3572:9;3568:18;3555:32;3545:42;;3265:328;;;;;:::o;3598:733::-;3686:6;3694;3702;3710;3763:2;3751:9;3742:7;3738:23;3734:32;3731:52;;;3779:1;3776;3769:12;3731:52;3802:29;3821:9;3802:29;:::i;:::-;3792:39;;3878:2;3867:9;3863:18;3850:32;3840:42;;3933:2;3922:9;3918:18;3905:32;-1:-1:-1;;;;;3997:2:1;3989:6;3986:14;3983:34;;;4013:1;4010;4003:12;3983:34;4051:6;4040:9;4036:22;4026:32;;4096:7;4089:4;4085:2;4081:13;4077:27;4067:55;;4118:1;4115;4108:12;4067:55;4158:2;4145:16;4184:2;4176:6;4173:14;4170:34;;;4200:1;4197;4190:12;4170:34;4245:7;4240:2;4231:6;4227:2;4223:15;4219:24;4216:37;4213:57;;;4266:1;4263;4256:12;4213:57;3598:733;;;;-1:-1:-1;;4297:2:1;4289:11;;-1:-1:-1;;;3598:733:1:o;4336:615::-;4422:6;4430;4483:2;4471:9;4462:7;4458:23;4454:32;4451:52;;;4499:1;4496;4489:12;4451:52;4539:9;4526:23;-1:-1:-1;;;;;4609:2:1;4601:6;4598:14;4595:34;;;4625:1;4622;4615:12;4595:34;4663:6;4652:9;4648:22;4638:32;;4708:7;4701:4;4697:2;4693:13;4689:27;4679:55;;4730:1;4727;4720:12;4679:55;4770:2;4757:16;4796:2;4788:6;4785:14;4782:34;;;4812:1;4809;4802:12;4782:34;4865:7;4860:2;4850:6;4847:1;4843:14;4839:2;4835:23;4831:32;4828:45;4825:65;;;4886:1;4883;4876:12;4825:65;4917:2;4909:11;;;;;4939:6;;-1:-1:-1;4336:615:1;;-1:-1:-1;;;;4336:615:1:o;4956:349::-;5040:12;;-1:-1:-1;;;;;5036:38:1;5024:51;;5128:4;5117:16;;;5111:23;-1:-1:-1;;;;;5107:48:1;5091:14;;;5084:72;5219:4;5208:16;;;5202:23;5195:31;5188:39;5172:14;;;5165:63;5281:4;5270:16;;;5264:23;5289:8;5260:38;5244:14;;5237:62;4956:349::o;5310:722::-;5543:2;5595:21;;;5665:13;;5568:18;;;5687:22;;;5514:4;;5543:2;5766:15;;;;5740:2;5725:18;;;5514:4;5809:197;5823:6;5820:1;5817:13;5809:197;;;5872:52;5920:3;5911:6;5905:13;5872:52;:::i;:::-;5981:15;;;;5953:4;5944:14;;;;;5845:1;5838:9;5809:197;;6037:632;6208:2;6260:21;;;6330:13;;6233:18;;;6352:22;;;6179:4;;6208:2;6431:15;;;;6405:2;6390:18;;;6179:4;6474:169;6488:6;6485:1;6482:13;6474:169;;;6549:13;;6537:26;;6618:15;;;;6583:12;;;;6510:1;6503:9;6474:169;;6674:322;6751:6;6759;6767;6820:2;6808:9;6799:7;6795:23;6791:32;6788:52;;;6836:1;6833;6826:12;6788:52;6859:29;6878:9;6859:29;:::i;:::-;6849:39;6935:2;6920:18;;6907:32;;-1:-1:-1;6986:2:1;6971:18;;;6958:32;;6674:322;-1:-1:-1;;;6674:322:1:o;7001:127::-;7062:10;7057:3;7053:20;7050:1;7043:31;7093:4;7090:1;7083:15;7117:4;7114:1;7107:15;7133:632;7198:5;-1:-1:-1;;;;;7269:2:1;7261:6;7258:14;7255:40;;;7275:18;;:::i;:::-;7350:2;7344:9;7318:2;7404:15;;-1:-1:-1;;7400:24:1;;;7426:2;7396:33;7392:42;7380:55;;;7450:18;;;7470:22;;;7447:46;7444:72;;;7496:18;;:::i;:::-;7536:10;7532:2;7525:22;7565:6;7556:15;;7595:6;7587;7580:22;7635:3;7626:6;7621:3;7617:16;7614:25;7611:45;;;7652:1;7649;7642:12;7611:45;7702:6;7697:3;7690:4;7682:6;7678:17;7665:44;7757:1;7750:4;7741:6;7733;7729:19;7725:30;7718:41;;;;7133:632;;;;;:::o;7770:451::-;7839:6;7892:2;7880:9;7871:7;7867:23;7863:32;7860:52;;;7908:1;7905;7898:12;7860:52;7948:9;7935:23;-1:-1:-1;;;;;7973:6:1;7970:30;7967:50;;;8013:1;8010;8003:12;7967:50;8036:22;;8089:4;8081:13;;8077:27;-1:-1:-1;8067:55:1;;8118:1;8115;8108:12;8067:55;8141:74;8207:7;8202:2;8189:16;8184:2;8180;8176:11;8141:74;:::i;8226:347::-;8291:6;8299;8352:2;8340:9;8331:7;8327:23;8323:32;8320:52;;;8368:1;8365;8358:12;8320:52;8391:29;8410:9;8391:29;:::i;:::-;8381:39;;8470:2;8459:9;8455:18;8442:32;8517:5;8510:13;8503:21;8496:5;8493:32;8483:60;;8539:1;8536;8529:12;8483:60;8562:5;8552:15;;;8226:347;;;;;:::o;8578:667::-;8673:6;8681;8689;8697;8750:3;8738:9;8729:7;8725:23;8721:33;8718:53;;;8767:1;8764;8757:12;8718:53;8790:29;8809:9;8790:29;:::i;:::-;8780:39;;8838:38;8872:2;8861:9;8857:18;8838:38;:::i;:::-;8828:48;;8923:2;8912:9;8908:18;8895:32;8885:42;;8978:2;8967:9;8963:18;8950:32;-1:-1:-1;;;;;8997:6:1;8994:30;8991:50;;;9037:1;9034;9027:12;8991:50;9060:22;;9113:4;9105:13;;9101:27;-1:-1:-1;9091:55:1;;9142:1;9139;9132:12;9091:55;9165:74;9231:7;9226:2;9213:16;9208:2;9204;9200:11;9165:74;:::i;:::-;9155:84;;;8578:667;;;;;;;:::o;9250:266::-;9446:3;9431:19;;9459:51;9435:9;9492:6;9459:51;:::i;9521:198::-;9662:2;9647:18;;9674:39;9651:9;9695:6;9674:39;:::i;9724:260::-;9792:6;9800;9853:2;9841:9;9832:7;9828:23;9824:32;9821:52;;;9869:1;9866;9859:12;9821:52;9892:29;9911:9;9892:29;:::i;:::-;9882:39;;9940:38;9974:2;9963:9;9959:18;9940:38;:::i;:::-;9930:48;;9724:260;;;;;:::o;9989:380::-;10068:1;10064:12;;;;10111;;;10132:61;;10186:4;10178:6;10174:17;10164:27;;10132:61;10239:2;10231:6;10228:14;10208:18;10205:38;10202:161;;10285:10;10280:3;10276:20;10273:1;10266:31;10320:4;10317:1;10310:15;10348:4;10345:1;10338:15;10202:161;;9989:380;;;:::o;10374:337::-;10576:2;10558:21;;;10615:2;10595:18;;;10588:30;-1:-1:-1;;;10649:2:1;10634:18;;10627:43;10702:2;10687:18;;10374:337::o;10716:222::-;10781:9;;;10802:10;;;10799:133;;;10854:10;10849:3;10845:20;10842:1;10835:31;10889:4;10886:1;10879:15;10917:4;10914:1;10907:15;11328:127;11389:10;11384:3;11380:20;11377:1;11370:31;11420:4;11417:1;11410:15;11444:4;11441:1;11434:15;11586:545;11688:2;11683:3;11680:11;11677:448;;;11724:1;11749:5;11745:2;11738:17;11794:4;11790:2;11780:19;11864:2;11852:10;11848:19;11845:1;11841:27;11835:4;11831:38;11900:4;11888:10;11885:20;11882:47;;;-1:-1:-1;11923:4:1;11882:47;11978:2;11973:3;11969:12;11966:1;11962:20;11956:4;11952:31;11942:41;;12033:82;12051:2;12044:5;12041:13;12033:82;;;12096:17;;;12077:1;12066:13;12033:82;;12307:1352;12433:3;12427:10;-1:-1:-1;;;;;12452:6:1;12449:30;12446:56;;;12482:18;;:::i;:::-;12511:97;12601:6;12561:38;12593:4;12587:11;12561:38;:::i;:::-;12555:4;12511:97;:::i;:::-;12663:4;;12727:2;12716:14;;12744:1;12739:663;;;;13446:1;13463:6;13460:89;;;-1:-1:-1;13515:19:1;;;13509:26;13460:89;-1:-1:-1;;12264:1:1;12260:11;;;12256:24;12252:29;12242:40;12288:1;12284:11;;;12239:57;13562:81;;12709:944;;12739:663;11533:1;11526:14;;;11570:4;11557:18;;-1:-1:-1;;12775:20:1;;;12893:236;12907:7;12904:1;12901:14;12893:236;;;12996:19;;;12990:26;12975:42;;13088:27;;;;13056:1;13044:14;;;;12923:19;;12893:236;;;12897:3;13157:6;13148:7;13145:19;13142:201;;;13218:19;;;13212:26;-1:-1:-1;;13301:1:1;13297:14;;;13313:3;13293:24;13289:37;13285:42;13270:58;13255:74;;13142:201;-1:-1:-1;;;;;13389:1:1;13373:14;;;13369:22;13356:36;;-1:-1:-1;12307:1352:1:o;14024:1187::-;14301:3;14330:1;14363:6;14357:13;14393:36;14419:9;14393:36;:::i;:::-;14448:1;14465:18;;;14492:133;;;;14639:1;14634:356;;;;14458:532;;14492:133;-1:-1:-1;;14525:24:1;;14513:37;;14598:14;;14591:22;14579:35;;14570:45;;;-1:-1:-1;14492:133:1;;14634:356;14665:6;14662:1;14655:17;14695:4;14740:2;14737:1;14727:16;14765:1;14779:165;14793:6;14790:1;14787:13;14779:165;;;14871:14;;14858:11;;;14851:35;14914:16;;;;14808:10;;14779:165;;;14783:3;;;14973:6;14968:3;14964:16;14957:23;;14458:532;;;;;15021:6;15015:13;15037:68;15096:8;15091:3;15084:4;15076:6;15072:17;15037:68;:::i;:::-;-1:-1:-1;;;15127:18:1;;15154:22;;;15203:1;15192:13;;14024:1187;-1:-1:-1;;;;14024:1187:1:o;15984:489::-;-1:-1:-1;;;;;16253:15:1;;;16235:34;;16305:15;;16300:2;16285:18;;16278:43;16352:2;16337:18;;16330:34;;;16400:3;16395:2;16380:18;;16373:31;;;16178:4;;16421:46;;16447:19;;16439:6;16421:46;:::i;:::-;16413:54;15984:489;-1:-1:-1;;;;;;15984:489:1:o;16478:249::-;16547:6;16600:2;16588:9;16579:7;16575:23;16571:32;16568:52;;;16616:1;16613;16606:12;16568:52;16648:9;16642:16;16667:30;16691:5;16667:30;:::i

Swarm Source

ipfs://fe015985c8aee5ce0349f64840d3ef89d4baebabe12864914b35b85d5c771178
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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