Token Timeout

Overview ERC-721

Total Supply:
861 TMT

Holders:
7 addresses

Transfers:
-

Profile Summary

 
Contract:
0x9b8bb903fe51808623a0e3153609c9ed017baccf0x9B8BB903fe51808623A0E3153609C9eD017baCCF

Loading
[ Download CSV Export  ] 
Loading
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Timeout

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : Timeout.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import {DataLibrarry} from "./lib/DataLibrarry.sol";
import {FunctionLib} from "./lib/FunctionLib.sol";
import {ITimeout} from "./ITimeout.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";

/**
 * @title Timeout
 * @author chixx.eth & @mouradmki
 * @notice ERC721A Royalties With fusion, claim for the genesis holder
 */
contract Timeout is
    ITimeout,
    ERC721A,
    ERC721AQueryable,
    Ownable,
    ERC2981,
    ReentrancyGuard
{
    using Strings for uint256;
    uint256 public gameFunds;
    uint256 public claimFunds;
    uint256 public evolutionFunds;

    uint256[] public fusionPrices = [
        0 ether,
        0.001 ether,
        0.002 ether,
        0.003 ether,
        0.004 ether,
        0.005 ether,
        0.006 ether,
        0.007 ether
    ];
    

    bool public claim_holders_opened=false;

    uint16 public constant maxSupplyToMint = 9472;

    uint8 private constant maxMintPerWallet_phase03 = 2;

    // uint16 public indexMint = 2505;

    uint16[] private indexEvolutionBlue = [0, 0, 0, 0, 0, 0, 0];
    uint16[] private indexEvolutionPink = [0, 0, 0, 0, 0, 0, 0];

    uint16[] private maxSupplyEvos = [0, 2368, 1184, 592, 296, 148, 74];

    uint16 private constant portionForClaim = 1294;

    uint16 private index = 1;

    uint16 public phaseForClaim;

    uint8 private maxFusionsPerDay = 20;

    uint256 public maxTimeAfterTransfert = 172800;

    address private WhiteListSigner =
        0x99A7130dc775dB71E5252dE59F0f156DF1B96d89;

    string public baseURI = "paste the base url here";

    DataLibrarry.SalePhase public phase = DataLibrarry.SalePhase.Closed;

    mapping(uint256 => DataLibrarry.Metadata) private metadatas;
    mapping(uint256 => uint256) private transferts;

    /**
     * @notice mapping for know for each phase if the tokenId have claim
     * @dev
     * {
     *   uint256 => phase
     *   addres => user address
     *   bool => isClaimed
     * }
     */
    mapping(uint256 => mapping(address => bool)) public isClaimed;
    mapping(address => bool) public isFreeMinted;
    mapping(address => uint16) private mintCountPhase03;

    mapping(bytes => uint8) private throttling;

    mapping(address => uint8) public bonuses_fusion;

    event NewURI(string newURI, address updatedBy);
    event updatePhase(DataLibrarry.SalePhase phase);
    event updatePhaseForClaim(uint16 phase);
    event UpdateFusionPrice(uint8 evolution, uint256 newPrice);
    event Receive(address sender, uint256 amount);
    event ClaimGame(uint256 tokenIdEvo7, address user, uint256 amountClaim);
    event Claim(address user, uint256 amount, uint16 phase);
    event Withdraw(uint256 amount);
    event WithdrawGameFunds(uint256 amount);
    event WithdrawClaimFunds(uint256 amount);

    constructor() ERC721A("Timeout", "TMT") {
        _setDefaultRoyalty(address(this), 1000);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC2981, IERC721A, ERC721A)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId || // interface ID for royalties
            interfaceId == type(IERC165).interfaceId ||
            interfaceId == 0x80ac58cd || // interface ID for ERC721.
            interfaceId == 0x5b5e139f || // interface ID for ERC721Metadata.
            super.supportsInterface(interfaceId);
    }

    modifier onlyPhase04() {
        require(phase == DataLibrarry.SalePhase.Open, "Invalid phase");
        _;
    }

    modifier throttleLimit() {
        if(getFusionCounter(msg.sender)<=0)
            revert("too many fusions for today");
        _;        
    }

    function getFusionCounter(address to) public view returns(uint8){
        uint currentDayPart = block.timestamp / 86400;
        bytes memory key = abi.encodePacked(to, currentDayPart);
        return maxFusionsPerDay + bonuses_fusion[msg.sender] - throttling[key];
    }

    function setBonusFusion(address to, uint8 quantity) external onlyOwner {
        bonuses_fusion[to] = quantity;
    }

    /**
     * @notice get the price for an evolution ( by level of evolution )
     *
     */
    function getPriseFusion(uint8 nextGen) public view returns (uint256) {
        return fusionPrices[nextGen];
    }

    /**
     * @notice update the new price for fusion by level.
     *
     * Requirements:
     *
     * - Only owner of contract can call this function
     */
    function changePriceFusion(uint256 newValue, uint8 nextGen)
        external
        onlyOwner
    {
        fusionPrices[nextGen] = newValue;
        emit UpdateFusionPrice(nextGen, newValue);
    }

    /**
     * @notice update the time where a transfered nft cannont be fusionned
     *
     * Requirements:
     *
     * - Only owner of contract can call this function
     */
    function changeTransfertSleepTime(uint duration) external onlyOwner {
        maxTimeAfterTransfert = duration;
    }



    function activeClaim(bool active) external onlyOwner {
        claim_holders_opened=active;
    }
    /**
     * @notice receive eth for royalties.
     */
    receive() external payable {
        uint256 value = msg.value;
        if (msg.sender == owner()) gameFunds += value;
        else {
            gameFunds += (value * 75) / 100;
            claimFunds += (value * 25) / 100;
        }
        emit Receive(msg.sender, value);
    }

    /**
     * @notice withdraw the funds for the game.
     *
     * Requirements:
     *
     * - Only owner of contract can call this function
     */
    function withdrawGameFunds() external onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: gameFunds}("");
        if (!success) revert FailToWithdraw();
        emit WithdrawGameFunds(gameFunds);
    }

    /**
     * @notice withdraw the funds for the claim.
     *
     * Requirements:
     *
     * - Only owner of contract can call this function
     */
    function withdrawClaimFunds() external onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: claimFunds}("");
        if (!success) revert FailToWithdraw();
        emit WithdrawClaimFunds(claimFunds);
    }

    /**
     * @notice Returns the starting token ID.
     */
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    /**
     * @notice set the phase for mint
     */
    function setPhase(DataLibrarry.SalePhase _phase) external onlyOwner {
        phase = _phase;
        emit updatePhase(_phase);
    }

    /**
     * @notice set the phase for claim
     */
    function setPhaseForClaim(uint8 newPhase) external onlyOwner {
        phaseForClaim = newPhase;
        emit updatePhaseForClaim(newPhase);
    }

    /**
     * @notice get if msg.sender has claim in the current phase
     */
    function hasClaimed() external view returns (bool) {
        return isClaimed[phaseForClaim][msg.sender];
    }

    /**
     * @notice updates the new token URI in contract.
     *
     * Emits a {NewURI} event.
     *
     * Requirements:
     *
     * - Only owner of contract can call this function
     **/
    function setBaseUri(string memory uri) external onlyOwner {
        baseURI = uri;
        emit NewURI(uri, msg.sender);
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A, IERC721A)
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        DataLibrarry.Metadata memory datas = getMetadatas(tokenId);

        bytes memory json1 = abi.encodePacked(
            "{",
            '"name": "Timeout #',
            tokenId.toString(),
            '"',
            ",",
            '"image": ',
            '"',
            baseURI,
            uint256(datas.evolution).toString(),
            "-",
            uint256(datas.types).toString(),
            '.jpeg",'
        );
        bytes memory json = abi.encodePacked(
            json1,
            '"attributes": [{"trait_type": "Evolution","value": "',
            uint256(datas.evolution).toString(),
            '"},',
            '{"trait_type": "type","value": "',
            datas.types == 0 ? "A" : "B",
            '"}]',
            "}"
        );
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(json)
                )
            );
    }

    /**
     * @notice privatesalesmint mint on private sale.
     *
     * Requirements:
     *
     * - Only whitelisted address can mint
     **/
    function privatesalesmint(
        DataLibrarry.Coupon memory coupon,
        DataLibrarry.CouponType couponType,
        DataLibrarry.CouponTypeCount memory count
    ) external {
        if (phase != DataLibrarry.SalePhase.PrivatePremint)
            revert InvalidPhase();
        if (isFreeMinted[msg.sender] == true)
            revert AlreadyUsePrivateSalesMint();
        FunctionLib.verifyCoupon(WhiteListSigner, coupon, couponType, count);
        if (couponType == DataLibrarry.CouponType.WhiteListSales)
            revert InvalidWhitelist();
        uint16 quantity;
        unchecked {
            quantity =
                (count.BasicCount * 2) +
                (count.UltrarareCount * 3) +
                (count.LegendaireCount * 4) +
                (count.eggCount * 2);
        }
        if (index + quantity > maxSupplyToMint)
            revert MaxSupplyPrivateSaleReach();
        _mint(msg.sender, quantity);
        unchecked {
            index += quantity;
            isFreeMinted[msg.sender] = true;
        }
    }

    /**
     * @notice whitelistsalesmint mint on whitelist sale.
     *
     * Requirements:
     *
     * - Only whitelisted address can mint
     **/
    function whitelistsalesmint(
        uint16 quantityToMint,
        DataLibrarry.Coupon memory coupon,
        DataLibrarry.CouponType couponType,
        DataLibrarry.CouponTypeCount memory count
    ) external {
        if (phase != DataLibrarry.SalePhase.Whitelist) revert InvalidPhase();
        FunctionLib.verifyCoupon(WhiteListSigner, coupon, couponType, count);
        if (
            mintCountPhase03[msg.sender] + quantityToMint >
            maxMintPerWallet_phase03
        ) revert InvalidQuantity();
        if (index + quantityToMint > maxSupplyToMint) revert MaxSupplyReach();
        _mint(msg.sender, quantityToMint);
        unchecked {
            mintCountPhase03[msg.sender] += quantityToMint;
            index += quantityToMint;
        }
    }

    /**
     * @notice mint on public sale.
     **/
    function airdrop(address to, uint8 quantityToMint) external onlyOwner {
        if (index + quantityToMint > maxSupplyToMint) revert MaxSupplyReach();
        _mint(to, quantityToMint);
        unchecked {
            index += quantityToMint;
        }
    }

    /**
     * @notice get the metadata from a tokenId
     * @return data struct contain the metadata
     */
    function getMetadatas(uint256 tokenId)
        public
        view
        returns (DataLibrarry.Metadata memory data)
    {
        if (!_exists(tokenId)) revert QueryForNonExistantTokenId();
        if (metadatas[tokenId].evolution == 0) {
            if (tokenId % 2 == 0) {
                data.types = 0;
            } else {
                data.types = 1;
            }
            return data;
        }
        return metadatas[tokenId];
    }

    /**
     * @notice clacule a pseudo random number
     * @return uint8 0 or 1
     */
    function random() public view returns (uint8) {
        return
            uint8(
                uint256(
                    keccak256(
                        abi.encodePacked(block.difficulty, block.timestamp)
                    )
                ) % 2
            );
    }

    /**
     * @notice fusion 2 evo0 for evo1.
     *
     * Requirements:
     *
     * - need evo0 blue and evo0 pink
     **/
    function fusionEvo(uint256 tokenId0, uint256 tokenId1)
        external
        payable
        onlyPhase04
        throttleLimit
    {
        if (!_exists(tokenId0) || !_exists(tokenId1))
            revert QueryForNonExistantTokenId();
        if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
            revert CallerNotOwnerOfTokenId();

        DataLibrarry.Metadata memory datas1 = getMetadatas(tokenId0);
        DataLibrarry.Metadata memory datas2 = getMetadatas(tokenId1);

        if (datas1.evolution != datas2.evolution)
            revert("fusion impossible car pas la meme evolution");
        if (datas1.types == datas2.types)
            revert("fusion impossible car de la meme couleur");
 
        if (
            transferts[tokenId0] > 0 && 
            transferts[tokenId0] + maxTimeAfterTransfert > block.timestamp
        ) revert nftCannontBeFusionnedToEarly();
        if (
            transferts[tokenId1] > 0 && 
            transferts[tokenId1] + maxTimeAfterTransfert > block.timestamp
        ) revert nftCannontBeFusionnedToEarly();

        uint256 value = msg.value;
        uint8 nextEvo = datas1.evolution + 1;

        uint256 priceFusion = getPriseFusion(nextEvo);

        if (priceFusion == 0) revert InvalidPriceForFusion();
        if (value < priceFusion) revert InvalidPriceForFusion();
        DataLibrarry.Metadata memory metadata;
        if (nextEvo < 7) {
            uint8 _random = random();
            _random = FunctionLib.logicRandomEvo(
                _random,
                indexEvolutionBlue[nextEvo],
                indexEvolutionPink[nextEvo],
                maxSupplyEvos[nextEvo]
            );
            if (_random == 0) {
                metadata.types = 0;
                unchecked {
                    ++indexEvolutionBlue[nextEvo];
                }
            } else {
                metadata.types = 1;
                unchecked {
                    ++indexEvolutionPink[nextEvo];
                }
            }
        } else {
            metadata.types = 3;
        }
        gameFunds += (value * 640) / 1000;
        claimFunds += (value * 310) / 1000;
        evolutionFunds += (value * 50) / 1000;
        metadata.evolution = nextEvo;
        metadatas[index] = metadata;
        _burn(tokenId0);
        _burn(tokenId1);
        _mint(msg.sender, 1);
        uint currentDayPart = block.timestamp / 86400;
        bytes memory key = abi.encodePacked(msg.sender, currentDayPart);
        if(throttling[key] > maxFusionsPerDay){
            bonuses_fusion[msg.sender]--;
        }else{
            throttling[key]++;
        }
        unchecked {
            ++index;
        }
    }

    /**
     * @notice claim 50% of the game funds.
     *
     * Requirements:
     *
     * - need evo7
     **/
    function claimGame(uint256 tokenIdEvo7) external nonReentrant {
        if (Address.isContract(msg.sender)) revert SenderIsContract();
        if (!_exists(tokenIdEvo7)) revert QueryForNonExistantTokenId();
        if (ownerOf(tokenIdEvo7) != msg.sender)
            revert CallerNotOwnerOfTokenId();
        if (metadatas[tokenIdEvo7].evolution != 7) revert InvalidEvolution();
        (bool success, ) = payable(address(msg.sender)).call{value: gameFunds}(
            ""
        );
        if (!success) revert FailToTransferGameFunds();
        gameFunds = gameFunds / 2;
        _burn(tokenIdEvo7);
        emit ClaimGame(tokenIdEvo7, msg.sender, gameFunds);
    }

    /**
     * @notice claim for genesis holder.
     *
     * Requirements:
     *
     * - need to be whitelisted, snapchot
     **/
    function claim(
        DataLibrarry.Coupon memory coupon,
        DataLibrarry.CouponClaim memory couponClaim
    ) external nonReentrant {
        if (!claim_holders_opened) revert("Claim for holders is not opened");
        if (Address.isContract(msg.sender)) revert SenderIsContract();
        if (msg.sender != couponClaim.user) revert InvalidUser();
        if (isClaimed[phaseForClaim][msg.sender])
            revert UserAlreadyClaimForThisPhase();
        if (couponClaim.phase != phaseForClaim) revert InvalidPhase();
        FunctionLib.verifyCouponForClaim(WhiteListSigner, coupon, couponClaim);
        uint256 portion = (couponClaim.legCount * 10) +
            (couponClaim.urEggCount * 6) +
            (couponClaim.urCount * 5) +
            (couponClaim.basicEggCount * 2) +
            (couponClaim.basicCount * 1);
        uint256 totalClaim = (claimFunds / portionForClaim) * portion;
        (bool success, ) = payable(address(msg.sender)).call{value: totalClaim}(
            ""
        );
        if (!success) revert FailToTransferClaimFunds();
        isClaimed[phaseForClaim][msg.sender] = true;
        emit Claim(msg.sender, totalClaim, phaseForClaim);
    }

    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        if (!Address.isContract(from) && from!=0x0000000000000000000000000000000000000000) {
            transferts[startTokenId] = block.timestamp;
        } else {
            if (transferts[startTokenId] > 0) {
                transferts[startTokenId] = 0;
            }
        }
    }

    /**
     * @notice withdraw fusion pot to some winner
     *
     * Requirements:
     *
     * - Only owner of contract can call this function
     */
    function withdrawToWinnerOfFusions(address winner)
        external
        nonReentrant
        onlyOwner
    {
        (bool success, ) = payable(winner).call{value: evolutionFunds}("");
        if (!success) revert FailToWithdraw();
        evolutionFunds = 0;
    }
}

