ETH Price: $2,507.81 (+0.37%)

JUUNI Grimoire (GRIMOIRE)
 

Overview

TokenID

2358

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Explore the world of JUUNI!

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
JuuniGrimoire

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.17;

//   _  _ _  _ _  _  _  _
//  | || | || | || \| || |
//  n_|||U || U || \\ || |
// \__/|___||___||_|\_||_|

import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

abstract contract Zodia {
    function discoverZodia(address to, uint256 grimoireId)
        external
        virtual
        returns (uint256);
}

contract JuuniGrimoire is ERC721AQueryable, ReentrancyGuard, Ownable, ERC2981 {
    using ECDSA for bytes32;

    enum SaleState {
        CLOSED,
        PUBLIC,
        ORIGINAL_ZODIA
    }

    // Base grimoire related info
    uint256 constant MAX_SUPPLY = 5_555;
    string public baseTokenURI = "";
    address public signer;

    // Mint related info
    uint256 public maxGrimoires = 5_555;
    // PLACEHOLDER PRICE ONLY - FINAL PRICE SUBJECT TO CHANGE
    uint256 public publicMintPrice = 0.25 ether;
    // PLACEHOLDER PRICE ONLY - FINAL PRICE SUBJECT TO CHANGE
    uint256 public originalZodiaMintPrice = 0.2 ether;
    // PLACEHOLDER PRICE ONLY - FINAL PRICE SUBJECT TO CHANGE
    uint256 public maxPublicGrimoires;
    uint256 public publicGrimoiresMinted;
    uint256 public ozGrimoiresMinted;
    uint256 private teamAllocation = 100;
    SaleState public saleState;
    mapping(address => bool) public publicMintedMap;

    // Withdrawal related
    address public HEXaddress = 0xfb119f9c8A4af5d03E9D7C22296212924FC223f5;
    // 40% of initial mint sales will go to HEX
    uint256 public artistSplit = 40;

    // Zodia related properties
    bool public canDiscoverZodia;
    address public zodiaContract;
    event ZodiaDiscovered(uint256 grimoireId, uint256 zodiaId);

    error AlreadyMinted();
    error BelowCurrentSupply();
    error ContractNotAllowedToMint();
    error DiscoverZodiaNotAvailable();
    error DiscoverZodiaNotEnoughBalance();
    error ExceedMaxSalePhase();
    error ExceedMaxSupply();
    error InsufficientEther();
    error InvalidAddress();
    error InvalidMaxPublicGrimoires();
    error InvalidSignature();
    error InvalidSigner();
    error InvalidQuantity();
    error NotEnoughPublicGrimoires();
    error SaleInactive();
    error UnsupportedMarketplace();
    error WithdrawFailed();
    error ZodiaContractNotSet();

    constructor(address to) ERC721A("JUUNI Grimoire", "GRIMOIRE") {
        _mintERC2309(to, teamAllocation);
    }

    function bestowGrimoire(bytes calldata signature, uint256 quantity)
        external
        payable
    {
        if (tx.origin != msg.sender) revert ContractNotAllowedToMint();
        // Due to grimoires being able to be burned we used minted check here
        if (_totalMinted() + quantity > maxGrimoires) revert ExceedMaxSupply();
        if (saleState == SaleState.CLOSED) revert SaleInactive();

        if (saleState == SaleState.PUBLIC) {
            if (publicMintedMap[msg.sender]) revert AlreadyMinted();
            if (publicGrimoiresMinted + quantity > maxPublicGrimoires)
                revert NotEnoughPublicGrimoires();
            _verifySignature(signature, "public sale");

            if (quantity > 2) revert ExceedMaxSalePhase();
            if (msg.value < publicMintPrice * quantity)
                revert InsufficientEther();

            publicMintedMap[msg.sender] = true;
            publicGrimoiresMinted += quantity;
            _mint(msg.sender, quantity);
        }

        if (saleState == SaleState.ORIGINAL_ZODIA) {
            /// Check aux value, non-zero infers minted.
            if (_getAux(msg.sender) == 1) revert AlreadyMinted();
            _verifySignature(signature, "original zodia sale");

            if (quantity > 1) revert ExceedMaxSalePhase();
            if (msg.value < originalZodiaMintPrice) revert InsufficientEther();

            /// Set aux value.
            _setAux(msg.sender, 1);
            ozGrimoiresMinted += 1;

            /// Mint token.
            _mint(msg.sender, 1);
        }
    }

    function discoverZodia(uint256 grimoireId)
        external
        nonReentrant
        returns (uint256)
    {
        if (zodiaContract == address(0)) revert ZodiaContractNotSet();
        if (!canDiscoverZodia) revert DiscoverZodiaNotAvailable();
        address to = ownerOf(grimoireId);

        if (msg.sender != to) revert DiscoverZodiaNotEnoughBalance();

        Zodia zodia = Zodia(zodiaContract);

        _burn(grimoireId, true);

        uint256 zodiaId = zodia.discoverZodia(to, grimoireId);
        emit ZodiaDiscovered(grimoireId, zodiaId);

        return zodiaId;
    }

    function zodiasDiscovered(address addr) external view returns (uint256) {
        return _numberBurned(addr);
    }

    function totalZodiasDiscovered() external view returns (uint256) {
        return _totalBurned();
    }

    function hasAddressMintedOZ(address addr) external view returns (bool) {
        return _getAux(addr) == 1;
    }

    // Remaining if any treasury mint
    function teamMint(address to) external onlyOwner {
        if (to == address(0)) revert InvalidAddress();
        if (_totalMinted() == maxGrimoires) revert ExceedMaxSupply();

        _mint(to, maxGrimoires - _totalMinted());
    }

    // Private sale airdrops
    function privateSaleGrimoireAirdrop(address to, uint256 quantity)
        external
        onlyOwner
    {
        if (quantity > 25) revert InvalidQuantity();
        if (_totalMinted() + quantity > maxGrimoires) revert ExceedMaxSupply();

        _mint(to, quantity);
    }

    function setMaxGrimoires(uint256 newMaxGrimoires) external onlyOwner {
        if (newMaxGrimoires > MAX_SUPPLY) revert ExceedMaxSupply();

        if (newMaxGrimoires < totalSupply()) revert BelowCurrentSupply();

        maxGrimoires = newMaxGrimoires;
    }

    function toggleCanDiscoverZodia() external onlyOwner {
        canDiscoverZodia = !canDiscoverZodia;
    }

    function setOriginalZodiaMintPrice(uint256 price) external onlyOwner {
        originalZodiaMintPrice = price;
    }

    function setSaleState(SaleState newSaleState) external onlyOwner {
        saleState = newSaleState;
    }

    function setMaxPublicGrimoires(uint256 newMaxPublicGrimoires)
        external
        onlyOwner
    {
        if (newMaxPublicGrimoires > maxGrimoires - totalSupply())
            revert InvalidMaxPublicGrimoires();

        maxPublicGrimoires = newMaxPublicGrimoires;
    }

    function setPublicMintPrice(uint256 price) external onlyOwner {
        publicMintPrice = price;
    }

    function setHEXaddress(address newHEXaddress) external onlyOwner {
        HEXaddress = newHEXaddress;
    }

    function setZodiaContract(address contractAddress) external onlyOwner {
        zodiaContract = contractAddress;
    }

    function setSigner(address newSigner) external onlyOwner {
        if (newSigner == address(0)) revert InvalidSigner();
        signer = newSigner;
    }

    function setBaseURI(string calldata baseURI_) external onlyOwner {
        baseTokenURI = baseURI_;
    }

    function withdraw() external onlyOwner {
        (bool artistTransferSuccess, ) = HEXaddress.call{
            value: ((address(this).balance * artistSplit) / 100)
        }("");

        (bool teamTransferSuccess, ) = msg.sender.call{
            value: address(this).balance
        }("");

        if (!artistTransferSuccess || !teamTransferSuccess)
            revert WithdrawFailed();
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator)
        external
        onlyOwner
    {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function deleteDefaultRoyalty() external onlyOwner {
        _deleteDefaultRoyalty();
    }

    function _verifySignature(bytes calldata signature, string memory action)
        internal
        view
    {
        address signedAddress = keccak256(abi.encodePacked(msg.sender, action))
            .toEthSignedMessageHash()
            .recover(signature);

        if (signedAddress != signer) revert InvalidSignature();
    }

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

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

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

File 2 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

File 4 of 14 : 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 5 of 14 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 6 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (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
    }

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

File 8 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 14 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 14 : 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 11 of 14 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 14 : 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 13 of 14 : 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 14 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"to","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BelowCurrentSupply","type":"error"},{"inputs":[],"name":"ContractNotAllowedToMint","type":"error"},{"inputs":[],"name":"DiscoverZodiaNotAvailable","type":"error"},{"inputs":[],"name":"DiscoverZodiaNotEnoughBalance","type":"error"},{"inputs":[],"name":"ExceedMaxSalePhase","type":"error"},{"inputs":[],"name":"ExceedMaxSupply","type":"error"},{"inputs":[],"name":"InsufficientEther","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidMaxPublicGrimoires","type":"error"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotEnoughPublicGrimoires","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SaleInactive","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"UnsupportedMarketplace","type":"error"},{"inputs":[],"name":"WithdrawFailed","type":"error"},{"inputs":[],"name":"ZodiaContractNotSet","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"grimoireId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"zodiaId","type":"uint256"}],"name":"ZodiaDiscovered","type":"event"},{"inputs":[],"name":"HEXaddress","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":"payable","type":"function"},{"inputs":[],"name":"artistSplit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"bestowGrimoire","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"canDiscoverZodia","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"grimoireId","type":"uint256"}],"name":"discoverZodia","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"hasAddressMintedOZ","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":"maxGrimoires","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicGrimoires","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"originalZodiaMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ozGrimoiresMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"privateSaleGrimoireAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicGrimoiresMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintedMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum JuuniGrimoire.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newHEXaddress","type":"address"}],"name":"setHEXaddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxGrimoires","type":"uint256"}],"name":"setMaxGrimoires","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxPublicGrimoires","type":"uint256"}],"name":"setMaxPublicGrimoires","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setOriginalZodiaMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum JuuniGrimoire.SaleState","name":"newSaleState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setZodiaContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleCanDiscoverZodia","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalZodiasDiscovered","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zodiaContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"zodiasDiscovered","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405260405180602001604052806000815250600c9081620000249190620007c2565b506115b3600e556703782dace9d90000600f556702c68af0bb140000601055606460145573fb119f9c8a4af5d03e9d7c22296212924fc223f5601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506028601855348015620000af57600080fd5b5060405162006431380380620064318339818101604052810190620000d5919062000913565b6040518060400160405280600e81526020017f4a55554e49204772696d6f6972650000000000000000000000000000000000008152506040518060400160405280600881526020017f4752494d4f4952450000000000000000000000000000000000000000000000008152508160029081620001529190620007c2565b508060039081620001649190620007c2565b5062000175620001c060201b60201c565b60008190555050506001600881905550620001a562000199620001c960201b60201c565b620001d160201b60201c565b620001b9816014546200029760201b60201c565b5062000973565b60006001905090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000304576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082036200033f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113888211156200037c576040517f3db1f9af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620003916000848385620004c860201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200042083620004026000866000620004ce60201b60201c565b6200041385620004fe60201b60201c565b176200050e60201b60201c565b60046000838152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16827fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d6001868601036040516200049d919062000956565b60405180910390a4818101600081905550620004c360008483856200053960201b60201c565b505050565b50505050565b60008060e883901c905060e8620004ed8686846200053f60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005ca57607f821691505b602082108103620005e057620005df62000582565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200064a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200060b565b6200065686836200060b565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006a36200069d62000697846200066e565b62000678565b6200066e565b9050919050565b6000819050919050565b620006bf8362000682565b620006d7620006ce82620006aa565b84845462000618565b825550505050565b600090565b620006ee620006df565b620006fb818484620006b4565b505050565b5b81811015620007235762000717600082620006e4565b60018101905062000701565b5050565b601f82111562000772576200073c81620005e6565b6200074784620005fb565b8101602085101562000757578190505b6200076f6200076685620005fb565b83018262000700565b50505b505050565b600082821c905092915050565b6000620007976000198460080262000777565b1980831691505092915050565b6000620007b2838362000784565b9150826002028217905092915050565b620007cd8262000548565b67ffffffffffffffff811115620007e957620007e862000553565b5b620007f58254620005b1565b6200080282828562000727565b600060209050601f8311600181146200083a576000841562000825578287015190505b620008318582620007a4565b865550620008a1565b601f1984166200084a86620005e6565b60005b8281101562000874578489015182556001820191506020850194506020810190506200084d565b8683101562000894578489015162000890601f89168262000784565b8355505b6001600288020188555050505b505050505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008db82620008ae565b9050919050565b620008ed81620008ce565b8114620008f957600080fd5b50565b6000815190506200090d81620008e2565b92915050565b6000602082840312156200092c576200092b620008a9565b5b60006200093c84828501620008fc565b91505092915050565b62000950816200066e565b82525050565b60006020820190506200096d600083018462000945565b92915050565b615aae80620009836000396000f3fe60806040526004361061036b5760003560e01c8063715018a6116101c6578063bbe68cf0116100f7578063e985e9c511610095578063f01fcf661161006f578063f01fcf6614610c74578063f2fde38b14610cb1578063fd0c7a3714610cda578063fdfcfc3f14610d055761036b565b8063e985e9c514610be3578063ee44dcf314610c20578063ef550f3414610c495761036b565b8063d547cfb7116100d1578063d547cfb714610b34578063dc53fd9214610b5f578063dc9c740a14610b8a578063e84798a414610ba65761036b565b8063bbe68cf014610a8f578063c23dc68f14610aba578063c87b56dd14610af75761036b565b806397d8237711610164578063aa1b103f1161013e578063aa1b103f14610a08578063b46abf2714610a1f578063b6a1dba114610a4a578063b88d4fde14610a735761036b565b806397d823771461097757806399a2557a146109a2578063a22cb465146109df5761036b565b80638462151c116101a05780638462151c146108a75780638da5cb5b146108e45780639053ea651461090f57806395d89b411461094c5761036b565b8063715018a61461085057806371587311146108675780637c7060ca146108905761036b565b806332538c0f116102a05780635a67de071161023e578063603f4d5211610218578063603f4d52146107825780636352211e146107ad5780636c19e783146107ea57806370a08231146108135761036b565b80635a67de07146106f35780635bbb21771461071c5780635d82cf6e146107595761036b565b806342842e0e1161027a57806342842e0e1461065c57806349827116146106785780634dfa0dad146106a157806355f804b3146106ca5761036b565b806332538c0f146105dd57806337df1d3e1461061a5780633ccfd60b146106455761036b565b806317b006ea1161030d578063238ac933116102e7578063238ac9331461052f57806323b872dd1461055a57806325c5ce85146105765780632a55205a1461059f5761036b565b806317b006ea146104b057806318160ddd146104d95780631aeadad0146105045761036b565b8063081812fc11610349578063081812fc14610401578063095ea7b31461043e578063097ad3c21461045a57806314b517d5146104855761036b565b806301ffc9a71461037057806304634d8d146103ad57806306fdde03146103d6575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190614207565b610d30565b6040516103a4919061424f565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf919061430c565b610d52565b005b3480156103e257600080fd5b506103eb610d68565b6040516103f891906143dc565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190614434565b610dfa565b6040516104359190614470565b60405180910390f35b6104586004803603810190610453919061448b565b610e79565b005b34801561046657600080fd5b5061046f610fbd565b60405161047c91906144da565b60405180910390f35b34801561049157600080fd5b5061049a610fc3565b6040516104a791906144da565b60405180910390f35b3480156104bc57600080fd5b506104d760048036038101906104d29190614434565b610fd2565b005b3480156104e557600080fd5b506104ee611032565b6040516104fb91906144da565b60405180910390f35b34801561051057600080fd5b50610519611049565b60405161052691906144da565b60405180910390f35b34801561053b57600080fd5b5061054461104f565b6040516105519190614470565b60405180910390f35b610574600480360381019061056f91906144f5565b611075565b005b34801561058257600080fd5b5061059d6004803603810190610598919061448b565b611397565b005b3480156105ab57600080fd5b506105c660048036038101906105c19190614548565b611436565b6040516105d4929190614588565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff9190614434565b611620565b60405161061191906144da565b60405180910390f35b34801561062657600080fd5b5061062f6118af565b60405161063c91906144da565b60405180910390f35b34801561065157600080fd5b5061065a6118b5565b005b610676600480360381019061067191906144f5565b611a16565b005b34801561068457600080fd5b5061069f600480360381019061069a9190614434565b611a36565b005b3480156106ad57600080fd5b506106c860048036038101906106c391906145b1565b611ac5565b005b3480156106d657600080fd5b506106f160048036038101906106ec9190614643565b611b11565b005b3480156106ff57600080fd5b5061071a600480360381019061071591906146b5565b611b2f565b005b34801561072857600080fd5b50610743600480360381019061073e9190614738565b611b64565b60405161075091906148e8565b60405180910390f35b34801561076557600080fd5b50610780600480360381019061077b9190614434565b611c27565b005b34801561078e57600080fd5b50610797611c39565b6040516107a49190614981565b60405180910390f35b3480156107b957600080fd5b506107d460048036038101906107cf9190614434565b611c4c565b6040516107e19190614470565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c91906145b1565b611c5e565b005b34801561081f57600080fd5b5061083a600480360381019061083591906145b1565b611d10565b60405161084791906144da565b60405180910390f35b34801561085c57600080fd5b50610865611dc8565b005b34801561087357600080fd5b5061088e60048036038101906108899190614434565b611ddc565b005b34801561089c57600080fd5b506108a5611dee565b005b3480156108b357600080fd5b506108ce60048036038101906108c991906145b1565b611e22565b6040516108db9190614a5a565b60405180910390f35b3480156108f057600080fd5b506108f9611f65565b6040516109069190614470565b60405180910390f35b34801561091b57600080fd5b50610936600480360381019061093191906145b1565b611f8f565b604051610943919061424f565b60405180910390f35b34801561095857600080fd5b50610961611faf565b60405161096e91906143dc565b60405180910390f35b34801561098357600080fd5b5061098c612041565b60405161099991906144da565b60405180910390f35b3480156109ae57600080fd5b506109c960048036038101906109c49190614a7c565b612047565b6040516109d69190614a5a565b60405180910390f35b3480156109eb57600080fd5b50610a066004803603810190610a019190614afb565b612253565b005b348015610a1457600080fd5b50610a1d61235e565b005b348015610a2b57600080fd5b50610a34612370565b604051610a4191906144da565b60405180910390f35b348015610a5657600080fd5b50610a716004803603810190610a6c91906145b1565b612376565b005b610a8d6004803603810190610a889190614c6b565b612447565b005b348015610a9b57600080fd5b50610aa46124ba565b604051610ab191906144da565b60405180910390f35b348015610ac657600080fd5b50610ae16004803603810190610adc9190614434565b6124c0565b604051610aee9190614d43565b60405180910390f35b348015610b0357600080fd5b50610b1e6004803603810190610b199190614434565b61252a565b604051610b2b91906143dc565b60405180910390f35b348015610b4057600080fd5b50610b496125c8565b604051610b5691906143dc565b60405180910390f35b348015610b6b57600080fd5b50610b74612656565b604051610b8191906144da565b60405180910390f35b610ba46004803603810190610b9f9190614db4565b61265c565b005b348015610bb257600080fd5b50610bcd6004803603810190610bc891906145b1565b612b34565b604051610bda91906144da565b60405180910390f35b348015610bef57600080fd5b50610c0a6004803603810190610c059190614e14565b612b46565b604051610c17919061424f565b60405180910390f35b348015610c2c57600080fd5b50610c476004803603810190610c4291906145b1565b612bda565b005b348015610c5557600080fd5b50610c5e612c26565b604051610c6b9190614470565b60405180910390f35b348015610c8057600080fd5b50610c9b6004803603810190610c9691906145b1565b612c4c565b604051610ca8919061424f565b60405180910390f35b348015610cbd57600080fd5b50610cd86004803603810190610cd391906145b1565b612c6b565b005b348015610ce657600080fd5b50610cef612cee565b604051610cfc9190614470565b60405180910390f35b348015610d1157600080fd5b50610d1a612d14565b604051610d27919061424f565b60405180910390f35b6000610d3b82612d27565b80610d4b5750610d4a82612db9565b5b9050919050565b610d5a612e33565b610d648282612eb1565b5050565b606060028054610d7790614e83565b80601f0160208091040260200160405190810160405280929190818152602001828054610da390614e83565b8015610df05780601f10610dc557610100808354040283529160200191610df0565b820191906000526020600020905b815481529060010190602001808311610dd357829003601f168201915b5050505050905090565b6000610e0582613046565b610e3b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610e8482611c4c565b90508073ffffffffffffffffffffffffffffffffffffffff16610ea56130a5565b73ffffffffffffffffffffffffffffffffffffffff1614610f0857610ed181610ecc6130a5565b612b46565b610f07576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60105481565b6000610fcd6130ad565b905090565b610fda612e33565b610fe2611032565b600e54610fef9190614ee3565b811115611028576040517fc3b8ca5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060118190555050565b600061103c6130b7565b6001546000540303905090565b60115481565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611080826130c0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110e7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806110f38461318c565b9150915061110981876111046130a5565b6131b3565b6111555761111e866111196130a5565b612b46565b611154576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036111bb576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111c886868660016131f7565b80156111d357600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112a18561127d8888876131fd565b7c020000000000000000000000000000000000000000000000000000000017613225565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036113275760006001850190506000600460008381526020019081526020016000205403611325576000548114611324578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461138f8686866001613250565b505050505050565b61139f612e33565b60198111156113da576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54816113e6613256565b6113f09190614f17565b1115611428576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114328282613269565b5050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036115cb57600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006115d5613424565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866116019190614f4b565b61160b9190614fbc565b90508160000151819350935050509250929050565b6000600260085403611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165e90615039565b60405180910390fd5b6002600881905550600073ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036116f7576040517f4e323e1a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601960009054906101000a900460ff1661173d576040517f2736019a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061174883611c4c565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117af576040517f2f475caf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506117e184600161342e565b60008173ffffffffffffffffffffffffffffffffffffffff1663ea2388d884876040518363ffffffff1660e01b815260040161181e929190614588565b6020604051808303816000875af115801561183d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611861919061506e565b90507f9a78eace5dfff4f66c73b7e4d7e286867e096595588e54a83639c0317b461411858260405161189492919061509b565b60405180910390a18093505050506001600881905550919050565b60135481565b6118bd612e33565b6000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166064601854476119089190614f4b565b6119129190614fbc565b60405161191e906150f5565b60006040518083038185875af1925050503d806000811461195b576040519150601f19603f3d011682016040523d82523d6000602084013e611960565b606091505b5050905060003373ffffffffffffffffffffffffffffffffffffffff164760405161198a906150f5565b60006040518083038185875af1925050503d80600081146119c7576040519150601f19603f3d011682016040523d82523d6000602084013e6119cc565b606091505b505090508115806119db575080155b15611a12576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b611a3183838360405180602001604052806000815250612447565b505050565b611a3e612e33565b6115b3811115611a7a576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a82611032565b811015611abb576040517f529c95a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e8190555050565b611acd612e33565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611b19612e33565b8181600c9182611b2a9291906152c1565b505050565b611b37612e33565b80601560006101000a81548160ff02191690836002811115611b5c57611b5b61490a565b5b021790555050565b6060600083839050905060008167ffffffffffffffff811115611b8a57611b89614b40565b5b604051908082528060200260200182016040528015611bc357816020015b611bb061414c565b815260200190600190039081611ba85790505b50905060005b828114611c1b57611bf2868683818110611be657611be5615391565b5b905060200201356124c0565b828281518110611c0557611c04615391565b5b6020026020010181905250806001019050611bc9565b50809250505092915050565b611c2f612e33565b80600f8190555050565b601560009054906101000a900460ff1681565b6000611c57826130c0565b9050919050565b611c66612e33565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ccc576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d77576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611dd0612e33565b611dda6000613680565b565b611de4612e33565b8060108190555050565b611df6612e33565b601960009054906101000a900460ff1615601960006101000a81548160ff021916908315150217905550565b60606000806000611e3285611d10565b905060008167ffffffffffffffff811115611e5057611e4f614b40565b5b604051908082528060200260200182016040528015611e7e5781602001602082028036833780820191505090505b509050611e8961414c565b6000611e936130b7565b90505b838614611f5757611ea681613746565b91508160400151611f4c57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611ef157816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f4b5780838780600101985081518110611f3e57611f3d615391565b5b6020026020010181815250505b5b806001019050611e96565b508195505050505050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60166020528060005260406000206000915054906101000a900460ff1681565b606060038054611fbe90614e83565b80601f0160208091040260200160405190810160405280929190818152602001828054611fea90614e83565b80156120375780601f1061200c57610100808354040283529160200191612037565b820191906000526020600020905b81548152906001019060200180831161201a57829003601f168201915b5050505050905090565b600e5481565b6060818310612082576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061208d613771565b90506120976130b7565b8510156120a9576120a66130b7565b94505b808411156120b5578093505b60006120c087611d10565b9050848610156120e35760008686039050818110156120dd578091505b506120e8565b600090505b60008167ffffffffffffffff81111561210457612103614b40565b5b6040519080825280602002602001820160405280156121325781602001602082028036833780820191505090505b50905060008203612149578094505050505061224c565b6000612154886124c0565b90506000816040015161216957816000015190505b60008990505b88811415801561217f5750848714155b1561223e5761218d81613746565b9250826040015161223357600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146121d857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612232578084888060010199508151811061222557612224615391565b5b6020026020010181815250505b5b80600101905061216f565b508583528296505050505050505b9392505050565b80600760006122606130a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661230d6130a5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612352919061424f565b60405180910390a35050565b612366612e33565b61236e61377a565b565b60125481565b61237e612e33565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123e4576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e546123ef613256565b03612426576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61244481612432613256565b600e5461243f9190614ee3565b613269565b50565b612452848484611075565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124b45761247d848484846137c7565b6124b3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60185481565b6124c861414c565b6124d061414c565b6124d86130b7565b8310806124ec57506124e8613771565b8310155b156124fa5780915050612525565b61250383613746565b90508060400151156125185780915050612525565b61252183613917565b9150505b919050565b606061253582613046565b61256b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612575613937565b9050600081510361259557604051806020016040528060008152506125c0565b8061259f846139c9565b6040516020016125b09291906153fc565b6040516020818303038152906040525b915050919050565b600c80546125d590614e83565b80601f016020809104026020016040519081016040528092919081815260200182805461260190614e83565b801561264e5780601f106126235761010080835404028352916020019161264e565b820191906000526020600020905b81548152906001019060200180831161263157829003601f168201915b505050505081565b600f5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146126c0576040517e12570700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54816126cc613256565b6126d69190614f17565b111561270e576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060028111156127225761272161490a565b5b601560009054906101000a900460ff1660028111156127445761274361490a565b5b0361277b576040517f3f88677400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600281111561278f5761278e61490a565b5b601560009054906101000a900460ff1660028111156127b1576127b061490a565b5b036129c157601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561283a576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6011548160125461284b9190614f17565b1115612883576040517fe4690b6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128c383836040518060400160405280600b81526020017f7075626c69632073616c65000000000000000000000000000000000000000000815250613a19565b60028111156128fe576040517ffaa3444d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f5461290c9190614f4b565b341015612945576040517fe058b89800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080601260008282546129af9190614f17565b925050819055506129c03382613269565b5b6002808111156129d4576129d361490a565b5b601560009054906101000a900460ff1660028111156129f6576129f561490a565b5b03612b2f576001612a0633613b31565b67ffffffffffffffff1603612a47576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a8783836040518060400160405280601381526020017f6f726967696e616c207a6f6469612073616c6500000000000000000000000000815250613a19565b6001811115612ac2576040517ffaa3444d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601054341015612afe576040517fe058b89800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b09336001613b7e565b600160136000828254612b1c9190614f17565b92505081905550612b2e336001613269565b5b505050565b6000612b3f82613c34565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612be2612e33565b80601960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001612c5983613b31565b67ffffffffffffffff16149050919050565b612c73612e33565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612ce2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd990615492565b60405180910390fd5b612ceb81613680565b50565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601960009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d8257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612db25750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e2c5750612e2b82613c8b565b5b9050919050565b612e3b613cf5565b73ffffffffffffffffffffffffffffffffffffffff16612e59611f65565b73ffffffffffffffffffffffffffffffffffffffff1614612eaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea6906154fe565b60405180910390fd5b565b612eb9613424565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0e90615590565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7d906155fc565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816130516130b7565b11158015613060575060005482105b801561309e575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000600154905090565b60006001905090565b600080829050806130cf6130b7565b11613155576000548110156131545760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613152575b6000810361314857600460008360019003935083815260200190815260200160002054905061311e565b8092505050613187565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613214868684613cfd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006132606130b7565b60005403905090565b600080549050600082036132a9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132b660008483856131f7565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061332d8361331e60008660006131fd565b61332785613d06565b17613225565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146133ce57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613393565b5060008203613409576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061341f6000848385613250565b505050565b6000612710905090565b6000613439836130c0565b9050600081905060008061344c8661318c565b9150915084156134b55761346881846134636130a5565b6131b3565b6134b45761347d836134786130a5565b612b46565b6134b3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6134c38360008860016131f7565b80156134ce57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061357683613533856000886131fd565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613225565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036135fc57600060018701905060006004600083815260200190815260200160002054036135fa5760005481146135f9578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613666836000886001613250565b600160008154809291906001019190505550505050505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61374e61414c565b61376a6004600084815260200190815260200160002054613d16565b9050919050565b60008054905090565b600a600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137ed6130a5565b8786866040518563ffffffff1660e01b815260040161380f9493929190615671565b6020604051808303816000875af192505050801561384b57506040513d601f19601f8201168201806040525081019061384891906156d2565b60015b6138c4573d806000811461387b576040519150601f19603f3d011682016040523d82523d6000602084013e613880565b606091505b5060008151036138bc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61391f61414c565b61393061392b836130c0565b613d16565b9050919050565b6060600c805461394690614e83565b80601f016020809104026020016040519081016040528092919081815260200182805461397290614e83565b80156139bf5780601f10613994576101008083540402835291602001916139bf565b820191906000526020600020905b8154815290600101906020018083116139a257829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115613a0457600184039350600a81066030018453600a81049050806139e2575b50828103602084039350808452505050919050565b6000613aa284848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613a943385604051602001613a79929190615747565b60405160208183030381529060405280519060200120613dcc565b613dfc90919063ffffffff16565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613b2b576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600067ffffffffffffffff6080600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b613d1e61414c565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600081604051602001613ddf91906157e6565b604051602081830303815290604052805190602001209050919050565b6000806000613e0b8585613e23565b91509150613e1881613e74565b819250505092915050565b6000806041835103613e645760008060006020860151925060408601519150606086015160001a9050613e5887828585614040565b94509450505050613e6d565b60006002915091505b9250929050565b60006004811115613e8857613e8761490a565b5b816004811115613e9b57613e9a61490a565b5b031561403d5760016004811115613eb557613eb461490a565b5b816004811115613ec857613ec761490a565b5b03613f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eff90615858565b60405180910390fd5b60026004811115613f1c57613f1b61490a565b5b816004811115613f2f57613f2e61490a565b5b03613f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f66906158c4565b60405180910390fd5b60036004811115613f8357613f8261490a565b5b816004811115613f9657613f9561490a565b5b03613fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613fcd90615956565b60405180910390fd5b600480811115613fe957613fe861490a565b5b816004811115613ffc57613ffb61490a565b5b0361403c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614033906159e8565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561407b576000600391509150614143565b601b8560ff16141580156140935750601c8560ff1614155b156140a5576000600491509150614143565b6000600187878787604051600081526020016040526040516140ca9493929190615a33565b6020604051602081039080840390855afa1580156140ec573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361413a57600060019250925050614143565b80600092509250505b94509492505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6141e4816141af565b81146141ef57600080fd5b50565b600081359050614201816141db565b92915050565b60006020828403121561421d5761421c6141a5565b5b600061422b848285016141f2565b91505092915050565b60008115159050919050565b61424981614234565b82525050565b60006020820190506142646000830184614240565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006142958261426a565b9050919050565b6142a58161428a565b81146142b057600080fd5b50565b6000813590506142c28161429c565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6142e9816142c8565b81146142f457600080fd5b50565b600081359050614306816142e0565b92915050565b60008060408385031215614323576143226141a5565b5b6000614331858286016142b3565b9250506020614342858286016142f7565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561438657808201518184015260208101905061436b565b60008484015250505050565b6000601f19601f8301169050919050565b60006143ae8261434c565b6143b88185614357565b93506143c8818560208601614368565b6143d181614392565b840191505092915050565b600060208201905081810360008301526143f681846143a3565b905092915050565b6000819050919050565b614411816143fe565b811461441c57600080fd5b50565b60008135905061442e81614408565b92915050565b60006020828403121561444a576144496141a5565b5b60006144588482850161441f565b91505092915050565b61446a8161428a565b82525050565b60006020820190506144856000830184614461565b92915050565b600080604083850312156144a2576144a16141a5565b5b60006144b0858286016142b3565b92505060206144c18582860161441f565b9150509250929050565b6144d4816143fe565b82525050565b60006020820190506144ef60008301846144cb565b92915050565b60008060006060848603121561450e5761450d6141a5565b5b600061451c868287016142b3565b935050602061452d868287016142b3565b925050604061453e8682870161441f565b9150509250925092565b6000806040838503121561455f5761455e6141a5565b5b600061456d8582860161441f565b925050602061457e8582860161441f565b9150509250929050565b600060408201905061459d6000830185614461565b6145aa60208301846144cb565b9392505050565b6000602082840312156145c7576145c66141a5565b5b60006145d5848285016142b3565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112614603576146026145de565b5b8235905067ffffffffffffffff8111156146205761461f6145e3565b5b60208301915083600182028301111561463c5761463b6145e8565b5b9250929050565b6000806020838503121561465a576146596141a5565b5b600083013567ffffffffffffffff811115614678576146776141aa565b5b614684858286016145ed565b92509250509250929050565b6003811061469d57600080fd5b50565b6000813590506146af81614690565b92915050565b6000602082840312156146cb576146ca6141a5565b5b60006146d9848285016146a0565b91505092915050565b60008083601f8401126146f8576146f76145de565b5b8235905067ffffffffffffffff811115614715576147146145e3565b5b602083019150836020820283011115614731576147306145e8565b5b9250929050565b6000806020838503121561474f5761474e6141a5565b5b600083013567ffffffffffffffff81111561476d5761476c6141aa565b5b614779858286016146e2565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6147ba8161428a565b82525050565b600067ffffffffffffffff82169050919050565b6147dd816147c0565b82525050565b6147ec81614234565b82525050565b600062ffffff82169050919050565b61480a816147f2565b82525050565b60808201600082015161482660008501826147b1565b50602082015161483960208501826147d4565b50604082015161484c60408501826147e3565b50606082015161485f6060850182614801565b50505050565b60006148718383614810565b60808301905092915050565b6000602082019050919050565b600061489582614785565b61489f8185614790565b93506148aa836147a1565b8060005b838110156148db5781516148c28882614865565b97506148cd8361487d565b9250506001810190506148ae565b5085935050505092915050565b60006020820190508181036000830152614902818461488a565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061494a5761494961490a565b5b50565b600081905061495b82614939565b919050565b600061496b8261494d565b9050919050565b61497b81614960565b82525050565b60006020820190506149966000830184614972565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149d1816143fe565b82525050565b60006149e383836149c8565b60208301905092915050565b6000602082019050919050565b6000614a078261499c565b614a1181856149a7565b9350614a1c836149b8565b8060005b83811015614a4d578151614a3488826149d7565b9750614a3f836149ef565b925050600181019050614a20565b5085935050505092915050565b60006020820190508181036000830152614a7481846149fc565b905092915050565b600080600060608486031215614a9557614a946141a5565b5b6000614aa3868287016142b3565b9350506020614ab48682870161441f565b9250506040614ac58682870161441f565b9150509250925092565b614ad881614234565b8114614ae357600080fd5b50565b600081359050614af581614acf565b92915050565b60008060408385031215614b1257614b116141a5565b5b6000614b20858286016142b3565b9250506020614b3185828601614ae6565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614b7882614392565b810181811067ffffffffffffffff82111715614b9757614b96614b40565b5b80604052505050565b6000614baa61419b565b9050614bb68282614b6f565b919050565b600067ffffffffffffffff821115614bd657614bd5614b40565b5b614bdf82614392565b9050602081019050919050565b82818337600083830152505050565b6000614c0e614c0984614bbb565b614ba0565b905082815260208101848484011115614c2a57614c29614b3b565b5b614c35848285614bec565b509392505050565b600082601f830112614c5257614c516145de565b5b8135614c62848260208601614bfb565b91505092915050565b60008060008060808587031215614c8557614c846141a5565b5b6000614c93878288016142b3565b9450506020614ca4878288016142b3565b9350506040614cb58782880161441f565b925050606085013567ffffffffffffffff811115614cd657614cd56141aa565b5b614ce287828801614c3d565b91505092959194509250565b608082016000820151614d0460008501826147b1565b506020820151614d1760208501826147d4565b506040820151614d2a60408501826147e3565b506060820151614d3d6060850182614801565b50505050565b6000608082019050614d586000830184614cee565b92915050565b60008083601f840112614d7457614d736145de565b5b8235905067ffffffffffffffff811115614d9157614d906145e3565b5b602083019150836001820283011115614dad57614dac6145e8565b5b9250929050565b600080600060408486031215614dcd57614dcc6141a5565b5b600084013567ffffffffffffffff811115614deb57614dea6141aa565b5b614df786828701614d5e565b93509350506020614e0a8682870161441f565b9150509250925092565b60008060408385031215614e2b57614e2a6141a5565b5b6000614e39858286016142b3565b9250506020614e4a858286016142b3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e9b57607f821691505b602082108103614eae57614ead614e54565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614eee826143fe565b9150614ef9836143fe565b9250828203905081811115614f1157614f10614eb4565b5b92915050565b6000614f22826143fe565b9150614f2d836143fe565b9250828201905080821115614f4557614f44614eb4565b5b92915050565b6000614f56826143fe565b9150614f61836143fe565b9250828202614f6f816143fe565b91508282048414831517614f8657614f85614eb4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fc7826143fe565b9150614fd2836143fe565b925082614fe257614fe1614f8d565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615023601f83614357565b915061502e82614fed565b602082019050919050565b6000602082019050818103600083015261505281615016565b9050919050565b60008151905061506881614408565b92915050565b600060208284031215615084576150836141a5565b5b600061509284828501615059565b91505092915050565b60006040820190506150b060008301856144cb565b6150bd60208301846144cb565b9392505050565b600081905092915050565b50565b60006150df6000836150c4565b91506150ea826150cf565b600082019050919050565b6000615100826150d2565b9150819050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026151777fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261513a565b615181868361513a565b95508019841693508086168417925050509392505050565b6000819050919050565b60006151be6151b96151b4846143fe565b615199565b6143fe565b9050919050565b6000819050919050565b6151d8836151a3565b6151ec6151e4826151c5565b848454615147565b825550505050565b600090565b6152016151f4565b61520c8184846151cf565b505050565b5b81811015615230576152256000826151f9565b600181019050615212565b5050565b601f8211156152755761524681615115565b61524f8461512a565b8101602085101561525e578190505b61527261526a8561512a565b830182615211565b50505b505050565b600082821c905092915050565b60006152986000198460080261527a565b1980831691505092915050565b60006152b18383615287565b9150826002028217905092915050565b6152cb838361510a565b67ffffffffffffffff8111156152e4576152e3614b40565b5b6152ee8254614e83565b6152f9828285615234565b6000601f8311600181146153285760008415615316578287013590505b61532085826152a5565b865550615388565b601f19841661533686615115565b60005b8281101561535e57848901358255600182019150602085019450602081019050615339565b8683101561537b5784890135615377601f891682615287565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60006153d68261434c565b6153e081856153c0565b93506153f0818560208601614368565b80840191505092915050565b600061540882856153cb565b915061541482846153cb565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061547c602683614357565b915061548782615420565b604082019050919050565b600060208201905081810360008301526154ab8161546f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154e8602083614357565b91506154f3826154b2565b602082019050919050565b60006020820190508181036000830152615517816154db565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061557a602a83614357565b91506155858261551e565b604082019050919050565b600060208201905081810360008301526155a98161556d565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006155e6601983614357565b91506155f1826155b0565b602082019050919050565b60006020820190508181036000830152615615816155d9565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006156438261561c565b61564d8185615627565b935061565d818560208601614368565b61566681614392565b840191505092915050565b60006080820190506156866000830187614461565b6156936020830186614461565b6156a060408301856144cb565b81810360608301526156b28184615638565b905095945050505050565b6000815190506156cc816141db565b92915050565b6000602082840312156156e8576156e76141a5565b5b60006156f6848285016156bd565b91505092915050565b60008160601b9050919050565b6000615717826156ff565b9050919050565b60006157298261570c565b9050919050565b61574161573c8261428a565b61571e565b82525050565b60006157538285615730565b60148201915061576382846153cb565b91508190509392505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006157a5601c836153c0565b91506157b08261576f565b601c82019050919050565b6000819050919050565b6000819050919050565b6157e06157db826157bb565b6157c5565b82525050565b60006157f182615798565b91506157fd82846157cf565b60208201915081905092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615842601883614357565b915061584d8261580c565b602082019050919050565b6000602082019050818103600083015261587181615835565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006158ae601f83614357565b91506158b982615878565b602082019050919050565b600060208201905081810360008301526158dd816158a1565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615940602283614357565b915061594b826158e4565b604082019050919050565b6000602082019050818103600083015261596f81615933565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006159d2602283614357565b91506159dd82615976565b604082019050919050565b60006020820190508181036000830152615a01816159c5565b9050919050565b615a11816157bb565b82525050565b600060ff82169050919050565b615a2d81615a17565b82525050565b6000608082019050615a486000830187615a08565b615a556020830186615a24565b615a626040830185615a08565b615a6f6060830184615a08565b9594505050505056fea26469706673582212201de43808ae0a27b82b2c529412a569f07e72faa338cb20c1574f35716f03996f64736f6c634300081100330000000000000000000000005fc32481222d0444d4cc2196a79e544ce42a0ec5

