ETH Price: $3,463.03 (+5.24%)

Token

Teddies on Vacation (TOV)
 

Overview

Max Total Supply

318 TOV

Holders

104

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
3chih21.eth
Balance
3 TOV
0x35735d69a7f0ce775dcdebd387f78641c8463b25
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Teddies on Vacation (ToV) is an on-chain collection of Teddies relishing their free time in the Grand Teddy Hotel by @numo_0. As the sun rises on a beautiful morning, excitement is in the air as not one, not two, but three groups of teddies are preparing for their arrival. Teddies love relaxation, good food, partying and enjoying their lives as much as we do. So, join the ToVs and be part of a funny, cute and beautiful community. All the metadata and images are generated and stored 100% on-chain. No IPFS, no API. Just the Ethereum blockchain.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TeddiesOnVacation

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 20 : TeddiesOnVacation.sol
//  _____         _     _ _                                                _   _             
// /__   \___  __| | __| (_) ___  ___     ___  _ __    /\   /\__ _  ___ __ _| |_(_) ___  _ __  
//   / /\/ _ \/ _` |/ _` | |/ _ \/ __|   / _ \| '_ \   \ \ / / _` |/ __/ _` | __| |/ _ \| '_ \ 
//  / / |  __/ (_| | (_| | |  __/\__ \  | (_) | | | |   \ V / (_| | (_| (_| | |_| | (_) | | | |
//  \/   \___|\__,_|\__,_|_|\___||___/   \___/|_| |_|    \_/ \__,_|\___\__,_|\__|_|\___/|_| |_|
// // // // // // // //                             =########             
// // // // // // // //       :********.   :**********#######**.          
// // // // // // // //     -+*********+++++*************====##.          
// // // // // // // //   -+*#*****====******************++--##.          
// // // // // // // //   +##****==--++********************++--           
// // // // // // // //   +##****--++************************             
// // // // // // // //   -=+##**==**************************--           
// // // // // // // //     -++##***************##*******##****.          
// // // // // // // //       :+****************%%*******%%****.          
// // // // // // // //         .##*************##=-----=##****.          
// // // // // // // //         .##*************-------======**.          
// // // // // // // //         .##***********--------*%%%%%%--           
// // // // // // // //         .##***********----------=%#----           
// // // // // // // //            ##***********---------=---             
// // // // // // // //            ..*#**********************             
// // // // // // // //              *######**************+..             
// // // // // // // //            ==*##########***********++             
// // // // // // // //          --****###########*********##====.        
// // // // // // // //       .--********#########***********####+-:      
// // // // // // // //     .:=********#########***************####+-:    
// // // // // // // //     =**********#######*****************######*::  
// // // // // // // //   ..=**********#######*******************#######  
// // // // // // // //   +**********#######*********************#######  
// // // // // // // //   +**********#######*********************#########
// // // // // // // // ***********#########*********************#########
/**
 * @title TeddiesOnVacation
 * @author numo <@numo_0> <[email protected]>
 */

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

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import {SignedAllowance} from "./SignedAllowance.sol";
import "./core/ToVInfos.sol";
import "./lib/Base64.sol";
import "./interfaces/ITeddiesOnVacationRenderer.sol";

contract TeddiesOnVacation is ERC721Enumerable, Ownable, ReentrancyGuard, SignedAllowance {
    
    error MintNotActive();
    error IncorrectAmountOfEtherSent();
    error InvalidMintCount();
    error MintAllowanceReached();
    error MintAllowanceReachedSignature();
    error SeasonSupplyReached();
    error FinalSeasonReached();
    error InvalidSeason();
    error AnySeasonMintNotActive();
    error NonExistentToken();
    error WithdrawalFailed();
    
    struct Counters {
        uint64 tokenIds;
        uint64 founderMinted;
        uint64 currentSeason;
    }

    uint256 public constant MAX_SEASONS = 4;
    uint256 public FOUNDER_RESERVE_AMOUNT = 60;
    uint256 public MAX_SUPPLY_PER_SEASON = 1222;
    uint256 public MAX_SUPPLY_LAST_SEASON = 366;
    uint256 public MAX_PER_ADDRESS_PUBLIC = 8;
    
    Counters public counters;
    mapping(uint64 => uint256) public seasonNFTsMinted;

    address public rendererContractAddress;

    ToVInfos.ContractData public contractData = ToVInfos.ContractData(
        unicode"ToV",
        unicode"Teddies on Vacation",
        unicode"Teddies on Vacation (ToV) is a collection of Teddies relishing their free time in the Grand Teddy Hotel by @numo_0.\\n  \\nAs the sun rises on a beautiful morning, excitement is in the air as not one, not two, but three groups of teddies are preparing for their arrival.\\nTeddies love relaxation, good food, partying and enjoying their lives as much as we do.\\nSo, join the ToVs and be part of a funny, cute and beautiful community.\\n\\nAll the metadata and images are generated and stored 100% on-chain. No IPFS, no API. Just the Ethereum blockchain.",
        "https://cryptoteddies.xyz/base.png",
        "https://cryptoteddies.xyz/banner.png",
        "https://cryptoteddies.xyz",
        "750",
        "0xd42bd96B117dd6BD63280620EA981BF967A7aD2B"
    );
    
    // After contract sealed, no changes are possible anymore
    bool public isContractSealed;
    bool public isMintingPaused;
    bool public isCryptoTeddiesMintActive;
    bool public isAllowListMintActive;
    bool public isPublicMintActive;
    bool public isAnySeasonMintActive;

    uint256 public mintPrice = 0.025 ether;
    uint256 public mintPriceForCryptoTeddies = 0.01 ether;

    mapping(bytes32 => uint256) public allowancesMinted;
    mapping(bytes32 => uint256) public allowancesMintedLastSeason;
    mapping(address => uint256) public addressPublicMintedCounts;

    mapping(uint256 => ToVInfos.ToV) public tovs;

    constructor(address _allowancesSigner) ERC721("Teddies on Vacation", "TOV") {
        // Start with Season 1
        counters.currentSeason = 1;
        _setAllowancesSigner(_allowancesSigner);
    }

    /**
     * Checks if a mint phase is active.
     * @param mintPhase Value of a phase
     */
    modifier mintActive(bool mintPhase) {
        if (!isMintActive(mintPhase)) revert MintNotActive();
        _;
    }

    /**
     * Checks if the contract is sealed.
     */
    modifier whenUnsealed() {
        require(!isContractSealed, "Contract is sealed");
        _;
    }

    /**
     * Verifies different condition of a mint is eligible.
     * @param count Amount of mints
     * @param price The price of the mint
     * @param maxPerAddress Amount allowed to mint
     */
    modifier verifyMintConditions(uint256 count, uint256 price, uint256 maxPerAddress) {
        if (count == 0) revert InvalidMintCount();
        if (count > maxPerAddress) revert MintAllowanceReached();
        if (count * price != msg.value) revert IncorrectAmountOfEtherSent();

        uint64 currentSeason = counters.currentSeason;
        uint256 currentSeasonMinted = seasonNFTsMinted[currentSeason];
        uint256 maxSeasonSupply = MAX_SUPPLY_PER_SEASON;
        if (currentSeason >= MAX_SEASONS) {
            maxSeasonSupply = MAX_SUPPLY_LAST_SEASON;
        }
        if (currentSeasonMinted + count > maxSeasonSupply) revert SeasonSupplyReached();
        _;
    }

    /**
     * The actual mint funtion which creates the NFT.
     * @param _tokenId The tokenID of the new NFT
     * @param _season Determines the season 
     */
    function _mint(uint256 _tokenId, uint64 _season) internal {
        ToVInfos.ToV memory tov;
        tov.dna = uint256(keccak256(abi.encodePacked(
                _tokenId,
                msg.sender,
                block.prevrandao,
                block.timestamp
            )));

        tov.season = _season;

        super._mint(msg.sender, _tokenId);

        tovs[_tokenId] = tov;
    }

    /**
     * Checks if a certain signature is eligable to mint and updates the counter.
     * @param _count Amount of mints
     * @param _nonce The nonce using to validate the signature
     * @param _signature The signature to check if it is eligable to mint
     */
    function _checkSignature(uint256 _count, uint256 _nonce, bytes memory _signature) internal {
        uint64 currentSeason = counters.currentSeason;
        // this will throw if the signature is not the right one
        bytes32 signatureId;
        uint256 alreadyMinted;

        signatureId = validateSignature(msg.sender, currentSeason >= MAX_SEASONS ? _nonce + currentSeason : _nonce, _signature);
        alreadyMinted = currentSeason >= MAX_SEASONS ? allowancesMintedLastSeason[signatureId] : allowancesMinted[signatureId];
        
        // verify we don't ask for too many
        if (alreadyMinted + _count > _nonce) revert MintAllowanceReachedSignature();
        // increment the counter of how many were minted for this signature
        unchecked {
            if (currentSeason >= MAX_SEASONS) {
                allowancesMintedLastSeason[signatureId] += _count;
            } else {
                allowancesMinted[signatureId] += _count;
            }
        }
    }

    /**
     * Mint function for the founder.
     * @param _count Amount of mint
     */
    function mintFounder(uint64 _count) external onlyOwner nonReentrant {
        uint64 founderMinted = counters.founderMinted;
        uint64 currentSeason = counters.currentSeason;
        uint256 currentSeasonMinted = seasonNFTsMinted[currentSeason];

        if (_count == 0) revert InvalidMintCount();
        if (founderMinted + _count > FOUNDER_RESERVE_AMOUNT) revert MintAllowanceReached();

        uint256 maxSeasonSupply = currentSeason >= MAX_SEASONS ? MAX_SUPPLY_LAST_SEASON : MAX_SUPPLY_PER_SEASON;
        if (currentSeasonMinted + _count > maxSeasonSupply) revert SeasonSupplyReached();

        uint64 currentTokenId = counters.tokenIds;

        // increment once to save gas
        unchecked {
            counters.founderMinted = founderMinted + _count;
            seasonNFTsMinted[currentSeason] = currentSeasonMinted + _count;
            counters.tokenIds = currentTokenId + _count;
        }

        for (uint256 i; i < _count; ) {
            unchecked {
                ++currentTokenId;
                ++i;
            }
            _mint(currentTokenId, currentSeason);
        }
    }

    /**
     * The mint function for CryptoTeddies holder.
     * @param _count Amount of mints
     * @param _nonce Nonce used for validating the signature and determine the max amount of mints
     * @param _signature Signature to check if eligible
     */
    function mintCryptoTeddiesHolder(uint64 _count, uint256 _nonce, bytes memory _signature)
        external
        payable
        nonReentrant
        mintActive(isCryptoTeddiesMintActive)
        verifyMintConditions(_count, mintPriceForCryptoTeddies, _nonce) 
    {
        _checkSignature(_count, _nonce, _signature);

        uint64 currentSeason = counters.currentSeason;
        uint256 currentSeasonMinted = seasonNFTsMinted[currentSeason];
        uint64 currentTokenId = counters.tokenIds;

        // increment once to save gas
        unchecked {
            seasonNFTsMinted[currentSeason] = currentSeasonMinted + _count;
            counters.tokenIds = currentTokenId + _count;
        }

        for (uint256 i; i < _count; ) {
            unchecked {
                ++currentTokenId;
                ++i;
            }
            _mint(currentTokenId, currentSeason);
        }
    }

    /**
     * The mint function for allowlist wallets.
     * @param _count Amount of mints
     * @param _nonce Nonce used for validating the signature and determine the max amount of mints
     * @param _signature Signature to check if eligible
     */
    function mintAllowList(uint64 _count, uint256 _nonce, bytes memory _signature)
        external
        payable
        nonReentrant
        mintActive(isAllowListMintActive)
        verifyMintConditions(_count, mintPrice, _nonce) 
    {
        _checkSignature(_count, _nonce, _signature);

        uint64 currentSeason = counters.currentSeason;
        uint256 currentSeasonMinted = seasonNFTsMinted[currentSeason];
        uint64 currentTokenId = counters.tokenIds;

        // increment once to save gas
        unchecked {
            seasonNFTsMinted[currentSeason] = currentSeasonMinted + _count;
            counters.tokenIds = currentTokenId + _count;
        }

        for (uint256 i; i < _count; ) {
            unchecked {
                ++currentTokenId;
                ++i;
            }
            _mint(currentTokenId, currentSeason);
        }
    }

    /**
     * The mint function for public mint.
     * @param _count Amount of mints
     */
    function mintPublic(uint64 _count)
        external
        payable
        nonReentrant
        mintActive(isPublicMintActive)
        verifyMintConditions(_count, mintPrice, MAX_PER_ADDRESS_PUBLIC) 
    {
        uint256 currentAddressPublicMintedCount = addressPublicMintedCounts[msg.sender];

        if (_count + currentAddressPublicMintedCount > MAX_PER_ADDRESS_PUBLIC) revert MintAllowanceReached();

        uint64 currentSeason = counters.currentSeason;
        uint256 currentSeasonMinted = seasonNFTsMinted[currentSeason];
        uint64 currentTokenId = counters.tokenIds;

        // increment once to save gas
        unchecked {
            seasonNFTsMinted[currentSeason] = currentSeasonMinted + _count;
            counters.tokenIds = currentTokenId + _count;
            // increment the counter of how many were minted for this address
            addressPublicMintedCounts[msg.sender] = currentAddressPublicMintedCount + _count;
        }

        for (uint256 i; i < _count; ) {
            unchecked {
                ++currentTokenId;
                ++i;
            }
            _mint(currentTokenId, currentSeason);
        }
    }

    /**
     * The mint function to mint a certain season NFT.
     * @param _count Amount of mints
     * @param _season Determines the season
     */
    function mintSeason(uint64 _count, uint64 _season) 
        external
        payable
        nonReentrant
        mintActive(isPublicMintActive) 
    {
        if (!isAnySeasonMintActive) revert AnySeasonMintNotActive();
        if (_season == 0 || _season > MAX_SEASONS) revert InvalidSeason();
        
        uint64 currentTokenId = counters.tokenIds;
        uint256 currentSeasonMinted = seasonNFTsMinted[_season];
        uint256 currentAddressPublicMintedCount = addressPublicMintedCounts[msg.sender];

        if (_count == 0 || _count + currentAddressPublicMintedCount > MAX_PER_ADDRESS_PUBLIC) revert MintAllowanceReached();
        if (_count * mintPrice != msg.value) revert IncorrectAmountOfEtherSent();
        
        uint256 maxSeasonSupply = MAX_SUPPLY_PER_SEASON;
        if (_season >= MAX_SEASONS) {
            maxSeasonSupply = MAX_SUPPLY_LAST_SEASON;
        }
        if (currentSeasonMinted + _count > maxSeasonSupply) revert SeasonSupplyReached();

        // increment once to save gas
        unchecked {
            seasonNFTsMinted[_season] = currentSeasonMinted + _count;
            counters.tokenIds = currentTokenId + _count;
            // increment the counter of how many were minted for this address
            addressPublicMintedCounts[msg.sender] = currentAddressPublicMintedCount + _count;
        }
        
        for (uint256 i; i < _count; ) {
            unchecked {
                ++currentTokenId;
                ++i;
            }
            _mint(currentTokenId, _season);
        }
    }

    /**
     * Funtion to get the DNA of a ToV.
     * @param _tokenId The tokenID to get the DNA for.
     */
    function getDna(uint256 _tokenId) public view returns (uint256) {
        return tovs[_tokenId].dna;
    }

    /**
     * Checks if a mint phase is active.
     * @param _mintPhase State of a certain mint phase.
     */
    function isMintActive(bool _mintPhase) public view returns (bool) {
        return !isMintingPaused && (_mintPhase || msg.sender == owner());
    }

    /**
     * Function to retrieve the metadata & art for a given token. Reverts for tokens that don't exist.
     * @param _tokenId The tokenID to get the uri for.
     */
    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        if (!_exists(_tokenId)) revert NonExistentToken();

        if (rendererContractAddress == address(0)) {
            return '';
        }

        // Use of a external renderer. 
        IToVRenderer renderer = IToVRenderer(rendererContractAddress);
        return renderer.tokenURI(_tokenId, tovs[_tokenId], contractData);
    }

    /**
     * Funtion to retrieve the metadata for a given token.
     * @param _tokenId The tokenID to get the metadata for.
     */
    function getMetaData(uint256 _tokenId) public view returns (string memory) {
        if (!_exists(_tokenId)) revert NonExistentToken();

        if (rendererContractAddress == address(0)) {
            return '';
        }

        // Use of a external renderer. 
        IToVRenderer renderer = IToVRenderer(rendererContractAddress);
        return renderer.getMetaDataFromTokenID(_tokenId, tovs[_tokenId]);
    }

    /**
     * Function to provide contract information.
     */
    function contractURI() public view returns (string memory) {
        return string(
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(
                    abi.encodePacked(
                        '{"name":"',
                        contractData.collectionName,
                        '","description":"',
                        contractData.description,
                        '","image":"',
                        contractData.image,
                        '","banner":"',
                        contractData.banner,
                        '","external_link":"',
                        contractData.website,
                        '","seller_fee_basis_points":',
                        contractData.royalties,
                        ',"fee_recipient":"',
                        contractData.royaltiesRecipient,
                        '"}'
                    )
                )
            )
        );
    }

    // =========================================================================
    //                             Owner Functions
    // =========================================================================

    /**
     * Starts the next season.
     */
    function startNextSeason() external onlyOwner {
        uint64 currentSeason = counters.currentSeason;

        if (currentSeason >= MAX_SEASONS) revert FinalSeasonReached();
        unchecked {
            counters.currentSeason = currentSeason + 1;
            // reset mint phases for each new seasons
            isAllowListMintActive = false;
            isPublicMintActive = false;            
        }
    }

    /**
     * Sets a specific season.
     * @param _season The season which should run.
     */
    function setSeason(uint64 _season) external onlyOwner {
        if (_season == 0 || _season > MAX_SEASONS) revert InvalidSeason();
        unchecked {
            counters.currentSeason = _season;
        }
    } 
    
    function setRendererContractAddress(address _rendererContractAddress) public whenUnsealed onlyOwner {
        rendererContractAddress = _rendererContractAddress;
    }
    function setFounderReserveAmount(uint256 _max) public whenUnsealed onlyOwner {
        FOUNDER_RESERVE_AMOUNT = _max;
    }
    function setMaxSupplyPerSeason(uint256 _max) public whenUnsealed onlyOwner {
        MAX_SUPPLY_PER_SEASON = _max;
    }
    function setMaxSupplyLastSeason(uint256 _max) public whenUnsealed onlyOwner {
        MAX_SUPPLY_LAST_SEASON = _max;
    }
    function setMaxPerAddressPublic(uint256 _max) public onlyOwner {
        MAX_PER_ADDRESS_PUBLIC = _max;
    }
    function setContractData(ToVInfos.ContractData calldata _data) external onlyOwner {
        contractData = _data;
    }
    function setMintPrice(uint _price) external onlyOwner {
        mintPrice = _price;
    }
    function setMintPriceForCryptoTeddies(uint _price) external onlyOwner {
        mintPriceForCryptoTeddies = _price;
    }
    
    /**
     * Sets allowance signer, this can be used to revoke all unused allowances already out there
     * @param _newSigner The new signer
     */
    function setAllowancesSigner(address _newSigner) external onlyOwner {
        _setAllowancesSigner(_newSigner);
    }

    /**
     * Seals the contract, so no changes are possible anymore.
     */
    function sealContract() external whenUnsealed onlyOwner {
        isContractSealed = true;
    }

    function toggleMintingPaused() external onlyOwner {
        isMintingPaused = !isMintingPaused;
    }
     function toggleCryptoTeddiesMint() external onlyOwner {
        isCryptoTeddiesMintActive = !isCryptoTeddiesMintActive;
    }
     function toggleAllowListMint() external onlyOwner {
        isAllowListMintActive = !isAllowListMintActive;
    }
    function togglePublicMint() external onlyOwner {
        isPublicMintActive = !isPublicMintActive;
    }
    function toggleAnySeasonMintActive() external onlyOwner {
        isAnySeasonMintActive = !isAnySeasonMintActive;
    }

    function supportsInterface(bytes4 interfaceId) 
        public 
        view 
        virtual 
        override(ERC721Enumerable) returns (bool) 
    {
        return super.supportsInterface(interfaceId);
    }

    function withdraw() public onlyOwner {
        (bool success,) = msg.sender.call{value : address(this).balance}('');
        if (!success) revert WithdrawalFailed();
    }
}

