ETH Price: $3,692.87 (+1.08%)
Gas: 6.46 Gwei

Token

ERC-20: LapixSukabenja (LPS)
 

Overview

Max Total Supply

4,290 LPS

Holders

315

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
12 LPS
0xac417ad8e646a696b250b51767026924522f208c
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:
LapixSukabenjaV2

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : LapixSukabenjaV2.sol
// SPDX-License-Identifier: MIT

/*
  


*/

pragma solidity ^0.8.17;

import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/token/common/ERC2981.sol';


abstract contract LAPIXZERO {
    function mintMecha(address to, uint[] memory ids) public virtual;
}


contract LapixSukabenjaV2 is ERC721AQueryable, 
                        ERC721ABurnable,
                        ERC2981, 
                        Ownable, 
                        DefaultOperatorFilterer, 
                        ReentrancyGuard {

    event ComponentsClaimed(uint256 _totalClaimed, address _owner, uint256 _numOfComponents);
    event FuseMecha(address _address, uint[] _tokenIds);

    bool public publicMint = false;
    bool public fuseEnabled = false;

    string private _baseTokenURI;

    uint public minComponentsPerMecha = 5;
    uint public maxComponentsPerMecha = 7;
    uint public maxPerAddress = 12;
    uint public maxSupply = 3000;

    mapping (uint => uint) public componentType;
    

    LAPIXZERO lapixContract;
    
    constructor(string memory _metadataBaseURL) ERC721A("LapixSukabenja", "LPS") {
        _baseTokenURI = _metadataBaseURL;
    }

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

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

    function mint(uint256 quantity) external {
        require(tx.origin == msg.sender, "Cannot mint from a contract");
        require(publicMint, "Cannot claim now");
        require(_numberMinted(msg.sender) + quantity <= maxPerAddress, "Tx will exceed max tokens per wallet");
        require(quantity > 0, "Invalid token count");
        require(totalSupply() + quantity <= maxSupply, "Tx will exceed max supply");
        

        _safeMint(msg.sender, quantity);

        emit ComponentsClaimed(totalSupply(), msg.sender, quantity);
    }

    function fuse(uint[] memory tokenIds) public {

        require(fuseEnabled, "Cannot fuse parts");
        require(tokenIds.length >= minComponentsPerMecha, "Not enough parts to form a mecha");
        require(tokenIds.length <= maxComponentsPerMecha, "Too many components to form a mecha");

        uint[] memory componentCount = new uint[](tokenIds.length);
        
        for (uint i=0; i<tokenIds.length; i++) {

            require(msg.sender == ownerOf(tokenIds[i]), "Must be part owner to fuse");

            uint _type = componentType[tokenIds[i]];
            componentCount[_type] = componentCount[_type] + 1;
        }

        for (uint i=0; i<tokenIds.length; i++)
            require(componentCount[i] == 1, "Cannot fuse with duplicate component types");
        
        lapixContract.mintMecha(msg.sender, tokenIds);

        for (uint i=0; i<tokenIds.length; i++)
            burn(tokenIds[i]);

        emit FuseMecha(msg.sender, tokenIds);
    }

    function mintToAddresses(address[] memory _addresses, uint[] memory _num) external onlyOwner {
        
        for (uint i=0; i<_addresses.length; i++) {
            address _to = address(_addresses[i]);
            _safeMint(_to, _num[i]);
        }
    }

    function mintToAddress(address _to, uint _num) external onlyOwner {
        _safeMint(_to, _num);
    }

    function setComponentType(uint[] memory tokenIds, uint[] memory _types) external onlyOwner {
        require(tokenIds.length == _types.length, "tokenIds and component types should be same length");
        for (uint i=0; i<tokenIds.length; i++)
            componentType[tokenIds[i]] = _types[i];
    }


    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function flipPublicMintState() external onlyOwner {
        publicMint = !publicMint;
    }

    function flipFuseEnabled() external onlyOwner {
        fuseEnabled = !fuseEnabled;
    }

    function setMaxSupply(uint _supply) external onlyOwner {
        maxSupply = _supply;
    }

    function setMaxPerAddress(uint _max) external onlyOwner {
        maxPerAddress = _max;
    }

    function setLapixContract(address _address) external onlyOwner {
        lapixContract = LAPIXZERO(_address);
    }

    function setComponentsPerMecha(uint _min, uint _max) external onlyOwner {
        minComponentsPerMecha = _min;
        maxComponentsPerMecha = _max;
    }

    function withdraw() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override(ERC721A, IERC721A, ERC2981) returns (bool) {
    // Supports the following `interfaceId`s:
    // - IERC165: 0x01ffc9a7
    // - IERC721: 0x80ac58cd
    // - IERC721Metadata: 0x5b5e139f
    // - IERC2981: 0x2a55205a
    return 
        ERC721A.supportsInterface(interfaceId) || 
        ERC2981.supportsInterface(interfaceId);
}


    function setApprovalForAll(address operator, bool approved) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        payable
        override(ERC721A, IERC721A)
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }

}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 17 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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

pragma solidity ^0.8.0;

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

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