File 2 of 19 : 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 19 : 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 4 of 19 : 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 5 of 19 : 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 6 of 19 : 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 7 of 19 : DataLibrarry.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

library DataLibrarry {
  struct Coupon {
    bytes32 r;
    bytes32 s;
    uint8 v;
  }

  struct Metadata {
    uint8 evolution;
    uint8 types;
  }

  enum MetadataType {
    blue,
    pink
  }

  enum SalePhase {
    Closed,
    PrivatePremint,
    Whitelist,
    Open
  }

  enum CouponType {
    PrivateSales,
    WhiteListSales
  }

  struct CouponTypeCount {
    uint16 BasicCount;
    uint16 UltrarareCount;
    uint16 LegendaireCount;
    uint16 eggCount;
  }

  struct CouponClaim {
    address user;
    uint256 legCount;
    uint256 urEggCount;
    uint256 urCount;
    uint256 basicEggCount;
    uint256 basicCount;
    uint256 phase;
  }
}

File 8 of 19 : FunctionLib.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import { DataLibrarry } from "./DataLibrarry.sol";
import { ITimeout } from "../ITimeout.sol";

library FunctionLib {
  /**
  * @notice verifyCoupon verify the coupon
  * @dev hash the info and check if valid signature
  */
  function verifyCoupon(
    address signer,
    DataLibrarry.Coupon memory coupon,
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory couponTypeCount
  )
    internal
    view
  {
    bytes32 digest = getMessageHash(
      couponType,
      couponTypeCount
    );
    if (_isVerifiedCoupon(digest, coupon) != signer)
      revert ITimeout.InvalidCoupon();
  }

  function getMessageHash(
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory couponTypeCount
  )
    internal
    view
    returns(bytes32)
  {
    return keccak256(
      abi.encode(
        couponType,
        couponTypeCount.BasicCount,
        couponTypeCount.UltrarareCount,
        couponTypeCount.LegendaireCount,
        couponTypeCount.eggCount,
        msg.sender
      )
    );
  }

  function getMessageHashForAddress(
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory couponTypeCount,
    address addressToEncode
  )
    internal
    pure
    returns(bytes32)
  {
    return keccak256(
      abi.encode(
        couponType,
        couponTypeCount.BasicCount,
        couponTypeCount.UltrarareCount,
        couponTypeCount.LegendaireCount,
        couponTypeCount.eggCount,
        addressToEncode
      )
    );
  }

  /**
  * @notice verifyCouponForClaim verify the coupon for claim
  * @dev hash the info and check if valid signature
  */
  function verifyCouponForClaim(
    address signer,
    DataLibrarry.Coupon memory coupon,
    DataLibrarry.CouponClaim memory couponClaim
  )
    internal
    pure
  {
    bytes32 digest = getMessageHashForClaim(couponClaim);
    if (_isVerifiedCoupon(digest, coupon) != signer)
      revert ITimeout.InvalidCoupon();
  }

  function getMessageHashForClaim(DataLibrarry.CouponClaim memory couponClaim)
    internal
    pure
    returns(bytes32)
  {
    return keccak256(
      abi.encode(
        couponClaim.user,
        couponClaim.legCount,
        couponClaim.urEggCount,
        couponClaim.urCount,
        couponClaim.basicEggCount,
        couponClaim.basicCount,
        couponClaim.phase
      )
    );
  }

  /**
  * @notice _isVerifiedCoupon verify the coupon
  * @return bool true or false if signature valid
  */
  function _isVerifiedCoupon(bytes32 digest, DataLibrarry.Coupon memory coupon)
    internal
    pure
    returns(address)
  {
    address signer = ecrecover(digest, coupon.v, coupon.r, coupon.s);
    return signer;
  }

  function logicRandomEvo(
    uint8 random,
    uint32 indexEvolutionBlue,
    uint32 indexEvolutionPink,
    uint32 maxSupplyEvo
  )
    internal
    pure
    returns(uint8)
  {
    if (random == 0) {
      if (indexEvolutionBlue > indexEvolutionPink) {
        uint32 plage = indexEvolutionBlue - indexEvolutionPink;
        if (plage > 4) {
          random = 1;
        }
      }
    } else {
      if (indexEvolutionBlue < indexEvolutionPink) {
        uint32 plage = indexEvolutionPink - indexEvolutionBlue;
        if (plage > 4) {
          random = 0;
        }
      }
    }
    if (indexEvolutionBlue >= maxSupplyEvo - 5 && indexEvolutionPink >= maxSupplyEvo - 5) {
      if (indexEvolutionBlue > indexEvolutionPink) {
        uint32 plage = indexEvolutionBlue - indexEvolutionPink;
        if (plage >= 1) {
          random = 1;
        }
      }
      if (indexEvolutionBlue < indexEvolutionPink) {
        uint32 plage = indexEvolutionPink - indexEvolutionBlue;
        if (plage >= 1) {
          random = 0;
        }
      }
    }
    return random;
  }
}