File 2 of 20 : 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 20 : 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 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

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

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

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

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

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

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

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

        _owners[tokenId] = to;

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

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

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

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

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

        // Clear approvals
        delete _tokenApprovals[tokenId];

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

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

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

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

        emit Transfer(from, to, tokenId);

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

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

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

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

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

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

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

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 5 of 20 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 6 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 7 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 8 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 9 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 10 of 20 : 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 20 : 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 12 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 13 of 20 : 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 14 of 20 : 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 15 of 20 : 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);
        }
    }
}

File 16 of 20 : 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 17 of 20 : ToVInfos.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

interface ToVInfos {
    struct ToV {
        uint64 season;
        uint64 seasonTraitCount;
        uint256 dna;
    }
    
    struct ContractData {
        string name;
        string collectionName;
        string description;
        string image;
        string banner;
        string website;
        string royalties;
        string royaltiesRecipient;
    }
}

File 18 of 20 : ITeddiesOnVacationRenderer.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import "../core/ToVInfos.sol";

interface IToVRenderer {
    function tokenURI(uint256 tokenId, ToVInfos.ToV memory tovData , ToVInfos.ContractData memory contractData) external view returns (string memory);
    function getMetaDataFromTokenID(uint256 tokenId, ToVInfos.ToV memory tovData) external view returns (string memory);
}

File 19 of 20 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Library to encode strings in Base64.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol)
/// @author Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos - <[email protected]>.
library Base64 {
    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// See: https://datatracker.ietf.org/doc/html/rfc4648
    /// @param fileSafe  Whether to replace '+' with '-' and '/' with '_'.
    /// @param noPadding Whether to strip away the padding.
    function encode(bytes memory data, bool fileSafe, bool noPadding)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let dataLength := mload(data)

            if dataLength {
                // Multiply by 4/3 rounded up.
                // The `shl(2, ...)` is equivalent to multiplying by 4.
                let encodedLength := shl(2, div(add(dataLength, 2), 3))

                // Set `result` to point to the start of the free memory.
                result := mload(0x40)

                // Store the table into the scratch space.
                // Offsetted by -1 byte so that the `mload` will load the character.
                // We will rewrite the free memory pointer at `0x40` later with
                // the allocated size.
                // The magic constant 0x0230 will translate "-_" + "+/".
                mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef")
                mstore(0x3f, sub("ghijklmnopqrstuvwxyz0123456789-_", mul(iszero(fileSafe), 0x0230)))

                // Skip the first slot, which stores the length.
                let ptr := add(result, 0x20)
                let end := add(ptr, encodedLength)

                // Run over the input, 3 bytes at a time.
                for {} 1 {} {
                    data := add(data, 3) // Advance 3 bytes.
                    let input := mload(data)

                    // Write 4 bytes. Optimized for fewer stack operations.
                    mstore8(0, mload(and(shr(18, input), 0x3F)))
                    mstore8(1, mload(and(shr(12, input), 0x3F)))
                    mstore8(2, mload(and(shr(6, input), 0x3F)))
                    mstore8(3, mload(and(input, 0x3F)))
                    mstore(ptr, mload(0x00))

                    ptr := add(ptr, 4) // Advance 4 bytes.

                    if iszero(lt(ptr, end)) { break }
                }

                // Allocate the memory for the string.
                // Add 31 and mask with `not(31)` to round the
                // free memory pointer up the next multiple of 32.
                mstore(0x40, and(add(end, 31), not(31)))

                // Equivalent to `o = [0, 2, 1][dataLength % 3]`.
                let o := div(2, mod(dataLength, 3))

                // Offset `ptr` and pad with '='. We can simply write over the end.
                mstore(sub(ptr, o), shl(240, 0x3d3d))
                // Set `o` to zero if there is padding.
                o := mul(iszero(iszero(noPadding)), o)
                // Zeroize the slot after the string.
                mstore(sub(ptr, o), 0)
                // Write the length of the string.
                mstore(result, sub(encodedLength, o))
            }
        }
    }

    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// Equivalent to `encode(data, false, false)`.
    function encode(bytes memory data) internal pure returns (string memory result) {
        result = encode(data, false, false);
    }

    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// Equivalent to `encode(data, fileSafe, false)`.
    function encode(bytes memory data, bool fileSafe)
        internal
        pure
        returns (string memory result)
    {
        result = encode(data, fileSafe, false);
    }

    /// @dev Encodes base64 encoded `data`.
    ///
    /// Supports:
    /// - RFC 4648 (both standard and file-safe mode).
    /// - RFC 3501 (63: ',').
    ///
    /// Does not support:
    /// - Line breaks.
    ///
    /// Note: For performance reasons,
    /// this function will NOT revert on invalid `data` inputs.
    /// Outputs for invalid inputs will simply be undefined behaviour.
    /// It is the user's responsibility to ensure that the `data`
    /// is a valid base64 encoded string.
    function decode(string memory data) internal pure returns (bytes memory result) {
        /// @solidity memory-safe-assembly
        assembly {
            let dataLength := mload(data)

            if dataLength {
                let decodedLength := mul(shr(2, dataLength), 3)

                for {} 1 {} {
                    // If padded.
                    if iszero(and(dataLength, 3)) {
                        let t := xor(mload(add(data, dataLength)), 0x3d3d)
                        // forgefmt: disable-next-item
                        decodedLength := sub(
                            decodedLength,
                            add(iszero(byte(30, t)), iszero(byte(31, t)))
                        )
                        break
                    }
                    // If non-padded.
                    decodedLength := add(decodedLength, sub(and(dataLength, 3), 1))
                    break
                }
                result := mload(0x40)

                // Write the length of the bytes.
                mstore(result, decodedLength)

                // Skip the first slot, which stores the length.
                let ptr := add(result, 0x20)
                let end := add(ptr, decodedLength)

                // Load the table into the scratch space.
                // Constants are optimized for smaller bytecode with zero gas overhead.
                // `m` also doubles as the mask of the upper 6 bits.
                let m := 0xfc000000fc00686c7074787c8084888c9094989ca0a4a8acb0b4b8bcc0c4c8cc
                mstore(0x5b, m)
                mstore(0x3b, 0x04080c1014181c2024282c3034383c4044484c5054585c6064)
                mstore(0x1a, 0xf8fcf800fcd0d4d8dce0e4e8ecf0f4)

                for {} 1 {} {
                    // Read 4 bytes.
                    data := add(data, 4)
                    let input := mload(data)

                    // Write 3 bytes.
                    // forgefmt: disable-next-item
                    mstore(ptr, or(
                        and(m, mload(byte(28, input))),
                        shr(6, or(
                            and(m, mload(byte(29, input))),
                            shr(6, or(
                                and(m, mload(byte(30, input))),
                                shr(6, mload(byte(31, input)))
                            ))
                        ))
                    ))

                    ptr := add(ptr, 3)

                    if iszero(lt(ptr, end)) { break }
                }

                // Allocate the memory for the string.
                // Add 31 and mask with `not(31)` to round the
                // free memory pointer up the next multiple of 32.
                mstore(0x40, and(add(end, 31), not(31)))
                // Zeroize the slot after the bytes.
                mstore(end, 0)
                // Restore the zero slot.
                mstore(0x60, 0)
            }
        }
    }
}