File 7 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @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 8 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// 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 9 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @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 12 of 17 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @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 14 of 17 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 17 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 16 of 17 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 17 of 17 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_metadataBaseURL","type":"string"}],"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":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_totalClaimed","type":"uint256"},{"indexed":false,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_numOfComponents","type":"uint256"}],"name":"ComponentsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"FuseMecha","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"componentType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipFuseEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPublicMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"fuse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fuseEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"maxComponentsPerMecha","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minComponentsPerMecha","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"mintToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_num","type":"uint256[]"}],"name":"mintToAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_types","type":"uint256[]"}],"name":"setComponentType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_min","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setComponentsPerMecha","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setLapixContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","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":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600c60006101000a81548160ff0219169083151502179055506000600c60016101000a81548160ff0219169083151502179055506005600e556007600f55600c601055610bb86011553480156200005c57600080fd5b5060405162005865380380620058658339818101604052810190620000829190620005e3565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600e81526020017f4c6170697853756b6162656e6a610000000000000000000000000000000000008152506040518060400160405280600381526020017f4c5053000000000000000000000000000000000000000000000000000000000081525081600290816200011691906200087f565b5080600390816200012891906200087f565b50620001396200037960201b60201c565b600081905550505062000161620001556200038260201b60201c565b6200038a60201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003565780156200021c576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001e2929190620009ab565b600060405180830381600087803b158015620001fd57600080fd5b505af115801562000212573d6000803e3d6000fd5b5050505062000355565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002d6576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200029c929190620009ab565b600060405180830381600087803b158015620002b757600080fd5b505af1158015620002cc573d6000803e3d6000fd5b5050505062000354565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200031f9190620009d8565b600060405180830381600087803b1580156200033a57600080fd5b505af11580156200034f573d6000803e3d6000fd5b505050505b5b5b50506001600b8190555080600d90816200037191906200087f565b5050620009f5565b60006001905090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620004b9826200046e565b810181811067ffffffffffffffff82111715620004db57620004da6200047f565b5b80604052505050565b6000620004f062000450565b9050620004fe8282620004ae565b919050565b600067ffffffffffffffff8211156200052157620005206200047f565b5b6200052c826200046e565b9050602081019050919050565b60005b83811015620005595780820151818401526020810190506200053c565b60008484015250505050565b60006200057c620005768462000503565b620004e4565b9050828152602081018484840111156200059b576200059a62000469565b5b620005a884828562000539565b509392505050565b600082601f830112620005c857620005c762000464565b5b8151620005da84826020860162000565565b91505092915050565b600060208284031215620005fc57620005fb6200045a565b5b600082015167ffffffffffffffff8111156200061d576200061c6200045f565b5b6200062b84828501620005b0565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200068757607f821691505b6020821081036200069d576200069c6200063f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007077fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006c8565b620007138683620006c8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620007606200075a62000754846200072b565b62000735565b6200072b565b9050919050565b6000819050919050565b6200077c836200073f565b620007946200078b8262000767565b848454620006d5565b825550505050565b600090565b620007ab6200079c565b620007b881848462000771565b505050565b5b81811015620007e057620007d4600082620007a1565b600181019050620007be565b5050565b601f8211156200082f57620007f981620006a3565b6200080484620006b8565b8101602085101562000814578190505b6200082c6200082385620006b8565b830182620007bd565b50505b505050565b600082821c905092915050565b6000620008546000198460080262000834565b1980831691505092915050565b60006200086f838362000841565b9150826002028217905092915050565b6200088a8262000634565b67ffffffffffffffff811115620008a657620008a56200047f565b5b620008b282546200066e565b620008bf828285620007e4565b600060209050601f831160018114620008f75760008415620008e2578287015190505b620008ee858262000861565b8655506200095e565b601f1984166200090786620006a3565b60005b8281101562000931578489015182556001820191506020850194506020810190506200090a565b868310156200095157848901516200094d601f89168262000841565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009938262000966565b9050919050565b620009a58162000986565b82525050565b6000604082019050620009c260008301856200099a565b620009d160208301846200099a565b9392505050565b6000602082019050620009ef60008301846200099a565b92915050565b614e608062000a056000396000f3fe6080604052600436106102675760003560e01c8063639814e01161014457806399a2557a116100b6578063c23dc68f1161007a578063c23dc68f146108cf578063c87b56dd1461090c578063d5abeb0114610949578063e985e9c514610974578063e9daaa10146109b1578063f2fde38b146109da57610267565b806399a2557a1461080d57806399c89e811461084a578063a0712d6814610861578063a22cb4651461088a578063b88d4fde146108b357610267565b80637bddd65b116101085780637bddd65b1461070f5780637e37c663146107385780638462151c1461074f5780638da5cb5b1461078c57806395d89b41146107b7578063996b425c146107e257610267565b8063639814e01461063e5780636f8b44b01461066957806370a0823114610692578063715018a6146106cf5780637ba7d28a146106e657610267565b806326092b83116101dd57806342842e0e116101a157806342842e0e1461052d57806342966c681461054957806355f804b3146105725780635bbb21771461059b5780635dbee749146105d85780636352211e1461060157610267565b806326092b831461045757806326dfc01c146104825780632a55205a146104ad5780633ccfd60b146104eb57806341f434341461050257610267565b80631610b2f71161022f5780631610b2f71461035857806317600b4b1461038157806318160ddd146103be5780631ec9636f146103e957806321ca42361461041257806323b872dd1461043b57610267565b806301ffc9a71461026c57806305c30bfe146102a957806306fdde03146102d4578063081812fc146102ff578063095ea7b31461033c575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e919061341a565b610a03565b6040516102a09190613462565b60405180910390f35b3480156102b557600080fd5b506102be610a25565b6040516102cb9190613496565b60405180910390f35b3480156102e057600080fd5b506102e9610a2b565b6040516102f69190613541565b60405180910390f35b34801561030b57600080fd5b506103266004803603810190610321919061358f565b610abd565b60405161033391906135fd565b60405180910390f35b61035660048036038101906103519190613644565b610b3c565b005b34801561036457600080fd5b5061037f600480360381019061037a91906137cc565b610b55565b005b34801561038d57600080fd5b506103a860048036038101906103a3919061358f565b610c11565b6040516103b59190613496565b60405180910390f35b3480156103ca57600080fd5b506103d3610c29565b6040516103e09190613496565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b9190613844565b610c40565b005b34801561041e57600080fd5b5061043960048036038101906104349190613644565b610c8c565b005b61045560048036038101906104509190613871565b610ca2565b005b34801561046357600080fd5b5061046c610cf1565b6040516104799190613462565b60405180910390f35b34801561048e57600080fd5b50610497610d04565b6040516104a49190613462565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf91906138c4565b610d17565b6040516104e2929190613904565b60405180910390f35b3480156104f757600080fd5b50610500610f01565b005b34801561050e57600080fd5b50610517610f52565b604051610524919061398c565b60405180910390f35b61054760048036038101906105429190613871565b610f64565b005b34801561055557600080fd5b50610570600480360381019061056b919061358f565b610fb3565b005b34801561057e57600080fd5b5061059960048036038101906105949190613a02565b610fc1565b005b3480156105a757600080fd5b506105c260048036038101906105bd9190613aa5565b610fdf565b6040516105cf9190613c55565b60405180910390f35b3480156105e457600080fd5b506105ff60048036038101906105fa9190613c77565b6110a2565b005b34801561060d57600080fd5b506106286004803603810190610623919061358f565b611480565b60405161063591906135fd565b60405180910390f35b34801561064a57600080fd5b50610653611492565b6040516106609190613496565b60405180910390f35b34801561067557600080fd5b50610690600480360381019061068b919061358f565b611498565b005b34801561069e57600080fd5b506106b960048036038101906106b49190613844565b6114aa565b6040516106c69190613496565b60405180910390f35b3480156106db57600080fd5b506106e4611562565b005b3480156106f257600080fd5b5061070d60048036038101906107089190613d83565b611576565b005b34801561071b57600080fd5b506107366004803603810190610731919061358f565b6115e6565b005b34801561074457600080fd5b5061074d6115f8565b005b34801561075b57600080fd5b5061077660048036038101906107719190613844565b61162c565b6040516107839190613eb9565b60405180910390f35b34801561079857600080fd5b506107a161176f565b6040516107ae91906135fd565b60405180910390f35b3480156107c357600080fd5b506107cc611799565b6040516107d99190613541565b60405180910390f35b3480156107ee57600080fd5b506107f761182b565b6040516108049190613496565b60405180910390f35b34801561081957600080fd5b50610834600480360381019061082f9190613edb565b611831565b6040516108419190613eb9565b60405180910390f35b34801561085657600080fd5b5061085f611a3d565b005b34801561086d57600080fd5b506108886004803603810190610883919061358f565b611a71565b005b34801561089657600080fd5b506108b160048036038101906108ac9190613f5a565b611c6f565b005b6108cd60048036038101906108c8919061404f565b611c88565b005b3480156108db57600080fd5b506108f660048036038101906108f1919061358f565b611cd9565b6040516109039190614127565b60405180910390f35b34801561091857600080fd5b50610933600480360381019061092e919061358f565b611d43565b6040516109409190613541565b60405180910390f35b34801561095557600080fd5b5061095e611de1565b60405161096b9190613496565b60405180910390f35b34801561098057600080fd5b5061099b60048036038101906109969190614142565b611de7565b6040516109a89190613462565b60405180910390f35b3480156109bd57600080fd5b506109d860048036038101906109d391906138c4565b611e7b565b005b3480156109e657600080fd5b50610a0160048036038101906109fc9190613844565b611e95565b005b6000610a0e82611f18565b80610a1e5750610a1d82611faa565b5b9050919050565b600e5481565b606060028054610a3a906141b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a66906141b1565b8015610ab35780601f10610a8857610100808354040283529160200191610ab3565b820191906000526020600020905b815481529060010190602001808311610a9657829003601f168201915b5050505050905090565b6000610ac882612024565b610afe576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610b4681612083565b610b508383612180565b505050565b610b5d6122c4565b8051825114610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890614254565b60405180910390fd5b60005b8251811015610c0c57818181518110610bc057610bbf614274565b5b602002602001015160126000858481518110610bdf57610bde614274565b5b60200260200101518152602001908152602001600020819055508080610c04906142d2565b915050610ba4565b505050565b60126020528060005260406000206000915090505481565b6000610c33612342565b6001546000540303905090565b610c486122c4565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c946122c4565b610c9e828261234b565b5050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ce057610cdf33612083565b5b610ceb848484612369565b50505050565b600c60009054906101000a900460ff1681565b600c60019054906101000a900460ff1681565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610eac5760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610eb661268b565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ee2919061431a565b610eec919061438b565b90508160000151819350935050509250929050565b610f096122c4565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610f4f573d6000803e3d6000fd5b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fa257610fa133612083565b5b610fad848484612695565b50505050565b610fbe8160016126b5565b50565b610fc96122c4565b8181600d9182610fda929190614569565b505050565b6060600083839050905060008167ffffffffffffffff81111561100557611004613689565b5b60405190808252806020026020018201604052801561103e57816020015b61102b61335f565b8152602001906001900390816110235790505b50905060005b8281146110965761106d86868381811061106157611060614274565b5b90506020020135611cd9565b8282815181106110805761107f614274565b5b6020026020010181905250806001019050611044565b50809250505092915050565b600c60019054906101000a900460ff166110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890614685565b60405180910390fd5b600e5481511015611137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112e906146f1565b60405180910390fd5b600f548151111561117d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117490614783565b60405180910390fd5b6000815167ffffffffffffffff81111561119a57611199613689565b5b6040519080825280602002602001820160405280156111c85781602001602082028036833780820191505090505b50905060005b82518110156112f3576111fa8382815181106111ed576111ec614274565b5b6020026020010151611480565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125e906147ef565b60405180910390fd5b6000601260008584815181106112805761127f614274565b5b6020026020010151815260200190815260200160002054905060018382815181106112ae576112ad614274565b5b60200260200101516112c0919061480f565b8382815181106112d3576112d2614274565b5b6020026020010181815250505080806112eb906142d2565b9150506111ce565b5060005b825181101561137057600182828151811061131557611314614274565b5b60200260200101511461135d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611354906148b5565b60405180910390fd5b8080611368906142d2565b9150506112f7565b50601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663edc0ae6a33846040518363ffffffff1660e01b81526004016113ce9291906148d5565b600060405180830381600087803b1580156113e857600080fd5b505af11580156113fc573d6000803e3d6000fd5b5050505060005b82518110156114425761142f83828151811061142257611421614274565b5b6020026020010151610fb3565b808061143a906142d2565b915050611403565b507f6f7563c64ae387d23939b159def6b1b79c5b861bb0e1cb068f47fda95626cde333836040516114749291906148d5565b60405180910390a15050565b600061148b82612907565b9050919050565b60105481565b6114a06122c4565b8060118190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611511576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61156a6122c4565b61157460006129d3565b565b61157e6122c4565b60005b82518110156115e157600083828151811061159f5761159e614274565b5b602002602001015190506115cd818484815181106115c0576115bf614274565b5b602002602001015161234b565b5080806115d9906142d2565b915050611581565b505050565b6115ee6122c4565b8060108190555050565b6116006122c4565b600c60019054906101000a900460ff1615600c60016101000a81548160ff021916908315150217905550565b6060600080600061163c856114aa565b905060008167ffffffffffffffff81111561165a57611659613689565b5b6040519080825280602002602001820160405280156116885781602001602082028036833780820191505090505b50905061169361335f565b600061169d612342565b90505b838614611761576116b081612a99565b9150816040015161175657600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146116fb57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611755578083878060010198508151811061174857611747614274565b5b6020026020010181815250505b5b8060010190506116a0565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546117a8906141b1565b80601f01602080910402602001604051908101604052809291908181526020018280546117d4906141b1565b80156118215780601f106117f657610100808354040283529160200191611821565b820191906000526020600020905b81548152906001019060200180831161180457829003601f168201915b5050505050905090565b600f5481565b606081831061186c576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611877612ac4565b9050611881612342565b85101561189357611890612342565b94505b8084111561189f578093505b60006118aa876114aa565b9050848610156118cd5760008686039050818110156118c7578091505b506118d2565b600090505b60008167ffffffffffffffff8111156118ee576118ed613689565b5b60405190808252806020026020018201604052801561191c5781602001602082028036833780820191505090505b509050600082036119335780945050505050611a36565b600061193e88611cd9565b90506000816040015161195357816000015190505b60008990505b8881141580156119695750848714155b15611a285761197781612a99565b92508260400151611a1d57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146119c257826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a1c5780848880600101995081518110611a0f57611a0e614274565b5b6020026020010181815250505b5b806001019050611959565b508583528296505050505050505b9392505050565b611a456122c4565b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad690614951565b60405180910390fd5b600c60009054906101000a900460ff16611b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b25906149bd565b60405180910390fd5b60105481611b3b33612acd565b611b45919061480f565b1115611b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7d90614a4f565b60405180910390fd5b60008111611bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc090614abb565b60405180910390fd5b60115481611bd5610c29565b611bdf919061480f565b1115611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1790614b27565b60405180910390fd5b611c2a338261234b565b7fd1cf99485b825fe468c6ada5a37857ffda4cd324b03428bf1a7f8037e7a62479611c53610c29565b3383604051611c6493929190614b47565b60405180910390a150565b81611c7981612083565b611c838383612b24565b505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611cc657611cc533612083565b5b611cd285858585612c2f565b5050505050565b611ce161335f565b611ce961335f565b611cf1612342565b831080611d055750611d01612ac4565b8310155b15611d135780915050611d3e565b611d1c83612a99565b9050806040015115611d315780915050611d3e565b611d3a83612ca2565b9150505b919050565b6060611d4e82612024565b611d84576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d8e612cc2565b90506000815103611dae5760405180602001604052806000815250611dd9565b80611db884612d54565b604051602001611dc9929190614bba565b6040516020818303038152906040525b915050919050565b60115481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e836122c4565b81600e8190555080600f819055505050565b611e9d6122c4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0390614c50565b60405180910390fd5b611f15816129d3565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f7357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fa35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061201d575061201c82612da4565b5b9050919050565b60008161202f612342565b1115801561203e575060005482105b801561207c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561217d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016120fa929190614c70565b602060405180830381865afa158015612117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213b9190614cae565b61217c57806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161217391906135fd565b60405180910390fd5b5b50565b600061218b82611480565b90508073ffffffffffffffffffffffffffffffffffffffff166121ac612e0e565b73ffffffffffffffffffffffffffffffffffffffff161461220f576121d8816121d3612e0e565b611de7565b61220e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6122cc612e16565b73ffffffffffffffffffffffffffffffffffffffff166122ea61176f565b73ffffffffffffffffffffffffffffffffffffffff1614612340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233790614d27565b60405180910390fd5b565b60006001905090565b612365828260405180602001604052806000815250612e1e565b5050565b600061237482612907565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123db576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806123e784612ebb565b915091506123fd81876123f8612e0e565b612ee2565b612449576124128661240d612e0e565b611de7565b612448576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036124af576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124bc8686866001612f26565b80156124c757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061259585612571888887612f2c565b7c020000000000000000000000000000000000000000000000000000000017612f54565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361261b5760006001850190506000600460008381526020019081526020016000205403612619576000548114612618578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126838686866001612f7f565b505050505050565b6000612710905090565b6126b083838360405180602001604052806000815250611c88565b505050565b60006126c083612907565b905060008190506000806126d386612ebb565b91509150841561273c576126ef81846126ea612e0e565b612ee2565b61273b57612704836126ff612e0e565b611de7565b61273a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b61274a836000886001612f26565b801561275557600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127fd836127ba85600088612f2c565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612f54565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036128835760006001870190506000600460008381526020019081526020016000205403612881576000548114612880578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128ed836000886001612f7f565b600160008154809291906001019190505550505050505050565b60008082905080612916612342565b1161299c5760005481101561299b5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612999575b6000810361298f576004600083600190039350838152602001908152602001600020549050612965565b80925050506129ce565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612aa161335f565b612abd6004600084815260200190815260200160002054612f85565b9050919050565b60008054905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b8060076000612b31612e0e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612bde612e0e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c239190613462565b60405180910390a35050565b612c3a848484610ca2565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612c9c57612c658484848461303b565b612c9b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612caa61335f565b612cbb612cb683612907565b612f85565b9050919050565b6060600d8054612cd1906141b1565b80601f0160208091040260200160405190810160405280929190818152602001828054612cfd906141b1565b8015612d4a5780601f10612d1f57610100808354040283529160200191612d4a565b820191906000526020600020905b815481529060010190602001808311612d2d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612d8f57600184039350600a81066030018453600a8104905080612d6d575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600033905090565b612e28838361318b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612eb657600080549050600083820390505b612e68600086838060010194508661303b565b612e9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e55578160005414612eb357600080fd5b50505b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f43868684613346565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612f8d61335f565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613061612e0e565b8786866040518563ffffffff1660e01b81526004016130839493929190614d9c565b6020604051808303816000875af19250505080156130bf57506040513d601f19601f820116820180604052508101906130bc9190614dfd565b60015b613138573d80600081146130ef576040519150601f19603f3d011682016040523d82523d6000602084013e6130f4565b606091505b506000815103613130576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080549050600082036131cb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131d86000848385612f26565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061324f836132406000866000612f2c565b6132498561334f565b17612f54565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132f057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506132b5565b506000820361332b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133416000848385612f7f565b505050565b60009392505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133f7816133c2565b811461340257600080fd5b50565b600081359050613414816133ee565b92915050565b6000602082840312156134305761342f6133b8565b5b600061343e84828501613405565b91505092915050565b60008115159050919050565b61345c81613447565b82525050565b60006020820190506134776000830184613453565b92915050565b6000819050919050565b6134908161347d565b82525050565b60006020820190506134ab6000830184613487565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156134eb5780820151818401526020810190506134d0565b60008484015250505050565b6000601f19601f8301169050919050565b6000613513826134b1565b61351d81856134bc565b935061352d8185602086016134cd565b613536816134f7565b840191505092915050565b6000602082019050818103600083015261355b8184613508565b905092915050565b61356c8161347d565b811461357757600080fd5b50565b60008135905061358981613563565b92915050565b6000602082840312156135a5576135a46133b8565b5b60006135b38482850161357a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135e7826135bc565b9050919050565b6135f7816135dc565b82525050565b600060208201905061361260008301846135ee565b92915050565b613621816135dc565b811461362c57600080fd5b50565b60008135905061363e81613618565b92915050565b6000806040838503121561365b5761365a6133b8565b5b60006136698582860161362f565b925050602061367a8582860161357a565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136c1826134f7565b810181811067ffffffffffffffff821117156136e0576136df613689565b5b80604052505050565b60006136f36133ae565b90506136ff82826136b8565b919050565b600067ffffffffffffffff82111561371f5761371e613689565b5b602082029050602081019050919050565b600080fd5b600061374861374384613704565b6136e9565b9050808382526020820190506020840283018581111561376b5761376a613730565b5b835b818110156137945780613780888261357a565b84526020840193505060208101905061376d565b5050509392505050565b600082601f8301126137b3576137b2613684565b5b81356137c3848260208601613735565b91505092915050565b600080604083850312156137e3576137e26133b8565b5b600083013567ffffffffffffffff811115613801576138006133bd565b5b61380d8582860161379e565b925050602083013567ffffffffffffffff81111561382e5761382d6133bd565b5b61383a8582860161379e565b9150509250929050565b60006020828403121561385a576138596133b8565b5b60006138688482850161362f565b91505092915050565b60008060006060848603121561388a576138896133b8565b5b60006138988682870161362f565b93505060206138a98682870161362f565b92505060406138ba8682870161357a565b9150509250925092565b600080604083850312156138db576138da6133b8565b5b60006138e98582860161357a565b92505060206138fa8582860161357a565b9150509250929050565b600060408201905061391960008301856135ee565b6139266020830184613487565b9392505050565b6000819050919050565b600061395261394d613948846135bc565b61392d565b6135bc565b9050919050565b600061396482613937565b9050919050565b600061397682613959565b9050919050565b6139868161396b565b82525050565b60006020820190506139a1600083018461397d565b92915050565b600080fd5b60008083601f8401126139c2576139c1613684565b5b8235905067ffffffffffffffff8111156139df576139de6139a7565b5b6020830191508360018202830111156139fb576139fa613730565b5b9250929050565b60008060208385031215613a1957613a186133b8565b5b600083013567ffffffffffffffff811115613a3757613a366133bd565b5b613a43858286016139ac565b92509250509250929050565b60008083601f840112613a6557613a64613684565b5b8235905067ffffffffffffffff811115613a8257613a816139a7565b5b602083019150836020820283011115613a9e57613a9d613730565b5b9250929050565b60008060208385031215613abc57613abb6133b8565b5b600083013567ffffffffffffffff811115613ada57613ad96133bd565b5b613ae685828601613a4f565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b27816135dc565b82525050565b600067ffffffffffffffff82169050919050565b613b4a81613b2d565b82525050565b613b5981613447565b82525050565b600062ffffff82169050919050565b613b7781613b5f565b82525050565b608082016000820151613b936000850182613b1e565b506020820151613ba66020850182613b41565b506040820151613bb96040850182613b50565b506060820151613bcc6060850182613b6e565b50505050565b6000613bde8383613b7d565b60808301905092915050565b6000602082019050919050565b6000613c0282613af2565b613c0c8185613afd565b9350613c1783613b0e565b8060005b83811015613c48578151613c2f8882613bd2565b9750613c3a83613bea565b925050600181019050613c1b565b5085935050505092915050565b60006020820190508181036000830152613c6f8184613bf7565b905092915050565b600060208284031215613c8d57613c8c6133b8565b5b600082013567ffffffffffffffff811115613cab57613caa6133bd565b5b613cb78482850161379e565b91505092915050565b600067ffffffffffffffff821115613cdb57613cda613689565b5b602082029050602081019050919050565b6000613cff613cfa84613cc0565b6136e9565b90508083825260208201905060208402830185811115613d2257613d21613730565b5b835b81811015613d4b5780613d37888261362f565b845260208401935050602081019050613d24565b5050509392505050565b600082601f830112613d6a57613d69613684565b5b8135613d7a848260208601613cec565b91505092915050565b60008060408385031215613d9a57613d996133b8565b5b600083013567ffffffffffffffff811115613db857613db76133bd565b5b613dc485828601613d55565b925050602083013567ffffffffffffffff811115613de557613de46133bd565b5b613df18582860161379e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e308161347d565b82525050565b6000613e428383613e27565b60208301905092915050565b6000602082019050919050565b6000613e6682613dfb565b613e708185613e06565b9350613e7b83613e17565b8060005b83811015613eac578151613e938882613e36565b9750613e9e83613e4e565b925050600181019050613e7f565b5085935050505092915050565b60006020820190508181036000830152613ed38184613e5b565b905092915050565b600080600060608486031215613ef457613ef36133b8565b5b6000613f028682870161362f565b9350506020613f138682870161357a565b9250506040613f248682870161357a565b9150509250925092565b613f3781613447565b8114613f4257600080fd5b50565b600081359050613f5481613f2e565b92915050565b60008060408385031215613f7157613f706133b8565b5b6000613f7f8582860161362f565b9250506020613f9085828601613f45565b9150509250929050565b600080fd5b600067ffffffffffffffff821115613fba57613fb9613689565b5b613fc3826134f7565b9050602081019050919050565b82818337600083830152505050565b6000613ff2613fed84613f9f565b6136e9565b90508281526020810184848401111561400e5761400d613f9a565b5b614019848285613fd0565b509392505050565b600082601f83011261403657614035613684565b5b8135614046848260208601613fdf565b91505092915050565b60008060008060808587031215614069576140686133b8565b5b60006140778782880161362f565b94505060206140888782880161362f565b93505060406140998782880161357a565b925050606085013567ffffffffffffffff8111156140ba576140b96133bd565b5b6140c687828801614021565b91505092959194509250565b6080820160008201516140e86000850182613b1e565b5060208201516140fb6020850182613b41565b50604082015161410e6040850182613b50565b5060608201516141216060850182613b6e565b50505050565b600060808201905061413c60008301846140d2565b92915050565b60008060408385031215614159576141586133b8565b5b60006141678582860161362f565b92505060206141788582860161362f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806141c957607f821691505b6020821081036141dc576141db614182565b5b50919050565b7f746f6b656e49647320616e6420636f6d706f6e656e742074797065732073686f60008201527f756c642062652073616d65206c656e6774680000000000000000000000000000602082015250565b600061423e6032836134bc565b9150614249826141e2565b604082019050919050565b6000602082019050818103600083015261426d81614231565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006142dd8261347d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361430f5761430e6142a3565b5b600182019050919050565b60006143258261347d565b91506143308361347d565b925082820261433e8161347d565b91508282048414831517614355576143546142a3565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006143968261347d565b91506143a18361347d565b9250826143b1576143b061435c565b5b828204905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826143ec565b61443386836143ec565b95508019841693508086168417925050509392505050565b600061446661446161445c8461347d565b61392d565b61347d565b9050919050565b6000819050919050565b6144808361444b565b61449461448c8261446d565b8484546143f9565b825550505050565b600090565b6144a961449c565b6144b4818484614477565b505050565b5b818110156144d8576144cd6000826144a1565b6001810190506144ba565b5050565b601f82111561451d576144ee816143c7565b6144f7846143dc565b81016020851015614506578190505b61451a614512856143dc565b8301826144b9565b50505b505050565b600082821c905092915050565b600061454060001984600802614522565b1980831691505092915050565b6000614559838361452f565b9150826002028217905092915050565b61457383836143bc565b67ffffffffffffffff81111561458c5761458b613689565b5b61459682546141b1565b6145a18282856144dc565b6000601f8311600181146145d057600084156145be578287013590505b6145c8858261454d565b865550614630565b601f1984166145de866143c7565b60005b82811015614606578489013582556001820191506020850194506020810190506145e1565b86831015614623578489013561461f601f89168261452f565b8355505b6001600288020188555050505b50505050505050565b7f43616e6e6f742066757365207061727473000000000000000000000000000000600082015250565b600061466f6011836134bc565b915061467a82614639565b602082019050919050565b6000602082019050818103600083015261469e81614662565b9050919050565b7f4e6f7420656e6f75676820706172747320746f20666f726d2061206d65636861600082015250565b60006146db6020836134bc565b91506146e6826146a5565b602082019050919050565b6000602082019050818103600083015261470a816146ce565b9050919050565b7f546f6f206d616e7920636f6d706f6e656e747320746f20666f726d2061206d6560008201527f6368610000000000000000000000000000000000000000000000000000000000602082015250565b600061476d6023836134bc565b915061477882614711565b604082019050919050565b6000602082019050818103600083015261479c81614760565b9050919050565b7f4d7573742062652070617274206f776e657220746f2066757365000000000000600082015250565b60006147d9601a836134bc565b91506147e4826147a3565b602082019050919050565b60006020820190508181036000830152614808816147cc565b9050919050565b600061481a8261347d565b91506148258361347d565b925082820190508082111561483d5761483c6142a3565b5b92915050565b7f43616e6e6f7420667573652077697468206475706c696361746520636f6d706f60008201527f6e656e7420747970657300000000000000000000000000000000000000000000602082015250565b600061489f602a836134bc565b91506148aa82614843565b604082019050919050565b600060208201905081810360008301526148ce81614892565b9050919050565b60006040820190506148ea60008301856135ee565b81810360208301526148fc8184613e5b565b90509392505050565b7f43616e6e6f74206d696e742066726f6d206120636f6e74726163740000000000600082015250565b600061493b601b836134bc565b915061494682614905565b602082019050919050565b6000602082019050818103600083015261496a8161492e565b9050919050565b7f43616e6e6f7420636c61696d206e6f7700000000000000000000000000000000600082015250565b60006149a76010836134bc565b91506149b282614971565b602082019050919050565b600060208201905081810360008301526149d68161499a565b9050919050565b7f54782077696c6c20657863656564206d617820746f6b656e732070657220776160008201527f6c6c657400000000000000000000000000000000000000000000000000000000602082015250565b6000614a396024836134bc565b9150614a44826149dd565b604082019050919050565b60006020820190508181036000830152614a6881614a2c565b9050919050565b7f496e76616c696420746f6b656e20636f756e7400000000000000000000000000600082015250565b6000614aa56013836134bc565b9150614ab082614a6f565b602082019050919050565b60006020820190508181036000830152614ad481614a98565b9050919050565b7f54782077696c6c20657863656564206d617820737570706c7900000000000000600082015250565b6000614b116019836134bc565b9150614b1c82614adb565b602082019050919050565b60006020820190508181036000830152614b4081614b04565b9050919050565b6000606082019050614b5c6000830186613487565b614b6960208301856135ee565b614b766040830184613487565b949350505050565b600081905092915050565b6000614b94826134b1565b614b9e8185614b7e565b9350614bae8185602086016134cd565b80840191505092915050565b6000614bc68285614b89565b9150614bd28284614b89565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c3a6026836134bc565b9150614c4582614bde565b604082019050919050565b60006020820190508181036000830152614c6981614c2d565b9050919050565b6000604082019050614c8560008301856135ee565b614c9260208301846135ee565b9392505050565b600081519050614ca881613f2e565b92915050565b600060208284031215614cc457614cc36133b8565b5b6000614cd284828501614c99565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d116020836134bc565b9150614d1c82614cdb565b602082019050919050565b60006020820190508181036000830152614d4081614d04565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614d6e82614d47565b614d788185614d52565b9350614d888185602086016134cd565b614d91816134f7565b840191505092915050565b6000608082019050614db160008301876135ee565b614dbe60208301866135ee565b614dcb6040830185613487565b8181036060830152614ddd8184614d63565b905095945050505050565b600081519050614df7816133ee565b92915050565b600060208284031215614e1357614e126133b8565b5b6000614e2184828501614de8565b9150509291505056fea26469706673582212206cf756b9e9548495cf5a5aef708cb311570702f4a2854f214ca80aa6a83e37c364736f6c634300081100330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003e68747470733a2f2f6c617069787a65726f2e73666f332e6469676974616c6f6365616e7370616365732e636f6d2f7075626c69632f6d657461646174612f0000

