ETH Price: $3,403.29 (+2.26%)
Gas: 8.72 Gwei

Token

MiladyCola (MC)
 

Overview

Max Total Supply

360 MC

Holders

81

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
retardsquisher.eth
Balance
1 MC
0xaDDd5A1D51Bff4d67E67ae23FaD94B6B287DE78C
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:
MiladyCola

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// File: Solady/src/auth/Ownable.sol


pragma solidity ^0.8.4;

/// @notice Simple single owner authorization mixin.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)
/// @dev While the ownable portion follows [EIP-173](https://eips.ethereum.org/EIPS/eip-173)
/// for compatibility, the nomenclature for the 2-step ownership handover
/// may be unique to this codebase.
abstract contract Ownable {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The caller is not authorized to call the function.
    error Unauthorized();

    /// @dev The `newOwner` cannot be the zero address.
    error NewOwnerIsZeroAddress();

    /// @dev The `pendingOwner` does not have a valid handover request.
    error NoHandoverRequest();

    /// @dev `bytes4(keccak256(bytes("Unauthorized()")))`.
    uint256 private constant _UNAUTHORIZED_ERROR_SELECTOR = 0x82b42900;

    /// @dev `bytes4(keccak256(bytes("NewOwnerIsZeroAddress()")))`.
    uint256 private constant _NEW_OWNER_IS_ZERO_ADDRESS_ERROR_SELECTOR = 0x7448fbae;

    /// @dev `bytes4(keccak256(bytes("NoHandoverRequest()")))`.
    uint256 private constant _NO_HANDOVER_REQUEST_ERROR_SELECTOR = 0x6f5e8818;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                           EVENTS                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.
    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be
    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),
    /// despite it not being as lightweight as a single argument event.
    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);

    /// @dev An ownership handover to `pendingOwner` has been requested.
    event OwnershipHandoverRequested(address indexed pendingOwner);

    /// @dev The ownership handover to `pendingOwner` has been canceled.
    event OwnershipHandoverCanceled(address indexed pendingOwner);

    /// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`.
    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =
        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;

    /// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =
        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;

    /// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =
        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                          STORAGE                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The owner slot is given by: `not(_OWNER_SLOT_NOT)`.
    /// It is intentionally choosen to be a high value
    /// to avoid collision with lower slots.
    /// The choice of manual storage layout is to enable compatibility
    /// with both regular and upgradeable contracts.
    uint256 private constant _OWNER_SLOT_NOT = 0x8b78c6d8;

    /// The ownership handover slot of `newOwner` is given by:
    /// ```
    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))
    ///     let handoverSlot := keccak256(0x00, 0x20)
    /// ```
    /// It stores the expiry timestamp of the two-step ownership handover.
    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     INTERNAL FUNCTIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Initializes the owner directly without authorization guard.
    /// This function must be called upon initialization,
    /// regardless of whether the contract is upgradeable or not.
    /// This is to enable generalization to both regular and upgradeable contracts,
    /// and to save gas in case the initial owner is not the caller.
    /// For performance reasons, this function will not check if there
    /// is an existing owner.
    function _initializeOwner(address newOwner) internal virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // Clean the upper 96 bits.
            newOwner := shr(96, shl(96, newOwner))
            // Store the new value.
            sstore(not(_OWNER_SLOT_NOT), newOwner)
            // Emit the {OwnershipTransferred} event.
            log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
        }
    }

    /// @dev Sets the owner directly without authorization guard.
    function _setOwner(address newOwner) internal virtual {
        /// @solidity memory-safe-assembly
        assembly {
            let ownerSlot := not(_OWNER_SLOT_NOT)
            // Clean the upper 96 bits.
            newOwner := shr(96, shl(96, newOwner))
            // Emit the {OwnershipTransferred} event.
            log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
            // Store the new value.
            sstore(ownerSlot, newOwner)
        }
    }

    /// @dev Throws if the sender is not the owner.
    function _checkOwner() internal view virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // If the caller is not the stored owner, revert.
            if iszero(eq(caller(), sload(not(_OWNER_SLOT_NOT)))) {
                mstore(0x00, _UNAUTHORIZED_ERROR_SELECTOR)
                revert(0x1c, 0x04)
            }
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                  PUBLIC UPDATE FUNCTIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Allows the owner to transfer the ownership to `newOwner`.
    function transferOwnership(address newOwner) public payable virtual onlyOwner {
        if (newOwner == address(0)) revert NewOwnerIsZeroAddress();
        _setOwner(newOwner);
    }

    /// @dev Allows the owner to renounce their ownership.
    function renounceOwnership() public payable virtual onlyOwner {
        _setOwner(address(0));
    }

    /// @dev Request a two-step ownership handover to the caller.
    /// The request will be automatically expire in 48 hours (172800 seconds) by default.
    function requestOwnershipHandover() public payable virtual {
        unchecked {
            uint256 expires = block.timestamp + ownershipHandoverValidFor();
            /// @solidity memory-safe-assembly
            assembly {
                // Compute and set the handover slot to 1.
                mstore(0x0c, _HANDOVER_SLOT_SEED)
                mstore(0x00, caller())
                sstore(keccak256(0x0c, 0x20), expires)
                // Emit the {OwnershipHandoverRequested} event.
                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())
            }
        }
    }

    /// @dev Cancels the two-step ownership handover to the caller, if any.
    function cancelOwnershipHandover() public payable virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, caller())
            sstore(keccak256(0x0c, 0x20), 0)
            // Emit the {OwnershipHandoverCanceled} event.
            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())
        }
    }

    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.
    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.
    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            let handoverSlot := keccak256(0x0c, 0x20)
            // If the handover does not exist, or has expired.
            if gt(timestamp(), sload(handoverSlot)) {
                mstore(0x00, _NO_HANDOVER_REQUEST_ERROR_SELECTOR)
                revert(0x1c, 0x04)
            }
            // Set the handover slot to 0.
            sstore(handoverSlot, 0)
            // Clean the upper 96 bits.
            let newOwner := shr(96, mload(0x0c))
            // Emit the {OwnershipTransferred} event.
            log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, caller(), newOwner)
            // Store the new value.
            sstore(not(_OWNER_SLOT_NOT), newOwner)
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   PUBLIC READ FUNCTIONS                    */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the owner of the contract.
    function owner() public view virtual returns (address result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := sload(not(_OWNER_SLOT_NOT))
        }
    }

    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.
    function ownershipHandoverExpiresAt(address pendingOwner)
        public
        view
        virtual
        returns (uint256 result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the handover slot.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            // Load the handover slot.
            result := sload(keccak256(0x0c, 0x20))
        }
    }

    /// @dev Returns how long a two-step ownership handover is valid for in seconds.
    function ownershipHandoverValidFor() public view virtual returns (uint64) {
        return 48 * 3600;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         MODIFIERS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Marks a function as only callable by the owner.
    modifier onlyOwner() virtual {
        _checkOwner();
        _;
    }
}

// File: erc721a/contracts/IERC721A.sol


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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/extensions/IERC721AQueryable.sol


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

pragma solidity ^0.8.4;


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

// File: erc721a/contracts/extensions/IERC721ABurnable.sol


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

pragma solidity ^0.8.4;


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

// File: erc721a/contracts/ERC721A.sol


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

pragma solidity ^0.8.4;


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/extensions/ERC721AQueryable.sol


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

pragma solidity ^0.8.4;



/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
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;
        }
    }
}

// File: erc721a/contracts/extensions/ERC721ABurnable.sol


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