File 20 of 20 : SignedAllowance.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';

/// @title SignedAllowance
/// @author Simon Fremaux (@dievardump)
contract SignedAllowance {
    using ECDSA for bytes32;

    // list of already used allowances
    mapping(bytes32 => bool) public usedAllowances;

    // address used to sign the allowances
    address private _allowancesSigner;

    /// @notice Helper to know allowancesSigner address
    /// @return the allowance signer address
    function allowancesSigner() public view virtual returns (address) {
        return _allowancesSigner;
    }

    /// @notice Helper that creates the message that signer needs to sign to allow a mint
    ///         this is usually also used when creating the allowances, to ensure "message"
    ///         is the same
    /// @param account the account to allow
    /// @param nonce the nonce
    /// @return the message to sign
    function createMessage(address account, uint256 nonce)
        public
        view
        returns (bytes32)
    {
        return keccak256(abi.encode(account, nonce, address(this)));
    }

    /// @notice Helper that creates a list of messages that signer needs to sign to allow mintings
    /// @param accounts the accounts to allow
    /// @param nonces the corresponding nonces
    /// @return messages the messages to sign
    function createMessages(address[] memory accounts, uint256[] memory nonces)
        external
        view
        returns (bytes32[] memory messages)
    {
        require(accounts.length == nonces.length, '!LENGTH_MISMATCH!');
        messages = new bytes32[](accounts.length);
        for (uint256 i; i < accounts.length; i++) {
            messages[i] = createMessage(accounts[i], nonces[i]);
        }
    }

    /// @notice This function verifies that the current request is valid
    /// @dev It ensures that _allowancesSigner signed a message containing (account, nonce, address(this))
    ///      and that this message was not already used
    /// @param account the account the allowance is associated to
    /// @param nonce the nonce associated to this allowance
    /// @param signature the signature by the allowance signer wallet
    /// @return the message to mark as used
    function validateSignature(
        address account,
        uint256 nonce,
        bytes memory signature
    ) public view returns (bytes32) {
        return
            _validateSignature(account, nonce, signature, allowancesSigner());
    }

    /// @dev It ensures that signer signed a message containing (account, nonce, address(this))
    ///      and that this message was not already used
    /// @param account the account the allowance is associated to
    /// @param nonce the nonce associated to this allowance
    /// @param signature the signature by the allowance signer wallet
    /// @param signer the signer
    /// @return the message to mark as used
    function _validateSignature(
        address account,
        uint256 nonce,
        bytes memory signature,
        address signer
    ) internal view returns (bytes32) {
        bytes32 message = createMessage(account, nonce)
            .toEthSignedMessageHash();

        // verifies that the sha3(account, nonce, address(this)) has been signed by signer
        require(message.recover(signature) == signer, '!INVALID_SIGNATURE!');

        // verifies that the allowances was not already used
        require(usedAllowances[message] == false, '!ALREADY_USED!');

        return message;
    }

    /// @notice internal function that verifies an allowance and marks it as used
    ///         this function throws if signature is wrong or this nonce for this user has already been used
    /// @param account the account the allowance is associated to
    /// @param nonce the nonce
    /// @param signature the signature by the allowance wallet
    function _useAllowance(
        address account,
        uint256 nonce,
        bytes memory signature
    ) internal {
        bytes32 message = validateSignature(account, nonce, signature);
        usedAllowances[message] = true;
    }

    /// @notice Allows to change the allowance signer. This can be used to revoke any signed allowance not already used
    /// @param newSigner the new signer address
    function _setAllowancesSigner(address newSigner) internal {
        _allowancesSigner = newSigner;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_allowancesSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AnySeasonMintNotActive","type":"error"},{"inputs":[],"name":"FinalSeasonReached","type":"error"},{"inputs":[],"name":"IncorrectAmountOfEtherSent","type":"error"},{"inputs":[],"name":"InvalidMintCount","type":"error"},{"inputs":[],"name":"InvalidSeason","type":"error"},{"inputs":[],"name":"MintAllowanceReached","type":"error"},{"inputs":[],"name":"MintAllowanceReachedSignature","type":"error"},{"inputs":[],"name":"MintNotActive","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"SeasonSupplyReached","type":"error"},{"inputs":[],"name":"WithdrawalFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FOUNDER_RESERVE_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_ADDRESS_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SEASONS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY_LAST_SEASON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY_PER_SEASON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressPublicMintedCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"allowancesMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"allowancesMintedLastSeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowancesSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractData","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"collectionName","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"banner","type":"string"},{"internalType":"string","name":"website","type":"string"},{"internalType":"string","name":"royalties","type":"string"},{"internalType":"string","name":"royaltiesRecipient","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counters","outputs":[{"internalType":"uint64","name":"tokenIds","type":"uint64"},{"internalType":"uint64","name":"founderMinted","type":"uint64"},{"internalType":"uint64","name":"currentSeason","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"createMessage","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"nonces","type":"uint256[]"}],"name":"createMessages","outputs":[{"internalType":"bytes32[]","name":"messages","type":"bytes32[]"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"getDna","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getMetaData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowListMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAnySeasonMintActive","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":[],"name":"isContractSealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCryptoTeddiesMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintPhase","type":"bool"}],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_count","type":"uint64"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_count","type":"uint64"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintCryptoTeddiesHolder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_count","type":"uint64"}],"name":"mintFounder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceForCryptoTeddies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_count","type":"uint64"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_count","type":"uint64"},{"internalType":"uint64","name":"_season","type":"uint64"}],"name":"mintSeason","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","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":"rendererContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sealContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"seasonNFTsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"}],"name":"setAllowancesSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"collectionName","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"banner","type":"string"},{"internalType":"string","name":"website","type":"string"},{"internalType":"string","name":"royalties","type":"string"},{"internalType":"string","name":"royaltiesRecipient","type":"string"}],"internalType":"struct ToVInfos.ContractData","name":"_data","type":"tuple"}],"name":"setContractData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setFounderReserveAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxPerAddressPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxSupplyLastSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxSupplyPerSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPriceForCryptoTeddies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rendererContractAddress","type":"address"}],"name":"setRendererContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_season","type":"uint64"}],"name":"setSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startNextSeason","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":[],"name":"toggleAllowListMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleAnySeasonMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleCryptoTeddiesMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintingPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tovs","outputs":[{"internalType":"uint64","name":"season","type":"uint64"},{"internalType":"uint64","name":"seasonTraitCount","type":"uint64"},{"internalType":"uint256","name":"dna","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedAllowances","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"validateSignature","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080346200138057601f62005f3e38819003918201601f19168301916001600160401b0383118484101762000b12578084926020946040528339810103126200138057516001600160a01b038116810362001380576200005e62001385565b9060138252722a32b23234b2b99037b7102b30b1b0ba34b7b760691b60208301526200008962001385565b60038152622a27ab60e91b602082015282519091906001600160401b03811162000b1257600054600181811c9116801562001375575b602082101462000af157601f81116200131d575b506020601f8211600114620012a657819293946000926200129a575b50508160011b916000199060031b1c1916176000555b81516001600160401b03811162000b1257600154600181811c911680156200128f575b602082101462000af157601f811162001225575b50602092601f8211600114620011ba5792819293600092620011ae575b50508160011b916000199060031b1c1916176001555b600a8054336001600160a01b0319821681179092556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600b55603c600e556104c6600f5561016e60105560086011556040516101008082016001600160401b0381118382101762000b1257604052620001f662001385565b60038152622a37ab60e91b602082015282526200021262001385565b60138152722a32b23234b2b99037b7102b30b1b0ba34b7b760691b602080830191909152830152604051906102608201906001600160401b0382118383101762000b12577f206f6620746564646965732061726520707265706172696e6720666f722074689160405261022483527f54656464696573206f6e205661636174696f6e2028546f56292069732061206360208401527f6f6c6c656374696f6e206f6620546564646965732072656c697368696e67207460408401527f6865697220667265652074696d6520696e20746865204772616e64205465646460608401527f7920486f74656c20627920406e756d6f5f302e5c6e20205c6e4173207468652060808401527f73756e207269736573206f6e20612062656175746966756c206d6f726e696e6760a08401527f2c206578636974656d656e7420697320696e2074686520616972206173206e6f60c08401527f74206f6e652c206e6f742074776f2c206275742074687265652067726f75707360e08401528201527f656972206172726976616c2e5c6e54656464696573206c6f76652072656c61786101208201527f6174696f6e2c20676f6f6420666f6f642c207061727479696e6720616e6420656101408201527f6e6a6f79696e67207468656972206c69766573206173206d75636820617320776101608201527f6520646f2e5c6e536f2c206a6f696e2074686520546f567320616e64206265206101808201527f70617274206f6620612066756e6e792c206375746520616e64206265617574696101a08201527f66756c20636f6d6d756e6974792e5c6e5c6e416c6c20746865206d65746164616101c08201527f746120616e6420696d61676573206172652067656e65726174656420616e64206101e08201527f73746f7265642031303025206f6e2d636861696e2e204e6f20495046532c206e6102008201527f6f204150492e204a7573742074686520457468657265756d20626c6f636b63686102208201526330b4b71760e11b610240820152604082015262000509620013a5565b602281527f68747470733a2f2f63727970746f746564646965732e78797a2f626173652e706020820152616e6760f01b604082015260608201526200054d620013a5565b602481527f68747470733a2f2f63727970746f746564646965732e78797a2f62616e6e65726020820152632e706e6760e01b604082015260808201526200059362001385565b601981527f68747470733a2f2f63727970746f746564646965732e78797a00000000000000602082015260a0820152620005cc62001385565b600381526203735360ec1b602082015260c0820152620005eb620013a5565b602a81527f3078643432626439364231313764643642443633323830363230454139383142602082015269231c9b1ba09bb0a2192160b11b604082015260e0820152805180519092906001600160401b03811162000b1257601554600181811c91168015620011a3575b602082101462000af157601f81116200113d575b506020601f8211600114620010ce5781929394600092620010c2575b50508160011b916000199060031b1c1916176015555b602082015180519092906001600160401b03811162000b1257601654600181811c91168015620010b7575b602082101462000af157601f811162001051575b506020601f821160011462000fe2578192939460009262000fd6575b50508160011b916000199060031b1c1916176016555b604081015180519092906001600160401b03811162000b1257601754600181811c9116801562000fcb575b602082101462000af157601f811162000f65575b506020601f821160011462000ef6578192939460009262000eea575b50508160011b916000199060031b1c1916176017555b606082015180519092906001600160401b03811162000b1257601854600181811c9116801562000edf575b602082101462000af157601f811162000e79575b506020601f821160011462000e0a578192939460009262000dfe575b50508160011b916000199060031b1c1916176018555b608081015180519092906001600160401b03811162000b1257601954600181811c9116801562000df3575b602082101462000af157601f811162000d8d575b506020601f821160011462000d03578192939460009262000cf7575b50508160011b916000199060031b1c1916176019555b60a082015180519092906001600160401b03811162000b1257601a54600181811c9116801562000cec575b602082101462000af157601f811162000c97575b506020601f821160011462000c1e578192939460009262000c12575b50508160011b916000199060031b1c191617601a555b60c08101518051906001600160401b03821162000b1257601b54600181811c9116801562000c07575b602082101462000af157601f811162000bb2575b50602090601f831160011462000b345760e09392916000918362000b28575b50508160011b916000199060031b1c191617601b555b015180519091906001600160401b03811162000b1257601c54600181811c9116801562000b07575b602082101462000af157601f811162000a87575b50602092601f821160011462000a1c579281929360009262000a10575b50508160011b916000199060031b1c191617601c555b6658d15e17628000601e55662386f26fc10000601f5560128054600160801b600160c01b031916600160801b179055600d80546001600160a01b0319166001600160a01b0392909216919091179055604051614b189081620013c68239f35b0151905038806200099b565b601f19821693601c60005260206000209160005b86811062000a6e575083600195961062000a54575b505050811b01601c55620009b1565b015160001960f88460031b161c1916905538808062000a45565b9192602060018192868501518155019401920162000a30565b601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211601f830160051c8101916020841062000ae6575b601f0160051c01905b81811062000ad957506200097e565b6000815560010162000aca565b909150819062000ac1565b634e487b7160e01b600052602260045260246000fd5b90607f16906200096a565b634e487b7160e01b600052604160045260246000fd5b0151905038806200092c565b601b600090815260008051602062005efe833981519152929190601f198516905b81811062000b99575091600193918560e09796941062000b7f575b505050811b01601b5562000942565b015160001960f88460031b161c1916905538808062000b70565b9293602060018192878601518155019501930162000b55565b601b60005260008051602062005efe833981519152601f840160051c81016020851062000bff575b601f830160051c8201811062000bf25750506200090d565b6000815560010162000bda565b508062000bda565b90607f1690620008f9565b015190503880620008ba565b601a600090815260008051602062005f1e8339815191529190601f198416905b81811062000c7e5750958360019596971062000c64575b505050811b01601a55620008d0565b015160001960f88460031b161c1916905538808062000c55565b9192602060018192868b01518155019401920162000c3e565b601a60005260008051602062005f1e833981519152601f830160051c81016020841062000ce4575b601f830160051c8201811062000cd75750506200089e565b6000815560010162000cbf565b508062000cbf565b90607f16906200088a565b01519050388062000849565b601960009081527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96959190601f198416905b81811062000d745750958360019596971062000d5a575b505050811b016019556200085f565b015160001960f88460031b161c1916905538808062000d4b565b9192602060018192868b01518155019401920162000d34565b60196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695601f830160051c81016020841062000deb575b601f830160051c8201811062000dde5750506200082d565b6000815560010162000dc6565b508062000dc6565b90607f169062000819565b015190503880620007d8565b601860005260206000209060005b601f198416811062000e605750600193949583601f1981161062000e46575b505050811b01601855620007ee565b015160001960f88460031b161c1916905538808062000e37565b9091602060018192858a01518155019301910162000e18565b60186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e601f830160051c81016020841062000ed7575b601f830160051c8201811062000eca575050620007bc565b6000815560010162000eb2565b508062000eb2565b90607f1690620007a8565b01519050388062000767565b601760005260206000209060005b601f198416811062000f4c5750600193949583601f1981161062000f32575b505050811b016017556200077d565b015160001960f88460031b161c1916905538808062000f23565b9091602060018192858a01518155019301910162000f04565b60176000527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15601f830160051c81016020841062000fc3575b601f830160051c8201811062000fb65750506200074b565b6000815560010162000f9e565b508062000f9e565b90607f169062000737565b015190503880620006f6565b601660005260206000209060005b601f1984168110620010385750600193949583601f198116106200101e575b505050811b016016556200070c565b015160001960f88460031b161c191690553880806200100f565b9091602060018192858a01518155019301910162000ff0565b60166000527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289601f830160051c810160208410620010af575b601f830160051c82018110620010a2575050620006da565b600081556001016200108a565b50806200108a565b90607f1690620006c6565b01519050388062000685565b601560005260206000209060005b601f1984168110620011245750600193949583601f198116106200110a575b505050811b016015556200069b565b015160001960f88460031b161c19169055388080620010fb565b9091602060018192858a015181550193019101620010dc565b60156000527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475601f830160051c8101602084106200119b575b601f830160051c820181106200118e57505062000669565b6000815560010162001176565b508062001176565b90607f169062000655565b01519050388062000159565b601f19821693600160005260206000209160005b8681106200120c5750836001959610620011f2575b505050811b016001556200016f565b015160001960f88460031b161c19169055388080620011e3565b91926020600181928685015181550194019201620011ce565b60016000527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f830160051c8101916020841062001284575b601f0160051c01905b8181106200127757506200013c565b6000815560010162001268565b90915081906200125f565b90607f169062000128565b015190503880620000ef565b600080805260008051602062005ede8339815191529190601f198416905b8181106200130457509583600195969710620012ea575b505050811b0160005562000105565b015160001960f88460031b161c19169055388080620012db565b9192602060018192868b015181550194019201620012c4565b6000805260008051602062005ede833981519152601f830160051c810191602084106200136a575b601f0160051c01905b8181106200135d5750620000d3565b600081556001016200134e565b909150819062001345565b90607f1690620000bf565b600080fd5b60408051919082016001600160401b0381118382101762000b1257604052565b60405190606082016001600160401b0381118382101762000b125760405256fe608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a71461303257508163051e959c1461301057816306fdde0314612f68578163081812fc14612f40578163081d924214612f06578163095ea7b314612d7e5781630d1d7ae514612bfa5781630e0dac1914612bd25781630f925da514612a68578163118612b314611f8a57816318160ddd14611f6b578163195e870814611f3e5781632073447d14611eff578163209904b114611ed857816323b872dd14611eae5781632d6b622414611e895781632e105b4214611e625781632f745c5914611da45781633276b51914611d85578163371a184b14611d455781633913622b14611d1e5781633cca242014611bc25781633ccfd60b14611b675781634047638d14611b29578163422627c314611afe57816342842e0e14611ad55781634f6ccce714611a3057816352a82797146119dc578163542d5041146119b8578163603fc7871461196f57816361eba5521461194e5781636352211e1461191e578163663da73e1461175f578163676e12d4146116a85781636817c76c1461168957816368bd580e146116535781636a56a4ba146115af5781636c102eef146115905781636c4a412c1461137557816370a082311461134f578163715018a6146112f457816371f49c4b146112a65781638838b5c31461127e578163890621da146112255781638b6e575a146111fd5781638da5cb5b146111d55781638fb4e8a91461119957816395d89b41146110b65781639b3e6a8714610fc4578163a22cb46514610ef8578163a6fb205614610edb578163a7a5ed4214610eb4578163addf218e14610e7c578163b1756d0814610e5d578163b88d4fde14610e06578163ba788b7614610dd5578163bbf0ce1d14610d9d578163c55b86c314610d6c578163c87b56dd14610d38578163cfc474fd14610d02578163d8f0c25d14610ce3578163ddf8d7d614610cc4578163e639366d14610c9d578163e8a3d48514610586578163e8b7b31b14610555578163e985e9c514610507578163ebd71577146104e5578163f2fde38b14610405578163f4a0a528146103e357508063f7210633146103a5578063f8dc090f1461036f5763feff19991461033d57600080fd5b3461036b578060031936011261036b5760209061036461035b61317c565b60243590613f95565b9051908152f35b5080fd5b503461036b57602036600319011261036b57806020926001600160a01b0361039561317c565b1681526022845220549051908152f35b503461036b578160031936011261036b576060906012549080519167ffffffffffffffff9081811684528181841c16602085015260801c1690820152f35b83903461036b57602036600319011261036b576103fe613797565b35601e5580f35b9050346104e15760203660031901126104e15761042061317c565b90610429613797565b6001600160a01b03809216928315610478575050600a54826001600160a01b0319821617600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b83903461036b57602036600319011261036b57610500613797565b35601f5580f35b50503461036b578060031936011261036b5760ff8160209361052761317c565b61052f613197565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b83903461036b57602036600319011261036b5761057760ff601d541615614a64565b61057f613797565b35600f5580f35b83833461036b578160031936011261036b578051926020927f7b226e616d65223a220000000000000000000000000000000000000000000000848601528085601654926105d2846131f9565b600194808616908115610c825750600114610c26575b507f222c226465736372697074696f6e223a220000000000000000000000000000008152601754839161061a826131f9565b91868116908115610c085750600114610bab575b50507f222c22696d616765223a2200000000000000000000000000000000000000000081526018548391610661826131f9565b91868116908115610b8d5750600114610b30575b50507f222c2262616e6e6572223a220000000000000000000000000000000000000000815260195483916106a8826131f9565b91868116908115610b125750600114610ab5575b50507f222c2265787465726e616c5f6c696e6b223a22000000000000000000000000008152601a5483916106ef826131f9565b91868116908115610a975750600114610a3a575b50507f222c2273656c6c65725f6665655f62617369735f706f696e7473223a000000008152601b548391610736826131f9565b91868116908115610a1c57506001146109bf575b50507f2c226665655f726563697069656e74223a2200000000000000000000000000008152601c54839161077d826131f9565b918681169081156109a15750600114610944575b50507f227d00000000000000000000000000000000000000000000000000000000000081520390601d19820187526107cd6002809301886136ba565b8692606097519283610843575b888861083f89610830603d825180967f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008783015261082081518092898686019101613134565b810103601d8101875201856136ba565b51928284938452830190613157565b0390f35b909192939594975060038082860104821b948651998a947f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f52603f9161022f197f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f01835281898d890198019b8d8d01935b610904575b505050509061083f987f3d3d000000000000000000000000000000000000000000000000000000000000949392601f1991011688520690048203525284529084808080806107da565b8683910198858a51818160121c16518d538181600c1c16518553818160061c16518b53165188538a51815201978389101561093f57816108b6565b6108bb565b601c85529091508388867f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2115b8584106109865750505050016012018880610791565b8054858501601201528c965092909101918a91889101610970565b90506012935060ff9291921916838301528015150201018880610791565b601b85529091508388867f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc15b858410610a01575050505001601c01888061074a565b8054858501601c01528c965092909101918a918891016109eb565b9050601c935060ff929192191683830152801515020101888061074a565b601a85529091508388867f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e5b858410610a7c5750505050016013018880610703565b8054858501601301528c965092909101918a91889101610a66565b90506013935060ff9291921916838301528015150201018880610703565b601985529091508388867f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96955b858410610af7575050505001600c0188806106bc565b8054858501600c01528c965092909101918a91889101610ae1565b9050600c935060ff92919219168383015280151502010188806106bc565b601885529091508388867fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e5b858410610b72575050505001600b018880610675565b8054858501600b01528c965092909101918a91889101610b5c565b9050600b935060ff9291921916838301528015150201018880610675565b601785529091508388867fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c155b858410610bed575050505001601101888061062e565b8054858501601101528c965092909101918a91889101610bd7565b90506011935060ff929192191683830152801515020101888061062e565b6016845290508287857fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242895b848410610c6757505050508101602901886105e8565b80548c8501602901528b955092909101918991879101610c51565b90506029925060ff19168284015280151502820101886105e8565b9050346104e15760203660031901126104e157602092829135815283805220549051908152f35b50503461036b578160031936011261036b576020906010549051908152f35b50503461036b578160031936011261036b57602090600f549051908152f35b9050346104e15760203660031901126104e15735918215158303610d355750610d2c602092614751565b90519015158152f35b80fd5b828434610d35576020366003190112610d355750610d5961083f92356147e1565b9051918291602083526020830190613157565b83903461036b57602036600319011261036b57610d8e60ff601d541615614a64565b610d96613797565b35600e5580f35b8334610d355780600319360112610d3557610db6613797565b601d5461ff0060ff8260081c161560081b169061ff00191617601d5580f35b83903461036b57602036600319011261036b57610df760ff601d541615614a64565b610dff613797565b3560105580f35b83903461036b57608036600319011261036b57610e2161317c565b610e29613197565b9060643567ffffffffffffffff8111610e5957610e5693610e4c913691016136f8565b9160443591613999565b80f35b8480fd5b50503461036b578160031936011261036b57602090600e549051908152f35b50503461036b57602036600319011261036b578060209267ffffffffffffffff610ea46131ad565b1681526013845220549051908152f35b50503461036b578160031936011261036b5760209060ff601d5460281c1690519015158152f35b919050346104e157826003193601126104e1576020925051908152f35b919050346104e157806003193601126104e157610f1361317c565b9060243591821515809303610e59576001600160a01b031692833314610f825750338452600560205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020606492519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b8383610fcf3661373f565b92610fdb92919261431e565b610fec60ff601d5460181c16614751565b156110a75767ffffffffffffffff80831690601e548215611098578583116110895761101890836145f0565b340361107a5760125460801c168087526013602052828720549188600f54921015611070575b6110489192614311565b116110615750611059939450614603565b6001600b5580f35b85905163417d0b1960e01b8152fd5b601054915061103e565b87835163256c3f0760e21b8152fd5b888451631bc5770560e31b8152fd5b8884516372cf415160e11b8152fd5b85905163914edb0f60e01b8152fd5b50503461036b578160031936011261036b578051908260018054916110da836131f9565b808652928281169081156111715750600114611115575b5050506111038261083f9403836136ba565b51918291602083526020830190613157565b94508085527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8286106111595750505061110382602061083f95820101946110f1565b8054602087870181019190915290950194810161113c565b61083f97508693506020925061110394915060ff191682840152151560051b820101946110f1565b8334610d355780600319360112610d35576111b2613797565b601d5463ff00000060ff8260181c161560181b169063ff000000191617601d5580f35b50503461036b578160031936011261036b576020906001600160a01b03600a54169051908152f35b50503461036b578160031936011261036b576020906001600160a01b03601454169051908152f35b9050346104e15760603660031901126104e15761124061317c565b926044359067ffffffffffffffff8211610d35575092611268610364926020953691016136f8565b6001600160a01b03600d54169160243590613fed565b50503461036b578160031936011261036b576020906001600160a01b03600d54169051908152f35b8334610d35576020366003190112610d35576001600160a01b036112c861317c565b6112d760ff601d541615614a64565b6112df613797565b166001600160a01b0319601454161760145580f35b8334610d355780600319360112610d355761130d613797565b806001600160a01b03600a546001600160a01b03198116600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461036b57602036600319011261036b5760209061036461137061317c565b6137ef565b90508234610d355782600319360112610d355781359167ffffffffffffffff938484116104e157366023850112156104e15783820135946113b58661377f565b6113c1835191826136ba565b8681526020958682016024809960051b83010191368311611569578901905b82821061156d575050508635918211610e595736602383011215610e5957818401359161140c8361377f565b92611419855194856136ba565b808452888885019160051b830101913683116115695789899101915b838310611559575050505080518251036115185780519261146d6114588561377f565b94611465835196876136ba565b80865261377f565b84880190601f1901368237865b83518110156114d9576114ab6001600160a01b036114988387613fd9565b51166114a48388613fd9565b5190613f95565b6114b58288613fd9565b5260001981146114c75760010161147a565b8988601189634e487b7160e01b835252fd5b5081518881528551818a0181905290928392908301918a8a5b82811061150157505050500390f35b8351855286955093810193928101926001016114f2565b6064846011898987519362461bcd60e51b85528401528201527f214c454e4754485f4d49534d41544348210000000000000000000000000000006044820152fd5b8235815291810191899101611435565b8780fd5b81356001600160a01b038116810361158c5781529088019088016113e0565b8880fd5b50503461036b578160031936011261036b576020906011549051908152f35b9050346104e15760203660031901126104e1576115ca6131ad565b916115d3613797565b67ffffffffffffffff8316828115918215611649575b505061163c5750507fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff77ffffffffffffffff000000000000000000000000000000006012549260801b1691161760125580f35b5163d40820c360e01b8152fd5b11905082386115e9565b8334610d355780600319360112610d35576001601d5461167660ff821615614a64565b61167e613797565b60ff191617601d5580f35b50503461036b578160031936011261036b57602090601e549051908152f35b919050346104e157826003193601126104e1576116c3613797565b6012549167ffffffffffffffff8360801c16918183101561173957505077ffffffffffffffff0000000000000000000000000000000060017fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff920160801b1691161760125564ffff00000019601d5416601d5580f35b517fc8424a29000000000000000000000000000000000000000000000000000000008152fd5b9050816003193601126104e1576117746131ad565b6024359267ffffffffffffffff9081851680860361191a5761179461431e565b601d546117a660ff8260201c16614751565b1561190b5760281c60ff16156118e357801580156118da575b6118cb578260125416938188526013602052828820543389526022602052838920549285831697881580156118b7575b6118a9576117ff601e548a6145f0565b340361189b57600f5481831015611892575b61181b8a85614311565b116118845750918786928195948c52601360205201858b205586011667ffffffffffffffff1960125416176012553388526022602052019086205584915b83831061186957856001600b5580f35b8160018092011692019261187d8584614373565b9291611859565b855163417d0b1960e01b8152fd5b50601054611811565b855163256c3f0760e21b8152fd5b8551631bc5770560e31b8152fd5b506118c2858a614311565b601154106117ef565b84825163d40820c360e01b8152fd5b508481116117bf565b8482517f32f02f49000000000000000000000000000000000000000000000000000000008152fd5b85835163914edb0f60e01b8152fd5b8680fd5b828434610d35576020366003190112610d3557506001600160a01b03611946602093356138c4565b915191168152f35b828434610d35576020366003190112610d355750610d5961083f92356149a6565b9050346104e15760203660031901126104e157606092829135815260236020522090600182549201549080519267ffffffffffffffff908181168552821c166020840152820152f35b50503461036b578160031936011261036b5760209060ff601d541690519015158152f35b83836119e73661373f565b926119f392919261431e565b611a0460ff601d5460101c16614751565b156110a75767ffffffffffffffff80831690601f548215611098578583116110895761101890836145f0565b90508234610d35576020366003190112610d355750803590600854821015611a6c57602083611a5e84613f48565b91905490519160031b1c8152f35b608490602084519162461bcd60e51b8352820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152fd5b50503461036b57610e5690611ae9366131c4565b91925192611af684613688565b858452613999565b9050346104e15760203660031901126104e15781602093600192358152602385522001549051908152f35b8334610d355780600319360112610d3557611b42613797565b601d5464ff0000000060ff8260201c161560201b169064ff00000000191617601d5580f35b919050346104e157826003193601126104e157611b82613797565b8280808047335af1611b92613d84565b5015611b9c578280f35b517f27fcd9d1000000000000000000000000000000000000000000000000000000008152fd5b828434610d355780600319360112610d355750805180611be181613233565b03611bec90826136ba565b81519182611bf9816132d7565b03611c0490846136ba565b805180611c108161335e565b03611c1b90826136ba565b815180611c27816133e5565b03611c3290826136ba565b825180611c3e8161346c565b03611c4990826136ba565b83519182611c56816134f3565b03611c6190846136ba565b84519384611c6e8161357a565b03611c7990866136ba565b85519586611c8681613601565b03611c9190886136ba565b8051988998610100808b528a01611ca791613157565b89810360208b0152611cb891613157565b9088820390890152611cc991613157565b8681036060880152611cda91613157565b8581036080870152611ceb91613157565b84810360a0860152611cfc91613157565b83810360c0850152611d0d91613157565b82810360e084015261083f91613157565b50503461036b578160031936011261036b5760209060ff601d5460101c1690519015158152f35b8334610d355780600319360112610d3557611d5e613797565b601d5465ff000000000060ff8260281c161560281b169065ff0000000000191617601d5580f35b50503461036b578160031936011261036b57602090601f549051908152f35b828434610d355781600319360112610d3557611dbe61317c565b60243590611dcb816137ef565b821015611df95760209284926001600160a01b03849316825260068552828220908252845220549051908152f35b608485602086519162461bcd60e51b8352820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152fd5b50503461036b578160031936011261036b5760209060ff601d5460081c1690519015158152f35b50503461036b578160031936011261036b57601d549051602091821c60ff1615158152f35b8334610d3557610e56611ec0366131c4565b91611ed3611ece8433613a2f565b613928565b613b0e565b50503461036b578160031936011261036b5760209060ff601d5460181c1690519015158152f35b8334610d35576020366003190112610d35576001600160a01b03611f2161317c565b611f29613797565b166001600160a01b0319600d541617600d5580f35b9050346104e15760203660031901126104e1578160209360ff92358152600c855220541690519015158152f35b50503461036b578160031936011261036b576020906008549051908152f35b8334610d355760031991602036840181136104e15767ffffffffffffffff908235828111610e5957610100818501968236030112610e5957611fca613797565b611fd48680614aaf565b848198929811612a555780611fea6015546131f9565b98601f998a81116129ea575b5088908a831160011461296557899261295a575b50508160011b916000199060031b1c1916176015555b60249161202f83820183614aaf565b908682116124615781906120446016546131f9565b8b81116128ef575b5089908b831160011461286a578a9261285f575b50508160011b916000199060031b1c1916176016555b6120836044820183614aaf565b908682116124615781906120986017546131f9565b8b81116127f4575b5089908b831160011461276f578a92612764575b50508160011b916000199060031b1c1916176017555b6120d76064820183614aaf565b908682116124615781906120ec6018546131f9565b8b81116126f9575b5089908b8311600114612674578a92612669575b50508160011b916000199060031b1c1916176018555b61212b6084820183614aaf565b908682116124615781906121406019546131f9565b8b81116125fe575b5089908b8311600114612579578a9261256e575b50508160011b916000199060031b1c1916176019555b61217f60a4820183614aaf565b90868211612461578190612194601a546131f9565b8b8111612503575b5089908b831160011461247e578a92612473575b50508160011b916000199060031b1c191617601a555b6121d360c4820183614aaf565b90868211612461576121e6601b546131f9565b8a8111612402575b5088908a831160011461237857918061222a95949260e4948c9261236d575b50508160011b916000199060031b1c191617601b555b0190614aaf565b949093851161235c575050612240601c546131f9565b858111612301575b50839483116001146122835750928293829392612278575b50508160011b916000199060031b1c191617601c5580f35b013590508380612260565b601f198316947f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211929185905b8782106122e95750508360019596106122cf575b505050811b01601c5580f35b0135600019600384901b60f8161c191690558380806122c3565b806001849682949587013581550195019201906122af565b7f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2118680860160051c820192848710612353575b0160051c01905b8181106123485750612248565b85815560010161233b565b92508192612334565b60418691634e487b7160e01b835252fd5b013590508c8061220d565b601b8a527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc191601f1984168b5b898282106123ec57505092600192859260e49661222a999896106123d2575b505050811b01601b55612223565b0135600019600384901b60f8161c191690558c80806123c4565b60018496829395870135815501950192016123a5565b601b8a527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc18b80850160051c820192898610612458575b0160051c01905b81811061244d57506121ee565b8a8155600101612440565b92508192612439565b848960418a634e487b7160e01b835252fd5b013590508a806121b0565b601a8b527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e925090601f1984168b5b898282106124ed5750509084600195949392106124d3575b505050811b01601a556121c6565b0135600019600384901b60f8161c191690558a80806124c5565b60018496829395870135815501950192016124ad565b909150601a8a527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e8b80850160051c820192898610612565575b9085949392910160051c01905b818110612557575061219c565b8b815584935060010161254a565b9250819261253d565b013590508a8061215c565b60198b527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695925090601f1984168b5b898282106125e85750509084600195949392106125ce575b505050811b01601955612172565b0135600019600384901b60f8161c191690558a80806125c0565b60018496829395870135815501950192016125a8565b90915060198a527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96958b80850160051c820192898610612660575b9085949392910160051c01905b8181106126525750612148565b8b8155849350600101612645565b92508192612638565b013590508a80612108565b60188b527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e925090601f1984168b5b898282106126e35750509084600195949392106126c9575b505050811b0160185561211e565b0135600019600384901b60f8161c191690558a80806126bb565b60018496829395870135815501950192016126a3565b90915060188a527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e8b80850160051c82019289861061275b575b9085949392910160051c01905b81811061274d57506120f4565b8b8155849350600101612740565b92508192612733565b013590508a806120b4565b60178b527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15925090601f1984168b5b898282106127de5750509084600195949392106127c4575b505050811b016017556120ca565b0135600019600384901b60f8161c191690558a80806127b6565b600184968293958701358155019501920161279e565b90915060178a527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c158b80850160051c820192898610612856575b9085949392910160051c01905b81811061284857506120a0565b8b815584935060010161283b565b9250819261282e565b013590508a80612060565b60168b527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289925090601f1984168b5b898282106128d95750509084600195949392106128bf575b505050811b01601655612076565b0135600019600384901b60f8161c191690558a80806128b1565b6001849682939587013581550195019201612899565b90915060168a527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242898b80850160051c820192898610612951575b9085949392910160051c01905b818110612943575061204c565b8b8155849350600101612936565b92508192612929565b01359050898061200a565b60158a527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475925090601f1984168a5b888282106129d45750509084600195949392106129ba575b505050811b01601555612020565b0135600019600384901b60f8161c191690558980806129ac565b6001849682939587013581550195019201612994565b909150601589527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4758a80850160051c820192888610612a4c575b9085949392910160051c01905b818110612a3e5750611ff6565b8a8155849350600101612a31565b92508192612a24565b602487604188634e487b7160e01b835252fd5b9050346104e15760203660031901126104e157612a836131ad565b91612a8c613797565b612a9461431e565b6012549267ffffffffffffffff908185841c1692828660801c169586885260136020528188205490848416968715612bc457878701868111612bb15786600e54911611612ba357808910612b9b576010545b612af08985614311565b11612b8d5750839291817fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff6fffffffffffffffff00000000000000008897888c96169a01861b16911617601255888a526013602052019088205583011667ffffffffffffffff19601254161760125584915b838310612b7257856001600b5580f35b81600180920116920192612b868584614373565b9291612b62565b835163417d0b1960e01b8152fd5b600f54612ae6565b8351631bc5770560e31b8152fd5b60248b601184634e487b7160e01b835252fd5b83516372cf415160e11b8152fd5b9050346104e15760203660031901126104e15760209282913581526021845220549051908152f35b916020915036600319018213612d7a57612c126131ad565b90612c1b61431e565b612c2b60ff601d54851c16614751565b15612d6b5767ffffffffffffffff9081831693601e5490601154918615612d5c57828711612d4d57612c5d90876145f0565b3403612d3e5760125494848660801c1697888a5260138352848a2054600f5489838c1015612d34575b612c909192614311565b11612d2657338a5260228352848a205493612cab858a614311565b11612d185750869291856022928a8c5260138352868c20868382549b169a01905588011667ffffffffffffffff196012541617601255338a5252019086205584915b838310612cfd57856001600b5580f35b81600180920116920192612d118584614373565b9291612ced565b8451631bc5770560e31b8152fd5b845163417d0b1960e01b8152fd5b6010549150612c86565b86835163256c3f0760e21b8152fd5b878451631bc5770560e31b8152fd5b8784516372cf415160e11b8152fd5b83905163914edb0f60e01b8152fd5b8380fd5b9050346104e157816003193601126104e157612d9861317c565b90602435926001600160a01b03918280612db1876138c4565b16941693808514612e9d57803314908115612e7e575b5015612e16578486526020528420826001600160a01b0319825416179055612dee836138c4565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b6020608492519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600560205281862033875260205260ff828720541638612dc7565b506020608492519162461bcd60e51b8352820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152fd5b8334610d355780600319360112610d3557612f1f613797565b601d5462ff000060ff8260101c161560101b169062ff0000191617601d5580f35b828434610d35576020366003190112610d3557506001600160a01b03611946602093356138e6565b50503461036b578160031936011261036b57805190828054612f89816131f9565b808552916001918083169081156111715750600114612fb4575050506111038261083f9403836136ba565b80809650527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b828610612ff85750505061110382602061083f95820101946110f1565b80546020878701810191909152909501948101612fdb565b83903461036b57602036600319011261036b5761302b613797565b3560115580f35b8491346104e15760203660031901126104e157357fffffffff0000000000000000000000000000000000000000000000000000000081168091036104e157602092507f780e9d630000000000000000000000000000000000000000000000000000000081149081156130a6575b5015158152f35b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150811561310a575b81156130e0575b508361309f565b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836130d9565b7f5b5e139f00000000000000000000000000000000000000000000000000000000811491506130d2565b60005b8381106131475750506000910152565b8181015183820152602001613137565b9060209161317081518092818552858086019101613134565b601f01601f1916010190565b600435906001600160a01b038216820361319257565b600080fd5b602435906001600160a01b038216820361319257565b6004359067ffffffffffffffff8216820361319257565b6060906003190112613192576001600160a01b0390600435828116810361319257916024359081168103613192579060443590565b90600182811c92168015613229575b602083101461321357565b634e487b7160e01b600052602260045260246000fd5b91607f1691613208565b60155460009291613243826131f9565b808252916001908181169081156132ba575060011461326157505050565b9192935060156000527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475916000925b8484106132a257505060209250010190565b80546020858501810191909152909301928101613290565b915050602093945060ff929192191683830152151560051b010190565b601654600092916132e7826131f9565b808252916001908181169081156132ba575060011461330557505050565b9192935060166000527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289916000925b84841061334657505060209250010190565b80546020858501810191909152909301928101613334565b6017546000929161336e826131f9565b808252916001908181169081156132ba575060011461338c57505050565b9192935060176000527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15916000925b8484106133cd57505060209250010190565b805460208585018101919091529093019281016133bb565b601854600092916133f5826131f9565b808252916001908181169081156132ba575060011461341357505050565b9192935060186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e916000925b84841061345457505060209250010190565b80546020858501810191909152909301928101613442565b6019546000929161347c826131f9565b808252916001908181169081156132ba575060011461349a57505050565b9192935060196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695916000925b8484106134db57505060209250010190565b805460208585018101919091529093019281016134c9565b601a5460009291613503826131f9565b808252916001908181169081156132ba575060011461352157505050565b91929350601a6000527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e916000925b84841061356257505060209250010190565b80546020858501810191909152909301928101613550565b601b546000929161358a826131f9565b808252916001908181169081156132ba57506001146135a857505050565b91929350601b6000527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc1916000925b8484106135e957505060209250010190565b805460208585018101919091529093019281016135d7565b601c5460009291613611826131f9565b808252916001908181169081156132ba575060011461362f57505050565b91929350601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211916000925b84841061367057505060209250010190565b8054602085850181019190915290930192810161365e565b6020810190811067ffffffffffffffff8211176136a457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176136a457604052565b67ffffffffffffffff81116136a457601f01601f191660200190565b81601f820112156131925780359061370f826136dc565b9261371d60405194856136ba565b8284526020838301011161319257816000926020809301838601378301015290565b60606003198201126131925767ffffffffffffffff9160043583811681036131925792602435926044359182116131925761377c916004016136f8565b90565b67ffffffffffffffff81116136a45760051b60200190565b6001600160a01b03600a541633036137ab57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b0316801561380f57600052600360205260406000205490565b608460405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152fd5b1561388057565b606460405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152fd5b60005260026020526001600160a01b036040600020541661377c811515613879565b61390e6139098260005260026020526001600160a01b0360406000205416151590565b613879565b60005260046020526001600160a01b036040600020541690565b1561392f57565b608460405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152fd5b906139bd9392916139ad611ece8433613a2f565b6139b8838383613b0e565b613db4565b156139c457565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b906001600160a01b038080613a43846138c4565b16931691838314938415613a76575b508315613a60575b50505090565b613a6c919293506138e6565b1614388080613a5a565b909350600052600560205260406000208260005260205260ff604060002054169238613a52565b15613aa457565b608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152fd5b613b3291613b1b846138c4565b6001600160a01b0393848416939185168414613a9d565b838216938415613d1b57839182613c62575090506008549085600052600960205281604060002055680100000000000000008210156136a457613bb692613b9d87613b84856001899701600855613f48565b90919082549060031b91821b91600019901b1916179055565b828603613c2f575b50613baf866138c4565b1614613a9d565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526004602052604081206001600160a01b03199081815416905583825260036020526040822060001981540190558482526040822060018154019055858252600260205284604083209182541617905580a4565b613c38906137ef565b60406000878152600660205281812083825260205288828220558881526007602052205538613ba5565b858303613c74575b50613bb692613b9d565b613c7f9192506137ef565b600019810191908211613d0557613bb69284926000908882526020906007825260409182842054828103613cce575b508a84528383812055868452600681528284209184525281205592613c6a565b8785526006825283852083865282528385205488865260068352848620828752835280858720558552600782528385205538613cae565b634e487b7160e01b600052601160045260246000fd5b608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b3d15613daf573d90613d95826136dc565b91613da360405193846136ba565b82523d6000602084013e565b606090565b91926000929190813b15613f3e57602091613e2491856040519586809581947f150b7a02000000000000000000000000000000000000000000000000000000009b8c84523360048501526001600160a01b0380951660248501526044840152608060648401526084830190613157565b0393165af190829082613ede575b5050613eb857613e40613d84565b80519081613eb35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b909192506020813d8211613f36575b81613efa602093836136ba565b8101031261036b5751907fffffffff0000000000000000000000000000000000000000000000000000000082168203610d355750903880613e32565b3d9150613eed565b5050505050600190565b600854811015613f7f5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b634e487b7160e01b600052603260045260246000fd5b90604051906001600160a01b0360208301931683526040820152306060820152606081526080810181811067ffffffffffffffff8211176136a45760405251902090565b8051821015613f7f5760209160051b010190565b90613ffa91939293613f95565b906040519160208301907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008252603c840152603c8352606083019083821067ffffffffffffffff8311176136a4576140659361405d92604052519020938461424a565b929092614118565b6001600160a01b038091169116036140d45780600052600c60205260ff604060002054166140905790565b606460405162461bcd60e51b815260206004820152600e60248201527f21414c52454144595f55534544210000000000000000000000000000000000006044820152fd5b606460405162461bcd60e51b815260206004820152601360248201527f21494e56414c49445f5349474e415455524521000000000000000000000000006044820152fd5b600581101561423457806141295750565b6001810361417557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141c157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ca57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461427857614274916020820151906060604084015193015160001a90614282565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143055791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156142f85781516001600160a01b038116156142f2579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b91908201809211613d0557565b6002600b541461432f576002600b55565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b6040805167ffffffffffffffff94939092909160608401868111858210176136a4578152600095868552602080860193888552838701958987528451838101908382523360601b878201524460548201524260748201526074815260a0810181811087821117614591578752519020875283168752331561454f576144176144118260005260026020526001600160a01b0360406000205416151590565b156145a5565b600854818a526009835280858b20556801000000000000000081101561453b57600197989960236fffffffffffffffff000000000000000094846144877fffffffffffffffffffffffffffffffff000000000000000000000000000000009896613b84878f8d9901600855613f48565b614490336137ef565b338552600683528585208186528352818686205581855260078352858520556144d26144118260005260026020526001600160a01b0360406000205416151590565b338452600382528484208c815401905580845260028252848420336001600160a01b031982541617905533847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a452209751169287549451901b1692161717835551910155565b60248a634e487b7160e01b81526041600452fd5b60648285519062461bcd60e51b825280600483015260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b60248d634e487b7160e01b81526041600452fd5b156145ac57565b606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b81810292918115918404141715613d0557565b919067ffffffffffffffff908184169261464c8360125460801c169160048310159283600014614749576146379085614311565b905b6001600160a01b03600d54169133613fed565b91600085831561473557505082600052602160205261467085604060002054614311565b1161470b57156146f457600052602160205260406000208281540190555b6012549080808360801c169485600052601360205260406000208583825496169501905583011667ffffffffffffffff1960125416176012556000915b8383106146d9575050505050565b816001809201169201926146ed8584614373565b92916146cb565b60005260208052604060002082815401905561468e565b60046040517f2ed21ab3000000000000000000000000000000000000000000000000000000008152fd5b604082866146709452602080522054614311565b508390614639565b60ff601d5460081c16159081614765575090565b905080156147705790565b506001600160a01b03600a5416331490565b6020818303126131925780519067ffffffffffffffff8211613192570181601f820112156131925780516147b5816136dc565b926147c360405194856136ba565b818452602082840101116131925761377c9160208085019101613134565b6148018160005260026020526001600160a01b0360406000205416151590565b1561497c576001600160a01b036014541680156149675760008281938252602360205260408220926148846040519485937f6431bb38000000000000000000000000000000000000000000000000000000008552600485015260248401906001604091805467ffffffffffffffff908181168652841c1660208501520154910152565b60a0608483015261010060a483015281806149296148a56101a48301613233565b6149196149096148f96148e96148d96148ca60a31996878a82030160c48b01526132d7565b868982030160e48a015261335e565b85888203016101048901526133e5565b848782030161012488015261346c565b83868203016101448701526134f3565b828582030161016486015261357a565b9083820301610184840152613601565b03915afa91821561495b57809261493f57505090565b61377c92503d8091833e61495381836136ba565b810190614782565b604051903d90823e3d90fd5b505060405161497581613688565b6000815290565b60046040517f9430a17e000000000000000000000000000000000000000000000000000000008152fd5b6149c68160005260026020526001600160a01b0360406000205416151590565b1561497c576001600160a01b0360145416801561496757608491614a509160009382859384526023602052604084209260405195869485937f7155a105000000000000000000000000000000000000000000000000000000008552600485015260248401906001604091805467ffffffffffffffff908181168652841c1660208501520154910152565b5afa91821561495b57809261493f57505090565b15614a6b57565b606460405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206973207365616c656400000000000000000000000000006044820152fd5b903590601e1981360301821215613192570180359067ffffffffffffffff8211613192576020019181360383136131925756fea26469706673582212202eb4bd5c24a26227ccbc539b7d6802a7c9c9e95380a22302deee3b1022471a5c64736f6c63430008120033290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5633ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc1057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e00000000000000000000000047d6f870b98b440ba54b047f1a27021dbf25ad0c