File 9 of 19 : ITimeout.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

interface ITimeout {
  // mint error

  error InvalidCoupon();

  error InvalidWhitelist();

  error InvalidQuantity();

  error QueryForNonExistantTokenId();

  error AlreadyUsePremint();

  error AlreadyUsePrivateSalesMint();

  error MaxSupplyPrivateSaleReach();

  error MaxSupplyReach();

  error InvalidPhase();


  // fusion error

  error CallerNotOwnerOfTokenId();

  error InvalidTokenIdsForFusion();

  error InvalidPriceForFusion();

  error nftCannontBeFusionnedToEarly();

  // claim error

  error SenderIsContract();

  error InvalidEvolution();

  error ThisTokenIdAlreadyClaim();

  error FailToTransferGameFunds();

  error InvalidUser();

  error FailToTransferClaimFunds();

  error UserAlreadyClaimForThisPhase();

  // withdraw error

  error FailToWithdraw();
}

File 10 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

File 13 of 19 : 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 14 of 19 : 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 15 of 19 : 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 16 of 19 : 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 17 of 19 : 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 18 of 19 : 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 19 of 19 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyUsePremint","type":"error"},{"inputs":[],"name":"AlreadyUsePrivateSalesMint","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CallerNotOwnerOfTokenId","type":"error"},{"inputs":[],"name":"FailToTransferClaimFunds","type":"error"},{"inputs":[],"name":"FailToTransferGameFunds","type":"error"},{"inputs":[],"name":"FailToWithdraw","type":"error"},{"inputs":[],"name":"InvalidCoupon","type":"error"},{"inputs":[],"name":"InvalidEvolution","type":"error"},{"inputs":[],"name":"InvalidPhase","type":"error"},{"inputs":[],"name":"InvalidPriceForFusion","type":"error"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"InvalidTokenIdsForFusion","type":"error"},{"inputs":[],"name":"InvalidUser","type":"error"},{"inputs":[],"name":"InvalidWhitelist","type":"error"},{"inputs":[],"name":"MaxSupplyPrivateSaleReach","type":"error"},{"inputs":[],"name":"MaxSupplyReach","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"QueryForNonExistantTokenId","type":"error"},{"inputs":[],"name":"SenderIsContract","type":"error"},{"inputs":[],"name":"ThisTokenIdAlreadyClaim","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"UserAlreadyClaimForThisPhase","type":"error"},{"inputs":[],"name":"nftCannontBeFusionnedToEarly","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":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"phase","type":"uint16"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenIdEvo7","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountClaim","type":"uint256"}],"name":"ClaimGame","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":"string","name":"newURI","type":"string"},{"indexed":false,"internalType":"address","name":"updatedBy","type":"address"}],"name":"NewURI","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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Receive","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"evolution","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"UpdateFusionPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawClaimFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawGameFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum DataLibrarry.SalePhase","name":"phase","type":"uint8"}],"name":"updatePhase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"phase","type":"uint16"}],"name":"updatePhaseForClaim","type":"event"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"activeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantityToMint","type":"uint8"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bonuses_fusion","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"},{"internalType":"uint8","name":"nextGen","type":"uint8"}],"name":"changePriceFusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"changeTransfertSleepTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct DataLibrarry.Coupon","name":"coupon","type":"tuple"},{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"legCount","type":"uint256"},{"internalType":"uint256","name":"urEggCount","type":"uint256"},{"internalType":"uint256","name":"urCount","type":"uint256"},{"internalType":"uint256","name":"basicEggCount","type":"uint256"},{"internalType":"uint256","name":"basicCount","type":"uint256"},{"internalType":"uint256","name":"phase","type":"uint256"}],"internalType":"struct DataLibrarry.CouponClaim","name":"couponClaim","type":"tuple"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdEvo7","type":"uint256"}],"name":"claimGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim_holders_opened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"evolutionFunds","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":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fusionPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getFusionCounter","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMetadatas","outputs":[{"components":[{"internalType":"uint8","name":"evolution","type":"uint8"},{"internalType":"uint8","name":"types","type":"uint8"}],"internalType":"struct DataLibrarry.Metadata","name":"data","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"nextGen","type":"uint8"}],"name":"getPriseFusion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFreeMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyToMint","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTimeAfterTransfert","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"phase","outputs":[{"internalType":"enum DataLibrarry.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseForClaim","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct DataLibrarry.Coupon","name":"coupon","type":"tuple"},{"internalType":"enum DataLibrarry.CouponType","name":"couponType","type":"uint8"},{"components":[{"internalType":"uint16","name":"BasicCount","type":"uint16"},{"internalType":"uint16","name":"UltrarareCount","type":"uint16"},{"internalType":"uint16","name":"LegendaireCount","type":"uint16"},{"internalType":"uint16","name":"eggCount","type":"uint16"}],"internalType":"struct DataLibrarry.CouponTypeCount","name":"count","type":"tuple"}],"name":"privatesalesmint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"random","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"setBonusFusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum DataLibrarry.SalePhase","name":"_phase","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newPhase","type":"uint8"}],"name":"setPhaseForClaim","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":[{"internalType":"uint16","name":"quantityToMint","type":"uint16"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct DataLibrarry.Coupon","name":"coupon","type":"tuple"},{"internalType":"enum DataLibrarry.CouponType","name":"couponType","type":"uint8"},{"components":[{"internalType":"uint16","name":"BasicCount","type":"uint16"},{"internalType":"uint16","name":"UltrarareCount","type":"uint16"},{"internalType":"uint16","name":"LegendaireCount","type":"uint16"},{"internalType":"uint16","name":"eggCount","type":"uint16"}],"internalType":"struct DataLibrarry.CouponTypeCount","name":"count","type":"tuple"}],"name":"whitelistsalesmint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawClaimFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawGameFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"winner","type":"address"}],"name":"withdrawToWinnerOfFusions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101806040526000608090815266038d7ea4c6800060a05266071afd498d000060c052660aa87bee53800060e052660e35fa931a0000610100526611c37937e0800061012052661550f7dca70000610140526618de76816d8000610160526200006d90600f906008620003df565b506010805460ff191690556040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810191909152620000c19060119060076200043a565b506040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091526200010b9060129060076200043a565b506040805160e0810182526000815261094060208201526104a09181019190915261025060608201526101286080820152609460a0820152604a60c08201526200015a906013906007620004e4565b506014805464140000000164ff0000ffff199091161790556202a300601555601680546001600160a01b0319167399a7130dc775db71e5252de59f0f156df1b96d891790556040805180820190915260178082527f70617374652074686520626173652075726c20686572650000000000000000006020909201918252620001e3918162000550565b506018805460ff19169055348015620001fb57600080fd5b506040805180820182526007815266151a5b595bdd5d60ca1b60208083019182528351808501909452600384526215135560ea1b908401528151919291620002469160029162000550565b5080516200025c90600390602084019062000550565b50506001600055506200026f3362000288565b6001600b5562000282306103e8620002da565b62000620565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200034e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003a65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000345565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b82805482825590600052602060002090810192821562000428579160200282015b8281111562000428578251829066ffffffffffffff1690559160200191906001019062000400565b5062000436929150620005cd565b5090565b82805482825590600052602060002090600f01601090048101928215620004285791602002820160005b83821115620004a557835183826101000a81548161ffff021916908360ff160217905550926020019260020160208160010104928301926001030262000464565b8015620004d55782816101000a81549061ffff0219169055600201602081600101049283019260010302620004a5565b505062000436929150620005cd565b82805482825590600052602060002090600f01601090048101928215620004285791602002820160005b83821115620004a557835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200050e565b8280546200055e90620005e4565b90600052602060002090601f01602090048101928262000582576000855562000428565b82601f106200059d57805160ff191683800117855562000428565b8280016001018555821562000428579182015b8281111562000428578251825591602001919060010190620005b0565b5b80821115620004365760008155600101620005ce565b600181811c90821680620005f957607f821691505b6020821081036200061a57634e487b7160e01b600052602260045260246000fd5b50919050565b61459a80620006306000396000f3fe60806040526004361061036f5760003560e01c80638462151c116101c6578063b9199386116100f7578063d1181e1511610095578063e985e9c51161006f578063e985e9c514610b3f578063f2fde38b14610b88578063f7bf306a14610ba8578063f93c853d14610bc857600080fd5b8063d1181e1514610ace578063d2ef079514610ae4578063e31b3e2f14610b1f57600080fd5b8063c03afb59116100d1578063c03afb5914610a4b578063c23dc68f14610a6b578063c87b56dd14610a98578063ca98c4a614610ab857600080fd5b8063b9199386146109eb578063b92147fc14610a0b578063bf67044714610a2b57600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb4651461097b578063ac3077731461099b578063b1c9fe6e146109b1578063b88d4fde146109d857600080fd5b806395d89b411461092657806399a2557a1461093b578063a0bcfc7f1461095b57600080fd5b80638d121297116101a05780638d121297146108875780638da5cb5b146108a75780639216b370146108c5578063937abd371461090657600080fd5b80638462151c14610824578063891391c1146108515780638acf70b21461087157600080fd5b806342bf085a116102a05780635ec01e4d1161023e5780636c0360eb116102185780636c0360eb146107aa57806370a08231146107bf578063715018a6146107df578063810fd08f146107f457600080fd5b80635ec01e4d146107435780636352211e1461076a57806364fc740a1461078a57600080fd5b8063512735591161027a57806351273559146106be57806352a8ebbd146106d35780635bbb2177146106e65780635d729df51461071357600080fd5b806342bf085a146106695780634a9928ad146106895780634d61097f1461069e57600080fd5b806323b872dd1161030d57806339236bef116102e757806339236bef146105e0578063398a00181461060057806340849c8e1461061a57806342842e0e1461065657600080fd5b806323b872dd1461055a5780632a55205a1461056d57806337b341b3146105ac57600080fd5b8063081812fc11610349578063081812fc146104c8578063095ea7b31461050057806318160ddd146105135780631ea3dd241461053a57600080fd5b806301ffc9a71461044f578063041f9aec1461048457806306fdde03146104a657600080fd5b3661044a57346103876008546001600160a01b031690565b6001600160a01b031633036103b35780600c60008282546103a89190613806565b9091555061040f9050565b60646103c082604b61381e565b6103ca9190613853565b600c60008282546103db9190613806565b90915550606490506103ee82601961381e565b6103f89190613853565b600d60008282546104099190613806565b90915550505b60408051338152602081018390527fd6717f327e0cb88b4a97a7f67a453e9258252c34937ccbdd86de7cb840e7def3910160405180910390a1005b600080fd5b34801561045b57600080fd5b5061046f61046a36600461387d565b610bde565b60405190151581526020015b60405180910390f35b34801561049057600080fd5b506104a461049f3660046138ab565b610c5a565b005b3480156104b257600080fd5b506104bb610cc8565b60405161047b919061392f565b3480156104d457600080fd5b506104e86104e3366004613942565b610d5a565b6040516001600160a01b03909116815260200161047b565b6104a461050e366004613972565b610d9e565b34801561051f57600080fd5b5060015460005403600019015b60405190815260200161047b565b34801561054657600080fd5b506104a4610555366004613942565b610e3e565b6104a461056836600461399c565b610e4b565b34801561057957600080fd5b5061058d6105883660046139d8565b610fe8565b604080516001600160a01b03909316835260208301919091520161047b565b3480156105b857600080fd5b506014546105cd9062010000900461ffff1681565b60405161ffff909116815260200161047b565b3480156105ec57600080fd5b506104a46105fb366004613942565b611094565b34801561060c57600080fd5b5060105461046f9060ff1681565b34801561062657600080fd5b5060145462010000900461ffff166000908152601b6020908152604080832033845290915290205460ff1661046f565b6104a461066436600461399c565b61121a565b34801561067557600080fd5b506104a4610684366004613b3a565b61123a565b34801561069557600080fd5b506104a4611352565b3480156106aa57600080fd5b506104a46106b9366004613b91565b611402565b3480156106ca57600080fd5b506104a4611474565b6104a46106e13660046139d8565b611519565b3480156106f257600080fd5b50610706610701366004613bbb565b611c23565b60405161047b9190613c6b565b34801561071f57600080fd5b5061046f61072e366004613cad565b601c6020526000908152604090205460ff1681565b34801561074f57600080fd5b50610758611cee565b60405160ff909116815260200161047b565b34801561077657600080fd5b506104e8610785366004613942565b611d36565b34801561079657600080fd5b506104a46107a5366004613b91565b611d41565b3480156107b657600080fd5b506104bb611d76565b3480156107cb57600080fd5b5061052c6107da366004613cad565b611e04565b3480156107eb57600080fd5b506104a4611e52565b34801561080057600080fd5b5061075861080f366004613cad565b601f6020526000908152604090205460ff1681565b34801561083057600080fd5b5061084461083f366004613cad565b611e66565b60405161047b9190613cc8565b34801561085d57600080fd5b5061052c61086c366004613942565b611f6e565b34801561087d57600080fd5b5061052c600c5481565b34801561089357600080fd5b506104a46108a2366004613cad565b611f8f565b3480156108b357600080fd5b506008546001600160a01b03166104e8565b3480156108d157600080fd5b506108e56108e0366004613942565b612022565b60408051825160ff908116825260209384015116928101929092520161047b565b34801561091257600080fd5b506104a4610921366004613d00565b6120d0565b34801561093257600080fd5b506104bb61223b565b34801561094757600080fd5b50610844610956366004613d46565b61224a565b34801561096757600080fd5b506104a4610976366004613dee565b6123d1565b34801561098757600080fd5b506104a4610996366004613e46565b61241e565b3480156109a757600080fd5b5061052c600d5481565b3480156109bd57600080fd5b506018546109cb9060ff1681565b60405161047b9190613e86565b6104a46109e6366004613ea0565b61248a565b3480156109f757600080fd5b506104a4610a06366004613f1b565b6124d4565b348015610a1757600080fd5b50610758610a26366004613cad565b612528565b348015610a3757600080fd5b506104a4610a46366004613f36565b6125d5565b348015610a5757600080fd5b506104a4610a66366004613fc9565b6128a1565b348015610a7757600080fd5b50610a8b610a86366004613942565b6128fc565b60405161047b9190613fea565b348015610aa457600080fd5b506104bb610ab3366004613942565b612984565b348015610ac457600080fd5b5061052c60155481565b348015610ada57600080fd5b5061052c600e5481565b348015610af057600080fd5b5061046f610aff366004613ff8565b601b60209081526000928352604080842090915290825290205460ff1681565b348015610b2b57600080fd5b5061052c610b3a366004613f1b565b612ab9565b348015610b4b57600080fd5b5061046f610b5a36600461401b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b9457600080fd5b506104a4610ba3366004613cad565b612ae3565b348015610bb457600080fd5b506104a4610bc3366004614045565b612b59565b348015610bd457600080fd5b506105cd61250081565b60006001600160e01b0319821663152a902d60e11b1480610c0f57506001600160e01b031982166301ffc9a760e01b145b80610c2a57506380ac58cd60e01b6001600160e01b03198316145b80610c455750635b5e139f60e01b6001600160e01b03198316145b80610c545750610c5482612b74565b92915050565b610c62612ba9565b81600f8260ff1681548110610c7957610c79614060565b600091825260209182902001919091556040805160ff841681529182018490527fdb4f88e8a67eb25463e3f2434263c2ef375c850ed6d8ea78b95f82dc34550342910160405180910390a15050565b606060028054610cd790614076565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0390614076565b8015610d505780601f10610d2557610100808354040283529160200191610d50565b820191906000526020600020905b815481529060010190602001808311610d3357829003601f168201915b5050505050905090565b6000610d6582612c03565b610d82576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610da982611d36565b9050336001600160a01b03821614610de257610dc58133610b5a565b610de2576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610e46612ba9565b601555565b6000610e5682612c38565b9050836001600160a01b0316816001600160a01b031614610e895760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610eb58187335b6001600160a01b039081169116811491141790565b610ee057610ec38633610b5a565b610ee057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f0757604051633a954ecd60e21b815260040160405180910390fd5b8015610f1257600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610fa457600184016000818152600460205260408120549003610fa2576000548114610fa25760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061454583398151915260405160405180910390a4610fe08686866001612ca7565b505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161105d5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061107c906001600160601b03168761381e565b6110869190613853565b915196919550909350505050565b61109c612d0a565b333b156110bc57604051631b67e63960e01b815260040160405180910390fd5b6110c581612c03565b6110e257604051630cd4afff60e01b815260040160405180910390fd5b336110ec82611d36565b6001600160a01b0316146111135760405163fb0d26af60e01b815260040160405180910390fd5b60008181526019602052604090205460ff16600714611145576040516330be256360e11b815260040160405180910390fd5b600c5460405160009133918381818185875af1925050503d8060008114611188576040519150601f19603f3d011682016040523d82523d6000602084013e61118d565b606091505b50509050806111af5760405163d558b6e760e01b815260040160405180910390fd5b6002600c546111be9190613853565b600c556111ca82612d63565b600c546040805184815233602082015280820192909252517fe553833251cb2736e49869c36df1254cb119b3e160ddee32ffc163a361a238699181900360600190a1506112176001600b55565b50565b6112358383836040518060200160405280600081525061248a565b505050565b600260185460ff16600381111561125357611253613e70565b146112715760405163268dbf6760e21b815260040160405180910390fd5b601654611289906001600160a01b0316848484612d6e565b336000908152601d60205260409020546002906112ab90869061ffff166140b0565b61ffff1611156112ce5760405163524f409b60e01b815260040160405180910390fd5b601454612500906112e490869061ffff166140b0565b61ffff16111561130757604051632d7a008560e11b815260040160405180910390fd5b611315338561ffff16612dbe565b5050336000908152601d60205260409020805461ffff1980821661ffff928316860183161790925560148054928316928216909401161790915550565b61135a612ba9565b600d5460405160009133918381818185875af1925050503d806000811461139d576040519150601f19603f3d011682016040523d82523d6000602084013e6113a2565b606091505b50509050806113c4576040516303e4130960e51b815260040160405180910390fd5b7ff06b968f376992cb39cae0430ac5abeac2afa77ecd69f95596944918de2d6ded600d546040516113f791815260200190565b60405180910390a150565b61140a612ba9565b601454612500906114239060ff84169061ffff166140b0565b61ffff16111561144657604051632d7a008560e11b815260040160405180910390fd5b611453828260ff16612dbe565b6014805461ffff19811660ff9390931661ffff918216011691909117905550565b61147c612ba9565b600c5460405160009133918381818185875af1925050503d80600081146114bf576040519150601f19603f3d011682016040523d82523d6000602084013e6114c4565b606091505b50509050806114e6576040516303e4130960e51b815260040160405180910390fd5b7f0ddd1e1f1feaf1334e0e43aa38b666f8a6aa56232e379578e4d627aee307737b600c546040516113f791815260200190565b600360185460ff16600381111561153257611532613e70565b146115745760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420706861736560981b60448201526064015b60405180910390fd5b600061157f33612528565b60ff16116115cf5760405162461bcd60e51b815260206004820152601a60248201527f746f6f206d616e7920667573696f6e7320666f7220746f646179000000000000604482015260640161156b565b6115d882612c03565b15806115ea57506115e881612c03565b155b1561160857604051630cd4afff60e01b815260040160405180910390fd5b3361161283611d36565b6001600160a01b031614158061163957503361162d82611d36565b6001600160a01b031614155b156116575760405163fb0d26af60e01b815260040160405180910390fd5b600061166283612022565b9050600061166f83612022565b8051835191925060ff9182169116146116de5760405162461bcd60e51b815260206004820152602b60248201527f667573696f6e20696d706f737369626c652063617220706173206c61206d656d60448201526a329032bb37b63aba34b7b760a91b606482015260840161156b565b806020015160ff16826020015160ff160361174c5760405162461bcd60e51b815260206004820152602860248201527f667573696f6e20696d706f737369626c6520636172206465206c61206d656d656044820152671031b7bab632bab960c11b606482015260840161156b565b6000848152601a60205260409020541580159061178357506015546000858152601a6020526040902054429161178191613806565b115b156117a15760405163052721ff60e11b815260040160405180910390fd5b6000838152601a6020526040902054158015906117d857506015546000848152601a602052604090205442916117d691613806565b115b156117f65760405163052721ff60e11b815260040160405180910390fd5b815134906000906118089060016140d6565b9050600061181582612ab9565b90508060000361183857604051630ad3ea0b60e11b815260040160405180910390fd5b8083101561185957604051630ad3ea0b60e11b815260040160405180910390fd5b604080518082019091526000808252602082015260078360ff161015611a05576000611883611cee565b90506119428160118660ff168154811061189f5761189f614060565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1660128760ff16815481106118dd576118dd614060565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1660138860ff168154811061191b5761191b614060565b60009182526020909120601082040154600f9091166002026101000a900461ffff16612ea1565b90508060ff166000036119a957600060208301526011805460ff861690811061196d5761196d614060565b6000918252602090912060108204018054600f9092166002026101000a61ffff81810219841693829004811660010116029190911790556119ff565b600160208301526012805460ff86169081106119c7576119c7614060565b6000918252602090912060108204018054600f9092166002026101000a61ffff81810219841693829004811660010116029190911790555b50611a0d565b600360208201525b6103e8611a1c8561028061381e565b611a269190613853565b600c6000828254611a379190613806565b909155506103e89050611a4c8561013661381e565b611a569190613853565b600d6000828254611a679190613806565b909155506103e89050611a7b85603261381e565b611a859190613853565b600e6000828254611a969190613806565b909155505060ff808416825260145461ffff166000908152601960209081526040909120835181549285015184166101000261ffff19909316931692909217179055611ae188612d63565b611aea87612d63565b611af5336001612dbe565b6000611b046201518042613853565b6040516bffffffffffffffffffffffff193360601b1660208201526034810182905290915060009060540160408051808303601f1901815290829052601454909250640100000000900460ff1690601e90611b60908490614117565b9081526040519081900360200190205460ff161115611bb557336000908152601f60205260408120805460ff1691611b9783614133565b91906101000a81548160ff021916908360ff16021790555050611bff565b601e81604051611bc59190614117565b908152604051908190036020019020805460ff16906000611be583614150565b91906101000a81548160ff021916908360ff160217905550505b50506014805461ffff8082166001011661ffff199091161790555050505050505050565b6060816000816001600160401b03811115611c4057611c40613a0c565b604051908082528060200260200182016040528015611c9257816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181611c5e5790505b50905060005b828114611ce557611cc0868683818110611cb457611cb4614060565b905060200201356128fc565b828281518110611cd257611cd2614060565b6020908102919091010152600101611c98565b50949350505050565b600060024442604051602001611d0e929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c611d31919061416f565b905090565b6000610c5482612c38565b611d49612ba9565b6001600160a01b03919091166000908152601f60205260409020805460ff191660ff909216919091179055565b60178054611d8390614076565b80601f0160208091040260200160405190810160405280929190818152602001828054611daf90614076565b8015611dfc5780601f10611dd157610100808354040283529160200191611dfc565b820191906000526020600020905b815481529060010190602001808311611ddf57829003601f168201915b505050505081565b60006001600160a01b038216611e2d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611e5a612ba9565b611e646000612fdb565b565b60606000806000611e7685611e04565b90506000816001600160401b03811115611e9257611e92613a0c565b604051908082528060200260200182016040528015611ebb578160200160208202803683370190505b509050611ee860408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611f6257611efb8161302d565b91508160400151611f5a5781516001600160a01b031615611f1b57815194505b876001600160a01b0316856001600160a01b031603611f5a5780838780600101985081518110611f4d57611f4d614060565b6020026020010181815250505b600101611eeb565b50909695505050505050565b600f8181548110611f7e57600080fd5b600091825260209091200154905081565b611f97612d0a565b611f9f612ba9565b600e546040516000916001600160a01b038416918381818185875af1925050503d8060008114611feb576040519150601f19603f3d011682016040523d82523d6000602084013e611ff0565b606091505b5050905080612012576040516303e4130960e51b815260040160405180910390fd5b506000600e556112176001600b55565b604080518082019091526000808252602082015261203f82612c03565b61205c57604051630cd4afff60e01b815260040160405180910390fd5b60008281526019602052604081205460ff16900361209f5761207f60028361416f565b6000036120925760006020820152919050565b600160208201525b919050565b5060009081526019602090815260409182902082518084019093525460ff8082168452610100909104169082015290565b600160185460ff1660038111156120e9576120e9613e70565b146121075760405163268dbf6760e21b815260040160405180910390fd5b336000908152601c602052604090205460ff16151560010361213c576040516319ed3b7b60e11b815260040160405180910390fd5b601654612154906001600160a01b0316848484612d6e565b600182600181111561216857612168613e70565b0361218657604051635c4ff00360e11b815260040160405180910390fd5b60008160600151600202826040015160040283602001516003028460000151600202010101905061250061ffff1681601460009054906101000a900461ffff166121d091906140b0565b61ffff1611156121f357604051632a8c358960e21b815260040160405180910390fd5b612201338261ffff16612dbe565b6014805461ffff19811661ffff91821693909301169190911790555050336000908152601c60205260409020805460ff1916600117905550565b606060038054610cd790614076565b606081831061226c57604051631960ccad60e11b815260040160405180910390fd5b60008061227860005490565b9050600185101561228857600194505b80841115612294578093505b600061229f87611e04565b9050848610156122be57858503818110156122b8578091505b506122c2565b5060005b6000816001600160401b038111156122dc576122dc613a0c565b604051908082528060200260200182016040528015612305578160200160208202803683370190505b5090508160000361231b5793506123ca92505050565b6000612326886128fc565b905060008160400151612337575080515b885b8881141580156123495750848714155b156123be576123578161302d565b925082604001516123b65782516001600160a01b03161561237757825191505b8a6001600160a01b0316826001600160a01b0316036123b657808488806001019950815181106123a9576123a9614060565b6020026020010181815250505b600101612339565b50505092835250909150505b9392505050565b6123d9612ba9565b80516123ec906017906020840190613757565b507fc7908db8c8588ac430ee4efe758e7ba70a0d22e32a138b548fd0d34fa8a4839581336040516113f7929190614183565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612495848484610e4b565b6001600160a01b0383163b156124ce576124b184848484613069565b6124ce576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6124dc612ba9565b6014805463ffff0000191660ff8316620100008102919091179091556040519081527f9fae59ffe0f4afdf0a60db62802b902021c660224540fb521f9a8ffc19636655906020016113f7565b6000806125386201518042613853565b6040516bffffffffffffffffffffffff19606086901b166020820152603481018290529091506000906054016040516020818303038152906040529050601e816040516125859190614117565b908152604080516020928190038301902054336000908152601f90935291205460145460ff928316926125c3928116916401000000009004166140d6565b6125cd91906141ad565b949350505050565b6125dd612d0a565b60105460ff1661262f5760405162461bcd60e51b815260206004820152601f60248201527f436c61696d20666f7220686f6c64657273206973206e6f74206f70656e656400604482015260640161156b565b333b1561264f57604051631b67e63960e01b815260040160405180910390fd5b80516001600160a01b031633146126795760405163fd684c3b60e01b815260040160405180910390fd5b60145462010000900461ffff166000908152601b6020908152604080832033845290915290205460ff16156126c057604051627d5d6d60e11b815260040160405180910390fd5b60145460c08201516201000090910461ffff16146126f15760405163268dbf6760e21b815260040160405180910390fd5b601654612708906001600160a01b03168383613151565b60008160a00151600161271b919061381e565b608083015161272b90600261381e565b606084015161273b90600561381e565b604085015161274b90600661381e565b602086015161275b90600a61381e565b6127659190613806565b61276f9190613806565b6127799190613806565b6127839190613806565b905060008161050e61ffff16600d5461279c9190613853565b6127a6919061381e565b604051909150600090339083908381818185875af1925050503d80600081146127eb576040519150601f19603f3d011682016040523d82523d6000602084013e6127f0565b606091505b50509050806128125760405163766c647960e01b815260040160405180910390fd5b6014805461ffff620100009182900481166000908152601b602090815260408083203380855290835292819020805460ff19166001179055945485519283529082018790529290920416918101919091527f0414118624d9fc11e875a6c6065d5664d0ff5d46ffd8ed732e125311fbc611a49060600160405180910390a150505061289d6001600b55565b5050565b6128a9612ba9565b6018805482919060ff191660018360038111156128c8576128c8613e70565b02179055507fcf3d8e53760202bc7465ebbdd1853b59f1d66307a4ae92f72a06333ae7bb8783816040516113f79190613e86565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061295557506000548310155b156129605792915050565b6129698361302d565b905080604001511561297b5792915050565b6123ca8361320e565b606061298f82612c03565b6129ac57604051630a14c4b560e41b815260040160405180910390fd5b60006129b783612022565b905060006129c484613243565b60176129d6846000015160ff16613243565b6129e6856020015160ff16613243565b6040516020016129f994939291906141d0565b6040516020818303038152906040529050600081612a1d846000015160ff16613243565b602085015160ff1615612a4957604051806040016040528060018152602001602160f91b815250612a64565b604051806040016040528060018152602001604160f81b8152505b604051602001612a7693929190614317565b6040516020818303038152906040529050612a90816132d5565b604051602001612aa091906143f2565b6040516020818303038152906040529350505050919050565b6000600f8260ff1681548110612ad157612ad1614060565b90600052602060002001549050919050565b612aeb612ba9565b6001600160a01b038116612b505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161156b565b61121781612fdb565b612b61612ba9565b6010805460ff1916911515919091179055565b60006001600160e01b0319821663152a902d60e11b1480610c5457506301ffc9a760e01b6001600160e01b0319831614610c54565b6008546001600160a01b03163314611e645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161156b565b600081600111158015612c17575060005482105b8015610c54575050600090815260046020526040902054600160e01b161590565b60008180600111612c8e57600054811015612c8e5760008181526004602052604081205490600160e01b82169003612c8c575b806000036123ca575060001901600081815260046020526040902054612c6b565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b0384163b158015612cc757506001600160a01b03841615155b15612ce2576000828152601a602052604090204290556124ce565b6000828152601a6020526040902054156124ce57506000908152601a60205260408120555050565b6002600b5403612d5c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161156b565b6002600b55565b611217816000613427565b6000612d7a838361356d565b9050846001600160a01b0316612d9082866135b8565b6001600160a01b031614612db75760405163c73e16c160e01b815260040160405180910390fd5b5050505050565b6000805490829003612de35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206145458339815191528180a4600183015b818114612e6e5780836000600080516020614545833981519152600080a4600101612e48565b5081600003612e8f57604051622e076360e81b815260040160405180910390fd5b60009081556112359150848385612ca7565b60008460ff16600003612eeb578263ffffffff168463ffffffff161115612ee6576000612ece8486614437565b905060048163ffffffff161115612ee457600195505b505b612f23565b8263ffffffff168463ffffffff161015612f23576000612f0b8585614437565b905060048163ffffffff161115612f2157600095505b505b612f2e600583614437565b63ffffffff168463ffffffff1610158015612f5f5750612f4f600583614437565b63ffffffff168363ffffffff1610155b15612fd2578263ffffffff168463ffffffff161115612f9b576000612f848486614437565b905060018163ffffffff1610612f9957600195505b505b8263ffffffff168463ffffffff161015612fd2576000612fbb8585614437565b905060018163ffffffff1610612fd057600095505b505b50929392505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610c5490613638565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061309e90339089908890889060040161445c565b6020604051808303816000875af19250505080156130d9575060408051601f3d908101601f191682019092526130d691810190614499565b60015b613137573d808015613107576040519150601f19603f3d011682016040523d82523d6000602084013e61310c565b606091505b50805160000361312f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125cd565b60006131d182805160208083015160408085015160608087015160808089015160a0808b015160c0808d015189516001600160a01b03909d169b8d019b909b52978b01989098529389019490945287015285015283015260e082015260009061010001604051602081830303815290604052805190602001209050919050565b9050836001600160a01b03166131e782856135b8565b6001600160a01b0316146124ce5760405163c73e16c160e01b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152610c5461323e83612c38565b613638565b606060006132508361367f565b60010190506000816001600160401b0381111561326f5761326f613a0c565b6040519080825280601f01601f191660200182016040528015613299576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846132a357509392505050565b606081516000036132f457505060408051602081019091526000815290565b600060405180606001604052806040815260200161450560409139905060006003845160026133239190613806565b61332d9190613853565b61333890600461381e565b6001600160401b0381111561334f5761334f613a0c565b6040519080825280601f01601f191660200182016040528015613379576020820181803683370190505b509050600182016020820185865187015b808210156133e5576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061338a565b505060038651066001811461340157600281146134145761341c565b603d6001830353603d600283035361341c565b603d60018303535b509195945050505050565b600061343283612c38565b90508060008061345086600090815260066020526040902080549091565b91509150841561349057613465818433610ea0565b613490576134738333610b5a565b61349057604051632ce44b5f60e11b815260040160405180910390fd5b801561349b57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003613529576001860160008181526004602052604081205490036135275760005481146135275760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020614545833981519152908390a461355d836000886001612ca7565b5050600180548101905550505050565b60008282600001518360200151846040015185606001513360405160200161359a969594939291906144b6565b60405160208183030381529060405280519060200120905092915050565b60008060018484604001518560000151866020015160405160008152602001604052604051613603949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015613625573d6000803e3d6000fd5b5050604051601f19015195945050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106136be5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106136ea576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061370857662386f26fc10000830492506010015b6305f5e1008310613720576305f5e100830492506008015b612710831061373457612710830492506004015b60648310613746576064830492506002015b600a8310610c545760010192915050565b82805461376390614076565b90600052602060002090601f01602090048101928261378557600085556137cb565b82601f1061379e57805160ff19168380011785556137cb565b828001600101855582156137cb579182015b828111156137cb5782518255916020019190600101906137b0565b506137d79291506137db565b5090565b5b808211156137d757600081556001016137dc565b634e487b7160e01b600052601160045260246000fd5b60008219821115613819576138196137f0565b500190565b6000816000190483118215151615613838576138386137f0565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826138625761386261383d565b500490565b6001600160e01b03198116811461121757600080fd5b60006020828403121561388f57600080fd5b81356123ca81613867565b803560ff8116811461209a57600080fd5b600080604083850312156138be57600080fd5b823591506138ce6020840161389a565b90509250929050565b60005b838110156138f25781810151838201526020016138da565b838111156124ce5750506000910152565b6000815180845261391b8160208601602086016138d7565b601f01601f19169290920160200192915050565b6020815260006123ca6020830184613903565b60006020828403121561395457600080fd5b5035919050565b80356001600160a01b038116811461209a57600080fd5b6000806040838503121561398557600080fd5b61398e8361395b565b946020939093013593505050565b6000806000606084860312156139b157600080fd5b6139ba8461395b565b92506139c86020850161395b565b9150604084013590509250925092565b600080604083850312156139eb57600080fd5b50508035926020909101359150565b803561ffff8116811461209a57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715613a4457613a44613a0c565b60405290565b600060608284031215613a5c57600080fd5b604051606081018181106001600160401b0382111715613a7e57613a7e613a0c565b80604052508091508235815260208301356020820152613aa06040840161389a565b60408201525092915050565b80356002811061209a57600080fd5b600060808284031215613acd57600080fd5b604051608081018181106001600160401b0382111715613aef57613aef613a0c565b604052905080613afe836139fa565b8152613b0c602084016139fa565b6020820152613b1d604084016139fa565b6040820152613b2e606084016139fa565b60608201525092915050565b6000806000806101208587031215613b5157600080fd5b613b5a856139fa565b9350613b698660208701613a4a565b9250613b7760808601613aac565b9150613b868660a08701613abb565b905092959194509250565b60008060408385031215613ba457600080fd5b613bad8361395b565b91506138ce6020840161389a565b60008060208385031215613bce57600080fd5b82356001600160401b0380821115613be557600080fd5b818501915085601f830112613bf957600080fd5b813581811115613c0857600080fd5b8660208260051b8501011115613c1d57600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611f6257613c9a838551613c2f565b9284019260809290920191600101613c87565b600060208284031215613cbf57600080fd5b6123ca8261395b565b6020808252825182820181905260009190848201906040850190845b81811015611f6257835183529284019291840191600101613ce4565b60008060006101008486031215613d1657600080fd5b613d208585613a4a565b9250613d2e60608501613aac565b9150613d3d8560808601613abb565b90509250925092565b600080600060608486031215613d5b57600080fd5b613d648461395b565b95602085013595506040909401359392505050565b60006001600160401b0380841115613d9357613d93613a0c565b604051601f8501601f19908116603f01168101908282118183101715613dbb57613dbb613a0c565b81604052809350858152868686011115613dd457600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613e0057600080fd5b81356001600160401b03811115613e1657600080fd5b8201601f81018413613e2757600080fd5b6125cd84823560208401613d79565b8035801515811461209a57600080fd5b60008060408385031215613e5957600080fd5b613e628361395b565b91506138ce60208401613e36565b634e487b7160e01b600052602160045260246000fd5b6020810160048310613e9a57613e9a613e70565b91905290565b60008060008060808587031215613eb657600080fd5b613ebf8561395b565b9350613ecd6020860161395b565b92506040850135915060608501356001600160401b03811115613eef57600080fd5b8501601f81018713613f0057600080fd5b613f0f87823560208401613d79565b91505092959194509250565b600060208284031215613f2d57600080fd5b6123ca8261389a565b600080828403610140811215613f4b57600080fd5b613f558585613a4a565b925060e0605f1982011215613f6957600080fd5b50613f72613a22565b613f7e6060850161395b565b81526080840135602082015260a0840135604082015260c0840135606082015260e0840135608082015261010084013560a082015261012084013560c0820152809150509250929050565b600060208284031215613fdb57600080fd5b8135600481106123ca57600080fd5b60808101610c548284613c2f565b6000806040838503121561400b57600080fd5b823591506138ce6020840161395b565b6000806040838503121561402e57600080fd5b6140378361395b565b91506138ce6020840161395b565b60006020828403121561405757600080fd5b6123ca82613e36565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061408a57607f821691505b6020821081036140aa57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168185168083038211156140cd576140cd6137f0565b01949350505050565b600060ff821660ff84168060ff038211156140f3576140f36137f0565b019392505050565b6000815161410d8185602086016138d7565b9290920192915050565b600082516141298184602087016138d7565b9190910192915050565b600060ff821680614146576141466137f0565b6000190192915050565b600060ff821660ff8103614166576141666137f0565b60010192915050565b60008261417e5761417e61383d565b500690565b6040815260006141966040830185613903565b905060018060a01b03831660208301529392505050565b600060ff821660ff8416808210156141c7576141c76137f0565b90039392505050565b607b60f81b81526000600171226e616d65223a202254696d656f7574202360701b81840152865160206142098260138701838c016138d7565b601160f91b6013928601928301819052600b60fa1b60148401526801134b6b0b3b2911d160bd1b6015840152601e8301528754601f9060009080861c8682168061425457607f821691505b858210810361427157634e487b7160e01b84526022600452602484fd5b808015614285576001811461429a576142cb565b60ff19841688870152828801860194506142cb565b60008e81526020902060005b848110156142c15781548a8201890152908a019088016142a6565b5050858389010194505b505050506143086142f56142ef6142e2848d6140fb565b602d60f81b815260010190565b8a6140fb565b660b9a9c1959c88b60ca1b815260070190565b9b9a5050505050505050505050565b600084516143298184602089016138d7565b80830190507f2261747472696275746573223a205b7b2274726169745f74797065223a2022458152733b37b63aba34b7b71116113b30b63ab2911d101160611b602082015284516143818160348401602089016138d7565b62089f4b60ea1b603492909101918201527f7b2274726169745f74797065223a202274797065222c2276616c7565223a2022603782015283516143cb8160578401602088016138d7565b62227d5d60e81b60579290910191820152607d60f81b605a820152605b0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161442a81601d8501602087016138d7565b91909101601d0192915050565b600063ffffffff83811690831681811015614454576144546137f0565b039392505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061448f90830184613903565b9695505050505050565b6000602082840312156144ab57600080fd5b81516123ca81613867565b60c08101600288106144ca576144ca613e70565b96815261ffff95861660208201529385166040850152918416606084015290921660808201526001600160a01b0390911660a0909101529056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220bd9555d0445d85c02e58bc3df6a7ff860b584b38b5453a9d26afb08b74a9643a64736f6c634300080d0033

Loading