pragma solidity ^0.8.4;



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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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

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


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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [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 functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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`.
     *
     * 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 calldata data
    ) external;

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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);
}

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @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, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

// File: miladycola/miladycola.sol


pragma solidity ^0.8.17;

/*⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣿⣷⣶⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠿⣿⣿⣿⣿⣿⣿⣶⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⣤⣴⣶⣾⣿⣷⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠻⢿⣿⣿⣿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⢿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⡿⠿⠟⠛⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⣿⣿⣿⣆⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⡿⠟⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣿⣧⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣿⣇⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣶⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠙⠋⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣾⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣾⠟⢋⣥⣤⠀⣶⣶⣶⣦⣤⣌⣉⠛⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣴⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠋⢁⣴⣿⣿⡿⠀⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠀⠀⠀
⠀⠀⠀⣼⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣤⣶⣶⣾⣿⣿⣿⣿⣷⣶⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⠁⠀⠀⢹⣿⣿⣿⣿⣿⣿⢻⣿⡄⠀⠀⠀⠀
⠀⠀⠀⠛⠋⠀⠀⠀⠀⠀⠀⠀⢀⣤⣾⣿⠿⠛⣛⣉⣉⣀⣀⡀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⣿⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⢸⣿⣿⡄⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⡿⢋⣩⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣿⣦⣀⣀⣴⣿⣿⣿⣿⣿⡿⢸⣿⢿⣷⡀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣡⣄⠀⠋⠁⠀⠈⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⡟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⢸⡿⠀⠛⠃⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣧⡀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⠛⠃⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠈⠁⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⢿⣿⣿⣿⣷⣦⣤⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣶⣶⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⣿⠇⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢠⣿⣿⣿⠟⠉⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⠀⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⢸⣿⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣼⣿⡟⠁⣠⣦⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠉⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⡆⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⠏⠀⣸⡏⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣿⡏⠀⠀⣿⣿⡀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀⢹⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣇⠀⠀⠀⠙⢿⣿⣿⡿⠟⠁⠀⣸⡿⠁⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢸⣿⠁⠀⠀⢸⣿⣇⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠀⢀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣦⡀⠀⠀⠀⠈⠉⠀⠀⠀⣼⡿⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⢿⣿⡄⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⣼⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣷⣦⣄⣀⠀⠀⢀⡈⠙⠁⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣿⣆⠀⠀⠀⠉⠛⠿⢿⣿⣿⠿⠛⠁⠀⠀⠀⣠⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠿⣿⣿⣷⣿⣯⣤⣶⠄⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣷⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠙⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣷⣤⣀⠀⠀⠀⠀⠀⠀⠀⠺⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⢻⣿⣶⣤⣤⣤⣶⣷⣤⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⣿⣿⣿⡿⠿⠛⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠶⢤⣄⣀⣀⣤⠶⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/






contract MiladyCola is ERC721A, ERC721AQueryable, ERC721ABurnable, Ownable {

    uint256 public constant s_MAXMILADYCOLA = 10000;

    string public IPFSURI = '';

    bool public s_saleIsActive = false;

    address internal constant milady = 0x5Af0D9827E0c53E4799BB226655A1de152A425a5;

    address internal constant miladystation = 0xB24BaB1732D34cAD0A7C7035C3539aEC553bF3a0;

    address internal constant remilio = 0xD3D9ddd0CF0A5F0BFB8f7fcEAe075DF687eAEBaB;

    address internal constant miaura = 0x2fC722C1c77170A61F17962CC4D039692f033b43;

    address internal constant cig = 0xEEd41d06AE195CA8f5CaCACE4cd691EE75F0683f;
    

    uint256 public bottlePrice;
    uint256 public friendPrice;
    uint256 public bulkPrice;

    constructor() ERC721A("MiladyCola", "MC") {
        _initializeOwner(msg.sender);
        bottlePrice = 12500000000000000;
        friendPrice = 10000000000000000;
        bulkPrice = 11000000000000000;
    }

    function changePrice(uint256 bottle, uint256 friend, uint256 bulk) public onlyOwner {
        bottlePrice = bottle;
        friendPrice = friend;
        bulkPrice = bulk;
    }

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

    function _baseURI() internal view virtual override(ERC721A) returns (string memory) {
        return IPFSURI;
    }
    
    function withdraw() public onlyOwner {
        uint balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    // MiladyCola Friend check for frontend
    function friendCheck(address holder) public view returns (uint256) {
        uint256 tokenNum;
        try ERC721(milady).balanceOf(holder) returns (uint256 miladyHolderIndex) {
            tokenNum = miladyHolderIndex;
        } catch (bytes memory) {
            // No tokens owned by user
        }
        try ERC721(remilio).balanceOf(holder) returns (uint256 index) {
            tokenNum = tokenNum + index;
        } catch (bytes memory) {
            // No tokens owned by user
        }
        try ERC721(miaura).balanceOf(holder) returns (uint256 index) {
            tokenNum = tokenNum + index;
        } catch (bytes memory) {
            // No tokens owned by user
        }
        try ERC721(cig).balanceOf(holder) returns (uint256 index) {
            tokenNum = tokenNum + index;
        } catch (bytes memory) {
            // No tokens owned by user
        }
        try ERC721(miladystation).balanceOf(holder) returns (uint256 index) {
            tokenNum = tokenNum + index;
        } catch (bytes memory) {
            // No tokens owned by user
        }
        return tokenNum;
    }
    
    
    function flipSaleState() public onlyOwner {
        s_saleIsActive = !s_saleIsActive;
    }

    modifier miladyFriends() {
        require(
            (ERC721(milady).balanceOf(msg.sender) > 0) ||
            (ERC721(remilio).balanceOf(msg.sender) > 0) ||
            (ERC721(miaura).balanceOf(msg.sender) > 0) ||
            (ERC721(cig).balanceOf(msg.sender) > 0) ||
            (ERC721(miladystation).balanceOf(msg.sender) > 0),
                      
            "You need at least one Milady friend"
        );
        _;
    }

    function mintNew(uint256 numberOfTokens) public payable {
        require(s_saleIsActive, "Sale must be active to mint");
        require(totalSupply() + numberOfTokens < s_MAXMILADYCOLA+1, "Purchase would exceed max supply");
        require(numberOfTokens < 48, "one 48 pack at a time");
        if (numberOfTokens < 10) {
            require(bottlePrice*(numberOfTokens) <= msg.value, "Ether value sent is not correct");
        } else {
            require(bulkPrice*(numberOfTokens) <= msg.value, "Ether value sent is not correct");
        }
        _safeMint(msg.sender, numberOfTokens);
    }

    function mintFriend(uint256 numberOfTokens) public payable miladyFriends {
        uint256 sup = totalSupply();
        require(s_saleIsActive, "Sale must be active to mint");
        require(sup + numberOfTokens < s_MAXMILADYCOLA+1, "Purchase would exceed max supply");
        require(numberOfTokens < 48, "one 48 pack at a time");
        require(friendPrice*(numberOfTokens) <= msg.value, "Ether value sent is not correct");
        if (sup < 349) {
            numberOfTokens = numberOfTokens + 1;
        }
        _safeMint(msg.sender, numberOfTokens);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","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":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","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":[],"name":"IPFSURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bottlePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bulkPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bottle","type":"uint256"},{"internalType":"uint256","name":"friend","type":"uint256"},{"internalType":"uint256","name":"bulk","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","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":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"friendCheck","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"friendPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintFriend","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintNew","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","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":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownershipHandoverValidFor","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"s_MAXMILADYCOLA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600060809081526008906200001a9082620001ab565b506009805460ff191690553480156200003257600080fd5b506040518060400160405280600a8152602001694d696c616479436f6c6160b01b815250604051806040016040528060028152602001614d4360f01b8152508160029081620000829190620001ab565b506003620000918282620001ab565b50506000805550620000a333620000ca565b662c68af0bb14000600a55662386f26fc10000600b556627147114878000600c5562000277565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200013157607f821691505b6020821081036200015257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001a657600081815260208120601f850160051c81016020861015620001815750805b601f850160051c820191505b81811015620001a2578281556001016200018d565b5050505b505050565b81516001600160401b03811115620001c757620001c762000106565b620001df81620001d884546200011c565b8462000158565b602080601f831160018114620002175760008415620001fe5750858301515b600019600386901b1c1916600185901b178555620001a2565b600085815260208120601f198616915b82811015620002485788860151825594840194600190910190840162000227565b5085821015620002675787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612c3d80620002876000396000f3fe6080604052600436106102bb5760003560e01c806370a082311161016e578063b88d4fde116100cb578063f04e283e1161007f578063f2fde38b11610064578063f2fde38b146106e4578063fee81cf4146106f7578063ff35def61461072a57600080fd5b8063f04e283e146106b1578063f2b95907146106c457600080fd5b8063c87b56dd116100b0578063c87b56dd1461062a578063d7533f021461064a578063e985e9c51461066857600080fd5b8063b88d4fde146105ea578063c23dc68f146105fd57600080fd5b806395d89b41116101225780639c17af20116101075780639c17af201461059e578063a22cb465146105b4578063a6beded5146105d457600080fd5b806395d89b411461056957806399a2557a1461057e57600080fd5b80638462151c116101535780638462151c1461050e5780638b83df451461053b5780638da5cb5b1461055057600080fd5b806370a08231146104e6578063715018a61461050657600080fd5b806340e2b4b81161021c57806354d1f13d116101d05780635bbb2177116101b55780635bbb2177146104835780636352211e146104b0578063682b1b45146104d057600080fd5b806354d1f13d1461045b57806355f804b31461046357600080fd5b806342842e0e1161020157806342842e0e1461041557806342966c6814610428578063487bddf61461044857600080fd5b806340e2b4b8146103df57806340fb561c146103ff57600080fd5b806318160ddd11610273578063256929621161025857806325692962146103ad57806334918dfd146103b55780633ccfd60b146103ca57600080fd5b806318160ddd1461037757806323b872dd1461039a57600080fd5b806306fdde03116102a457806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457600080fd5b806301ffc9a7146102c05780630307e36a146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db36600461250c565b610744565b60405190151581526020015b60405180910390f35b610308610303366004612529565b610829565b005b34801561031657600080fd5b5061031f610caa565b6040516102ec9190612592565b34801561033857600080fd5b5061034c610347366004612529565b610d3c565b6040516001600160a01b0390911681526020016102ec565b6103086103723660046125c1565b610d99565b34801561038357600080fd5b50600154600054035b6040519081526020016102ec565b6103086103a83660046125eb565b610e6a565b610308611059565b3480156103c157600080fd5b506103086110a9565b3480156103d657600080fd5b506103086110c5565b3480156103eb57600080fd5b506103086103fa366004612627565b6110fc565b34801561040b57600080fd5b5061038c600a5481565b6103086104233660046125eb565b611112565b34801561043457600080fd5b50610308610443366004612529565b611132565b610308610456366004612529565b611140565b610308611326565b34801561046f57600080fd5b5061030861047e3660046126df565b611362565b34801561048f57600080fd5b506104a361049e366004612728565b611376565b6040516102ec919061279d565b3480156104bc57600080fd5b5061034c6104cb366004612529565b611442565b3480156104dc57600080fd5b5061038c600c5481565b3480156104f257600080fd5b5061038c61050136600461281a565b61144d565b6103086114b5565b34801561051a57600080fd5b5061052e61052936600461281a565b6114c9565b6040516102ec9190612835565b34801561054757600080fd5b5061031f6115ca565b34801561055c57600080fd5b50638b78c6d8195461034c565b34801561057557600080fd5b5061031f611658565b34801561058a57600080fd5b5061052e61059936600461286d565b611667565b3480156105aa57600080fd5b5061038c61271081565b3480156105c057600080fd5b506103086105cf3660046128a0565b6117fa565b3480156105e057600080fd5b5061038c600b5481565b6103086105f83660046128dc565b611866565b34801561060957600080fd5b5061061d610618366004612529565b6118b0565b6040516102ec9190612958565b34801561063657600080fd5b5061031f610645366004612529565b611928565b34801561065657600080fd5b506040516202a30081526020016102ec565b34801561067457600080fd5b506102e061068336600461299d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6103086106bf36600461281a565b6119c4565b3480156106d057600080fd5b5061038c6106df36600461281a565b611a30565b6103086106f236600461281a565b611dda565b34801561070357600080fd5b5061038c61071236600461281a565b63389a75e1600c908152600091909152602090205490565b34801561073657600080fd5b506009546102e09060ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806107d757507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061082357507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6040516370a0823160e01b8152336004820152600090735af0d9827e0c53e4799bb226655a1de152a425a5906370a0823190602401602060405180830381865afa15801561087b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089f91906129d0565b118061091e57506040516370a0823160e01b815233600482015260009073d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab906370a0823190602401602060405180830381865afa1580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c91906129d0565b115b8061099c57506040516370a0823160e01b8152336004820152600090732fc722c1c77170a61f17962cc4d039692f033b43906370a0823190602401602060405180830381865afa158015610976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099a91906129d0565b115b80610a1a57506040516370a0823160e01b815233600482015260009073eed41d06ae195ca8f5cacace4cd691ee75f0683f906370a0823190602401602060405180830381865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1891906129d0565b115b80610a9857506040516370a0823160e01b815233600482015260009073b24bab1732d34cad0a7c7035c3539aec553bf3a0906370a0823190602401602060405180830381865afa158015610a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9691906129d0565b115b610b0f5760405162461bcd60e51b815260206004820152602360248201527f596f75206e656564206174206c65617374206f6e65204d696c6164792066726960448201527f656e64000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000610b1e6001546000540390565b60095490915060ff16610b735760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610b06565b610b8061271060016129ff565b610b8a83836129ff565b10610bd75760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b06565b60308210610c275760405162461bcd60e51b815260206004820152601560248201527f6f6e65203438207061636b20617420612074696d6500000000000000000000006044820152606401610b06565b3482600b54610c369190612a12565b1115610c845760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b06565b61015d811015610c9c57610c998260016129ff565b91505b610ca63383611e2b565b5050565b606060028054610cb990612a29565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce590612a29565b8015610d325780601f10610d0757610100808354040283529160200191610d32565b820191906000526020600020905b815481529060010190602001808311610d1557829003601f168201915b5050505050905090565b6000610d4782611e45565b610d7d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610da482611442565b9050336001600160a01b03821614610df657610dc08133610683565b610df6576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610e7582611e6c565b9050836001600160a01b0316816001600160a01b031614610ec2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610eee8187335b6001600160a01b039081169116811491141790565b610f3257610efc8633610683565b610f32576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610f72576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610f7d57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361100f5760018401600081815260046020526040812054900361100d57600054811461100d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6110b1611eec565b6009805460ff19811660ff90911615179055565b6110cd611eec565b6040514790339082156108fc029083906000818181858888f19350505050158015610ca6573d6000803e3d6000fd5b611104611eec565b600a92909255600b55600c55565b61112d83838360405180602001604052806000815250611866565b505050565b61113d816001611f07565b50565b60095460ff166111925760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610b06565b61119f61271060016129ff565b816111ad6001546000540390565b6111b791906129ff565b106112045760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b06565b603081106112545760405162461bcd60e51b815260206004820152601560248201527f6f6e65203438207061636b20617420612074696d6500000000000000000000006044820152606401610b06565b600a8110156112bf573481600a5461126c9190612a12565b11156112ba5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b06565b61131c565b3481600c546112ce9190612a12565b111561131c5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b06565b61113d3382611e2b565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b61136a611eec565b6008610ca68282612aa9565b60608160008167ffffffffffffffff81111561139457611394612653565b6040519080825280602002602001820160405280156113e657816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816113b25790505b50905060005b8281146114395761141486868381811061140857611408612b69565b905060200201356118b0565b82828151811061142657611426612b69565b60209081029190910101526001016113ec565b50949350505050565b600061082382611e6c565b60006001600160a01b03821661148f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6114bd611eec565b6114c76000612083565b565b606060008060006114d98561144d565b905060008167ffffffffffffffff8111156114f6576114f6612653565b60405190808252806020026020018201604052801561151f578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b8386146115be57611557816120c1565b915081604001516115b65781516001600160a01b03161561157757815194505b876001600160a01b0316856001600160a01b0316036115b657808387806001019850815181106115a9576115a9612b69565b6020026020010181815250505b600101611547565b50909695505050505050565b600880546115d790612a29565b80601f016020809104026020016040519081016040528092919081815260200182805461160390612a29565b80156116505780601f1061162557610100808354040283529160200191611650565b820191906000526020600020905b81548152906001019060200180831161163357829003601f168201915b505050505081565b606060038054610cb990612a29565b60608183106116a2576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116ae60005490565b9050808411156116bc578093505b60006116c78761144d565b9050848610156116e657858503818110156116e0578091505b506116ea565b5060005b60008167ffffffffffffffff81111561170557611705612653565b60405190808252806020026020018201604052801561172e578160200160208202803683370190505b509050816000036117445793506117f392505050565b600061174f886118b0565b905060008160400151611760575080515b885b8881141580156117725750848714155b156117e757611780816120c1565b925082604001516117df5782516001600160a01b0316156117a057825191505b8a6001600160a01b0316826001600160a01b0316036117df57808488806001019950815181106117d2576117d2612b69565b6020026020010181815250505b600101611762565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611871848484610e6a565b6001600160a01b0383163b156118aa5761188d84848484612140565b6118aa576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106119045792915050565b61190d836120c1565b905080604001511561191f5792915050565b6117f383612275565b606061193382611e45565b611969576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006119736122ed565b9050805160000361199357604051806020016040528060008152506117f3565b8061199d846122fc565b6040516020016119ae929190612b7f565b6040516020818303038152906040529392505050565b6119cc611eec565b63389a75e1600c52806000526020600c2080544211156119f457636f5e88186000526004601cfd5b6000815550600c5160601c80337f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3638b78c6d8195550565b6040516370a0823160e01b81526001600160a01b03821660048201526000908190735af0d9827e0c53e4799bb226655a1de152a425a5906370a0823190602401602060405180830381865afa925050508015611aa9575060408051601f3d908101601f19168201909252611aa6918101906129d0565b60015b611ae3573d808015611ad7576040519150601f19603f3d011682016040523d82523d6000602084013e611adc565b606091505b5050611ae6565b90505b6040516370a0823160e01b81526001600160a01b038416600482015273d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab906370a0823190602401602060405180830381865afa925050508015611b5a575060408051601f3d908101601f19168201909252611b57918101906129d0565b60015b611b94573d808015611b88576040519150601f19603f3d011682016040523d82523d6000602084013e611b8d565b606091505b5050611ba2565b611b9e81836129ff565b9150505b6040516370a0823160e01b81526001600160a01b0384166004820152732fc722c1c77170a61f17962cc4d039692f033b43906370a0823190602401602060405180830381865afa925050508015611c16575060408051601f3d908101601f19168201909252611c13918101906129d0565b60015b611c50573d808015611c44576040519150601f19603f3d011682016040523d82523d6000602084013e611c49565b606091505b5050611c5e565b611c5a81836129ff565b9150505b6040516370a0823160e01b81526001600160a01b038416600482015273eed41d06ae195ca8f5cacace4cd691ee75f0683f906370a0823190602401602060405180830381865afa925050508015611cd2575060408051601f3d908101601f19168201909252611ccf918101906129d0565b60015b611d0c573d808015611d00576040519150601f19603f3d011682016040523d82523d6000602084013e611d05565b606091505b5050611d1a565b611d1681836129ff565b9150505b6040516370a0823160e01b81526001600160a01b038416600482015273b24bab1732d34cad0a7c7035c3539aec553bf3a0906370a0823190602401602060405180830381865afa925050508015611d8e575060408051601f3d908101601f19168201909252611d8b918101906129d0565b60015b611dc8573d808015611dbc576040519150601f19603f3d011682016040523d82523d6000602084013e611dc1565b606091505b5050610823565b611dd281836129ff565b949350505050565b611de2611eec565b6001600160a01b038116611e22576040517f7448fbae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61113d81612083565b610ca6828260405180602001604052806000815250612340565b6000805482108015610823575050600090815260046020526040902054600160e01b161590565b600081600054811015611eba5760008181526004602052604081205490600160e01b82169003611eb8575b806000036117f3575060001901600081815260046020526040902054611e97565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b638b78c6d8195433146114c7576382b429006000526004601cfd5b6000611f1283611e6c565b905080600080611f3086600090815260066020526040902080549091565b915091508415611f8957611f45818433610ed9565b611f8957611f538333610683565b611f89576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015611f9457600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040812091909155600160e11b8516900361203b576001860160008181526004602052604081205490036120395760005481146120395760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461082390604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a029061218e903390899088908890600401612bae565b6020604051808303816000875af19250505080156121c9575060408051601f3d908101601f191682019092526121c691810190612bea565b60015b612227573d8080156121f7576040519150601f19603f3d011682016040523d82523d6000602084013e6121fc565b606091505b50805160000361221f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108236122a583611e6c565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b606060088054610cb990612a29565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806123165750819003601f19909101908152919050565b61234a83836123ad565b6001600160a01b0383163b1561112d576000548281035b6123746000868380600101945086612140565b612391576040516368d2bf6b60e11b815260040160405180910390fd5b8181106123615781600054146123a657600080fd5b5050505050565b60008054908290036123eb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461249a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612462565b50816000036124d5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461113d57600080fd5b60006020828403121561251e57600080fd5b81356117f3816124de565b60006020828403121561253b57600080fd5b5035919050565b60005b8381101561255d578181015183820152602001612545565b50506000910152565b6000815180845261257e816020860160208601612542565b601f01601f19169290920160200192915050565b6020815260006117f36020830184612566565b80356001600160a01b03811681146125bc57600080fd5b919050565b600080604083850312156125d457600080fd5b6125dd836125a5565b946020939093013593505050565b60008060006060848603121561260057600080fd5b612609846125a5565b9250612617602085016125a5565b9150604084013590509250925092565b60008060006060848603121561263c57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561268457612684612653565b604051601f8501601f19908116603f011681019082821181831017156126ac576126ac612653565b816040528093508581528686860111156126c557600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156126f157600080fd5b813567ffffffffffffffff81111561270857600080fd5b8201601f8101841361271957600080fd5b611dd284823560208401612669565b6000806020838503121561273b57600080fd5b823567ffffffffffffffff8082111561275357600080fd5b818501915085601f83011261276757600080fd5b81358181111561277657600080fd5b8660208260051b850101111561278b57600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b818110156115be576128078385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b92840192608092909201916001016127b9565b60006020828403121561282c57600080fd5b6117f3826125a5565b6020808252825182820181905260009190848201906040850190845b818110156115be57835183529284019291840191600101612851565b60008060006060848603121561288257600080fd5b61288b846125a5565b95602085013595506040909401359392505050565b600080604083850312156128b357600080fd5b6128bc836125a5565b9150602083013580151581146128d157600080fd5b809150509250929050565b600080600080608085870312156128f257600080fd5b6128fb856125a5565b9350612909602086016125a5565b925060408501359150606085013567ffffffffffffffff81111561292c57600080fd5b8501601f8101871361293d57600080fd5b61294c87823560208401612669565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610823565b600080604083850312156129b057600080fd5b6129b9836125a5565b91506129c7602084016125a5565b90509250929050565b6000602082840312156129e257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610823576108236129e9565b8082028115828204841417610823576108236129e9565b600181811c90821680612a3d57607f821691505b602082108103612a5d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561112d57600081815260208120601f850160051c81016020861015612a8a5750805b601f850160051c820191505b8181101561105157828155600101612a96565b815167ffffffffffffffff811115612ac357612ac3612653565b612ad781612ad18454612a29565b84612a63565b602080601f831160018114612b0c5760008415612af45750858301515b600019600386901b1c1916600185901b178555611051565b600085815260208120601f198616915b82811015612b3b57888601518255948401946001909101908401612b1c565b5085821015612b595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008351612b91818460208801612542565b835190830190612ba5818360208801612542565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612be06080830184612566565b9695505050505050565b600060208284031215612bfc57600080fd5b81516117f3816124de56fea264697066735822122056f42e29ff5444eb5ef8adcb5361422350d56b617d32fcf9dc8133443e91153764736f6c63430008110033

Deployed Bytecode

0x6080604052600436106102bb5760003560e01c806370a082311161016e578063b88d4fde116100cb578063f04e283e1161007f578063f2fde38b11610064578063f2fde38b146106e4578063fee81cf4146106f7578063ff35def61461072a57600080fd5b8063f04e283e146106b1578063f2b95907146106c457600080fd5b8063c87b56dd116100b0578063c87b56dd1461062a578063d7533f021461064a578063e985e9c51461066857600080fd5b8063b88d4fde146105ea578063c23dc68f146105fd57600080fd5b806395d89b41116101225780639c17af20116101075780639c17af201461059e578063a22cb465146105b4578063a6beded5146105d457600080fd5b806395d89b411461056957806399a2557a1461057e57600080fd5b80638462151c116101535780638462151c1461050e5780638b83df451461053b5780638da5cb5b1461055057600080fd5b806370a08231146104e6578063715018a61461050657600080fd5b806340e2b4b81161021c57806354d1f13d116101d05780635bbb2177116101b55780635bbb2177146104835780636352211e146104b0578063682b1b45146104d057600080fd5b806354d1f13d1461045b57806355f804b31461046357600080fd5b806342842e0e1161020157806342842e0e1461041557806342966c6814610428578063487bddf61461044857600080fd5b806340e2b4b8146103df57806340fb561c146103ff57600080fd5b806318160ddd11610273578063256929621161025857806325692962146103ad57806334918dfd146103b55780633ccfd60b146103ca57600080fd5b806318160ddd1461037757806323b872dd1461039a57600080fd5b806306fdde03116102a457806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457600080fd5b806301ffc9a7146102c05780630307e36a146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db36600461250c565b610744565b60405190151581526020015b60405180910390f35b610308610303366004612529565b610829565b005b34801561031657600080fd5b5061031f610caa565b6040516102ec9190612592565b34801561033857600080fd5b5061034c610347366004612529565b610d3c565b6040516001600160a01b0390911681526020016102ec565b6103086103723660046125c1565b610d99565b34801561038357600080fd5b50600154600054035b6040519081526020016102ec565b6103086103a83660046125eb565b610e6a565b610308611059565b3480156103c157600080fd5b506103086110a9565b3480156103d657600080fd5b506103086110c5565b3480156103eb57600080fd5b506103086103fa366004612627565b6110fc565b34801561040b57600080fd5b5061038c600a5481565b6103086104233660046125eb565b611112565b34801561043457600080fd5b50610308610443366004612529565b611132565b610308610456366004612529565b611140565b610308611326565b34801561046f57600080fd5b5061030861047e3660046126df565b611362565b34801561048f57600080fd5b506104a361049e366004612728565b611376565b6040516102ec919061279d565b3480156104bc57600080fd5b5061034c6104cb366004612529565b611442565b3480156104dc57600080fd5b5061038c600c5481565b3480156104f257600080fd5b5061038c61050136600461281a565b61144d565b6103086114b5565b34801561051a57600080fd5b5061052e61052936600461281a565b6114c9565b6040516102ec9190612835565b34801561054757600080fd5b5061031f6115ca565b34801561055c57600080fd5b50638b78c6d8195461034c565b34801561057557600080fd5b5061031f611658565b34801561058a57600080fd5b5061052e61059936600461286d565b611667565b3480156105aa57600080fd5b5061038c61271081565b3480156105c057600080fd5b506103086105cf3660046128a0565b6117fa565b3480156105e057600080fd5b5061038c600b5481565b6103086105f83660046128dc565b611866565b34801561060957600080fd5b5061061d610618366004612529565b6118b0565b6040516102ec9190612958565b34801561063657600080fd5b5061031f610645366004612529565b611928565b34801561065657600080fd5b506040516202a30081526020016102ec565b34801561067457600080fd5b506102e061068336600461299d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6103086106bf36600461281a565b6119c4565b3480156106d057600080fd5b5061038c6106df36600461281a565b611a30565b6103086106f236600461281a565b611dda565b34801561070357600080fd5b5061038c61071236600461281a565b63389a75e1600c908152600091909152602090205490565b34801561073657600080fd5b506009546102e09060ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806107d757507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061082357507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6040516370a0823160e01b8152336004820152600090735af0d9827e0c53e4799bb226655a1de152a425a5906370a0823190602401602060405180830381865afa15801561087b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089f91906129d0565b118061091e57506040516370a0823160e01b815233600482015260009073d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab906370a0823190602401602060405180830381865afa1580156108f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091c91906129d0565b115b8061099c57506040516370a0823160e01b8152336004820152600090732fc722c1c77170a61f17962cc4d039692f033b43906370a0823190602401602060405180830381865afa158015610976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099a91906129d0565b115b80610a1a57506040516370a0823160e01b815233600482015260009073eed41d06ae195ca8f5cacace4cd691ee75f0683f906370a0823190602401602060405180830381865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1891906129d0565b115b80610a9857506040516370a0823160e01b815233600482015260009073b24bab1732d34cad0a7c7035c3539aec553bf3a0906370a0823190602401602060405180830381865afa158015610a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9691906129d0565b115b610b0f5760405162461bcd60e51b815260206004820152602360248201527f596f75206e656564206174206c65617374206f6e65204d696c6164792066726960448201527f656e64000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000610b1e6001546000540390565b60095490915060ff16610b735760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610b06565b610b8061271060016129ff565b610b8a83836129ff565b10610bd75760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b06565b60308210610c275760405162461bcd60e51b815260206004820152601560248201527f6f6e65203438207061636b20617420612074696d6500000000000000000000006044820152606401610b06565b3482600b54610c369190612a12565b1115610c845760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b06565b61015d811015610c9c57610c998260016129ff565b91505b610ca63383611e2b565b5050565b606060028054610cb990612a29565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce590612a29565b8015610d325780601f10610d0757610100808354040283529160200191610d32565b820191906000526020600020905b815481529060010190602001808311610d1557829003601f168201915b5050505050905090565b6000610d4782611e45565b610d7d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610da482611442565b9050336001600160a01b03821614610df657610dc08133610683565b610df6576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610e7582611e6c565b9050836001600160a01b0316816001600160a01b031614610ec2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610eee8187335b6001600160a01b039081169116811491141790565b610f3257610efc8633610683565b610f32576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610f72576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610f7d57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361100f5760018401600081815260046020526040812054900361100d57600054811461100d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6110b1611eec565b6009805460ff19811660ff90911615179055565b6110cd611eec565b6040514790339082156108fc029083906000818181858888f19350505050158015610ca6573d6000803e3d6000fd5b611104611eec565b600a92909255600b55600c55565b61112d83838360405180602001604052806000815250611866565b505050565b61113d816001611f07565b50565b60095460ff166111925760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610b06565b61119f61271060016129ff565b816111ad6001546000540390565b6111b791906129ff565b106112045760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401610b06565b603081106112545760405162461bcd60e51b815260206004820152601560248201527f6f6e65203438207061636b20617420612074696d6500000000000000000000006044820152606401610b06565b600a8110156112bf573481600a5461126c9190612a12565b11156112ba5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b06565b61131c565b3481600c546112ce9190612a12565b111561131c5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b06565b61113d3382611e2b565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b61136a611eec565b6008610ca68282612aa9565b60608160008167ffffffffffffffff81111561139457611394612653565b6040519080825280602002602001820160405280156113e657816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816113b25790505b50905060005b8281146114395761141486868381811061140857611408612b69565b905060200201356118b0565b82828151811061142657611426612b69565b60209081029190910101526001016113ec565b50949350505050565b600061082382611e6c565b60006001600160a01b03821661148f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6114bd611eec565b6114c76000612083565b565b606060008060006114d98561144d565b905060008167ffffffffffffffff8111156114f6576114f6612653565b60405190808252806020026020018201604052801561151f578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b8386146115be57611557816120c1565b915081604001516115b65781516001600160a01b03161561157757815194505b876001600160a01b0316856001600160a01b0316036115b657808387806001019850815181106115a9576115a9612b69565b6020026020010181815250505b600101611547565b50909695505050505050565b600880546115d790612a29565b80601f016020809104026020016040519081016040528092919081815260200182805461160390612a29565b80156116505780601f1061162557610100808354040283529160200191611650565b820191906000526020600020905b81548152906001019060200180831161163357829003601f168201915b505050505081565b606060038054610cb990612a29565b60608183106116a2576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116ae60005490565b9050808411156116bc578093505b60006116c78761144d565b9050848610156116e657858503818110156116e0578091505b506116ea565b5060005b60008167ffffffffffffffff81111561170557611705612653565b60405190808252806020026020018201604052801561172e578160200160208202803683370190505b509050816000036117445793506117f392505050565b600061174f886118b0565b905060008160400151611760575080515b885b8881141580156117725750848714155b156117e757611780816120c1565b925082604001516117df5782516001600160a01b0316156117a057825191505b8a6001600160a01b0316826001600160a01b0316036117df57808488806001019950815181106117d2576117d2612b69565b6020026020010181815250505b600101611762565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611871848484610e6a565b6001600160a01b0383163b156118aa5761188d84848484612140565b6118aa576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106119045792915050565b61190d836120c1565b905080604001511561191f5792915050565b6117f383612275565b606061193382611e45565b611969576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006119736122ed565b9050805160000361199357604051806020016040528060008152506117f3565b8061199d846122fc565b6040516020016119ae929190612b7f565b6040516020818303038152906040529392505050565b6119cc611eec565b63389a75e1600c52806000526020600c2080544211156119f457636f5e88186000526004601cfd5b6000815550600c5160601c80337f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3638b78c6d8195550565b6040516370a0823160e01b81526001600160a01b03821660048201526000908190735af0d9827e0c53e4799bb226655a1de152a425a5906370a0823190602401602060405180830381865afa925050508015611aa9575060408051601f3d908101601f19168201909252611aa6918101906129d0565b60015b611ae3573d808015611ad7576040519150601f19603f3d011682016040523d82523d6000602084013e611adc565b606091505b5050611ae6565b90505b6040516370a0823160e01b81526001600160a01b038416600482015273d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab906370a0823190602401602060405180830381865afa925050508015611b5a575060408051601f3d908101601f19168201909252611b57918101906129d0565b60015b611b94573d808015611b88576040519150601f19603f3d011682016040523d82523d6000602084013e611b8d565b606091505b5050611ba2565b611b9e81836129ff565b9150505b6040516370a0823160e01b81526001600160a01b0384166004820152732fc722c1c77170a61f17962cc4d039692f033b43906370a0823190602401602060405180830381865afa925050508015611c16575060408051601f3d908101601f19168201909252611c13918101906129d0565b60015b611c50573d808015611c44576040519150601f19603f3d011682016040523d82523d6000602084013e611c49565b606091505b5050611c5e565b611c5a81836129ff565b9150505b6040516370a0823160e01b81526001600160a01b038416600482015273eed41d06ae195ca8f5cacace4cd691ee75f0683f906370a0823190602401602060405180830381865afa925050508015611cd2575060408051601f3d908101601f19168201909252611ccf918101906129d0565b60015b611d0c573d808015611d00576040519150601f19603f3d011682016040523d82523d6000602084013e611d05565b606091505b5050611d1a565b611d1681836129ff565b9150505b6040516370a0823160e01b81526001600160a01b038416600482015273b24bab1732d34cad0a7c7035c3539aec553bf3a0906370a0823190602401602060405180830381865afa925050508015611d8e575060408051601f3d908101601f19168201909252611d8b918101906129d0565b60015b611dc8573d808015611dbc576040519150601f19603f3d011682016040523d82523d6000602084013e611dc1565b606091505b5050610823565b611dd281836129ff565b949350505050565b611de2611eec565b6001600160a01b038116611e22576040517f7448fbae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61113d81612083565b610ca6828260405180602001604052806000815250612340565b6000805482108015610823575050600090815260046020526040902054600160e01b161590565b600081600054811015611eba5760008181526004602052604081205490600160e01b82169003611eb8575b806000036117f3575060001901600081815260046020526040902054611e97565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b638b78c6d8195433146114c7576382b429006000526004601cfd5b6000611f1283611e6c565b905080600080611f3086600090815260066020526040902080549091565b915091508415611f8957611f45818433610ed9565b611f8957611f538333610683565b611f89576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015611f9457600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040812091909155600160e11b8516900361203b576001860160008181526004602052604081205490036120395760005481146120395760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461082390604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a029061218e903390899088908890600401612bae565b6020604051808303816000875af19250505080156121c9575060408051601f3d908101601f191682019092526121c691810190612bea565b60015b612227573d8080156121f7576040519150601f19603f3d011682016040523d82523d6000602084013e6121fc565b606091505b50805160000361221f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108236122a583611e6c565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b606060088054610cb990612a29565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806123165750819003601f19909101908152919050565b61234a83836123ad565b6001600160a01b0383163b1561112d576000548281035b6123746000868380600101945086612140565b612391576040516368d2bf6b60e11b815260040160405180910390fd5b8181106123615781600054146123a657600080fd5b5050505050565b60008054908290036123eb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461249a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612462565b50816000036124d5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461113d57600080fd5b60006020828403121561251e57600080fd5b81356117f3816124de565b60006020828403121561253b57600080fd5b5035919050565b60005b8381101561255d578181015183820152602001612545565b50506000910152565b6000815180845261257e816020860160208601612542565b601f01601f19169290920160200192915050565b6020815260006117f36020830184612566565b80356001600160a01b03811681146125bc57600080fd5b919050565b600080604083850312156125d457600080fd5b6125dd836125a5565b946020939093013593505050565b60008060006060848603121561260057600080fd5b612609846125a5565b9250612617602085016125a5565b9150604084013590509250925092565b60008060006060848603121561263c57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561268457612684612653565b604051601f8501601f19908116603f011681019082821181831017156126ac576126ac612653565b816040528093508581528686860111156126c557600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156126f157600080fd5b813567ffffffffffffffff81111561270857600080fd5b8201601f8101841361271957600080fd5b611dd284823560208401612669565b6000806020838503121561273b57600080fd5b823567ffffffffffffffff8082111561275357600080fd5b818501915085601f83011261276757600080fd5b81358181111561277657600080fd5b8660208260051b850101111561278b57600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b818110156115be576128078385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b92840192608092909201916001016127b9565b60006020828403121561282c57600080fd5b6117f3826125a5565b6020808252825182820181905260009190848201906040850190845b818110156115be57835183529284019291840191600101612851565b60008060006060848603121561288257600080fd5b61288b846125a5565b95602085013595506040909401359392505050565b600080604083850312156128b357600080fd5b6128bc836125a5565b9150602083013580151581146128d157600080fd5b809150509250929050565b600080600080608085870312156128f257600080fd5b6128fb856125a5565b9350612909602086016125a5565b925060408501359150606085013567ffffffffffffffff81111561292c57600080fd5b8501601f8101871361293d57600080fd5b61294c87823560208401612669565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610823565b600080604083850312156129b057600080fd5b6129b9836125a5565b91506129c7602084016125a5565b90509250929050565b6000602082840312156129e257600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610823576108236129e9565b8082028115828204841417610823576108236129e9565b600181811c90821680612a3d57607f821691505b602082108103612a5d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561112d57600081815260208120601f850160051c81016020861015612a8a5750805b601f850160051c820191505b8181101561105157828155600101612a96565b815167ffffffffffffffff811115612ac357612ac3612653565b612ad781612ad18454612a29565b84612a63565b602080601f831160018114612b0c5760008415612af45750858301515b600019600386901b1c1916600185901b178555611051565b600085815260208120601f198616915b82811015612b3b57888601518255948401946001909101908401612b1c565b5085821015612b595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008351612b91818460208801612542565b835190830190612ba5818360208801612542565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612be06080830184612566565b9695505050505050565b600060208284031215612bfc57600080fd5b81516117f3816124de56fea264697066735822122056f42e29ff5444eb5ef8adcb5361422350d56b617d32fcf9dc8133443e91153764736f6c63430008110033

Deployed Bytecode Sourcemap

132349:4508:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32737:639;;;;;;;;;;-1:-1:-1;32737:639:0;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;32737:639:0;;;;;;;;136277:575;;;;;;:::i;:::-;;:::i;:::-;;33639:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;40130:218::-;;;;;;;;;;-1:-1:-1;40130:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1802:55:1;;;1784:74;;1772:2;1757:18;40130:218:0;1638:226:1;39563:408:0;;;;;;:::i;:::-;;:::i;29390:323::-;;;;;;;;;;-1:-1:-1;29664:12:0;;29451:7;29648:13;:28;29390:323;;;2475:25:1;;;2463:2;2448:18;29390:323:0;2329:177:1;43769:2825:0;;;;;;:::i;:::-;;:::i;7238:621::-;;;:::i;135102:93::-;;;;;;;;;;;;;:::i;133750:140::-;;;;;;;;;;;;;:::i;133328:181::-;;;;;;;;;;-1:-1:-1;133328:181:0;;;;;:::i;:::-;;:::i;133008:26::-;;;;;;;;;;;;;;;;46690:193;;;;;;:::i;:::-;;:::i;72723:94::-;;;;;;;;;;-1:-1:-1;72723:94:0;;;;;:::i;:::-;;:::i;135659:610::-;;;;;;:::i;:::-;;:::i;7944:466::-;;;:::i;133517:96::-;;;;;;;;;;-1:-1:-1;133517:96:0;;;;;:::i;:::-;;:::i;67436:528::-;;;;;;;;;;-1:-1:-1;67436:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;35032:152::-;;;;;;;;;;-1:-1:-1;35032:152:0;;;;;:::i;:::-;;:::i;133074:24::-;;;;;;;;;;;;;;;;30574:233;;;;;;;;;;-1:-1:-1;30574:233:0;;;;;:::i;:::-;;:::i;6970:102::-;;;:::i;71312:900::-;;;;;;;;;;-1:-1:-1;71312:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;132489:26::-;;;;;;;;;;;;;:::i;9953:196::-;;;;;;;;;;-1:-1:-1;;;10104:27:0;9953:196;;33815:104;;;;;;;;;;;;;:::i;68352:2513::-;;;;;;;;;;-1:-1:-1;68352:2513:0;;;;;:::i;:::-;;:::i;132433:47::-;;;;;;;;;;;;132475:5;132433:47;;40688:234;;;;;;;;;;-1:-1:-1;40688:234:0;;;;;:::i;:::-;;:::i;133041:26::-;;;;;;;;;;;;;;;;47481:407;;;;;;:::i;:::-;;:::i;66849:428::-;;;;;;;;;;-1:-1:-1;66849:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;34025:318::-;;;;;;;;;;-1:-1:-1;34025:318:0;;;;;:::i;:::-;;:::i;10798:109::-;;;;;;;;;;-1:-1:-1;10798:109:0;;10890:9;8824:50:1;;8812:2;8797:18;10798:109:0;8680:200:1;41079:164:0;;;;;;;;;;-1:-1:-1;41079:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;41200:25:0;;;41176:4;41200:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;41079:164;8601:1008;;;;;;:::i;:::-;;:::i;133943:1141::-;;;;;;;;;;-1:-1:-1;133943:1141:0;;;;;:::i;:::-;;:::i;6717:185::-;;;;;;:::i;:::-;;:::i;10255:449::-;;;;;;;;;;-1:-1:-1;10255:449:0;;;;;:::i;:::-;10534:19;10528:4;10521:33;;;10378:14;10568:26;;;;10680:4;10664:21;;10658:28;;10255:449;132524:34;;;;;;;;;;-1:-1:-1;132524:34:0;;;;;;;;32737:639;32822:4;33146:25;;;;;;:102;;-1:-1:-1;33223:25:0;;;;;33146:102;:179;;;-1:-1:-1;33300:25:0;;;;;33146:179;33126:199;32737:639;-1:-1:-1;;32737:639:0:o;136277:575::-;135262:36;;-1:-1:-1;;;135262:36:0;;135287:10;135262:36;;;1784:74:1;135301:1:0;;132602:42;;135262:24;;1757:18:1;;135262:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;135261:102;;;-1:-1:-1;135321:37:0;;-1:-1:-1;;;135321:37:0;;135347:10;135321:37;;;1784:74:1;135361:1:0;;132782:42;;135321:25;;1757:18:1;;135321:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;135261:102;:161;;;-1:-1:-1;135381:36:0;;-1:-1:-1;;;135381:36:0;;135406:10;135381:36;;;1784:74:1;135420:1:0;;132868:42;;135381:24;;1757:18:1;;135381:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;135261:161;:217;;;-1:-1:-1;135440:33:0;;-1:-1:-1;;;135440:33:0;;135462:10;135440:33;;;1784:74:1;135476:1:0;;132951:42;;135440:21;;1757:18:1;;135440:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;135261:217;:283;;;-1:-1:-1;135496:43:0;;-1:-1:-1;;;135496:43:0;;135528:10;135496:43;;;1784:74:1;135542:1:0;;132695:42;;135496:31;;1757:18:1;;135496:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;135261:283;135239:392;;;;-1:-1:-1;;;135239:392:0;;9541:2:1;135239:392:0;;;9523:21:1;9580:2;9560:18;;;9553:30;9619:34;9599:18;;;9592:62;9690:5;9670:18;;;9663:33;9713:19;;135239:392:0;;;;;;;;;136361:11:::1;136375:13;29664:12:::0;;29451:7;29648:13;:28;;29390:323;136375:13:::1;136407:14;::::0;136361:27;;-1:-1:-1;136407:14:0::1;;136399:54;;;::::0;-1:-1:-1;;;136399:54:0;;9945:2:1;136399:54:0::1;::::0;::::1;9927:21:1::0;9984:2;9964:18;;;9957:30;10023:29;10003:18;;;9996:57;10070:18;;136399:54:0::1;9743:351:1::0;136399:54:0::1;136495:17;132475:5;136511:1;136495:17;:::i;:::-;136472:20;136478:14:::0;136472:3;:20:::1;:::i;:::-;:40;136464:85;;;::::0;-1:-1:-1;;;136464:85:0;;10620:2:1;136464:85:0::1;::::0;::::1;10602:21:1::0;;;10639:18;;;10632:30;10698:34;10678:18;;;10671:62;10750:18;;136464:85:0::1;10418:356:1::0;136464:85:0::1;136585:2;136568:14;:19;136560:53;;;::::0;-1:-1:-1;;;136560:53:0;;10981:2:1;136560:53:0::1;::::0;::::1;10963:21:1::0;11020:2;11000:18;;;10993:30;11059:23;11039:18;;;11032:51;11100:18;;136560:53:0::1;10779:345:1::0;136560:53:0::1;136664:9;136645:14;136632:11;;:28;;;;:::i;:::-;:41;;136624:85;;;::::0;-1:-1:-1;;;136624:85:0;;11504:2:1;136624:85:0::1;::::0;::::1;11486:21:1::0;11543:2;11523:18;;;11516:30;11582:33;11562:18;;;11555:61;11633:18;;136624:85:0::1;11302:355:1::0;136624:85:0::1;136730:3;136724;:9;136720:77;;;136767:18;:14:::0;136784:1:::1;136767:18;:::i;:::-;136750:35;;136720:77;136807:37;136817:10;136829:14;136807:9;:37::i;:::-;136350:502;136277:575:::0;:::o;33639:100::-;33693:13;33726:5;33719:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33639:100;:::o;40130:218::-;40206:7;40231:16;40239:7;40231;:16::i;:::-;40226:64;;40256:34;;;;;;;;;;;;;;40226:64;-1:-1:-1;40310:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;40310:30:0;;40130:218::o;39563:408::-;39652:13;39668:16;39676:7;39668;:16::i;:::-;39652:32;-1:-1:-1;63896:10:0;-1:-1:-1;;;;;39701:28:0;;;39697:175;;39749:44;39766:5;63896:10;41079:164;:::i;39749:44::-;39744:128;;39821:35;;;;;;;;;;;;;;39744:128;39884:24;;;;:15;:24;;;;;;:35;;;;-1:-1:-1;;;;;39884:35:0;;;;;;;;;39935:28;;39884:24;;39935:28;;;;;;;39641:330;39563:408;;:::o;43769:2825::-;43911:27;43941;43960:7;43941:18;:27::i;:::-;43911:57;;44026:4;-1:-1:-1;;;;;43985:45:0;44001:19;-1:-1:-1;;;;;43985:45:0;;43981:86;;44039:28;;;;;;;;;;;;;;43981:86;44081:27;42877:24;;;:15;:24;;;;;43105:26;;44272:68;43105:26;44314:4;63896:10;44320:19;-1:-1:-1;;;;;42351:32:0;;;42195:28;;42480:20;;42502:30;;42477:56;;41892:659;44272:68;44267:180;;44360:43;44377:4;63896:10;41079:164;:::i;44360:43::-;44355:92;;44412:35;;;;;;;;;;;;;;44355:92;-1:-1:-1;;;;;44464:16:0;;44460:52;;44489:23;;;;;;;;;;;;;;44460:52;44661:15;44658:160;;;44801:1;44780:19;44773:30;44658:160;-1:-1:-1;;;;;45198:24:0;;;;;;;:18;:24;;;;;;45196:26;;-1:-1:-1;;45196:26:0;;;45267:22;;;;;;;;;45265:24;;-1:-1:-1;45265:24:0;;;38421:11;38396:23;38392:41;38379:63;-1:-1:-1;;;38379:63:0;45560:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;45855:47:0;;:52;;45851:627;;45960:1;45950:11;;45928:19;46083:30;;;:17;:30;;;;;;:35;;46079:384;;46221:13;;46206:11;:28;46202:242;;46368:30;;;;:17;:30;;;;;:52;;;46202:242;45909:569;45851:627;46525:7;46521:2;-1:-1:-1;;;;;46506:27:0;46515:4;-1:-1:-1;;;;;46506:27:0;;;;;;;;;;;46544:42;43900:2694;;;43769:2825;;;:::o;7238:621::-;7333:15;10890:9;7351:45;;:15;:45;7333:63;;7560:19;7554:4;7547:33;7611:8;7605:4;7598:22;7668:7;7661:4;7655;7645:21;7638:38;7817:8;7770:45;7767:1;7764;7759:67;7468:373;7238:621::o;135102:93::-;11304:13;:11;:13::i;:::-;135173:14:::1;::::0;;-1:-1:-1;;135155:32:0;::::1;135173:14;::::0;;::::1;135172:15;135155:32;::::0;;135102:93::o;133750:140::-;11304:13;:11;:13::i;:::-;133845:37:::1;::::0;133813:21:::1;::::0;133853:10:::1;::::0;133845:37;::::1;;;::::0;133813:21;;133798:12:::1;133845:37:::0;133798:12;133845:37;133813:21;133853:10;133845:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;133328:181:::0;11304:13;:11;:13::i;:::-;133423:11:::1;:20:::0;;;;133454:11:::1;:20:::0;133485:9:::1;:16:::0;133328:181::o;46690:193::-;46836:39;46853:4;46859:2;46863:7;46836:39;;;;;;;;;;;;:16;:39::i;:::-;46690:193;;;:::o;72723:94::-;72789:20;72795:7;72804:4;72789:5;:20::i;:::-;72723:94;:::o;135659:610::-;135734:14;;;;135726:54;;;;-1:-1:-1;;;135726:54:0;;9945:2:1;135726:54:0;;;9927:21:1;9984:2;9964:18;;;9957:30;10023:29;10003:18;;;9996:57;10070:18;;135726:54:0;9743:351:1;135726:54:0;135832:17;132475:5;135848:1;135832:17;:::i;:::-;135815:14;135799:13;29664:12;;29451:7;29648:13;:28;;29390:323;135799:13;:30;;;;:::i;:::-;:50;135791:95;;;;-1:-1:-1;;;135791:95:0;;10620:2:1;135791:95:0;;;10602:21:1;;;10639:18;;;10632:30;10698:34;10678:18;;;10671:62;10750:18;;135791:95:0;10418:356:1;135791:95:0;135922:2;135905:14;:19;135897:53;;;;-1:-1:-1;;;135897:53:0;;10981:2:1;135897:53:0;;;10963:21:1;11020:2;11000:18;;;10993:30;11059:23;11039:18;;;11032:51;11100:18;;135897:53:0;10779:345:1;135897:53:0;135982:2;135965:14;:19;135961:253;;;136041:9;136022:14;136009:11;;:28;;;;:::i;:::-;:41;;136001:85;;;;-1:-1:-1;;;136001:85:0;;11504:2:1;136001:85:0;;;11486:21:1;11543:2;11523:18;;;11516:30;11582:33;11562:18;;;11555:61;11633:18;;136001:85:0;11302:355:1;136001:85:0;135961:253;;;136157:9;136138:14;136127:9;;:26;;;;:::i;:::-;:39;;136119:83;;;;-1:-1:-1;;;136119:83:0;;11504:2:1;136119:83:0;;;11486:21:1;11543:2;11523:18;;;11516:30;11582:33;11562:18;;;11555:61;11633:18;;136119:83:0;11302:355:1;136119:83:0;136224:37;136234:10;136246:14;136224:9;:37::i;7944:466::-;8150:19;8144:4;8137:33;8197:8;8191:4;8184:22;8250:1;8243:4;8237;8227:21;8220:32;8383:8;8337:44;8334:1;8331;8326:66;7944:466::o;133517:96::-;11304:13;:11;:13::i;:::-;133588:7:::1;:17;133598:7:::0;133588;:17:::1;:::i;67436:528::-:0;67580:23;67671:8;67646:22;67671:8;67738:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67738:36:0;;-1:-1:-1;;67738:36:0;;;;;;;;;;;;67701:73;;67794:9;67789:125;67810:14;67805:1;:19;67789:125;;67866:32;67886:8;;67895:1;67886:11;;;;;;;:::i;:::-;;;;;;;67866:19;:32::i;:::-;67850:10;67861:1;67850:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;67826:3;;67789:125;;;-1:-1:-1;67935:10:0;67436:528;-1:-1:-1;;;;67436:528:0:o;35032:152::-;35104:7;35147:27;35166:7;35147:18;:27::i;30574:233::-;30646:7;-1:-1:-1;;;;;30670:19:0;;30666:60;;30698:28;;;;;;;;;;;;;;30666:60;-1:-1:-1;;;;;;30744:25:0;;;;;:18;:25;;;;;;24733:13;30744:55;;30574:233::o;6970:102::-;11304:13;:11;:13::i;:::-;7043:21:::1;7061:1;7043:9;:21::i;:::-;6970:102::o:0;71312:900::-;71390:16;71444:19;71478:25;71518:22;71543:16;71553:5;71543:9;:16::i;:::-;71518:41;;71574:25;71616:14;71602:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71602:29:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71574:57:0;;-1:-1:-1;71692:472:0;71741:14;71726:11;:29;71692:472;;71793:15;71806:1;71793:12;:15::i;:::-;71781:27;;71831:9;:16;;;71872:8;71827:73;71922:14;;-1:-1:-1;;;;;71922:28:0;;71918:111;;71995:14;;;-1:-1:-1;71918:111:0;72072:5;-1:-1:-1;;;;;72051:26:0;:17;-1:-1:-1;;;;;72051:26:0;;72047:102;;72128:1;72102:8;72111:13;;;;;;72102:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;72047:102;71757:3;;71692:472;;;-1:-1:-1;72185:8:0;;71312:900;-1:-1:-1;;;;;;71312:900:0:o;132489:26::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;33815:104::-;33871:13;33904:7;33897:14;;;;;:::i;68352:2513::-;68495:16;68562:4;68553:5;:13;68549:45;;68575:19;;;;;;;;;;;;;;68549:45;68609:19;68643:17;68663:14;29132:7;29159:13;;29077:103;68663:14;68643:34;-1:-1:-1;68914:9:0;68907:4;:16;68903:73;;;68951:9;68944:16;;68903:73;68990:25;69018:16;69028:5;69018:9;:16::i;:::-;68990:44;;69212:4;69204:5;:12;69200:278;;;69259:12;;;69294:31;;;69290:111;;;69370:11;69350:31;;69290:111;69218:198;69200:278;;;-1:-1:-1;69461:1:0;69200:278;69492:25;69534:17;69520:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69520:32:0;;69492:60;;69571:17;69592:1;69571:22;69567:78;;69621:8;-1:-1:-1;69614:15:0;;-1:-1:-1;;;69614:15:0;69567:78;69789:31;69823:26;69843:5;69823:19;:26::i;:::-;69789:60;;69864:25;70109:9;:16;;;70104:92;;-1:-1:-1;70166:14:0;;70104:92;70227:5;70210:478;70239:4;70234:1;:9;;:45;;;;;70262:17;70247:11;:32;;70234:45;70210:478;;;70317:15;70330:1;70317:12;:15::i;:::-;70305:27;;70355:9;:16;;;70396:8;70351:73;70446:14;;-1:-1:-1;;;;;70446:28:0;;70442:111;;70519:14;;;-1:-1:-1;70442:111:0;70596:5;-1:-1:-1;;;;;70575:26:0;:17;-1:-1:-1;;;;;70575:26:0;;70571:102;;70652:1;70626:8;70635:13;;;;;;70626:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;70571:102;70281:3;;70210:478;;;-1:-1:-1;;;70773:29:0;;;-1:-1:-1;70780:8:0;;-1:-1:-1;;68352:2513:0;;;;;;:::o;40688:234::-;63896:10;40783:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;40783:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;40783:60:0;;;;;;;;;;40859:55;;586:41:1;;;40783:49:0;;63896:10;40859:55;;559:18:1;40859:55:0;;;;;;;40688:234;;:::o;47481:407::-;47656:31;47669:4;47675:2;47679:7;47656:12;:31::i;:::-;-1:-1:-1;;;;;47702:14:0;;;:19;47698:183;;47741:56;47772:4;47778:2;47782:7;47791:5;47741:30;:56::i;:::-;47736:145;;47825:40;;-1:-1:-1;;;47825:40:0;;;;;;;;;;;47736:145;47481:407;;;;:::o;66849:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29132:7:0;29159:13;67042:7;:25;67009:103;;67091:9;66849:428;-1:-1:-1;;66849:428:0:o;67009:103::-;67134:21;67147:7;67134:12;:21::i;:::-;67122:33;;67170:9;:16;;;67166:65;;;67210:9;66849:428;-1:-1:-1;;66849:428:0:o;67166:65::-;67248:21;67261:7;67248:12;:21::i;34025:318::-;34098:13;34129:16;34137:7;34129;:16::i;:::-;34124:59;;34154:29;;;;;;;;;;;;;;34124:59;34196:21;34220:10;:8;:10::i;:::-;34196:34;;34254:7;34248:21;34273:1;34248:26;:87;;;;;;;;;;;;;;;;;34301:7;34310:18;34320:7;34310:9;:18::i;:::-;34284:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;34241:94;34025:318;-1:-1:-1;;;34025:318:0:o;8601:1008::-;11304:13;:11;:13::i;:::-;8839:19:::1;8833:4;8826:33;8886:12;8880:4;8873:26;8949:4;8943;8933:21;9057:12;9051:19;9038:11;9035:36;9032:159;;;9104:35;9098:4;9091:49;9171:4;9165;9158:18;9032:159;9270:1;9256:12;9249:23;;9357:4;9351:11;9347:2;9343:20;9493:8;9483;9443:38;9440:1;9437::::0;9432:70:::1;-1:-1:-1::0;;9553:38:0;-1:-1:-1;8601:1008:0:o;133943:1141::-;134052:32;;-1:-1:-1;;;134052:32:0;;-1:-1:-1;;;;;1802:55:1;;134052:32:0;;;1784:74:1;134001:7:0;;;;132602:42;;134052:24;;1757:18:1;;134052:32:0;;;;;;;;;;;;;;;;;;-1:-1:-1;134052:32:0;;;;;;;;-1:-1:-1;;134052:32:0;;;;;;;;;;;;:::i;:::-;;;134048:202;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134177:73;134048:202;;;134147:17;-1:-1:-1;134048:202:0;134264:33;;-1:-1:-1;;;134264:33:0;;-1:-1:-1;;;;;1802:55:1;;134264:33:0;;;1784:74:1;132782:42:0;;134264:25;;1757:18:1;;134264:33:0;;;;;;;;;;;;;;;;;;-1:-1:-1;134264:33:0;;;;;;;;-1:-1:-1;;134264:33:0;;;;;;;;;;;;:::i;:::-;;;134260:190;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134377:73;134260:190;;;134348:16;134359:5;134348:8;:16;:::i;:::-;134337:27;;134298:78;134260:190;134464:32;;-1:-1:-1;;;134464:32:0;;-1:-1:-1;;;;;1802:55:1;;134464:32:0;;;1784:74:1;132868:42:0;;134464:24;;1757:18:1;;134464:32:0;;;;;;;;;;;;;;;;;;-1:-1:-1;134464:32:0;;;;;;;;-1:-1:-1;;134464:32:0;;;;;;;;;;;;:::i;:::-;;;134460:189;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134576:73;134460:189;;;134547:16;134558:5;134547:8;:16;:::i;:::-;134536:27;;134497:78;134460:189;134663:29;;-1:-1:-1;;;134663:29:0;;-1:-1:-1;;;;;1802:55:1;;134663:29:0;;;1784:74:1;132951:42:0;;134663:21;;1757:18:1;;134663:29:0;;;;;;;;;;;;;;;;;;-1:-1:-1;134663:29:0;;;;;;;;-1:-1:-1;;134663:29:0;;;;;;;;;;;;:::i;:::-;;;134659:186;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134772:73;134659:186;;;134743:16;134754:5;134743:8;:16;:::i;:::-;134732:27;;134693:78;134659:186;134859:39;;-1:-1:-1;;;134859:39:0;;-1:-1:-1;;;;;1802:55:1;;134859:39:0;;;1784:74:1;132695:42:0;;134859:31;;1757:18:1;;134859:39:0;;;;;;;;;;;;;;;;;;-1:-1:-1;134859:39:0;;;;;;;;-1:-1:-1;;134859:39:0;;;;;;;;;;;;:::i;:::-;;;134855:196;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134978:73;134855:196;;;134949:16;134960:5;134949:8;:16;:::i;:::-;134938:27;135068:8;-1:-1:-1;;;;133943:1141:0:o;6717:185::-;11304:13;:11;:13::i;:::-;-1:-1:-1;;;;;6810:22:0;::::1;6806:58;;6841:23;;;;;;;;;;;;;;6806:58;6875:19;6885:8;6875:9;:19::i;57641:112::-:0;57718:27;57728:2;57732:8;57718:27;;;;;;;;;;;;:9;:27::i;41501:282::-;41566:4;41656:13;;41646:7;:23;41603:153;;;;-1:-1:-1;;41707:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;41707:44:0;:49;;41501:282::o;36187:1275::-;36254:7;36289;36391:13;;36384:4;:20;36380:1015;;;36429:14;36446:23;;;:17;:23;;;;;;;-1:-1:-1;;;36535:24:0;;:29;;36531:845;;37200:113;37207:6;37217:1;37207:11;37200:113;;-1:-1:-1;;;37278:6:0;37260:25;;;;:17;:25;;;;;;37200:113;;36531:845;36406:989;36380:1015;37423:31;;;;;;;;;;;;;;5980:370;-1:-1:-1;;6190:27:0;6180:8;6177:41;6167:165;;6252:28;6246:4;6239:42;6312:4;6306;6299:18;58338:3081;58418:27;58448;58467:7;58448:18;:27::i;:::-;58418:57;-1:-1:-1;58418:57:0;58488:12;;58610:35;58637:7;42766:27;42877:24;;;:15;:24;;;;;43105:26;;42877:24;;42664:485;58610:35;58553:92;;;;58662:13;58658:316;;;58783:68;58808:15;58825:4;63896:10;58831:19;63809:105;58783:68;58778:184;;58875:43;58892:4;63896:10;41079:164;:::i;58875:43::-;58870:92;;58927:35;;;;;;;;;;;;;;58870:92;59130:15;59127:160;;;59270:1;59249:19;59242:30;59127:160;-1:-1:-1;;;;;59889:24:0;;;;;;:18;:24;;;;;:60;;59917:32;59889:60;;;38421:11;38396:23;38392:41;38379:63;60277:43;38379:63;60187:26;;;;:17;:26;;;;;:205;;;;-1:-1:-1;;;60512:47:0;;:52;;60508:627;;60617:1;60607:11;;60585:19;60740:30;;;:17;:30;;;;;;:35;;60736:384;;60878:13;;60863:11;:28;60859:242;;61025:30;;;;:17;:30;;;;;:52;;;60859:242;60566:569;60508:627;61163:35;;61190:7;;61186:1;;-1:-1:-1;;;;;61163:35:0;;;;;61186:1;;61163:35;-1:-1:-1;;61386:12:0;:14;;;;;;-1:-1:-1;;;;58338:3081:0:o;5413:506::-;-1:-1:-1;;5796:16:0;;-1:-1:-1;;;;;5650:26:0;;;;;;5756:38;5753:1;;5745:78;5874:27;5413:506::o;35635:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35763:24:0;;;;:17;:24;;;;;;35744:44;;-1:-1:-1;;;;;;;;;;;;;37671:41:0;;;;25392:3;37757:33;;;37723:68;;-1:-1:-1;;;37723:68:0;-1:-1:-1;;;37821:24:0;;:29;;-1:-1:-1;;;37802:48:0;;;;25913:3;37890:28;;;;-1:-1:-1;;;37861:58:0;-1:-1:-1;37561:366:0;49972:716;50156:88;;;;;50135:4;;-1:-1:-1;;;;;50156:45:0;;;;;:88;;63896:10;;50223:4;;50229:7;;50238:5;;50156:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50156:88:0;;;;;;;;-1:-1:-1;;50156:88:0;;;;;;;;;;;;:::i;:::-;;;50152:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50439:6;:13;50456:1;50439:18;50435:235;;50485:40;;-1:-1:-1;;;50485:40:0;;;;;;;;;;;50435:235;50628:6;50622:13;50613:6;50609:2;50605:15;50598:38;50152:529;50315:64;;50325:54;50315:64;;-1:-1:-1;49972:716:0;;;;;;:::o;35373:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35484:47:0;35503:27;35522:7;35503:18;:27::i;:::-;-1:-1:-1;;;;;;;;;;;;;37671:41:0;;;;25392:3;37757:33;;;37723:68;;-1:-1:-1;;;37723:68:0;-1:-1:-1;;;37821:24:0;;:29;;-1:-1:-1;;;37802:48:0;;;;25913:3;37890:28;;;;-1:-1:-1;;;37861:58:0;-1:-1:-1;37561:366:0;133621:117;133690:13;133723:7;133716:14;;;;;:::i;64016:1745::-;64081:17;64515:4;64508;64502:11;64498:22;64607:1;64601:4;64594:15;64682:4;64679:1;64675:12;64668:19;;;64764:1;64759:3;64752:14;64868:3;65107:5;65089:428;65155:1;65150:3;65146:11;65139:18;;65326:2;65320:4;65316:13;65312:2;65308:22;65303:3;65295:36;65420:2;65410:13;;65477:25;65089:428;65477:25;-1:-1:-1;65547:13:0;;;-1:-1:-1;;65662:14:0;;;65724:19;;;65662:14;64016:1745;-1:-1:-1;64016:1745:0:o;56868:689::-;56999:19;57005:2;57009:8;56999:5;:19::i;:::-;-1:-1:-1;;;;;57060:14:0;;;:19;57056:483;;57100:11;57114:13;57162:14;;;57195:233;57226:62;57265:1;57269:2;57273:7;;;;;;57282:5;57226:30;:62::i;:::-;57221:167;;57324:40;;-1:-1:-1;;;57324:40:0;;;;;;;;;;;57221:167;57423:3;57415:5;:11;57195:233;;57510:3;57493:13;;:20;57489:34;;57515:8;;;57489:34;57081:458;;56868:689;;;:::o;51150:2966::-;51223:20;51246:13;;;51274;;;51270:44;;51296:18;;;;;;;;;;;;;;51270:44;-1:-1:-1;;;;;51802:22:0;;;;;;:18;:22;;;;24871:2;51802:22;;;:71;;51840:32;51828:45;;51802:71;;;52116:31;;;:17;:31;;;;;-1:-1:-1;38852:15:0;;38826:24;38822:46;38421:11;38396:23;38392:41;38389:52;38379:63;;52116:173;;52351:23;;;;52116:31;;51802:22;;53116:25;51802:22;;52969:335;53630:1;53616:12;53612:20;53570:346;53671:3;53662:7;53659:16;53570:346;;53889:7;53879:8;53876:1;53849:25;53846:1;53843;53838:59;53724:1;53711:15;53570:346;;;53574:77;53949:8;53961:1;53949:13;53945:45;;53971:19;;;;;;;;;;;;;;53945:45;54007:13;:19;-1:-1:-1;46690:193:0;;;:::o;14:177:1:-;99:66;92:5;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:180::-;697:6;750:2;738:9;729:7;725:23;721:32;718:52;;;766:1;763;756:12;718:52;-1:-1:-1;789:23:1;;638:180;-1:-1:-1;638:180:1:o;823:250::-;908:1;918:113;932:6;929:1;926:13;918:113;;;1008:11;;;1002:18;989:11;;;982:39;954:2;947:10;918:113;;;-1:-1:-1;;1065:1:1;1047:16;;1040:27;823:250::o;1078:330::-;1120:3;1158:5;1152:12;1185:6;1180:3;1173:19;1201:76;1270:6;1263:4;1258:3;1254:14;1247:4;1240:5;1236:16;1201:76;:::i;:::-;1322:2;1310:15;-1:-1:-1;;1306:88:1;1297:98;;;;1397:4;1293:109;;1078:330;-1:-1:-1;;1078:330:1:o;1413:220::-;1562:2;1551:9;1544:21;1525:4;1582:45;1623:2;1612:9;1608:18;1600:6;1582:45;:::i;1869:196::-;1937:20;;-1:-1:-1;;;;;1986:54:1;;1976:65;;1966:93;;2055:1;2052;2045:12;1966:93;1869:196;;;:::o;2070:254::-;2138:6;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;2238:29;2257:9;2238:29;:::i;:::-;2228:39;2314:2;2299:18;;;;2286:32;;-1:-1:-1;;;2070:254:1:o;2511:328::-;2588:6;2596;2604;2657:2;2645:9;2636:7;2632:23;2628:32;2625:52;;;2673:1;2670;2663:12;2625:52;2696:29;2715:9;2696:29;:::i;:::-;2686:39;;2744:38;2778:2;2767:9;2763:18;2744:38;:::i;:::-;2734:48;;2829:2;2818:9;2814:18;2801:32;2791:42;;2511:328;;;;;:::o;2844:316::-;2921:6;2929;2937;2990:2;2978:9;2969:7;2965:23;2961:32;2958:52;;;3006:1;3003;2996:12;2958:52;-1:-1:-1;;3029:23:1;;;3099:2;3084:18;;3071:32;;-1:-1:-1;3150:2:1;3135:18;;;3122:32;;2844:316;-1:-1:-1;2844:316:1:o;3165:184::-;-1:-1:-1;;;3214:1:1;3207:88;3314:4;3311:1;3304:15;3338:4;3335:1;3328:15;3354:691;3419:5;3449:18;3490:2;3482:6;3479:14;3476:40;;;3496:18;;:::i;:::-;3630:2;3624:9;3696:2;3684:15;;-1:-1:-1;;3680:24:1;;;3706:2;3676:33;3672:42;3660:55;;;3730:18;;;3750:22;;;3727:46;3724:72;;;3776:18;;:::i;:::-;3816:10;3812:2;3805:22;3845:6;3836:15;;3875:6;3867;3860:22;3915:3;3906:6;3901:3;3897:16;3894:25;3891:45;;;3932:1;3929;3922:12;3891:45;3982:6;3977:3;3970:4;3962:6;3958:17;3945:44;4037:1;4030:4;4021:6;4013;4009:19;4005:30;3998:41;;;;3354:691;;;;;:::o;4050:451::-;4119:6;4172:2;4160:9;4151:7;4147:23;4143:32;4140:52;;;4188:1;4185;4178:12;4140:52;4228:9;4215:23;4261:18;4253:6;4250:30;4247:50;;;4293:1;4290;4283:12;4247:50;4316:22;;4369:4;4361:13;;4357:27;-1:-1:-1;4347:55:1;;4398:1;4395;4388:12;4347:55;4421:74;4487:7;4482:2;4469:16;4464:2;4460;4456:11;4421:74;:::i;4506:615::-;4592:6;4600;4653:2;4641:9;4632:7;4628:23;4624:32;4621:52;;;4669:1;4666;4659:12;4621:52;4709:9;4696:23;4738:18;4779:2;4771:6;4768:14;4765:34;;;4795:1;4792;4785:12;4765:34;4833:6;4822:9;4818:22;4808:32;;4878:7;4871:4;4867:2;4863:13;4859:27;4849:55;;4900:1;4897;4890:12;4849:55;4940:2;4927:16;4966:2;4958:6;4955:14;4952:34;;;4982:1;4979;4972:12;4952:34;5035:7;5030:2;5020:6;5017:1;5013:14;5009:2;5005:23;5001:32;4998:45;4995:65;;;5056:1;5053;5046:12;4995:65;5087:2;5079:11;;;;;5109:6;;-1:-1:-1;4506:615:1;;-1:-1:-1;;;;4506:615:1:o;5503:722::-;5736:2;5788:21;;;5858:13;;5761:18;;;5880:22;;;5707:4;;5736:2;5959:15;;;;5933:2;5918:18;;;5707:4;6002:197;6016:6;6013:1;6010:13;6002:197;;;6065:52;6113:3;6104:6;6098:13;-1:-1:-1;;;;;5216:5:1;5210:12;5206:61;5201:3;5194:74;5329:18;5321:4;5314:5;5310:16;5304:23;5300:48;5293:4;5288:3;5284:14;5277:72;5412:4;5405:5;5401:16;5395:23;5388:31;5381:39;5374:4;5369:3;5365:14;5358:63;5482:8;5474:4;5467:5;5463:16;5457:23;5453:38;5446:4;5441:3;5437:14;5430:62;;;5126:372;6065:52;6174:15;;;;6146:4;6137:14;;;;;6038:1;6031:9;6002:197;;6230:186;6289:6;6342:2;6330:9;6321:7;6317:23;6313:32;6310:52;;;6358:1;6355;6348:12;6310:52;6381:29;6400:9;6381:29;:::i;6421:632::-;6592:2;6644:21;;;6714:13;;6617:18;;;6736:22;;;6563:4;;6592:2;6815:15;;;;6789:2;6774:18;;;6563:4;6858:169;6872:6;6869:1;6866:13;6858:169;;;6933:13;;6921:26;;7002:15;;;;6967:12;;;;6894:1;6887:9;6858:169;;7058:322;7135:6;7143;7151;7204:2;7192:9;7183:7;7179:23;7175:32;7172:52;;;7220:1;7217;7210:12;7172:52;7243:29;7262:9;7243:29;:::i;:::-;7233:39;7319:2;7304:18;;7291:32;;-1:-1:-1;7370:2:1;7355:18;;;7342:32;;7058:322;-1:-1:-1;;;7058:322:1:o;7385:347::-;7450:6;7458;7511:2;7499:9;7490:7;7486:23;7482:32;7479:52;;;7527:1;7524;7517:12;7479:52;7550:29;7569:9;7550:29;:::i;:::-;7540:39;;7629:2;7618:9;7614:18;7601:32;7676:5;7669:13;7662:21;7655:5;7652:32;7642:60;;7698:1;7695;7688:12;7642:60;7721:5;7711:15;;;7385:347;;;;;:::o;7737:667::-;7832:6;7840;7848;7856;7909:3;7897:9;7888:7;7884:23;7880:33;7877:53;;;7926:1;7923;7916:12;7877:53;7949:29;7968:9;7949:29;:::i;:::-;7939:39;;7997:38;8031:2;8020:9;8016:18;7997:38;:::i;:::-;7987:48;;8082:2;8071:9;8067:18;8054:32;8044:42;;8137:2;8126:9;8122:18;8109:32;8164:18;8156:6;8153:30;8150:50;;;8196:1;8193;8186:12;8150:50;8219:22;;8272:4;8264:13;;8260:27;-1:-1:-1;8250:55:1;;8301:1;8298;8291:12;8250:55;8324:74;8390:7;8385:2;8372:16;8367:2;8363;8359:11;8324:74;:::i;:::-;8314:84;;;7737:667;;;;;;;:::o;8409:266::-;5210:12;;-1:-1:-1;;;;;5206:61:1;5194:74;;5321:4;5310:16;;;5304:23;5329:18;5300:48;5284:14;;;5277:72;5412:4;5401:16;;;5395:23;5388:31;5381:39;5365:14;;;5358:63;5474:4;5463:16;;;5457:23;5482:8;5453:38;5437:14;;;5430:62;8605:3;8590:19;;8618:51;5126:372;8885:260;8953:6;8961;9014:2;9002:9;8993:7;8989:23;8985:32;8982:52;;;9030:1;9027;9020:12;8982:52;9053:29;9072:9;9053:29;:::i;:::-;9043:39;;9101:38;9135:2;9124:9;9120:18;9101:38;:::i;:::-;9091:48;;8885:260;;;;;:::o;9150:184::-;9220:6;9273:2;9261:9;9252:7;9248:23;9244:32;9241:52;;;9289:1;9286;9279:12;9241:52;-1:-1:-1;9312:16:1;;9150:184;-1:-1:-1;9150:184:1:o;10099:::-;-1:-1:-1;;;10148:1:1;10141:88;10248:4;10245:1;10238:15;10272:4;10269:1;10262:15;10288:125;10353:9;;;10374:10;;;10371:36;;;10387:18;;:::i;11129:168::-;11202:9;;;11233;;11250:15;;;11244:22;;11230:37;11220:71;;11271:18;;:::i;11662:437::-;11741:1;11737:12;;;;11784;;;11805:61;;11859:4;11851:6;11847:17;11837:27;;11805:61;11912:2;11904:6;11901:14;11881:18;11878:38;11875:218;;-1:-1:-1;;;11946:1:1;11939:88;12050:4;12047:1;12040:15;12078:4;12075:1;12068:15;11875:218;;11662:437;;;:::o;12230:545::-;12332:2;12327:3;12324:11;12321:448;;;12368:1;12393:5;12389:2;12382:17;12438:4;12434:2;12424:19;12508:2;12496:10;12492:19;12489:1;12485:27;12479:4;12475:38;12544:4;12532:10;12529:20;12526:47;;;-1:-1:-1;12567:4:1;12526:47;12622:2;12617:3;12613:12;12610:1;12606:20;12600:4;12596:31;12586:41;;12677:82;12695:2;12688:5;12685:13;12677:82;;;12740:17;;;12721:1;12710:13;12677:82;;13011:1471;13137:3;13131:10;13164:18;13156:6;13153:30;13150:56;;;13186:18;;:::i;:::-;13215:97;13305:6;13265:38;13297:4;13291:11;13265:38;:::i;:::-;13259:4;13215:97;:::i;:::-;13367:4;;13431:2;13420:14;;13448:1;13443:782;;;;14269:1;14286:6;14283:89;;;-1:-1:-1;14338:19:1;;;14332:26;14283:89;-1:-1:-1;;12908:1:1;12904:11;;;12900:84;12896:89;12886:100;12992:1;12988:11;;;12883:117;14385:81;;13413:1063;;13443:782;12177:1;12170:14;;;12214:4;12201:18;;-1:-1:-1;;13479:79:1;;;13656:236;13670:7;13667:1;13664:14;13656:236;;;13759:19;;;13753:26;13738:42;;13851:27;;;;13819:1;13807:14;;;;13686:19;;13656:236;;;13660:3;13920:6;13911:7;13908:19;13905:261;;;13981:19;;;13975:26;-1:-1:-1;;14064:1:1;14060:14;;;14076:3;14056:24;14052:97;14048:102;14033:118;14018:134;;13905:261;-1:-1:-1;;;;;14212:1:1;14196:14;;;14192:22;14179:36;;-1:-1:-1;13011:1471:1:o;14487:184::-;-1:-1:-1;;;14536:1:1;14529:88;14636:4;14633:1;14626:15;14660:4;14657:1;14650:15;14676:496;14855:3;14893:6;14887:13;14909:66;14968:6;14963:3;14956:4;14948:6;14944:17;14909:66;:::i;:::-;15038:13;;14997:16;;;;15060:70;15038:13;14997:16;15107:4;15095:17;;15060:70;:::i;:::-;15146:20;;14676:496;-1:-1:-1;;;;14676:496:1:o;15177:512::-;15371:4;-1:-1:-1;;;;;15481:2:1;15473:6;15469:15;15458:9;15451:34;15533:2;15525:6;15521:15;15516:2;15505:9;15501:18;15494:43;;15573:6;15568:2;15557:9;15553:18;15546:34;15616:3;15611:2;15600:9;15596:18;15589:31;15637:46;15678:3;15667:9;15663:19;15655:6;15637:46;:::i;:::-;15629:54;15177:512;-1:-1:-1;;;;;;15177:512:1:o;15694:249::-;15763:6;15816:2;15804:9;15795:7;15791:23;15787:32;15784:52;;;15832:1;15829;15822:12;15784:52;15864:9;15858:16;15883:30;15907:5;15883:30;:::i

Swarm Source

ipfs://56f42e29ff5444eb5ef8adcb5361422350d56b617d32fcf9dc8133443e911537
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.