Deployed Bytecode

0x608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a71461303257508163051e959c1461301057816306fdde0314612f68578163081812fc14612f40578163081d924214612f06578163095ea7b314612d7e5781630d1d7ae514612bfa5781630e0dac1914612bd25781630f925da514612a68578163118612b314611f8a57816318160ddd14611f6b578163195e870814611f3e5781632073447d14611eff578163209904b114611ed857816323b872dd14611eae5781632d6b622414611e895781632e105b4214611e625781632f745c5914611da45781633276b51914611d85578163371a184b14611d455781633913622b14611d1e5781633cca242014611bc25781633ccfd60b14611b675781634047638d14611b29578163422627c314611afe57816342842e0e14611ad55781634f6ccce714611a3057816352a82797146119dc578163542d5041146119b8578163603fc7871461196f57816361eba5521461194e5781636352211e1461191e578163663da73e1461175f578163676e12d4146116a85781636817c76c1461168957816368bd580e146116535781636a56a4ba146115af5781636c102eef146115905781636c4a412c1461137557816370a082311461134f578163715018a6146112f457816371f49c4b146112a65781638838b5c31461127e578163890621da146112255781638b6e575a146111fd5781638da5cb5b146111d55781638fb4e8a91461119957816395d89b41146110b65781639b3e6a8714610fc4578163a22cb46514610ef8578163a6fb205614610edb578163a7a5ed4214610eb4578163addf218e14610e7c578163b1756d0814610e5d578163b88d4fde14610e06578163ba788b7614610dd5578163bbf0ce1d14610d9d578163c55b86c314610d6c578163c87b56dd14610d38578163cfc474fd14610d02578163d8f0c25d14610ce3578163ddf8d7d614610cc4578163e639366d14610c9d578163e8a3d48514610586578163e8b7b31b14610555578163e985e9c514610507578163ebd71577146104e5578163f2fde38b14610405578163f4a0a528146103e357508063f7210633146103a5578063f8dc090f1461036f5763feff19991461033d57600080fd5b3461036b578060031936011261036b5760209061036461035b61317c565b60243590613f95565b9051908152f35b5080fd5b503461036b57602036600319011261036b57806020926001600160a01b0361039561317c565b1681526022845220549051908152f35b503461036b578160031936011261036b576060906012549080519167ffffffffffffffff9081811684528181841c16602085015260801c1690820152f35b83903461036b57602036600319011261036b576103fe613797565b35601e5580f35b9050346104e15760203660031901126104e15761042061317c565b90610429613797565b6001600160a01b03809216928315610478575050600a54826001600160a01b0319821617600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b83903461036b57602036600319011261036b57610500613797565b35601f5580f35b50503461036b578060031936011261036b5760ff8160209361052761317c565b61052f613197565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b83903461036b57602036600319011261036b5761057760ff601d541615614a64565b61057f613797565b35600f5580f35b83833461036b578160031936011261036b578051926020927f7b226e616d65223a220000000000000000000000000000000000000000000000848601528085601654926105d2846131f9565b600194808616908115610c825750600114610c26575b507f222c226465736372697074696f6e223a220000000000000000000000000000008152601754839161061a826131f9565b91868116908115610c085750600114610bab575b50507f222c22696d616765223a2200000000000000000000000000000000000000000081526018548391610661826131f9565b91868116908115610b8d5750600114610b30575b50507f222c2262616e6e6572223a220000000000000000000000000000000000000000815260195483916106a8826131f9565b91868116908115610b125750600114610ab5575b50507f222c2265787465726e616c5f6c696e6b223a22000000000000000000000000008152601a5483916106ef826131f9565b91868116908115610a975750600114610a3a575b50507f222c2273656c6c65725f6665655f62617369735f706f696e7473223a000000008152601b548391610736826131f9565b91868116908115610a1c57506001146109bf575b50507f2c226665655f726563697069656e74223a2200000000000000000000000000008152601c54839161077d826131f9565b918681169081156109a15750600114610944575b50507f227d00000000000000000000000000000000000000000000000000000000000081520390601d19820187526107cd6002809301886136ba565b8692606097519283610843575b888861083f89610830603d825180967f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008783015261082081518092898686019101613134565b810103601d8101875201856136ba565b51928284938452830190613157565b0390f35b909192939594975060038082860104821b948651998a947f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f52603f9161022f197f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f01835281898d890198019b8d8d01935b610904575b505050509061083f987f3d3d000000000000000000000000000000000000000000000000000000000000949392601f1991011688520690048203525284529084808080806107da565b8683910198858a51818160121c16518d538181600c1c16518553818160061c16518b53165188538a51815201978389101561093f57816108b6565b6108bb565b601c85529091508388867f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2115b8584106109865750505050016012018880610791565b8054858501601201528c965092909101918a91889101610970565b90506012935060ff9291921916838301528015150201018880610791565b601b85529091508388867f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc15b858410610a01575050505001601c01888061074a565b8054858501601c01528c965092909101918a918891016109eb565b9050601c935060ff929192191683830152801515020101888061074a565b601a85529091508388867f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e5b858410610a7c5750505050016013018880610703565b8054858501601301528c965092909101918a91889101610a66565b90506013935060ff9291921916838301528015150201018880610703565b601985529091508388867f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96955b858410610af7575050505001600c0188806106bc565b8054858501600c01528c965092909101918a91889101610ae1565b9050600c935060ff92919219168383015280151502010188806106bc565b601885529091508388867fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e5b858410610b72575050505001600b018880610675565b8054858501600b01528c965092909101918a91889101610b5c565b9050600b935060ff9291921916838301528015150201018880610675565b601785529091508388867fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c155b858410610bed575050505001601101888061062e565b8054858501601101528c965092909101918a91889101610bd7565b90506011935060ff929192191683830152801515020101888061062e565b6016845290508287857fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242895b848410610c6757505050508101602901886105e8565b80548c8501602901528b955092909101918991879101610c51565b90506029925060ff19168284015280151502820101886105e8565b9050346104e15760203660031901126104e157602092829135815283805220549051908152f35b50503461036b578160031936011261036b576020906010549051908152f35b50503461036b578160031936011261036b57602090600f549051908152f35b9050346104e15760203660031901126104e15735918215158303610d355750610d2c602092614751565b90519015158152f35b80fd5b828434610d35576020366003190112610d355750610d5961083f92356147e1565b9051918291602083526020830190613157565b83903461036b57602036600319011261036b57610d8e60ff601d541615614a64565b610d96613797565b35600e5580f35b8334610d355780600319360112610d3557610db6613797565b601d5461ff0060ff8260081c161560081b169061ff00191617601d5580f35b83903461036b57602036600319011261036b57610df760ff601d541615614a64565b610dff613797565b3560105580f35b83903461036b57608036600319011261036b57610e2161317c565b610e29613197565b9060643567ffffffffffffffff8111610e5957610e5693610e4c913691016136f8565b9160443591613999565b80f35b8480fd5b50503461036b578160031936011261036b57602090600e549051908152f35b50503461036b57602036600319011261036b578060209267ffffffffffffffff610ea46131ad565b1681526013845220549051908152f35b50503461036b578160031936011261036b5760209060ff601d5460281c1690519015158152f35b919050346104e157826003193601126104e1576020925051908152f35b919050346104e157806003193601126104e157610f1361317c565b9060243591821515809303610e59576001600160a01b031692833314610f825750338452600560205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020606492519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b8383610fcf3661373f565b92610fdb92919261431e565b610fec60ff601d5460181c16614751565b156110a75767ffffffffffffffff80831690601e548215611098578583116110895761101890836145f0565b340361107a5760125460801c168087526013602052828720549188600f54921015611070575b6110489192614311565b116110615750611059939450614603565b6001600b5580f35b85905163417d0b1960e01b8152fd5b601054915061103e565b87835163256c3f0760e21b8152fd5b888451631bc5770560e31b8152fd5b8884516372cf415160e11b8152fd5b85905163914edb0f60e01b8152fd5b50503461036b578160031936011261036b578051908260018054916110da836131f9565b808652928281169081156111715750600114611115575b5050506111038261083f9403836136ba565b51918291602083526020830190613157565b94508085527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8286106111595750505061110382602061083f95820101946110f1565b8054602087870181019190915290950194810161113c565b61083f97508693506020925061110394915060ff191682840152151560051b820101946110f1565b8334610d355780600319360112610d35576111b2613797565b601d5463ff00000060ff8260181c161560181b169063ff000000191617601d5580f35b50503461036b578160031936011261036b576020906001600160a01b03600a54169051908152f35b50503461036b578160031936011261036b576020906001600160a01b03601454169051908152f35b9050346104e15760603660031901126104e15761124061317c565b926044359067ffffffffffffffff8211610d35575092611268610364926020953691016136f8565b6001600160a01b03600d54169160243590613fed565b50503461036b578160031936011261036b576020906001600160a01b03600d54169051908152f35b8334610d35576020366003190112610d35576001600160a01b036112c861317c565b6112d760ff601d541615614a64565b6112df613797565b166001600160a01b0319601454161760145580f35b8334610d355780600319360112610d355761130d613797565b806001600160a01b03600a546001600160a01b03198116600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50503461036b57602036600319011261036b5760209061036461137061317c565b6137ef565b90508234610d355782600319360112610d355781359167ffffffffffffffff938484116104e157366023850112156104e15783820135946113b58661377f565b6113c1835191826136ba565b8681526020958682016024809960051b83010191368311611569578901905b82821061156d575050508635918211610e595736602383011215610e5957818401359161140c8361377f565b92611419855194856136ba565b808452888885019160051b830101913683116115695789899101915b838310611559575050505080518251036115185780519261146d6114588561377f565b94611465835196876136ba565b80865261377f565b84880190601f1901368237865b83518110156114d9576114ab6001600160a01b036114988387613fd9565b51166114a48388613fd9565b5190613f95565b6114b58288613fd9565b5260001981146114c75760010161147a565b8988601189634e487b7160e01b835252fd5b5081518881528551818a0181905290928392908301918a8a5b82811061150157505050500390f35b8351855286955093810193928101926001016114f2565b6064846011898987519362461bcd60e51b85528401528201527f214c454e4754485f4d49534d41544348210000000000000000000000000000006044820152fd5b8235815291810191899101611435565b8780fd5b81356001600160a01b038116810361158c5781529088019088016113e0565b8880fd5b50503461036b578160031936011261036b576020906011549051908152f35b9050346104e15760203660031901126104e1576115ca6131ad565b916115d3613797565b67ffffffffffffffff8316828115918215611649575b505061163c5750507fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff77ffffffffffffffff000000000000000000000000000000006012549260801b1691161760125580f35b5163d40820c360e01b8152fd5b11905082386115e9565b8334610d355780600319360112610d35576001601d5461167660ff821615614a64565b61167e613797565b60ff191617601d5580f35b50503461036b578160031936011261036b57602090601e549051908152f35b919050346104e157826003193601126104e1576116c3613797565b6012549167ffffffffffffffff8360801c16918183101561173957505077ffffffffffffffff0000000000000000000000000000000060017fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff920160801b1691161760125564ffff00000019601d5416601d5580f35b517fc8424a29000000000000000000000000000000000000000000000000000000008152fd5b9050816003193601126104e1576117746131ad565b6024359267ffffffffffffffff9081851680860361191a5761179461431e565b601d546117a660ff8260201c16614751565b1561190b5760281c60ff16156118e357801580156118da575b6118cb578260125416938188526013602052828820543389526022602052838920549285831697881580156118b7575b6118a9576117ff601e548a6145f0565b340361189b57600f5481831015611892575b61181b8a85614311565b116118845750918786928195948c52601360205201858b205586011667ffffffffffffffff1960125416176012553388526022602052019086205584915b83831061186957856001600b5580f35b8160018092011692019261187d8584614373565b9291611859565b855163417d0b1960e01b8152fd5b50601054611811565b855163256c3f0760e21b8152fd5b8551631bc5770560e31b8152fd5b506118c2858a614311565b601154106117ef565b84825163d40820c360e01b8152fd5b508481116117bf565b8482517f32f02f49000000000000000000000000000000000000000000000000000000008152fd5b85835163914edb0f60e01b8152fd5b8680fd5b828434610d35576020366003190112610d3557506001600160a01b03611946602093356138c4565b915191168152f35b828434610d35576020366003190112610d355750610d5961083f92356149a6565b9050346104e15760203660031901126104e157606092829135815260236020522090600182549201549080519267ffffffffffffffff908181168552821c166020840152820152f35b50503461036b578160031936011261036b5760209060ff601d541690519015158152f35b83836119e73661373f565b926119f392919261431e565b611a0460ff601d5460101c16614751565b156110a75767ffffffffffffffff80831690601f548215611098578583116110895761101890836145f0565b90508234610d35576020366003190112610d355750803590600854821015611a6c57602083611a5e84613f48565b91905490519160031b1c8152f35b608490602084519162461bcd60e51b8352820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152fd5b50503461036b57610e5690611ae9366131c4565b91925192611af684613688565b858452613999565b9050346104e15760203660031901126104e15781602093600192358152602385522001549051908152f35b8334610d355780600319360112610d3557611b42613797565b601d5464ff0000000060ff8260201c161560201b169064ff00000000191617601d5580f35b919050346104e157826003193601126104e157611b82613797565b8280808047335af1611b92613d84565b5015611b9c578280f35b517f27fcd9d1000000000000000000000000000000000000000000000000000000008152fd5b828434610d355780600319360112610d355750805180611be181613233565b03611bec90826136ba565b81519182611bf9816132d7565b03611c0490846136ba565b805180611c108161335e565b03611c1b90826136ba565b815180611c27816133e5565b03611c3290826136ba565b825180611c3e8161346c565b03611c4990826136ba565b83519182611c56816134f3565b03611c6190846136ba565b84519384611c6e8161357a565b03611c7990866136ba565b85519586611c8681613601565b03611c9190886136ba565b8051988998610100808b528a01611ca791613157565b89810360208b0152611cb891613157565b9088820390890152611cc991613157565b8681036060880152611cda91613157565b8581036080870152611ceb91613157565b84810360a0860152611cfc91613157565b83810360c0850152611d0d91613157565b82810360e084015261083f91613157565b50503461036b578160031936011261036b5760209060ff601d5460101c1690519015158152f35b8334610d355780600319360112610d3557611d5e613797565b601d5465ff000000000060ff8260281c161560281b169065ff0000000000191617601d5580f35b50503461036b578160031936011261036b57602090601f549051908152f35b828434610d355781600319360112610d3557611dbe61317c565b60243590611dcb816137ef565b821015611df95760209284926001600160a01b03849316825260068552828220908252845220549051908152f35b608485602086519162461bcd60e51b8352820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152fd5b50503461036b578160031936011261036b5760209060ff601d5460081c1690519015158152f35b50503461036b578160031936011261036b57601d549051602091821c60ff1615158152f35b8334610d3557610e56611ec0366131c4565b91611ed3611ece8433613a2f565b613928565b613b0e565b50503461036b578160031936011261036b5760209060ff601d5460181c1690519015158152f35b8334610d35576020366003190112610d35576001600160a01b03611f2161317c565b611f29613797565b166001600160a01b0319600d541617600d5580f35b9050346104e15760203660031901126104e1578160209360ff92358152600c855220541690519015158152f35b50503461036b578160031936011261036b576020906008549051908152f35b8334610d355760031991602036840181136104e15767ffffffffffffffff908235828111610e5957610100818501968236030112610e5957611fca613797565b611fd48680614aaf565b848198929811612a555780611fea6015546131f9565b98601f998a81116129ea575b5088908a831160011461296557899261295a575b50508160011b916000199060031b1c1916176015555b60249161202f83820183614aaf565b908682116124615781906120446016546131f9565b8b81116128ef575b5089908b831160011461286a578a9261285f575b50508160011b916000199060031b1c1916176016555b6120836044820183614aaf565b908682116124615781906120986017546131f9565b8b81116127f4575b5089908b831160011461276f578a92612764575b50508160011b916000199060031b1c1916176017555b6120d76064820183614aaf565b908682116124615781906120ec6018546131f9565b8b81116126f9575b5089908b8311600114612674578a92612669575b50508160011b916000199060031b1c1916176018555b61212b6084820183614aaf565b908682116124615781906121406019546131f9565b8b81116125fe575b5089908b8311600114612579578a9261256e575b50508160011b916000199060031b1c1916176019555b61217f60a4820183614aaf565b90868211612461578190612194601a546131f9565b8b8111612503575b5089908b831160011461247e578a92612473575b50508160011b916000199060031b1c191617601a555b6121d360c4820183614aaf565b90868211612461576121e6601b546131f9565b8a8111612402575b5088908a831160011461237857918061222a95949260e4948c9261236d575b50508160011b916000199060031b1c191617601b555b0190614aaf565b949093851161235c575050612240601c546131f9565b858111612301575b50839483116001146122835750928293829392612278575b50508160011b916000199060031b1c191617601c5580f35b013590508380612260565b601f198316947f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211929185905b8782106122e95750508360019596106122cf575b505050811b01601c5580f35b0135600019600384901b60f8161c191690558380806122c3565b806001849682949587013581550195019201906122af565b7f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2118680860160051c820192848710612353575b0160051c01905b8181106123485750612248565b85815560010161233b565b92508192612334565b60418691634e487b7160e01b835252fd5b013590508c8061220d565b601b8a527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc191601f1984168b5b898282106123ec57505092600192859260e49661222a999896106123d2575b505050811b01601b55612223565b0135600019600384901b60f8161c191690558c80806123c4565b60018496829395870135815501950192016123a5565b601b8a527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc18b80850160051c820192898610612458575b0160051c01905b81811061244d57506121ee565b8a8155600101612440565b92508192612439565b848960418a634e487b7160e01b835252fd5b013590508a806121b0565b601a8b527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e925090601f1984168b5b898282106124ed5750509084600195949392106124d3575b505050811b01601a556121c6565b0135600019600384901b60f8161c191690558a80806124c5565b60018496829395870135815501950192016124ad565b909150601a8a527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e8b80850160051c820192898610612565575b9085949392910160051c01905b818110612557575061219c565b8b815584935060010161254a565b9250819261253d565b013590508a8061215c565b60198b527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695925090601f1984168b5b898282106125e85750509084600195949392106125ce575b505050811b01601955612172565b0135600019600384901b60f8161c191690558a80806125c0565b60018496829395870135815501950192016125a8565b90915060198a527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96958b80850160051c820192898610612660575b9085949392910160051c01905b8181106126525750612148565b8b8155849350600101612645565b92508192612638565b013590508a80612108565b60188b527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e925090601f1984168b5b898282106126e35750509084600195949392106126c9575b505050811b0160185561211e565b0135600019600384901b60f8161c191690558a80806126bb565b60018496829395870135815501950192016126a3565b90915060188a527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e8b80850160051c82019289861061275b575b9085949392910160051c01905b81811061274d57506120f4565b8b8155849350600101612740565b92508192612733565b013590508a806120b4565b60178b527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15925090601f1984168b5b898282106127de5750509084600195949392106127c4575b505050811b016017556120ca565b0135600019600384901b60f8161c191690558a80806127b6565b600184968293958701358155019501920161279e565b90915060178a527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c158b80850160051c820192898610612856575b9085949392910160051c01905b81811061284857506120a0565b8b815584935060010161283b565b9250819261282e565b013590508a80612060565b60168b527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289925090601f1984168b5b898282106128d95750509084600195949392106128bf575b505050811b01601655612076565b0135600019600384901b60f8161c191690558a80806128b1565b6001849682939587013581550195019201612899565b90915060168a527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242898b80850160051c820192898610612951575b9085949392910160051c01905b818110612943575061204c565b8b8155849350600101612936565b92508192612929565b01359050898061200a565b60158a527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475925090601f1984168a5b888282106129d45750509084600195949392106129ba575b505050811b01601555612020565b0135600019600384901b60f8161c191690558980806129ac565b6001849682939587013581550195019201612994565b909150601589527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4758a80850160051c820192888610612a4c575b9085949392910160051c01905b818110612a3e5750611ff6565b8a8155849350600101612a31565b92508192612a24565b602487604188634e487b7160e01b835252fd5b9050346104e15760203660031901126104e157612a836131ad565b91612a8c613797565b612a9461431e565b6012549267ffffffffffffffff908185841c1692828660801c169586885260136020528188205490848416968715612bc457878701868111612bb15786600e54911611612ba357808910612b9b576010545b612af08985614311565b11612b8d5750839291817fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff6fffffffffffffffff00000000000000008897888c96169a01861b16911617601255888a526013602052019088205583011667ffffffffffffffff19601254161760125584915b838310612b7257856001600b5580f35b81600180920116920192612b868584614373565b9291612b62565b835163417d0b1960e01b8152fd5b600f54612ae6565b8351631bc5770560e31b8152fd5b60248b601184634e487b7160e01b835252fd5b83516372cf415160e11b8152fd5b9050346104e15760203660031901126104e15760209282913581526021845220549051908152f35b916020915036600319018213612d7a57612c126131ad565b90612c1b61431e565b612c2b60ff601d54851c16614751565b15612d6b5767ffffffffffffffff9081831693601e5490601154918615612d5c57828711612d4d57612c5d90876145f0565b3403612d3e5760125494848660801c1697888a5260138352848a2054600f5489838c1015612d34575b612c909192614311565b11612d2657338a5260228352848a205493612cab858a614311565b11612d185750869291856022928a8c5260138352868c20868382549b169a01905588011667ffffffffffffffff196012541617601255338a5252019086205584915b838310612cfd57856001600b5580f35b81600180920116920192612d118584614373565b9291612ced565b8451631bc5770560e31b8152fd5b845163417d0b1960e01b8152fd5b6010549150612c86565b86835163256c3f0760e21b8152fd5b878451631bc5770560e31b8152fd5b8784516372cf415160e11b8152fd5b83905163914edb0f60e01b8152fd5b8380fd5b9050346104e157816003193601126104e157612d9861317c565b90602435926001600160a01b03918280612db1876138c4565b16941693808514612e9d57803314908115612e7e575b5015612e16578486526020528420826001600160a01b0319825416179055612dee836138c4565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b6020608492519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600560205281862033875260205260ff828720541638612dc7565b506020608492519162461bcd60e51b8352820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152fd5b8334610d355780600319360112610d3557612f1f613797565b601d5462ff000060ff8260101c161560101b169062ff0000191617601d5580f35b828434610d35576020366003190112610d3557506001600160a01b03611946602093356138e6565b50503461036b578160031936011261036b57805190828054612f89816131f9565b808552916001918083169081156111715750600114612fb4575050506111038261083f9403836136ba565b80809650527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b828610612ff85750505061110382602061083f95820101946110f1565b80546020878701810191909152909501948101612fdb565b83903461036b57602036600319011261036b5761302b613797565b3560115580f35b8491346104e15760203660031901126104e157357fffffffff0000000000000000000000000000000000000000000000000000000081168091036104e157602092507f780e9d630000000000000000000000000000000000000000000000000000000081149081156130a6575b5015158152f35b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150811561310a575b81156130e0575b508361309f565b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014836130d9565b7f5b5e139f00000000000000000000000000000000000000000000000000000000811491506130d2565b60005b8381106131475750506000910152565b8181015183820152602001613137565b9060209161317081518092818552858086019101613134565b601f01601f1916010190565b600435906001600160a01b038216820361319257565b600080fd5b602435906001600160a01b038216820361319257565b6004359067ffffffffffffffff8216820361319257565b6060906003190112613192576001600160a01b0390600435828116810361319257916024359081168103613192579060443590565b90600182811c92168015613229575b602083101461321357565b634e487b7160e01b600052602260045260246000fd5b91607f1691613208565b60155460009291613243826131f9565b808252916001908181169081156132ba575060011461326157505050565b9192935060156000527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475916000925b8484106132a257505060209250010190565b80546020858501810191909152909301928101613290565b915050602093945060ff929192191683830152151560051b010190565b601654600092916132e7826131f9565b808252916001908181169081156132ba575060011461330557505050565b9192935060166000527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289916000925b84841061334657505060209250010190565b80546020858501810191909152909301928101613334565b6017546000929161336e826131f9565b808252916001908181169081156132ba575060011461338c57505050565b9192935060176000527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15916000925b8484106133cd57505060209250010190565b805460208585018101919091529093019281016133bb565b601854600092916133f5826131f9565b808252916001908181169081156132ba575060011461341357505050565b9192935060186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e916000925b84841061345457505060209250010190565b80546020858501810191909152909301928101613442565b6019546000929161347c826131f9565b808252916001908181169081156132ba575060011461349a57505050565b9192935060196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695916000925b8484106134db57505060209250010190565b805460208585018101919091529093019281016134c9565b601a5460009291613503826131f9565b808252916001908181169081156132ba575060011461352157505050565b91929350601a6000527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e916000925b84841061356257505060209250010190565b80546020858501810191909152909301928101613550565b601b546000929161358a826131f9565b808252916001908181169081156132ba57506001146135a857505050565b91929350601b6000527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc1916000925b8484106135e957505060209250010190565b805460208585018101919091529093019281016135d7565b601c5460009291613611826131f9565b808252916001908181169081156132ba575060011461362f57505050565b91929350601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211916000925b84841061367057505060209250010190565b8054602085850181019190915290930192810161365e565b6020810190811067ffffffffffffffff8211176136a457604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176136a457604052565b67ffffffffffffffff81116136a457601f01601f191660200190565b81601f820112156131925780359061370f826136dc565b9261371d60405194856136ba565b8284526020838301011161319257816000926020809301838601378301015290565b60606003198201126131925767ffffffffffffffff9160043583811681036131925792602435926044359182116131925761377c916004016136f8565b90565b67ffffffffffffffff81116136a45760051b60200190565b6001600160a01b03600a541633036137ab57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b0316801561380f57600052600360205260406000205490565b608460405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152fd5b1561388057565b606460405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152fd5b60005260026020526001600160a01b036040600020541661377c811515613879565b61390e6139098260005260026020526001600160a01b0360406000205416151590565b613879565b60005260046020526001600160a01b036040600020541690565b1561392f57565b608460405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152fd5b906139bd9392916139ad611ece8433613a2f565b6139b8838383613b0e565b613db4565b156139c457565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b906001600160a01b038080613a43846138c4565b16931691838314938415613a76575b508315613a60575b50505090565b613a6c919293506138e6565b1614388080613a5a565b909350600052600560205260406000208260005260205260ff604060002054169238613a52565b15613aa457565b608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152fd5b613b3291613b1b846138c4565b6001600160a01b0393848416939185168414613a9d565b838216938415613d1b57839182613c62575090506008549085600052600960205281604060002055680100000000000000008210156136a457613bb692613b9d87613b84856001899701600855613f48565b90919082549060031b91821b91600019901b1916179055565b828603613c2f575b50613baf866138c4565b1614613a9d565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526004602052604081206001600160a01b03199081815416905583825260036020526040822060001981540190558482526040822060018154019055858252600260205284604083209182541617905580a4565b613c38906137ef565b60406000878152600660205281812083825260205288828220558881526007602052205538613ba5565b858303613c74575b50613bb692613b9d565b613c7f9192506137ef565b600019810191908211613d0557613bb69284926000908882526020906007825260409182842054828103613cce575b508a84528383812055868452600681528284209184525281205592613c6a565b8785526006825283852083865282528385205488865260068352848620828752835280858720558552600782528385205538613cae565b634e487b7160e01b600052601160045260246000fd5b608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b3d15613daf573d90613d95826136dc565b91613da360405193846136ba565b82523d6000602084013e565b606090565b91926000929190813b15613f3e57602091613e2491856040519586809581947f150b7a02000000000000000000000000000000000000000000000000000000009b8c84523360048501526001600160a01b0380951660248501526044840152608060648401526084830190613157565b0393165af190829082613ede575b5050613eb857613e40613d84565b80519081613eb35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b909192506020813d8211613f36575b81613efa602093836136ba565b8101031261036b5751907fffffffff0000000000000000000000000000000000000000000000000000000082168203610d355750903880613e32565b3d9150613eed565b5050505050600190565b600854811015613f7f5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b634e487b7160e01b600052603260045260246000fd5b90604051906001600160a01b0360208301931683526040820152306060820152606081526080810181811067ffffffffffffffff8211176136a45760405251902090565b8051821015613f7f5760209160051b010190565b90613ffa91939293613f95565b906040519160208301907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008252603c840152603c8352606083019083821067ffffffffffffffff8311176136a4576140659361405d92604052519020938461424a565b929092614118565b6001600160a01b038091169116036140d45780600052600c60205260ff604060002054166140905790565b606460405162461bcd60e51b815260206004820152600e60248201527f21414c52454144595f55534544210000000000000000000000000000000000006044820152fd5b606460405162461bcd60e51b815260206004820152601360248201527f21494e56414c49445f5349474e415455524521000000000000000000000000006044820152fd5b600581101561423457806141295750565b6001810361417557606460405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152fd5b600281036141c157606460405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152fd5b6003146141ca57565b608460405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152fd5b634e487b7160e01b600052602160045260246000fd5b90604181511460001461427857614274916020820151906060604084015193015160001a90614282565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083116143055791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa156142f85781516001600160a01b038116156142f2579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600390565b91908201809211613d0557565b6002600b541461432f576002600b55565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b6040805167ffffffffffffffff94939092909160608401868111858210176136a4578152600095868552602080860193888552838701958987528451838101908382523360601b878201524460548201524260748201526074815260a0810181811087821117614591578752519020875283168752331561454f576144176144118260005260026020526001600160a01b0360406000205416151590565b156145a5565b600854818a526009835280858b20556801000000000000000081101561453b57600197989960236fffffffffffffffff000000000000000094846144877fffffffffffffffffffffffffffffffff000000000000000000000000000000009896613b84878f8d9901600855613f48565b614490336137ef565b338552600683528585208186528352818686205581855260078352858520556144d26144118260005260026020526001600160a01b0360406000205416151590565b338452600382528484208c815401905580845260028252848420336001600160a01b031982541617905533847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a452209751169287549451901b1692161717835551910155565b60248a634e487b7160e01b81526041600452fd5b60648285519062461bcd60e51b825280600483015260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b60248d634e487b7160e01b81526041600452fd5b156145ac57565b606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b81810292918115918404141715613d0557565b919067ffffffffffffffff908184169261464c8360125460801c169160048310159283600014614749576146379085614311565b905b6001600160a01b03600d54169133613fed565b91600085831561473557505082600052602160205261467085604060002054614311565b1161470b57156146f457600052602160205260406000208281540190555b6012549080808360801c169485600052601360205260406000208583825496169501905583011667ffffffffffffffff1960125416176012556000915b8383106146d9575050505050565b816001809201169201926146ed8584614373565b92916146cb565b60005260208052604060002082815401905561468e565b60046040517f2ed21ab3000000000000000000000000000000000000000000000000000000008152fd5b604082866146709452602080522054614311565b508390614639565b60ff601d5460081c16159081614765575090565b905080156147705790565b506001600160a01b03600a5416331490565b6020818303126131925780519067ffffffffffffffff8211613192570181601f820112156131925780516147b5816136dc565b926147c360405194856136ba565b818452602082840101116131925761377c9160208085019101613134565b6148018160005260026020526001600160a01b0360406000205416151590565b1561497c576001600160a01b036014541680156149675760008281938252602360205260408220926148846040519485937f6431bb38000000000000000000000000000000000000000000000000000000008552600485015260248401906001604091805467ffffffffffffffff908181168652841c1660208501520154910152565b60a0608483015261010060a483015281806149296148a56101a48301613233565b6149196149096148f96148e96148d96148ca60a31996878a82030160c48b01526132d7565b868982030160e48a015261335e565b85888203016101048901526133e5565b848782030161012488015261346c565b83868203016101448701526134f3565b828582030161016486015261357a565b9083820301610184840152613601565b03915afa91821561495b57809261493f57505090565b61377c92503d8091833e61495381836136ba565b810190614782565b604051903d90823e3d90fd5b505060405161497581613688565b6000815290565b60046040517f9430a17e000000000000000000000000000000000000000000000000000000008152fd5b6149c68160005260026020526001600160a01b0360406000205416151590565b1561497c576001600160a01b0360145416801561496757608491614a509160009382859384526023602052604084209260405195869485937f7155a105000000000000000000000000000000000000000000000000000000008552600485015260248401906001604091805467ffffffffffffffff908181168652841c1660208501520154910152565b5afa91821561495b57809261493f57505090565b15614a6b57565b606460405162461bcd60e51b815260206004820152601260248201527f436f6e7472616374206973207365616c656400000000000000000000000000006044820152fd5b903590601e1981360301821215613192570180359067ffffffffffffffff8211613192576020019181360383136131925756fea26469706673582212202eb4bd5c24a26227ccbc539b7d6802a7c9c9e95380a22302deee3b1022471a5c64736f6c63430008120033

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

00000000000000000000000047d6f870b98b440ba54b047f1a27021dbf25ad0c

-----Decoded View---------------
Arg [0] : _allowancesSigner (address): 0x47D6F870b98B440BA54b047f1a27021DbF25Ad0c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000047d6f870b98b440ba54b047f1a27021dbf25ad0c


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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