Deployed Bytecode

0x60806040526004361061036b5760003560e01c8063715018a6116101c6578063bbe68cf0116100f7578063e985e9c511610095578063f01fcf661161006f578063f01fcf6614610c74578063f2fde38b14610cb1578063fd0c7a3714610cda578063fdfcfc3f14610d055761036b565b8063e985e9c514610be3578063ee44dcf314610c20578063ef550f3414610c495761036b565b8063d547cfb7116100d1578063d547cfb714610b34578063dc53fd9214610b5f578063dc9c740a14610b8a578063e84798a414610ba65761036b565b8063bbe68cf014610a8f578063c23dc68f14610aba578063c87b56dd14610af75761036b565b806397d8237711610164578063aa1b103f1161013e578063aa1b103f14610a08578063b46abf2714610a1f578063b6a1dba114610a4a578063b88d4fde14610a735761036b565b806397d823771461097757806399a2557a146109a2578063a22cb465146109df5761036b565b80638462151c116101a05780638462151c146108a75780638da5cb5b146108e45780639053ea651461090f57806395d89b411461094c5761036b565b8063715018a61461085057806371587311146108675780637c7060ca146108905761036b565b806332538c0f116102a05780635a67de071161023e578063603f4d5211610218578063603f4d52146107825780636352211e146107ad5780636c19e783146107ea57806370a08231146108135761036b565b80635a67de07146106f35780635bbb21771461071c5780635d82cf6e146107595761036b565b806342842e0e1161027a57806342842e0e1461065c57806349827116146106785780634dfa0dad146106a157806355f804b3146106ca5761036b565b806332538c0f146105dd57806337df1d3e1461061a5780633ccfd60b146106455761036b565b806317b006ea1161030d578063238ac933116102e7578063238ac9331461052f57806323b872dd1461055a57806325c5ce85146105765780632a55205a1461059f5761036b565b806317b006ea146104b057806318160ddd146104d95780631aeadad0146105045761036b565b8063081812fc11610349578063081812fc14610401578063095ea7b31461043e578063097ad3c21461045a57806314b517d5146104855761036b565b806301ffc9a71461037057806304634d8d146103ad57806306fdde03146103d6575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190614207565b610d30565b6040516103a4919061424f565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf919061430c565b610d52565b005b3480156103e257600080fd5b506103eb610d68565b6040516103f891906143dc565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190614434565b610dfa565b6040516104359190614470565b60405180910390f35b6104586004803603810190610453919061448b565b610e79565b005b34801561046657600080fd5b5061046f610fbd565b60405161047c91906144da565b60405180910390f35b34801561049157600080fd5b5061049a610fc3565b6040516104a791906144da565b60405180910390f35b3480156104bc57600080fd5b506104d760048036038101906104d29190614434565b610fd2565b005b3480156104e557600080fd5b506104ee611032565b6040516104fb91906144da565b60405180910390f35b34801561051057600080fd5b50610519611049565b60405161052691906144da565b60405180910390f35b34801561053b57600080fd5b5061054461104f565b6040516105519190614470565b60405180910390f35b610574600480360381019061056f91906144f5565b611075565b005b34801561058257600080fd5b5061059d6004803603810190610598919061448b565b611397565b005b3480156105ab57600080fd5b506105c660048036038101906105c19190614548565b611436565b6040516105d4929190614588565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff9190614434565b611620565b60405161061191906144da565b60405180910390f35b34801561062657600080fd5b5061062f6118af565b60405161063c91906144da565b60405180910390f35b34801561065157600080fd5b5061065a6118b5565b005b610676600480360381019061067191906144f5565b611a16565b005b34801561068457600080fd5b5061069f600480360381019061069a9190614434565b611a36565b005b3480156106ad57600080fd5b506106c860048036038101906106c391906145b1565b611ac5565b005b3480156106d657600080fd5b506106f160048036038101906106ec9190614643565b611b11565b005b3480156106ff57600080fd5b5061071a600480360381019061071591906146b5565b611b2f565b005b34801561072857600080fd5b50610743600480360381019061073e9190614738565b611b64565b60405161075091906148e8565b60405180910390f35b34801561076557600080fd5b50610780600480360381019061077b9190614434565b611c27565b005b34801561078e57600080fd5b50610797611c39565b6040516107a49190614981565b60405180910390f35b3480156107b957600080fd5b506107d460048036038101906107cf9190614434565b611c4c565b6040516107e19190614470565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c91906145b1565b611c5e565b005b34801561081f57600080fd5b5061083a600480360381019061083591906145b1565b611d10565b60405161084791906144da565b60405180910390f35b34801561085c57600080fd5b50610865611dc8565b005b34801561087357600080fd5b5061088e60048036038101906108899190614434565b611ddc565b005b34801561089c57600080fd5b506108a5611dee565b005b3480156108b357600080fd5b506108ce60048036038101906108c991906145b1565b611e22565b6040516108db9190614a5a565b60405180910390f35b3480156108f057600080fd5b506108f9611f65565b6040516109069190614470565b60405180910390f35b34801561091b57600080fd5b50610936600480360381019061093191906145b1565b611f8f565b604051610943919061424f565b60405180910390f35b34801561095857600080fd5b50610961611faf565b60405161096e91906143dc565b60405180910390f35b34801561098357600080fd5b5061098c612041565b60405161099991906144da565b60405180910390f35b3480156109ae57600080fd5b506109c960048036038101906109c49190614a7c565b612047565b6040516109d69190614a5a565b60405180910390f35b3480156109eb57600080fd5b50610a066004803603810190610a019190614afb565b612253565b005b348015610a1457600080fd5b50610a1d61235e565b005b348015610a2b57600080fd5b50610a34612370565b604051610a4191906144da565b60405180910390f35b348015610a5657600080fd5b50610a716004803603810190610a6c91906145b1565b612376565b005b610a8d6004803603810190610a889190614c6b565b612447565b005b348015610a9b57600080fd5b50610aa46124ba565b604051610ab191906144da565b60405180910390f35b348015610ac657600080fd5b50610ae16004803603810190610adc9190614434565b6124c0565b604051610aee9190614d43565b60405180910390f35b348015610b0357600080fd5b50610b1e6004803603810190610b199190614434565b61252a565b604051610b2b91906143dc565b60405180910390f35b348015610b4057600080fd5b50610b496125c8565b604051610b5691906143dc565b60405180910390f35b348015610b6b57600080fd5b50610b74612656565b604051610b8191906144da565b60405180910390f35b610ba46004803603810190610b9f9190614db4565b61265c565b005b348015610bb257600080fd5b50610bcd6004803603810190610bc891906145b1565b612b34565b604051610bda91906144da565b60405180910390f35b348015610bef57600080fd5b50610c0a6004803603810190610c059190614e14565b612b46565b604051610c17919061424f565b60405180910390f35b348015610c2c57600080fd5b50610c476004803603810190610c4291906145b1565b612bda565b005b348015610c5557600080fd5b50610c5e612c26565b604051610c6b9190614470565b60405180910390f35b348015610c8057600080fd5b50610c9b6004803603810190610c9691906145b1565b612c4c565b604051610ca8919061424f565b60405180910390f35b348015610cbd57600080fd5b50610cd86004803603810190610cd391906145b1565b612c6b565b005b348015610ce657600080fd5b50610cef612cee565b604051610cfc9190614470565b60405180910390f35b348015610d1157600080fd5b50610d1a612d14565b604051610d27919061424f565b60405180910390f35b6000610d3b82612d27565b80610d4b5750610d4a82612db9565b5b9050919050565b610d5a612e33565b610d648282612eb1565b5050565b606060028054610d7790614e83565b80601f0160208091040260200160405190810160405280929190818152602001828054610da390614e83565b8015610df05780601f10610dc557610100808354040283529160200191610df0565b820191906000526020600020905b815481529060010190602001808311610dd357829003601f168201915b5050505050905090565b6000610e0582613046565b610e3b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610e8482611c4c565b90508073ffffffffffffffffffffffffffffffffffffffff16610ea56130a5565b73ffffffffffffffffffffffffffffffffffffffff1614610f0857610ed181610ecc6130a5565b612b46565b610f07576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60105481565b6000610fcd6130ad565b905090565b610fda612e33565b610fe2611032565b600e54610fef9190614ee3565b811115611028576040517fc3b8ca5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060118190555050565b600061103c6130b7565b6001546000540303905090565b60115481565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611080826130c0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110e7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806110f38461318c565b9150915061110981876111046130a5565b6131b3565b6111555761111e866111196130a5565b612b46565b611154576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036111bb576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111c886868660016131f7565b80156111d357600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112a18561127d8888876131fd565b7c020000000000000000000000000000000000000000000000000000000017613225565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036113275760006001850190506000600460008381526020019081526020016000205403611325576000548114611324578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461138f8686866001613250565b505050505050565b61139f612e33565b60198111156113da576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54816113e6613256565b6113f09190614f17565b1115611428576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114328282613269565b5050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036115cb57600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006115d5613424565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866116019190614f4b565b61160b9190614fbc565b90508160000151819350935050509250929050565b6000600260085403611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165e90615039565b60405180910390fd5b6002600881905550600073ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036116f7576040517f4e323e1a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601960009054906101000a900460ff1661173d576040517f2736019a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061174883611c4c565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117af576040517f2f475caf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506117e184600161342e565b60008173ffffffffffffffffffffffffffffffffffffffff1663ea2388d884876040518363ffffffff1660e01b815260040161181e929190614588565b6020604051808303816000875af115801561183d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611861919061506e565b90507f9a78eace5dfff4f66c73b7e4d7e286867e096595588e54a83639c0317b461411858260405161189492919061509b565b60405180910390a18093505050506001600881905550919050565b60135481565b6118bd612e33565b6000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166064601854476119089190614f4b565b6119129190614fbc565b60405161191e906150f5565b60006040518083038185875af1925050503d806000811461195b576040519150601f19603f3d011682016040523d82523d6000602084013e611960565b606091505b5050905060003373ffffffffffffffffffffffffffffffffffffffff164760405161198a906150f5565b60006040518083038185875af1925050503d80600081146119c7576040519150601f19603f3d011682016040523d82523d6000602084013e6119cc565b606091505b505090508115806119db575080155b15611a12576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b611a3183838360405180602001604052806000815250612447565b505050565b611a3e612e33565b6115b3811115611a7a576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a82611032565b811015611abb576040517f529c95a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e8190555050565b611acd612e33565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611b19612e33565b8181600c9182611b2a9291906152c1565b505050565b611b37612e33565b80601560006101000a81548160ff02191690836002811115611b5c57611b5b61490a565b5b021790555050565b6060600083839050905060008167ffffffffffffffff811115611b8a57611b89614b40565b5b604051908082528060200260200182016040528015611bc357816020015b611bb061414c565b815260200190600190039081611ba85790505b50905060005b828114611c1b57611bf2868683818110611be657611be5615391565b5b905060200201356124c0565b828281518110611c0557611c04615391565b5b6020026020010181905250806001019050611bc9565b50809250505092915050565b611c2f612e33565b80600f8190555050565b601560009054906101000a900460ff1681565b6000611c57826130c0565b9050919050565b611c66612e33565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ccc576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d77576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611dd0612e33565b611dda6000613680565b565b611de4612e33565b8060108190555050565b611df6612e33565b601960009054906101000a900460ff1615601960006101000a81548160ff021916908315150217905550565b60606000806000611e3285611d10565b905060008167ffffffffffffffff811115611e5057611e4f614b40565b5b604051908082528060200260200182016040528015611e7e5781602001602082028036833780820191505090505b509050611e8961414c565b6000611e936130b7565b90505b838614611f5757611ea681613746565b91508160400151611f4c57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611ef157816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f4b5780838780600101985081518110611f3e57611f3d615391565b5b6020026020010181815250505b5b806001019050611e96565b508195505050505050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60166020528060005260406000206000915054906101000a900460ff1681565b606060038054611fbe90614e83565b80601f0160208091040260200160405190810160405280929190818152602001828054611fea90614e83565b80156120375780601f1061200c57610100808354040283529160200191612037565b820191906000526020600020905b81548152906001019060200180831161201a57829003601f168201915b5050505050905090565b600e5481565b6060818310612082576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061208d613771565b90506120976130b7565b8510156120a9576120a66130b7565b94505b808411156120b5578093505b60006120c087611d10565b9050848610156120e35760008686039050818110156120dd578091505b506120e8565b600090505b60008167ffffffffffffffff81111561210457612103614b40565b5b6040519080825280602002602001820160405280156121325781602001602082028036833780820191505090505b50905060008203612149578094505050505061224c565b6000612154886124c0565b90506000816040015161216957816000015190505b60008990505b88811415801561217f5750848714155b1561223e5761218d81613746565b9250826040015161223357600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146121d857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612232578084888060010199508151811061222557612224615391565b5b6020026020010181815250505b5b80600101905061216f565b508583528296505050505050505b9392505050565b80600760006122606130a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661230d6130a5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612352919061424f565b60405180910390a35050565b612366612e33565b61236e61377a565b565b60125481565b61237e612e33565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123e4576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e546123ef613256565b03612426576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61244481612432613256565b600e5461243f9190614ee3565b613269565b50565b612452848484611075565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124b45761247d848484846137c7565b6124b3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60185481565b6124c861414c565b6124d061414c565b6124d86130b7565b8310806124ec57506124e8613771565b8310155b156124fa5780915050612525565b61250383613746565b90508060400151156125185780915050612525565b61252183613917565b9150505b919050565b606061253582613046565b61256b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612575613937565b9050600081510361259557604051806020016040528060008152506125c0565b8061259f846139c9565b6040516020016125b09291906153fc565b6040516020818303038152906040525b915050919050565b600c80546125d590614e83565b80601f016020809104026020016040519081016040528092919081815260200182805461260190614e83565b801561264e5780601f106126235761010080835404028352916020019161264e565b820191906000526020600020905b81548152906001019060200180831161263157829003601f168201915b505050505081565b600f5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146126c0576040517e12570700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54816126cc613256565b6126d69190614f17565b111561270e576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060028111156127225761272161490a565b5b601560009054906101000a900460ff1660028111156127445761274361490a565b5b0361277b576040517f3f88677400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600281111561278f5761278e61490a565b5b601560009054906101000a900460ff1660028111156127b1576127b061490a565b5b036129c157601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561283a576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6011548160125461284b9190614f17565b1115612883576040517fe4690b6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128c383836040518060400160405280600b81526020017f7075626c69632073616c65000000000000000000000000000000000000000000815250613a19565b60028111156128fe576040517ffaa3444d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f5461290c9190614f4b565b341015612945576040517fe058b89800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080601260008282546129af9190614f17565b925050819055506129c03382613269565b5b6002808111156129d4576129d361490a565b5b601560009054906101000a900460ff1660028111156129f6576129f561490a565b5b03612b2f576001612a0633613b31565b67ffffffffffffffff1603612a47576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a8783836040518060400160405280601381526020017f6f726967696e616c207a6f6469612073616c6500000000000000000000000000815250613a19565b6001811115612ac2576040517ffaa3444d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601054341015612afe576040517fe058b89800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b09336001613b7e565b600160136000828254612b1c9190614f17565b92505081905550612b2e336001613269565b5b505050565b6000612b3f82613c34565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612be2612e33565b80601960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001612c5983613b31565b67ffffffffffffffff16149050919050565b612c73612e33565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612ce2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd990615492565b60405180910390fd5b612ceb81613680565b50565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601960009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d8257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612db25750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e2c5750612e2b82613c8b565b5b9050919050565b612e3b613cf5565b73ffffffffffffffffffffffffffffffffffffffff16612e59611f65565b73ffffffffffffffffffffffffffffffffffffffff1614612eaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea6906154fe565b60405180910390fd5b565b612eb9613424565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0e90615590565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7d906155fc565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816130516130b7565b11158015613060575060005482105b801561309e575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000600154905090565b60006001905090565b600080829050806130cf6130b7565b11613155576000548110156131545760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613152575b6000810361314857600460008360019003935083815260200190815260200160002054905061311e565b8092505050613187565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613214868684613cfd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006132606130b7565b60005403905090565b600080549050600082036132a9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132b660008483856131f7565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061332d8361331e60008660006131fd565b61332785613d06565b17613225565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146133ce57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613393565b5060008203613409576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061341f6000848385613250565b505050565b6000612710905090565b6000613439836130c0565b9050600081905060008061344c8661318c565b9150915084156134b55761346881846134636130a5565b6131b3565b6134b45761347d836134786130a5565b612b46565b6134b3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6134c38360008860016131f7565b80156134ce57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061357683613533856000886131fd565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613225565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036135fc57600060018701905060006004600083815260200190815260200160002054036135fa5760005481146135f9578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613666836000886001613250565b600160008154809291906001019190505550505050505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61374e61414c565b61376a6004600084815260200190815260200160002054613d16565b9050919050565b60008054905090565b600a600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137ed6130a5565b8786866040518563ffffffff1660e01b815260040161380f9493929190615671565b6020604051808303816000875af192505050801561384b57506040513d601f19601f8201168201806040525081019061384891906156d2565b60015b6138c4573d806000811461387b576040519150601f19603f3d011682016040523d82523d6000602084013e613880565b606091505b5060008151036138bc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61391f61414c565b61393061392b836130c0565b613d16565b9050919050565b6060600c805461394690614e83565b80601f016020809104026020016040519081016040528092919081815260200182805461397290614e83565b80156139bf5780601f10613994576101008083540402835291602001916139bf565b820191906000526020600020905b8154815290600101906020018083116139a257829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115613a0457600184039350600a81066030018453600a81049050806139e2575b50828103602084039350808452505050919050565b6000613aa284848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613a943385604051602001613a79929190615747565b60405160208183030381529060405280519060200120613dcc565b613dfc90919063ffffffff16565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613b2b576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600067ffffffffffffffff6080600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b613d1e61414c565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600081604051602001613ddf91906157e6565b604051602081830303815290604052805190602001209050919050565b6000806000613e0b8585613e23565b91509150613e1881613e74565b819250505092915050565b6000806041835103613e645760008060006020860151925060408601519150606086015160001a9050613e5887828585614040565b94509450505050613e6d565b60006002915091505b9250929050565b60006004811115613e8857613e8761490a565b5b816004811115613e9b57613e9a61490a565b5b031561403d5760016004811115613eb557613eb461490a565b5b816004811115613ec857613ec761490a565b5b03613f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eff90615858565b60405180910390fd5b60026004811115613f1c57613f1b61490a565b5b816004811115613f2f57613f2e61490a565b5b03613f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f66906158c4565b60405180910390fd5b60036004811115613f8357613f8261490a565b5b816004811115613f9657613f9561490a565b5b03613fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613fcd90615956565b60405180910390fd5b600480811115613fe957613fe861490a565b5b816004811115613ffc57613ffb61490a565b5b0361403c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614033906159e8565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561407b576000600391509150614143565b601b8560ff16141580156140935750601c8560ff1614155b156140a5576000600491509150614143565b6000600187878787604051600081526020016040526040516140ca9493929190615a33565b6020604051602081039080840390855afa1580156140ec573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361413a57600060019250925050614143565b80600092509250505b94509492505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6141e4816141af565b81146141ef57600080fd5b50565b600081359050614201816141db565b92915050565b60006020828403121561421d5761421c6141a5565b5b600061422b848285016141f2565b91505092915050565b60008115159050919050565b61424981614234565b82525050565b60006020820190506142646000830184614240565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006142958261426a565b9050919050565b6142a58161428a565b81146142b057600080fd5b50565b6000813590506142c28161429c565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6142e9816142c8565b81146142f457600080fd5b50565b600081359050614306816142e0565b92915050565b60008060408385031215614323576143226141a5565b5b6000614331858286016142b3565b9250506020614342858286016142f7565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561438657808201518184015260208101905061436b565b60008484015250505050565b6000601f19601f8301169050919050565b60006143ae8261434c565b6143b88185614357565b93506143c8818560208601614368565b6143d181614392565b840191505092915050565b600060208201905081810360008301526143f681846143a3565b905092915050565b6000819050919050565b614411816143fe565b811461441c57600080fd5b50565b60008135905061442e81614408565b92915050565b60006020828403121561444a576144496141a5565b5b60006144588482850161441f565b91505092915050565b61446a8161428a565b82525050565b60006020820190506144856000830184614461565b92915050565b600080604083850312156144a2576144a16141a5565b5b60006144b0858286016142b3565b92505060206144c18582860161441f565b9150509250929050565b6144d4816143fe565b82525050565b60006020820190506144ef60008301846144cb565b92915050565b60008060006060848603121561450e5761450d6141a5565b5b600061451c868287016142b3565b935050602061452d868287016142b3565b925050604061453e8682870161441f565b9150509250925092565b6000806040838503121561455f5761455e6141a5565b5b600061456d8582860161441f565b925050602061457e8582860161441f565b9150509250929050565b600060408201905061459d6000830185614461565b6145aa60208301846144cb565b9392505050565b6000602082840312156145c7576145c66141a5565b5b60006145d5848285016142b3565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112614603576146026145de565b5b8235905067ffffffffffffffff8111156146205761461f6145e3565b5b60208301915083600182028301111561463c5761463b6145e8565b5b9250929050565b6000806020838503121561465a576146596141a5565b5b600083013567ffffffffffffffff811115614678576146776141aa565b5b614684858286016145ed565b92509250509250929050565b6003811061469d57600080fd5b50565b6000813590506146af81614690565b92915050565b6000602082840312156146cb576146ca6141a5565b5b60006146d9848285016146a0565b91505092915050565b60008083601f8401126146f8576146f76145de565b5b8235905067ffffffffffffffff811115614715576147146145e3565b5b602083019150836020820283011115614731576147306145e8565b5b9250929050565b6000806020838503121561474f5761474e6141a5565b5b600083013567ffffffffffffffff81111561476d5761476c6141aa565b5b614779858286016146e2565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6147ba8161428a565b82525050565b600067ffffffffffffffff82169050919050565b6147dd816147c0565b82525050565b6147ec81614234565b82525050565b600062ffffff82169050919050565b61480a816147f2565b82525050565b60808201600082015161482660008501826147b1565b50602082015161483960208501826147d4565b50604082015161484c60408501826147e3565b50606082015161485f6060850182614801565b50505050565b60006148718383614810565b60808301905092915050565b6000602082019050919050565b600061489582614785565b61489f8185614790565b93506148aa836147a1565b8060005b838110156148db5781516148c28882614865565b97506148cd8361487d565b9250506001810190506148ae565b5085935050505092915050565b60006020820190508181036000830152614902818461488a565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061494a5761494961490a565b5b50565b600081905061495b82614939565b919050565b600061496b8261494d565b9050919050565b61497b81614960565b82525050565b60006020820190506149966000830184614972565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149d1816143fe565b82525050565b60006149e383836149c8565b60208301905092915050565b6000602082019050919050565b6000614a078261499c565b614a1181856149a7565b9350614a1c836149b8565b8060005b83811015614a4d578151614a3488826149d7565b9750614a3f836149ef565b925050600181019050614a20565b5085935050505092915050565b60006020820190508181036000830152614a7481846149fc565b905092915050565b600080600060608486031215614a9557614a946141a5565b5b6000614aa3868287016142b3565b9350506020614ab48682870161441f565b9250506040614ac58682870161441f565b9150509250925092565b614ad881614234565b8114614ae357600080fd5b50565b600081359050614af581614acf565b92915050565b60008060408385031215614b1257614b116141a5565b5b6000614b20858286016142b3565b9250506020614b3185828601614ae6565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614b7882614392565b810181811067ffffffffffffffff82111715614b9757614b96614b40565b5b80604052505050565b6000614baa61419b565b9050614bb68282614b6f565b919050565b600067ffffffffffffffff821115614bd657614bd5614b40565b5b614bdf82614392565b9050602081019050919050565b82818337600083830152505050565b6000614c0e614c0984614bbb565b614ba0565b905082815260208101848484011115614c2a57614c29614b3b565b5b614c35848285614bec565b509392505050565b600082601f830112614c5257614c516145de565b5b8135614c62848260208601614bfb565b91505092915050565b60008060008060808587031215614c8557614c846141a5565b5b6000614c93878288016142b3565b9450506020614ca4878288016142b3565b9350506040614cb58782880161441f565b925050606085013567ffffffffffffffff811115614cd657614cd56141aa565b5b614ce287828801614c3d565b91505092959194509250565b608082016000820151614d0460008501826147b1565b506020820151614d1760208501826147d4565b506040820151614d2a60408501826147e3565b506060820151614d3d6060850182614801565b50505050565b6000608082019050614d586000830184614cee565b92915050565b60008083601f840112614d7457614d736145de565b5b8235905067ffffffffffffffff811115614d9157614d906145e3565b5b602083019150836001820283011115614dad57614dac6145e8565b5b9250929050565b600080600060408486031215614dcd57614dcc6141a5565b5b600084013567ffffffffffffffff811115614deb57614dea6141aa565b5b614df786828701614d5e565b93509350506020614e0a8682870161441f565b9150509250925092565b60008060408385031215614e2b57614e2a6141a5565b5b6000614e39858286016142b3565b9250506020614e4a858286016142b3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e9b57607f821691505b602082108103614eae57614ead614e54565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614eee826143fe565b9150614ef9836143fe565b9250828203905081811115614f1157614f10614eb4565b5b92915050565b6000614f22826143fe565b9150614f2d836143fe565b9250828201905080821115614f4557614f44614eb4565b5b92915050565b6000614f56826143fe565b9150614f61836143fe565b9250828202614f6f816143fe565b91508282048414831517614f8657614f85614eb4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fc7826143fe565b9150614fd2836143fe565b925082614fe257614fe1614f8d565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615023601f83614357565b915061502e82614fed565b602082019050919050565b6000602082019050818103600083015261505281615016565b9050919050565b60008151905061506881614408565b92915050565b600060208284031215615084576150836141a5565b5b600061509284828501615059565b91505092915050565b60006040820190506150b060008301856144cb565b6150bd60208301846144cb565b9392505050565b600081905092915050565b50565b60006150df6000836150c4565b91506150ea826150cf565b600082019050919050565b6000615100826150d2565b9150819050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026151777fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261513a565b615181868361513a565b95508019841693508086168417925050509392505050565b6000819050919050565b60006151be6151b96151b4846143fe565b615199565b6143fe565b9050919050565b6000819050919050565b6151d8836151a3565b6151ec6151e4826151c5565b848454615147565b825550505050565b600090565b6152016151f4565b61520c8184846151cf565b505050565b5b81811015615230576152256000826151f9565b600181019050615212565b5050565b601f8211156152755761524681615115565b61524f8461512a565b8101602085101561525e578190505b61527261526a8561512a565b830182615211565b50505b505050565b600082821c905092915050565b60006152986000198460080261527a565b1980831691505092915050565b60006152b18383615287565b9150826002028217905092915050565b6152cb838361510a565b67ffffffffffffffff8111156152e4576152e3614b40565b5b6152ee8254614e83565b6152f9828285615234565b6000601f8311600181146153285760008415615316578287013590505b61532085826152a5565b865550615388565b601f19841661533686615115565b60005b8281101561535e57848901358255600182019150602085019450602081019050615339565b8683101561537b5784890135615377601f891682615287565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60006153d68261434c565b6153e081856153c0565b93506153f0818560208601614368565b80840191505092915050565b600061540882856153cb565b915061541482846153cb565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061547c602683614357565b915061548782615420565b604082019050919050565b600060208201905081810360008301526154ab8161546f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154e8602083614357565b91506154f3826154b2565b602082019050919050565b60006020820190508181036000830152615517816154db565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061557a602a83614357565b91506155858261551e565b604082019050919050565b600060208201905081810360008301526155a98161556d565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006155e6601983614357565b91506155f1826155b0565b602082019050919050565b60006020820190508181036000830152615615816155d9565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006156438261561c565b61564d8185615627565b935061565d818560208601614368565b61566681614392565b840191505092915050565b60006080820190506156866000830187614461565b6156936020830186614461565b6156a060408301856144cb565b81810360608301526156b28184615638565b905095945050505050565b6000815190506156cc816141db565b92915050565b6000602082840312156156e8576156e76141a5565b5b60006156f6848285016156bd565b91505092915050565b60008160601b9050919050565b6000615717826156ff565b9050919050565b60006157298261570c565b9050919050565b61574161573c8261428a565b61571e565b82525050565b60006157538285615730565b60148201915061576382846153cb565b91508190509392505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006157a5601c836153c0565b91506157b08261576f565b601c82019050919050565b6000819050919050565b6000819050919050565b6157e06157db826157bb565b6157c5565b82525050565b60006157f182615798565b91506157fd82846157cf565b60208201915081905092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615842601883614357565b915061584d8261580c565b602082019050919050565b6000602082019050818103600083015261587181615835565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006158ae601f83614357565b91506158b982615878565b602082019050919050565b600060208201905081810360008301526158dd816158a1565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615940602283614357565b915061594b826158e4565b604082019050919050565b6000602082019050818103600083015261596f81615933565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006159d2602283614357565b91506159dd82615976565b604082019050919050565b60006020820190508181036000830152615a01816159c5565b9050919050565b615a11816157bb565b82525050565b600060ff82169050919050565b615a2d81615a17565b82525050565b6000608082019050615a486000830187615a08565b615a556020830186615a24565b615a626040830185615a08565b615a6f6060830184615a08565b9594505050505056fea26469706673582212201de43808ae0a27b82b2c529412a569f07e72faa338cb20c1574f35716f03996f64736f6c63430008110033

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

0000000000000000000000005fc32481222d0444d4cc2196a79e544ce42a0ec5

-----Decoded View---------------
Arg [0] : to (address): 0x5fc32481222D0444D4CC2196A79e544cE42a0ec5

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005fc32481222d0444d4cc2196a79e544ce42a0ec5


Loading...
Loading
Loading...
Loading
[ 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.