Deployed Bytecode

0x6080604052600436106102675760003560e01c8063639814e01161014457806399a2557a116100b6578063c23dc68f1161007a578063c23dc68f146108cf578063c87b56dd1461090c578063d5abeb0114610949578063e985e9c514610974578063e9daaa10146109b1578063f2fde38b146109da57610267565b806399a2557a1461080d57806399c89e811461084a578063a0712d6814610861578063a22cb4651461088a578063b88d4fde146108b357610267565b80637bddd65b116101085780637bddd65b1461070f5780637e37c663146107385780638462151c1461074f5780638da5cb5b1461078c57806395d89b41146107b7578063996b425c146107e257610267565b8063639814e01461063e5780636f8b44b01461066957806370a0823114610692578063715018a6146106cf5780637ba7d28a146106e657610267565b806326092b83116101dd57806342842e0e116101a157806342842e0e1461052d57806342966c681461054957806355f804b3146105725780635bbb21771461059b5780635dbee749146105d85780636352211e1461060157610267565b806326092b831461045757806326dfc01c146104825780632a55205a146104ad5780633ccfd60b146104eb57806341f434341461050257610267565b80631610b2f71161022f5780631610b2f71461035857806317600b4b1461038157806318160ddd146103be5780631ec9636f146103e957806321ca42361461041257806323b872dd1461043b57610267565b806301ffc9a71461026c57806305c30bfe146102a957806306fdde03146102d4578063081812fc146102ff578063095ea7b31461033c575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e919061341a565b610a03565b6040516102a09190613462565b60405180910390f35b3480156102b557600080fd5b506102be610a25565b6040516102cb9190613496565b60405180910390f35b3480156102e057600080fd5b506102e9610a2b565b6040516102f69190613541565b60405180910390f35b34801561030b57600080fd5b506103266004803603810190610321919061358f565b610abd565b60405161033391906135fd565b60405180910390f35b61035660048036038101906103519190613644565b610b3c565b005b34801561036457600080fd5b5061037f600480360381019061037a91906137cc565b610b55565b005b34801561038d57600080fd5b506103a860048036038101906103a3919061358f565b610c11565b6040516103b59190613496565b60405180910390f35b3480156103ca57600080fd5b506103d3610c29565b6040516103e09190613496565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b9190613844565b610c40565b005b34801561041e57600080fd5b5061043960048036038101906104349190613644565b610c8c565b005b61045560048036038101906104509190613871565b610ca2565b005b34801561046357600080fd5b5061046c610cf1565b6040516104799190613462565b60405180910390f35b34801561048e57600080fd5b50610497610d04565b6040516104a49190613462565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf91906138c4565b610d17565b6040516104e2929190613904565b60405180910390f35b3480156104f757600080fd5b50610500610f01565b005b34801561050e57600080fd5b50610517610f52565b604051610524919061398c565b60405180910390f35b61054760048036038101906105429190613871565b610f64565b005b34801561055557600080fd5b50610570600480360381019061056b919061358f565b610fb3565b005b34801561057e57600080fd5b5061059960048036038101906105949190613a02565b610fc1565b005b3480156105a757600080fd5b506105c260048036038101906105bd9190613aa5565b610fdf565b6040516105cf9190613c55565b60405180910390f35b3480156105e457600080fd5b506105ff60048036038101906105fa9190613c77565b6110a2565b005b34801561060d57600080fd5b506106286004803603810190610623919061358f565b611480565b60405161063591906135fd565b60405180910390f35b34801561064a57600080fd5b50610653611492565b6040516106609190613496565b60405180910390f35b34801561067557600080fd5b50610690600480360381019061068b919061358f565b611498565b005b34801561069e57600080fd5b506106b960048036038101906106b49190613844565b6114aa565b6040516106c69190613496565b60405180910390f35b3480156106db57600080fd5b506106e4611562565b005b3480156106f257600080fd5b5061070d60048036038101906107089190613d83565b611576565b005b34801561071b57600080fd5b506107366004803603810190610731919061358f565b6115e6565b005b34801561074457600080fd5b5061074d6115f8565b005b34801561075b57600080fd5b5061077660048036038101906107719190613844565b61162c565b6040516107839190613eb9565b60405180910390f35b34801561079857600080fd5b506107a161176f565b6040516107ae91906135fd565b60405180910390f35b3480156107c357600080fd5b506107cc611799565b6040516107d99190613541565b60405180910390f35b3480156107ee57600080fd5b506107f761182b565b6040516108049190613496565b60405180910390f35b34801561081957600080fd5b50610834600480360381019061082f9190613edb565b611831565b6040516108419190613eb9565b60405180910390f35b34801561085657600080fd5b5061085f611a3d565b005b34801561086d57600080fd5b506108886004803603810190610883919061358f565b611a71565b005b34801561089657600080fd5b506108b160048036038101906108ac9190613f5a565b611c6f565b005b6108cd60048036038101906108c8919061404f565b611c88565b005b3480156108db57600080fd5b506108f660048036038101906108f1919061358f565b611cd9565b6040516109039190614127565b60405180910390f35b34801561091857600080fd5b50610933600480360381019061092e919061358f565b611d43565b6040516109409190613541565b60405180910390f35b34801561095557600080fd5b5061095e611de1565b60405161096b9190613496565b60405180910390f35b34801561098057600080fd5b5061099b60048036038101906109969190614142565b611de7565b6040516109a89190613462565b60405180910390f35b3480156109bd57600080fd5b506109d860048036038101906109d391906138c4565b611e7b565b005b3480156109e657600080fd5b50610a0160048036038101906109fc9190613844565b611e95565b005b6000610a0e82611f18565b80610a1e5750610a1d82611faa565b5b9050919050565b600e5481565b606060028054610a3a906141b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a66906141b1565b8015610ab35780601f10610a8857610100808354040283529160200191610ab3565b820191906000526020600020905b815481529060010190602001808311610a9657829003601f168201915b5050505050905090565b6000610ac882612024565b610afe576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610b4681612083565b610b508383612180565b505050565b610b5d6122c4565b8051825114610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890614254565b60405180910390fd5b60005b8251811015610c0c57818181518110610bc057610bbf614274565b5b602002602001015160126000858481518110610bdf57610bde614274565b5b60200260200101518152602001908152602001600020819055508080610c04906142d2565b915050610ba4565b505050565b60126020528060005260406000206000915090505481565b6000610c33612342565b6001546000540303905090565b610c486122c4565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c946122c4565b610c9e828261234b565b5050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ce057610cdf33612083565b5b610ceb848484612369565b50505050565b600c60009054906101000a900460ff1681565b600c60019054906101000a900460ff1681565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610eac5760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610eb661268b565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ee2919061431a565b610eec919061438b565b90508160000151819350935050509250929050565b610f096122c4565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610f4f573d6000803e3d6000fd5b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fa257610fa133612083565b5b610fad848484612695565b50505050565b610fbe8160016126b5565b50565b610fc96122c4565b8181600d9182610fda929190614569565b505050565b6060600083839050905060008167ffffffffffffffff81111561100557611004613689565b5b60405190808252806020026020018201604052801561103e57816020015b61102b61335f565b8152602001906001900390816110235790505b50905060005b8281146110965761106d86868381811061106157611060614274565b5b90506020020135611cd9565b8282815181106110805761107f614274565b5b6020026020010181905250806001019050611044565b50809250505092915050565b600c60019054906101000a900460ff166110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890614685565b60405180910390fd5b600e5481511015611137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112e906146f1565b60405180910390fd5b600f548151111561117d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117490614783565b60405180910390fd5b6000815167ffffffffffffffff81111561119a57611199613689565b5b6040519080825280602002602001820160405280156111c85781602001602082028036833780820191505090505b50905060005b82518110156112f3576111fa8382815181106111ed576111ec614274565b5b6020026020010151611480565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125e906147ef565b60405180910390fd5b6000601260008584815181106112805761127f614274565b5b6020026020010151815260200190815260200160002054905060018382815181106112ae576112ad614274565b5b60200260200101516112c0919061480f565b8382815181106112d3576112d2614274565b5b6020026020010181815250505080806112eb906142d2565b9150506111ce565b5060005b825181101561137057600182828151811061131557611314614274565b5b60200260200101511461135d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611354906148b5565b60405180910390fd5b8080611368906142d2565b9150506112f7565b50601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663edc0ae6a33846040518363ffffffff1660e01b81526004016113ce9291906148d5565b600060405180830381600087803b1580156113e857600080fd5b505af11580156113fc573d6000803e3d6000fd5b5050505060005b82518110156114425761142f83828151811061142257611421614274565b5b6020026020010151610fb3565b808061143a906142d2565b915050611403565b507f6f7563c64ae387d23939b159def6b1b79c5b861bb0e1cb068f47fda95626cde333836040516114749291906148d5565b60405180910390a15050565b600061148b82612907565b9050919050565b60105481565b6114a06122c4565b8060118190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611511576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61156a6122c4565b61157460006129d3565b565b61157e6122c4565b60005b82518110156115e157600083828151811061159f5761159e614274565b5b602002602001015190506115cd818484815181106115c0576115bf614274565b5b602002602001015161234b565b5080806115d9906142d2565b915050611581565b505050565b6115ee6122c4565b8060108190555050565b6116006122c4565b600c60019054906101000a900460ff1615600c60016101000a81548160ff021916908315150217905550565b6060600080600061163c856114aa565b905060008167ffffffffffffffff81111561165a57611659613689565b5b6040519080825280602002602001820160405280156116885781602001602082028036833780820191505090505b50905061169361335f565b600061169d612342565b90505b838614611761576116b081612a99565b9150816040015161175657600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146116fb57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611755578083878060010198508151811061174857611747614274565b5b6020026020010181815250505b5b8060010190506116a0565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546117a8906141b1565b80601f01602080910402602001604051908101604052809291908181526020018280546117d4906141b1565b80156118215780601f106117f657610100808354040283529160200191611821565b820191906000526020600020905b81548152906001019060200180831161180457829003601f168201915b5050505050905090565b600f5481565b606081831061186c576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611877612ac4565b9050611881612342565b85101561189357611890612342565b94505b8084111561189f578093505b60006118aa876114aa565b9050848610156118cd5760008686039050818110156118c7578091505b506118d2565b600090505b60008167ffffffffffffffff8111156118ee576118ed613689565b5b60405190808252806020026020018201604052801561191c5781602001602082028036833780820191505090505b509050600082036119335780945050505050611a36565b600061193e88611cd9565b90506000816040015161195357816000015190505b60008990505b8881141580156119695750848714155b15611a285761197781612a99565b92508260400151611a1d57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146119c257826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a1c5780848880600101995081518110611a0f57611a0e614274565b5b6020026020010181815250505b5b806001019050611959565b508583528296505050505050505b9392505050565b611a456122c4565b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad690614951565b60405180910390fd5b600c60009054906101000a900460ff16611b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b25906149bd565b60405180910390fd5b60105481611b3b33612acd565b611b45919061480f565b1115611b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7d90614a4f565b60405180910390fd5b60008111611bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc090614abb565b60405180910390fd5b60115481611bd5610c29565b611bdf919061480f565b1115611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1790614b27565b60405180910390fd5b611c2a338261234b565b7fd1cf99485b825fe468c6ada5a37857ffda4cd324b03428bf1a7f8037e7a62479611c53610c29565b3383604051611c6493929190614b47565b60405180910390a150565b81611c7981612083565b611c838383612b24565b505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611cc657611cc533612083565b5b611cd285858585612c2f565b5050505050565b611ce161335f565b611ce961335f565b611cf1612342565b831080611d055750611d01612ac4565b8310155b15611d135780915050611d3e565b611d1c83612a99565b9050806040015115611d315780915050611d3e565b611d3a83612ca2565b9150505b919050565b6060611d4e82612024565b611d84576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d8e612cc2565b90506000815103611dae5760405180602001604052806000815250611dd9565b80611db884612d54565b604051602001611dc9929190614bba565b6040516020818303038152906040525b915050919050565b60115481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e836122c4565b81600e8190555080600f819055505050565b611e9d6122c4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0390614c50565b60405180910390fd5b611f15816129d3565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f7357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fa35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061201d575061201c82612da4565b5b9050919050565b60008161202f612342565b1115801561203e575060005482105b801561207c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561217d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016120fa929190614c70565b602060405180830381865afa158015612117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213b9190614cae565b61217c57806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161217391906135fd565b60405180910390fd5b5b50565b600061218b82611480565b90508073ffffffffffffffffffffffffffffffffffffffff166121ac612e0e565b73ffffffffffffffffffffffffffffffffffffffff161461220f576121d8816121d3612e0e565b611de7565b61220e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6122cc612e16565b73ffffffffffffffffffffffffffffffffffffffff166122ea61176f565b73ffffffffffffffffffffffffffffffffffffffff1614612340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233790614d27565b60405180910390fd5b565b60006001905090565b612365828260405180602001604052806000815250612e1e565b5050565b600061237482612907565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123db576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806123e784612ebb565b915091506123fd81876123f8612e0e565b612ee2565b612449576124128661240d612e0e565b611de7565b612448576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036124af576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124bc8686866001612f26565b80156124c757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061259585612571888887612f2c565b7c020000000000000000000000000000000000000000000000000000000017612f54565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361261b5760006001850190506000600460008381526020019081526020016000205403612619576000548114612618578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126838686866001612f7f565b505050505050565b6000612710905090565b6126b083838360405180602001604052806000815250611c88565b505050565b60006126c083612907565b905060008190506000806126d386612ebb565b91509150841561273c576126ef81846126ea612e0e565b612ee2565b61273b57612704836126ff612e0e565b611de7565b61273a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b61274a836000886001612f26565b801561275557600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127fd836127ba85600088612f2c565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612f54565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036128835760006001870190506000600460008381526020019081526020016000205403612881576000548114612880578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128ed836000886001612f7f565b600160008154809291906001019190505550505050505050565b60008082905080612916612342565b1161299c5760005481101561299b5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612999575b6000810361298f576004600083600190039350838152602001908152602001600020549050612965565b80925050506129ce565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612aa161335f565b612abd6004600084815260200190815260200160002054612f85565b9050919050565b60008054905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b8060076000612b31612e0e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612bde612e0e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c239190613462565b60405180910390a35050565b612c3a848484610ca2565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612c9c57612c658484848461303b565b612c9b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612caa61335f565b612cbb612cb683612907565b612f85565b9050919050565b6060600d8054612cd1906141b1565b80601f0160208091040260200160405190810160405280929190818152602001828054612cfd906141b1565b8015612d4a5780601f10612d1f57610100808354040283529160200191612d4a565b820191906000526020600020905b815481529060010190602001808311612d2d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612d8f57600184039350600a81066030018453600a8104905080612d6d575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600033905090565b612e28838361318b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612eb657600080549050600083820390505b612e68600086838060010194508661303b565b612e9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e55578160005414612eb357600080fd5b50505b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f43868684613346565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612f8d61335f565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613061612e0e565b8786866040518563ffffffff1660e01b81526004016130839493929190614d9c565b6020604051808303816000875af19250505080156130bf57506040513d601f19601f820116820180604052508101906130bc9190614dfd565b60015b613138573d80600081146130ef576040519150601f19603f3d011682016040523d82523d6000602084013e6130f4565b606091505b506000815103613130576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080549050600082036131cb576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131d86000848385612f26565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061324f836132406000866000612f2c565b6132498561334f565b17612f54565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132f057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506132b5565b506000820361332b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133416000848385612f7f565b505050565b60009392505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133f7816133c2565b811461340257600080fd5b50565b600081359050613414816133ee565b92915050565b6000602082840312156134305761342f6133b8565b5b600061343e84828501613405565b91505092915050565b60008115159050919050565b61345c81613447565b82525050565b60006020820190506134776000830184613453565b92915050565b6000819050919050565b6134908161347d565b82525050565b60006020820190506134ab6000830184613487565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156134eb5780820151818401526020810190506134d0565b60008484015250505050565b6000601f19601f8301169050919050565b6000613513826134b1565b61351d81856134bc565b935061352d8185602086016134cd565b613536816134f7565b840191505092915050565b6000602082019050818103600083015261355b8184613508565b905092915050565b61356c8161347d565b811461357757600080fd5b50565b60008135905061358981613563565b92915050565b6000602082840312156135a5576135a46133b8565b5b60006135b38482850161357a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135e7826135bc565b9050919050565b6135f7816135dc565b82525050565b600060208201905061361260008301846135ee565b92915050565b613621816135dc565b811461362c57600080fd5b50565b60008135905061363e81613618565b92915050565b6000806040838503121561365b5761365a6133b8565b5b60006136698582860161362f565b925050602061367a8582860161357a565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136c1826134f7565b810181811067ffffffffffffffff821117156136e0576136df613689565b5b80604052505050565b60006136f36133ae565b90506136ff82826136b8565b919050565b600067ffffffffffffffff82111561371f5761371e613689565b5b602082029050602081019050919050565b600080fd5b600061374861374384613704565b6136e9565b9050808382526020820190506020840283018581111561376b5761376a613730565b5b835b818110156137945780613780888261357a565b84526020840193505060208101905061376d565b5050509392505050565b600082601f8301126137b3576137b2613684565b5b81356137c3848260208601613735565b91505092915050565b600080604083850312156137e3576137e26133b8565b5b600083013567ffffffffffffffff811115613801576138006133bd565b5b61380d8582860161379e565b925050602083013567ffffffffffffffff81111561382e5761382d6133bd565b5b61383a8582860161379e565b9150509250929050565b60006020828403121561385a576138596133b8565b5b60006138688482850161362f565b91505092915050565b60008060006060848603121561388a576138896133b8565b5b60006138988682870161362f565b93505060206138a98682870161362f565b92505060406138ba8682870161357a565b9150509250925092565b600080604083850312156138db576138da6133b8565b5b60006138e98582860161357a565b92505060206138fa8582860161357a565b9150509250929050565b600060408201905061391960008301856135ee565b6139266020830184613487565b9392505050565b6000819050919050565b600061395261394d613948846135bc565b61392d565b6135bc565b9050919050565b600061396482613937565b9050919050565b600061397682613959565b9050919050565b6139868161396b565b82525050565b60006020820190506139a1600083018461397d565b92915050565b600080fd5b60008083601f8401126139c2576139c1613684565b5b8235905067ffffffffffffffff8111156139df576139de6139a7565b5b6020830191508360018202830111156139fb576139fa613730565b5b9250929050565b60008060208385031215613a1957613a186133b8565b5b600083013567ffffffffffffffff811115613a3757613a366133bd565b5b613a43858286016139ac565b92509250509250929050565b60008083601f840112613a6557613a64613684565b5b8235905067ffffffffffffffff811115613a8257613a816139a7565b5b602083019150836020820283011115613a9e57613a9d613730565b5b9250929050565b60008060208385031215613abc57613abb6133b8565b5b600083013567ffffffffffffffff811115613ada57613ad96133bd565b5b613ae685828601613a4f565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b27816135dc565b82525050565b600067ffffffffffffffff82169050919050565b613b4a81613b2d565b82525050565b613b5981613447565b82525050565b600062ffffff82169050919050565b613b7781613b5f565b82525050565b608082016000820151613b936000850182613b1e565b506020820151613ba66020850182613b41565b506040820151613bb96040850182613b50565b506060820151613bcc6060850182613b6e565b50505050565b6000613bde8383613b7d565b60808301905092915050565b6000602082019050919050565b6000613c0282613af2565b613c0c8185613afd565b9350613c1783613b0e565b8060005b83811015613c48578151613c2f8882613bd2565b9750613c3a83613bea565b925050600181019050613c1b565b5085935050505092915050565b60006020820190508181036000830152613c6f8184613bf7565b905092915050565b600060208284031215613c8d57613c8c6133b8565b5b600082013567ffffffffffffffff811115613cab57613caa6133bd565b5b613cb78482850161379e565b91505092915050565b600067ffffffffffffffff821115613cdb57613cda613689565b5b602082029050602081019050919050565b6000613cff613cfa84613cc0565b6136e9565b90508083825260208201905060208402830185811115613d2257613d21613730565b5b835b81811015613d4b5780613d37888261362f565b845260208401935050602081019050613d24565b5050509392505050565b600082601f830112613d6a57613d69613684565b5b8135613d7a848260208601613cec565b91505092915050565b60008060408385031215613d9a57613d996133b8565b5b600083013567ffffffffffffffff811115613db857613db76133bd565b5b613dc485828601613d55565b925050602083013567ffffffffffffffff811115613de557613de46133bd565b5b613df18582860161379e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e308161347d565b82525050565b6000613e428383613e27565b60208301905092915050565b6000602082019050919050565b6000613e6682613dfb565b613e708185613e06565b9350613e7b83613e17565b8060005b83811015613eac578151613e938882613e36565b9750613e9e83613e4e565b925050600181019050613e7f565b5085935050505092915050565b60006020820190508181036000830152613ed38184613e5b565b905092915050565b600080600060608486031215613ef457613ef36133b8565b5b6000613f028682870161362f565b9350506020613f138682870161357a565b9250506040613f248682870161357a565b9150509250925092565b613f3781613447565b8114613f4257600080fd5b50565b600081359050613f5481613f2e565b92915050565b60008060408385031215613f7157613f706133b8565b5b6000613f7f8582860161362f565b9250506020613f9085828601613f45565b9150509250929050565b600080fd5b600067ffffffffffffffff821115613fba57613fb9613689565b5b613fc3826134f7565b9050602081019050919050565b82818337600083830152505050565b6000613ff2613fed84613f9f565b6136e9565b90508281526020810184848401111561400e5761400d613f9a565b5b614019848285613fd0565b509392505050565b600082601f83011261403657614035613684565b5b8135614046848260208601613fdf565b91505092915050565b60008060008060808587031215614069576140686133b8565b5b60006140778782880161362f565b94505060206140888782880161362f565b93505060406140998782880161357a565b925050606085013567ffffffffffffffff8111156140ba576140b96133bd565b5b6140c687828801614021565b91505092959194509250565b6080820160008201516140e86000850182613b1e565b5060208201516140fb6020850182613b41565b50604082015161410e6040850182613b50565b5060608201516141216060850182613b6e565b50505050565b600060808201905061413c60008301846140d2565b92915050565b60008060408385031215614159576141586133b8565b5b60006141678582860161362f565b92505060206141788582860161362f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806141c957607f821691505b6020821081036141dc576141db614182565b5b50919050565b7f746f6b656e49647320616e6420636f6d706f6e656e742074797065732073686f60008201527f756c642062652073616d65206c656e6774680000000000000000000000000000602082015250565b600061423e6032836134bc565b9150614249826141e2565b604082019050919050565b6000602082019050818103600083015261426d81614231565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006142dd8261347d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361430f5761430e6142a3565b5b600182019050919050565b60006143258261347d565b91506143308361347d565b925082820261433e8161347d565b91508282048414831517614355576143546142a3565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006143968261347d565b91506143a18361347d565b9250826143b1576143b061435c565b5b828204905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826143ec565b61443386836143ec565b95508019841693508086168417925050509392505050565b600061446661446161445c8461347d565b61392d565b61347d565b9050919050565b6000819050919050565b6144808361444b565b61449461448c8261446d565b8484546143f9565b825550505050565b600090565b6144a961449c565b6144b4818484614477565b505050565b5b818110156144d8576144cd6000826144a1565b6001810190506144ba565b5050565b601f82111561451d576144ee816143c7565b6144f7846143dc565b81016020851015614506578190505b61451a614512856143dc565b8301826144b9565b50505b505050565b600082821c905092915050565b600061454060001984600802614522565b1980831691505092915050565b6000614559838361452f565b9150826002028217905092915050565b61457383836143bc565b67ffffffffffffffff81111561458c5761458b613689565b5b61459682546141b1565b6145a18282856144dc565b6000601f8311600181146145d057600084156145be578287013590505b6145c8858261454d565b865550614630565b601f1984166145de866143c7565b60005b82811015614606578489013582556001820191506020850194506020810190506145e1565b86831015614623578489013561461f601f89168261452f565b8355505b6001600288020188555050505b50505050505050565b7f43616e6e6f742066757365207061727473000000000000000000000000000000600082015250565b600061466f6011836134bc565b915061467a82614639565b602082019050919050565b6000602082019050818103600083015261469e81614662565b9050919050565b7f4e6f7420656e6f75676820706172747320746f20666f726d2061206d65636861600082015250565b60006146db6020836134bc565b91506146e6826146a5565b602082019050919050565b6000602082019050818103600083015261470a816146ce565b9050919050565b7f546f6f206d616e7920636f6d706f6e656e747320746f20666f726d2061206d6560008201527f6368610000000000000000000000000000000000000000000000000000000000602082015250565b600061476d6023836134bc565b915061477882614711565b604082019050919050565b6000602082019050818103600083015261479c81614760565b9050919050565b7f4d7573742062652070617274206f776e657220746f2066757365000000000000600082015250565b60006147d9601a836134bc565b91506147e4826147a3565b602082019050919050565b60006020820190508181036000830152614808816147cc565b9050919050565b600061481a8261347d565b91506148258361347d565b925082820190508082111561483d5761483c6142a3565b5b92915050565b7f43616e6e6f7420667573652077697468206475706c696361746520636f6d706f60008201527f6e656e7420747970657300000000000000000000000000000000000000000000602082015250565b600061489f602a836134bc565b91506148aa82614843565b604082019050919050565b600060208201905081810360008301526148ce81614892565b9050919050565b60006040820190506148ea60008301856135ee565b81810360208301526148fc8184613e5b565b90509392505050565b7f43616e6e6f74206d696e742066726f6d206120636f6e74726163740000000000600082015250565b600061493b601b836134bc565b915061494682614905565b602082019050919050565b6000602082019050818103600083015261496a8161492e565b9050919050565b7f43616e6e6f7420636c61696d206e6f7700000000000000000000000000000000600082015250565b60006149a76010836134bc565b91506149b282614971565b602082019050919050565b600060208201905081810360008301526149d68161499a565b9050919050565b7f54782077696c6c20657863656564206d617820746f6b656e732070657220776160008201527f6c6c657400000000000000000000000000000000000000000000000000000000602082015250565b6000614a396024836134bc565b9150614a44826149dd565b604082019050919050565b60006020820190508181036000830152614a6881614a2c565b9050919050565b7f496e76616c696420746f6b656e20636f756e7400000000000000000000000000600082015250565b6000614aa56013836134bc565b9150614ab082614a6f565b602082019050919050565b60006020820190508181036000830152614ad481614a98565b9050919050565b7f54782077696c6c20657863656564206d617820737570706c7900000000000000600082015250565b6000614b116019836134bc565b9150614b1c82614adb565b602082019050919050565b60006020820190508181036000830152614b4081614b04565b9050919050565b6000606082019050614b5c6000830186613487565b614b6960208301856135ee565b614b766040830184613487565b949350505050565b600081905092915050565b6000614b94826134b1565b614b9e8185614b7e565b9350614bae8185602086016134cd565b80840191505092915050565b6000614bc68285614b89565b9150614bd28284614b89565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c3a6026836134bc565b9150614c4582614bde565b604082019050919050565b60006020820190508181036000830152614c6981614c2d565b9050919050565b6000604082019050614c8560008301856135ee565b614c9260208301846135ee565b9392505050565b600081519050614ca881613f2e565b92915050565b600060208284031215614cc457614cc36133b8565b5b6000614cd284828501614c99565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d116020836134bc565b9150614d1c82614cdb565b602082019050919050565b60006020820190508181036000830152614d4081614d04565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614d6e82614d47565b614d788185614d52565b9350614d888185602086016134cd565b614d91816134f7565b840191505092915050565b6000608082019050614db160008301876135ee565b614dbe60208301866135ee565b614dcb6040830185613487565b8181036060830152614ddd8184614d63565b905095945050505050565b600081519050614df7816133ee565b92915050565b600060208284031215614e1357614e126133b8565b5b6000614e2184828501614de8565b9150509291505056fea26469706673582212206cf756b9e9548495cf5a5aef708cb311570702f4a2854f214ca80aa6a83e37c364736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003e68747470733a2f2f6c617069787a65726f2e73666f332e6469676974616c6f6365616e7370616365732e636f6d2f7075626c69632f6d657461646174612f0000

-----Decoded View---------------
Arg [0] : _metadataBaseURL (string): https://lapixzero.sfo3.digitaloceanspaces.com/public/metadata/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000003e
Arg [2] : 68747470733a2f2f6c617069787a65726f2e73666f332e6469676974616c6f63
Arg [3] : 65616e7370616365732e636f6d2f7075626c69632f6d657461646174612f0000


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.