ETH Price: $2,308.61 (+0.06%)

Pings by BlockMachine (PINGS)
 

Overview

TokenID

66

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
Pings

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : Pings.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "base64-sol/base64.sol";
import "./IPingMetadata.sol";
import "./PingData.sol";
import "./PingAtts.sol";


contract Pings is ERC721ABurnable, ReentrancyGuard, Ownable, IValidatable {
    using Strings for uint;
    using Strings for uint8;

    enum SalePhase {
        Locked,
        Claim,
        Public
    }

    event MintedEvent(uint256 numMinted, uint256 newTotalSupply);

    uint256 public numClaimsPerParent = 2;
    uint256 public publicMaxSupply = 1110;
    uint256 public maxSupply = 555*numClaimsPerParent + publicMaxSupply;
    uint256 public maxMintsPerWallet = 10;
    mapping (address => uint8) public pubMintedByWallet;
    mapping (uint256 => bool) public claimedByPlanesId;
    mapping (uint256 => bool) public claimedByAttrs;

    uint256 public publicTotalMinted = 0;

    uint256 public price = 0.03 ether;
    IPingMetadata public _metadata;
    ERC721 public _skies;
    SalePhase public phase = SalePhase.Locked;
    bool public burnEnabled;
    string _contractURI = "https://skies.wtf/nft/pings_contractURI.json";

    mapping(uint256 => PingAtts) attsById;


    constructor() ERC721A("Pings by BlockMachine", "PINGS") {}

    function tokenURI(uint256 tokenId) override(IERC721A, ERC721A) public view returns (string memory) {
        require(_exists(tokenId), "unknown id");

        IPingMetadata metadata = IPingMetadata(_metadata);
        PingAtts memory params = attsById[tokenId];
        return metadata.genMetadata(tokenId, params);
    }

    function setSkiesAddr(address addr) external onlyOwner {
        _skies = ERC721(addr);
    }

    function setMetadata(address metadataAddr) external onlyOwner {
        _metadata = IPingMetadata(metadataAddr);
    }

    function getAttsById(uint256 tokenId) external view returns (PingAtts memory atts){
        return attsById[tokenId];
    }

    function validateContract() external view returns (string memory){
        if(address(_skies) == address(0)) {return 'No Parent';}
        if(address(_metadata) == address(0)) {return "No metadata addr";}
        IPingMetadata metadata = IPingMetadata(_metadata);
        return(metadata.validateContract());
    }

    function mint(PingAtts[] calldata paramCombos) external nonReentrant payable {
        require(phase >= SalePhase.Public, 'Not Public');
        uint num = paramCombos.length;
        require(publicTotalMinted + num <= publicMaxSupply, "Public Sold out");
        require(pubMintedByWallet[msg.sender] + num <= maxMintsPerWallet, "Maxed per wallet");
        require(num * price <= msg.value, "Wrong price");
        require(!Address.isContract(msg.sender), "No contracts");

        pubMintedByWallet[msg.sender] += uint8(num);
        publicTotalMinted += num;

        validateParams(paramCombos);
        uint pingId = totalSupply();
        for (uint paramIdx; paramIdx < paramCombos.length; paramIdx++) {
            claimParamCombo(pingId++, paramCombos[paramIdx], paramIdx);
        }

        _mint(msg.sender, num);
        emit MintedEvent(num, totalSupply());
    }

    function claimMint(uint256[] calldata parentIds, PingAtts[] calldata paramCombos) external nonReentrant payable {
        require(phase >= SalePhase.Claim, 'Claim Not Open');
        uint numToClaim = parentIds.length * numClaimsPerParent;
        uint numToBuy = paramCombos.length - numToClaim;
        if(numToBuy > 0) {
            require(numToBuy * price <= msg.value, "Wrong price");
            require(pubMintedByWallet[msg.sender] + numToBuy <= maxMintsPerWallet, "Maxed per wallet");
        }
        require(numToBuy >= 0, "Claim short");

        uint totalToMint = paramCombos.length;
        require(totalSupply() + totalToMint <= maxSupply, "Sold out");

        validateParams(paramCombos);

        uint pingId = totalSupply();
        uint paramIdx = 0;
        for (uint i; i < parentIds.length; i++) {
            require(_skies.ownerOf(parentIds[i]) == msg.sender, string.concat("not owner ",  parentIds[i].toString()));
            require(!claimedByPlanesId[parentIds[i]], string.concat("already claimed ", parentIds[i].toString()));

            claimedByPlanesId[parentIds[i]] = true;

            claimParamCombo(pingId++, paramCombos[paramIdx++], paramIdx);
            claimParamCombo(pingId++, paramCombos[paramIdx++], paramIdx);
        }

        //claim extras if any
        if(numToBuy > 0) {
            for (; paramIdx < paramCombos.length; paramIdx++) {
                claimParamCombo(pingId++, paramCombos[paramIdx], paramIdx);
            }
            pubMintedByWallet[msg.sender] += uint8(numToBuy);
        }

        _mint(msg.sender, totalToMint);
        emit MintedEvent(totalToMint, totalSupply());
    }

    function claimParamCombo(uint tokenId, PingAtts calldata atts, uint paramsIndex) internal {
        uint hash = uint(keccak256(abi.encode(atts)));
        require(!claimedByAttrs[hash], string.concat("attribute already claimed.", paramsIndex.toString()));
        claimedByAttrs[hash] = true;
        attsById[tokenId] = atts;
    }

    function validateParams(PingAtts[] calldata paramCombos) internal pure {
        for (uint256 i; i < paramCombos.length; i++) {
            validateParams(paramCombos[i]);
        }
    }

    function validateParams(PingAtts calldata p) internal pure {
        require(p.numX >= 1 && p.numX <= 7, string.concat("bad numX ", p.numX.toString()));
        require(p.numY >= 1 && p.numY <= 7, string.concat("bad numY ", p.numY.toString()));
        require(p.paletteIndex < 19, string.concat("bad pal ", p.paletteIndex.toString()));
        require(p.lineColorIdx < 19, string.concat("bad line ", p.lineColorIdx.toString()));
        require(p.paintIdx < 19, string.concat("bad paint ", p.paintIdx.toString()));
        require(p.shapeColorIdx < 19, string.concat("bad shape ", p.shapeColorIdx.toString()));
        require(p.emitColorIdx < 19, string.concat("bad emitCol ", p.emitColorIdx.toString()));
        require(p.shadowColorIdx < 19, string.concat("bad shadowCol ", p.shadowColorIdx.toString()));
        require(p.nShadColIdx < 19, string.concat("bad nShadColor ", p.nShadColIdx.toString()));
        require(p.shapeSizesDensity >= 1 && p.shapeSizesDensity <= 7, string.concat("bad shapeDensity ", p.shapeSizesDensity.toString()));
        require(p.lineThickness >= 1 && p.lineThickness <= 5, string.concat("bad lineThickness ", p.lineThickness.toString()));
        require(p.emitRate >= 1 && p.emitRate <= 10, string.concat("bad emitRate ", p.emitRate.toString()));
        require(p.wiggleSpeedIdx < 3, string.concat("bad wiggleSpeed ", p.wiggleSpeedIdx.toString()));
        require(p.wiggleStrengthIdx < 4, string.concat("bad wiggleStrength ", p.wiggleStrengthIdx.toString()));
        require(p.paint2Idx < 19, string.concat("bad paint2Idx ", p.paint2Idx.toString()));
        require(p.extraParams.length == 0, string.concat("bad eP ", p.extraParams.length.toString()));
    }

    function reset(uint256 numIds) external onlyOwner {
        for (uint256 i; i < numIds; i++) {
            delete claimedByPlanesId[i];
        }
    }

    function setMaxSupply(uint256 max) external onlyOwner {
        maxSupply = max;
    }

    function setPubMaxSupply(uint256 max) external onlyOwner {
        publicMaxSupply = max;
    }

    function setMaxMintsPerWallet(uint8 max) external onlyOwner {
        numClaimsPerParent = max;
    }

    function setPhase(SalePhase newPhase) external onlyOwner {
        phase = newPhase;
    }

    function withdraw() public onlyOwner {
        uint256 _balance = address(this).balance;
        require(payable(msg.sender).send(_balance));
    }

    function enableBurn(bool state) external onlyOwner {
        burnEnabled = state;
    }

    function supportsInterface(bytes4 interfaceId) public view override(IERC721A, ERC721A) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override(ERC721A) {
        require(to != address(0) || burnEnabled, "burn disabled");
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

}

File 2 of 22 : PingData.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./PingAtts.sol";

contract PingData is Ownable {
    mapping(uint256 => PingAtts) attsById;

    function getAtt(uint256 tokenId) external view virtual returns (PingAtts memory) {
        return attsById[tokenId];
    }

}

File 3 of 22 : PingAtts.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;


struct PingAtts {
    uint8 numX;
    uint8 numY;
    uint8 paletteIndex;
    bool hasTexture;
    bool openShape;
    uint8 lineColorIdx;
    uint8 paintIdx;
    uint8 shapeColorIdx;
    uint8 emitColorIdx;
    uint8 shadowColorIdx;
    uint8 nShadColIdx;
    uint8 shapeSizesDensity;
    uint8 lineThickness;
    uint8 emitRate;
    uint8 wiggleSpeedIdx;
    uint8 wiggleStrengthIdx;
    uint8 paint2Idx;

    uint8[] extraParams;
}

File 4 of 22 : IValidatable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IValidatable {
    function validateContract() external view returns (string memory);
}

File 5 of 22 : IPingMetadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./IValidatable.sol";
import "./PingAtts.sol";

interface IPingMetadata is IValidatable {

//    function setRevealed(bool revealed) external;
    function genMetadata(uint256 tokenId, PingAtts calldata atts) external view returns (string memory);

}

File 6 of 22 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

pragma solidity ^0.8.4;

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 22 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

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

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

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

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

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 11 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 12 of 22 : 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 13 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

File 15 of 22 : 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 16 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 18 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 19 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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
    ) external;

    /**
     * @dev Transfers `tokenId` token 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;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 21 of 22 : 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 22 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"numMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"MintedEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_metadata","outputs":[{"internalType":"contract IPingMetadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_skies","outputs":[{"internalType":"contract ERC721","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"parentIds","type":"uint256[]"},{"components":[{"internalType":"uint8","name":"numX","type":"uint8"},{"internalType":"uint8","name":"numY","type":"uint8"},{"internalType":"uint8","name":"paletteIndex","type":"uint8"},{"internalType":"bool","name":"hasTexture","type":"bool"},{"internalType":"bool","name":"openShape","type":"bool"},{"internalType":"uint8","name":"lineColorIdx","type":"uint8"},{"internalType":"uint8","name":"paintIdx","type":"uint8"},{"internalType":"uint8","name":"shapeColorIdx","type":"uint8"},{"internalType":"uint8","name":"emitColorIdx","type":"uint8"},{"internalType":"uint8","name":"shadowColorIdx","type":"uint8"},{"internalType":"uint8","name":"nShadColIdx","type":"uint8"},{"internalType":"uint8","name":"shapeSizesDensity","type":"uint8"},{"internalType":"uint8","name":"lineThickness","type":"uint8"},{"internalType":"uint8","name":"emitRate","type":"uint8"},{"internalType":"uint8","name":"wiggleSpeedIdx","type":"uint8"},{"internalType":"uint8","name":"wiggleStrengthIdx","type":"uint8"},{"internalType":"uint8","name":"paint2Idx","type":"uint8"},{"internalType":"uint8[]","name":"extraParams","type":"uint8[]"}],"internalType":"struct PingAtts[]","name":"paramCombos","type":"tuple[]"}],"name":"claimMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedByAttrs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedByPlanesId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"enableBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAttsById","outputs":[{"components":[{"internalType":"uint8","name":"numX","type":"uint8"},{"internalType":"uint8","name":"numY","type":"uint8"},{"internalType":"uint8","name":"paletteIndex","type":"uint8"},{"internalType":"bool","name":"hasTexture","type":"bool"},{"internalType":"bool","name":"openShape","type":"bool"},{"internalType":"uint8","name":"lineColorIdx","type":"uint8"},{"internalType":"uint8","name":"paintIdx","type":"uint8"},{"internalType":"uint8","name":"shapeColorIdx","type":"uint8"},{"internalType":"uint8","name":"emitColorIdx","type":"uint8"},{"internalType":"uint8","name":"shadowColorIdx","type":"uint8"},{"internalType":"uint8","name":"nShadColIdx","type":"uint8"},{"internalType":"uint8","name":"shapeSizesDensity","type":"uint8"},{"internalType":"uint8","name":"lineThickness","type":"uint8"},{"internalType":"uint8","name":"emitRate","type":"uint8"},{"internalType":"uint8","name":"wiggleSpeedIdx","type":"uint8"},{"internalType":"uint8","name":"wiggleStrengthIdx","type":"uint8"},{"internalType":"uint8","name":"paint2Idx","type":"uint8"},{"internalType":"uint8[]","name":"extraParams","type":"uint8[]"}],"internalType":"struct PingAtts","name":"atts","type":"tuple"}],"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":"maxMintsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"numX","type":"uint8"},{"internalType":"uint8","name":"numY","type":"uint8"},{"internalType":"uint8","name":"paletteIndex","type":"uint8"},{"internalType":"bool","name":"hasTexture","type":"bool"},{"internalType":"bool","name":"openShape","type":"bool"},{"internalType":"uint8","name":"lineColorIdx","type":"uint8"},{"internalType":"uint8","name":"paintIdx","type":"uint8"},{"internalType":"uint8","name":"shapeColorIdx","type":"uint8"},{"internalType":"uint8","name":"emitColorIdx","type":"uint8"},{"internalType":"uint8","name":"shadowColorIdx","type":"uint8"},{"internalType":"uint8","name":"nShadColIdx","type":"uint8"},{"internalType":"uint8","name":"shapeSizesDensity","type":"uint8"},{"internalType":"uint8","name":"lineThickness","type":"uint8"},{"internalType":"uint8","name":"emitRate","type":"uint8"},{"internalType":"uint8","name":"wiggleSpeedIdx","type":"uint8"},{"internalType":"uint8","name":"wiggleStrengthIdx","type":"uint8"},{"internalType":"uint8","name":"paint2Idx","type":"uint8"},{"internalType":"uint8[]","name":"extraParams","type":"uint8[]"}],"internalType":"struct PingAtts[]","name":"paramCombos","type":"tuple[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numClaimsPerParent","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":"phase","outputs":[{"internalType":"enum Pings.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pubMintedByWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numIds","type":"uint256"}],"name":"reset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"max","type":"uint8"}],"name":"setMaxMintsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"metadataAddr","type":"address"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Pings.SalePhase","name":"newPhase","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setPubMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSkiesAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"validateContract","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526002600a55610456600b55600b54600a5461022b62000024919062000185565b620000309190620001a5565b600c55600a600d556000601155666a94d74f4300006012556014805460ff60a01b191690556040805160608101909152602c8082526200424260208301396015906200007d908262000260565b503480156200008b57600080fd5b506040518060400160405280601581526020017f50696e677320627920426c6f636b4d616368696e6500000000000000000000008152506040518060400160405280600581526020016450494e475360d81b8152508160029081620000f1919062000260565b50600362000100828262000260565b50600080555050600160085562000117336200011d565b6200032c565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176200019f576200019f6200016f565b92915050565b808201808211156200019f576200019f6200016f565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001e657607f821691505b6020821081036200020757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025b57600081815260208120601f850160051c81016020861015620002365750805b601f850160051c820191505b81811015620002575782815560010162000242565b5050505b505050565b81516001600160401b038111156200027c576200027c620001bb565b62000294816200028d8454620001d1565b846200020d565b602080601f831160018114620002cc5760008415620002b35750858301515b600019600386901b1c1916600185901b17855562000257565b600085815260208120601f198616915b82811015620002fd57888601518255948401946001909101908401620002dc565b50858210156200031c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613f06806200033c6000396000f3fe6080604052600436106102675760003560e01c80638da5cb5b11610144578063c8c78c1a116100b6578063e985e9c51161007a578063e985e9c514610703578063ecebb3b114610723578063f229abbd14610750578063f2fde38b14610770578063f3cb838514610790578063f516a2e6146107b057600080fd5b8063c8c78c1a14610674578063cf5c1a18146106a4578063d5abeb01146106c4578063d5e1e76c146106da578063e3a800a6146106ed57600080fd5b8063b88d4fde11610108578063b88d4fde146105d8578063b8f7ef60146105eb578063bb073c631461060b578063c03afb591461061e578063c0c371491461063e578063c87b56dd1461065457600080fd5b80638da5cb5b1461054157806395d89b411461055f578063a035b1fe14610574578063a22cb4651461058a578063b1c9fe6e146105aa57600080fd5b806342842e0e116101dd5780636352211e116101a15780636352211e146104965780636f8b44b0146104b657806370a08231146104d6578063715018a6146104f657806378cbcf231461050b5780637d145fde1461052157600080fd5b806342842e0e146103f257806342966c6814610405578063568c8dbb1461042557806356fc87e0146104555780635dc96d161461047557600080fd5b806322054ea81161022f57806322054ea81461033357806323b872dd146103755780632baa031e14610388578063310bd74b1461039d57806339371b25146103bd5780633ccfd60b146103dd57600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146102fb57806318160ddd14610310575b600080fd5b34801561027857600080fd5b5061028c610287366004612b34565b6107c6565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b66107d7565b6040516102989190612ba1565b3480156102cf57600080fd5b506102e36102de366004612bb4565b610869565b6040516001600160a01b039091168152602001610298565b61030e610309366004612be2565b6108ad565b005b34801561031c57600080fd5b50600154600054035b604051908152602001610298565b34801561033f57600080fd5b5061036361034e366004612c0e565b600e6020526000908152604090205460ff1681565b60405160ff9091168152602001610298565b61030e610383366004612c2b565b61094d565b34801561039457600080fd5b506102b6610aeb565b3480156103a957600080fd5b5061030e6103b8366004612bb4565b610bd6565b3480156103c957600080fd5b506013546102e3906001600160a01b031681565b3480156103e957600080fd5b5061030e610c40565b61030e610400366004612c2b565b610c94565b34801561041157600080fd5b5061030e610420366004612bb4565b610cb4565b34801561043157600080fd5b5061028c610440366004612bb4565b60106020526000908152604090205460ff1681565b34801561046157600080fd5b5061030e610470366004612c8b565b610cbf565b34801561048157600080fd5b5060145461028c90600160a81b900460ff1681565b3480156104a257600080fd5b506102e36104b1366004612bb4565b610cf1565b3480156104c257600080fd5b5061030e6104d1366004612bb4565b610cfc565b3480156104e257600080fd5b506103256104f1366004612c0e565b610d2b565b34801561050257600080fd5b5061030e610d7a565b34801561051757600080fd5b50610325600b5481565b34801561052d57600080fd5b5061030e61053c366004612c0e565b610db0565b34801561054d57600080fd5b506009546001600160a01b03166102e3565b34801561056b57600080fd5b506102b6610dfc565b34801561058057600080fd5b5061032560125481565b34801561059657600080fd5b5061030e6105a5366004612cc1565b610e0b565b3480156105b657600080fd5b506014546105cb90600160a01b900460ff1681565b6040516102989190612d10565b61030e6105e6366004612da7565b610e77565b3480156105f757600080fd5b506014546102e3906001600160a01b031681565b61030e610619366004612ea2565b610ec1565b34801561062a57600080fd5b5061030e610639366004612f0e565b6113e1565b34801561064a57600080fd5b5061032560115481565b34801561066057600080fd5b506102b661066f366004612bb4565b611438565b34801561068057600080fd5b5061028c61068f366004612bb4565b600f6020526000908152604090205460ff1681565b3480156106b057600080fd5b5061030e6106bf366004612bb4565b611690565b3480156106d057600080fd5b50610325600c5481565b61030e6106e8366004612f2f565b6116bf565b3480156106f957600080fd5b50610325600a5481565b34801561070f57600080fd5b5061028c61071e366004612f71565b6119b8565b34801561072f57600080fd5b5061074361073e366004612bb4565b6119e6565b6040516102989190613119565b34801561075c57600080fd5b5061030e61076b36600461312c565b611c08565b34801561077c57600080fd5b5061030e61078b366004612c0e565b611c50565b34801561079c57600080fd5b5061030e6107ab366004612c0e565b611ce8565b3480156107bc57600080fd5b50610325600d5481565b60006107d182611d34565b92915050565b6060600280546107e690613149565b80601f016020809104026020016040519081016040528092919081815260200182805461081290613149565b801561085f5780601f106108345761010080835404028352916020019161085f565b820191906000526020600020905b81548152906001019060200180831161084257829003601f168201915b5050505050905090565b600061087482611d82565b610891576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108b882610cf1565b9050336001600160a01b038216146108f1576108d481336119b8565b6108f1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061095882611da9565b9050836001600160a01b0316816001600160a01b03161461098b5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546109b78187335b6001600160a01b039081169116811491141790565b6109e2576109c586336119b8565b6109e257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a0957604051633a954ecd60e21b815260040160405180910390fd5b610a168686866001611e17565b8015610a2157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610ab357600184016000818152600460205260408120549003610ab1576000548114610ab15760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613eb183398151915260405160405180910390a45b505050505050565b6014546060906001600160a01b0316610b225750604080518082019091526009815268139bc814185c995b9d60ba1b602082015290565b6013546001600160a01b0316610b5d575060408051808201909152601081526f27379036b2ba30b230ba309030b2323960811b602082015290565b601354604080516315d5018f60e11b815290516001600160a01b03909216918291632baa031e9160048083019260009291908290030181865afa158015610ba8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bd09190810190613183565b91505090565b6009546001600160a01b03163314610c095760405162461bcd60e51b8152600401610c00906131fa565b60405180910390fd5b60005b81811015610c3c576000818152600f60205260409020805460ff1916905580610c3481613245565b915050610c0c565b5050565b6009546001600160a01b03163314610c6a5760405162461bcd60e51b8152600401610c00906131fa565b6040514790339082156108fc029083906000818181858888f19350505050610c9157600080fd5b50565b610caf83838360405180602001604052806000815250610e77565b505050565b610c91816001611e78565b6009546001600160a01b03163314610ce95760405162461bcd60e51b8152600401610c00906131fa565b60ff16600a55565b60006107d182611da9565b6009546001600160a01b03163314610d265760405162461bcd60e51b8152600401610c00906131fa565b600c55565b60006001600160a01b038216610d54576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b03163314610da45760405162461bcd60e51b8152600401610c00906131fa565b610dae6000611fbe565b565b6009546001600160a01b03163314610dda5760405162461bcd60e51b8152600401610c00906131fa565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546107e690613149565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e8284848461094d565b6001600160a01b0383163b15610ebb57610e9e84848484612010565b610ebb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600260085403610f135760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b60026008556001601454600160a01b900460ff166002811115610f3857610f38612cfa565b1015610f775760405162461bcd60e51b815260206004820152600e60248201526d21b630b4b6902737ba1027b832b760911b6044820152606401610c00565b600a54600090610f87908561325e565b90506000610f958284613275565b9050801561104a573460125482610fac919061325e565b1115610fe85760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b6044820152606401610c00565b600d54336000908152600e602052604090205461100990839060ff16613288565b111561104a5760405162461bcd60e51b815260206004820152601060248201526f13585e1959081c195c881dd85b1b195d60821b6044820152606401610c00565b600c5483908161105d6001546000540390565b6110679190613288565b11156110a05760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610c00565b6110aa85856120fb565b60006110b96001546000540390565b90506000805b888110156112ea5760145433906001600160a01b0316636352211e8c8c858181106110ec576110ec61329b565b905060200201356040518263ffffffff1660e01b815260040161111191815260200190565b602060405180830381865afa15801561112e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115291906132b1565b6001600160a01b03161461117d8b8b848181106111715761117161329b565b90506020020135612144565b60405160200161118d91906132ce565b604051602081830303815290604052906111ba5760405162461bcd60e51b8152600401610c009190612ba1565b50600f60008b8b848181106111d1576111d161329b565b602090810292909201358352508101919091526040016000205460ff16156112048b8b848181106111715761117161329b565b6040516020016112149190613300565b604051602081830303815290604052906112415760405162461bcd60e51b8152600401610c009190612ba1565b506001600f60008c8c8581811061125a5761125a61329b565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055506112cb838061129490613245565b94508989856112a281613245565b96508181106112b3576112b361329b565b90506020028101906112c59190613338565b84612245565b6112d88361129481613245565b806112e281613245565b9150506110bf565b508315611380575b85811015611345576113338261130781613245565b935088888481811061131b5761131b61329b565b905060200281019061132d9190613338565b83612245565b8061133d81613245565b9150506112f2565b336000908152600e60205260408120805486929061136790849060ff16613359565b92506101000a81548160ff021916908360ff1602179055505b61138a33846122fd565b7f08d6b92129e3288a5a525937d5df7d71e44934d581622fd60c2c4a79833e8f1d836113b96001546000540390565b6040805192835260208301919091520160405180910390a15050600160085550505050505050565b6009546001600160a01b0316331461140b5760405162461bcd60e51b8152600401610c00906131fa565b6014805482919060ff60a01b1916600160a01b83600281111561143057611430612cfa565b021790555050565b606061144382611d82565b61147c5760405162461bcd60e51b815260206004820152600a6024820152691d5b9adb9bdddb881a5960b21b6044820152606401610c00565b6013546000838152601660209081526040808320815161024081018352815460ff8082168352610100808304821684880152620100008304821684870152630100000083048216151560608501526401000000008304821615156080850152650100000000008304821660a085015266010000000000008304821660c0850152600160381b8304821660e0850152600160401b8304821690840152600160481b82048116610120840152600160501b82048116610140840152600160581b82048116610160840152600160601b82048116610180840152600160681b820481166101a0840152600160701b820481166101c0840152600160781b820481166101e0840152600160801b909104166102008201526001820180548451818702810187019095528085526001600160a01b03909716969194929361022086019390929083018282801561160a57602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116115db5790505b5050505050815250509050816001600160a01b031663ee79a6ad85836040518363ffffffff1660e01b8152600401611643929190613372565b600060405180830381865afa158015611660573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116889190810190613183565b949350505050565b6009546001600160a01b031633146116ba5760405162461bcd60e51b8152600401610c00906131fa565b600b55565b6002600854036117115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b60026008819055601454600160a01b900460ff16600281111561173657611736612cfa565b10156117715760405162461bcd60e51b815260206004820152600a6024820152694e6f74205075626c696360b01b6044820152606401610c00565b600b54601154829190611785908390613288565b11156117c55760405162461bcd60e51b815260206004820152600f60248201526e141d589b1a58c814dbdb19081bdd5d608a1b6044820152606401610c00565b600d54336000908152600e60205260409020546117e690839060ff16613288565b11156118275760405162461bcd60e51b815260206004820152601060248201526f13585e1959081c195c881dd85b1b195d60821b6044820152606401610c00565b3460125482611836919061325e565b11156118725760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b6044820152606401610c00565b333b156118b05760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b6044820152606401610c00565b336000908152600e6020526040812080548392906118d290849060ff16613359565b92506101000a81548160ff021916908360ff16021790555080601160008282546118fc9190613288565b9091555061190c905083836120fb565b600061191b6001546000540390565b905060005b8381101561195b576119498261193581613245565b935086868481811061131b5761131b61329b565b8061195381613245565b915050611920565b5061196633836122fd565b7f08d6b92129e3288a5a525937d5df7d71e44934d581622fd60c2c4a79833e8f1d826119956001546000540390565b6040805192835260208301919091520160405180910390a1505060016008555050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b604080516102408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082018390526101a082018390526101c082018390526101e08201839052610200820192909252610220810191909152600082815260166020908152604091829020825161024081018452815460ff8082168352610100808304821684870152620100008304821684880152630100000083048216151560608501526401000000008304821615156080850152650100000000008304821660a085015266010000000000008304821660c0850152600160381b8304821660e0850152600160401b8304821690840152600160481b82048116610120840152600160501b82048116610140840152600160581b82048116610160840152600160601b82048116610180840152600160681b820481166101a0840152600160701b820481166101c0840152600160781b820481166101e0840152600160801b90910416610200820152600182018054855181860281018601909652808652919492936102208601939290830182828015611bf857602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611bc95790505b5050505050815250509050919050565b6009546001600160a01b03163314611c325760405162461bcd60e51b8152600401610c00906131fa565b60148054911515600160a81b0260ff60a81b19909216919091179055565b6009546001600160a01b03163314611c7a5760405162461bcd60e51b8152600401610c00906131fa565b6001600160a01b038116611cdf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c00565b610c9181611fbe565b6009546001600160a01b03163314611d125760405162461bcd60e51b8152600401610c00906131fa565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60006301ffc9a760e01b6001600160e01b031983161480611d6557506380ac58cd60e01b6001600160e01b03198316145b806107d15750506001600160e01b031916635b5e139f60e01b1490565b60008054821080156107d1575050600090815260046020526040902054600160e01b161590565b600081600054811015611dfe5760008181526004602052604081205490600160e01b82169003611dfc575b80600003611df5575060001901600081815260046020526040902054611dd4565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038316151580611e375750601454600160a81b900460ff165b611e735760405162461bcd60e51b815260206004820152600d60248201526c189d5c9b88191a5cd8589b1959609a1b6044820152606401610c00565b610ebb565b6000611e8383611da9565b905080600080611ea186600090815260066020526040902080549091565b915091508415611ee157611eb68184336109a2565b611ee157611ec483336119b8565b611ee157604051632ce44b5f60e11b815260040160405180910390fd5b611eef836000886001611e17565b8015611efa57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003611f8857600186016000818152600460205260408120549003611f86576000548114611f865760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020613eb1833981519152908390a45050600180548101905550505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061204590339089908890889060040161338b565b6020604051808303816000875af1925050508015612080575060408051601f3d908101601f1916820190925261207d918101906133be565b60015b6120de573d8080156120ae576040519150601f19603f3d011682016040523d82523d6000602084013e6120b3565b606091505b5080516000036120d6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60005b81811015610caf5761213283838381811061211b5761211b61329b565b905060200281019061212d9190613338565b6123e4565b8061213c81613245565b9150506120fe565b60608160000361216b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612195578061217f81613245565b915061218e9050600a836133f1565b915061216f565b60008167ffffffffffffffff8111156121b0576121b0612d38565b6040519080825280601f01601f1916602001820160405280156121da576020820181803683370190505b5090505b8415611688576121ef600183613275565b91506121fc600a86613405565b612207906030613288565b60f81b81838151811061221c5761221c61329b565b60200101906001600160f81b031916908160001a90535061223e600a866133f1565b94506121de565b600082604051602001612258919061349a565b60408051601f1981840301815291815281516020928301206000818152601090935291205490915060ff161561228d83612144565b60405160200161229d9190613693565b604051602081830303815290604052906122ca5760405162461bcd60e51b8152600401610c009190612ba1565b506000818152601060209081526040808320805460ff19166001179055868352601690915290208390610ae3828261389c565b60008054908290036123225760405163b562e8dd60e01b815260040160405180910390fd5b61232f6000848385611e17565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020613eb18339815191528180a4600183015b8181146123ba5780836000600080516020613eb1833981519152600080a4600101612394565b50816000036123db57604051622e076360e81b815260040160405180910390fd5b60005550505050565b60016123f36020830183612c8b565b60ff16101580156124145750600761240e6020830183612c8b565b60ff1611155b61242c6124246020840184612c8b565b60ff16612144565b60405160200161243c9190613bb6565b604051602081830303815290604052906124695760405162461bcd60e51b8152600401610c009190612ba1565b50600161247c6040830160208401612c8b565b60ff16101580156124a05750600761249a6040830160208401612c8b565b60ff1611155b6124b36124246040840160208501612c8b565b6040516020016124c39190613be7565b604051602081830303815290604052906124f05760405162461bcd60e51b8152600401610c009190612ba1565b5060136125036060830160408401612c8b565b60ff161061251a6124246060840160408501612c8b565b60405160200161252a9190613c0b565b604051602081830303815290604052906125575760405162461bcd60e51b8152600401610c009190612ba1565b50601361256a60c0830160a08401612c8b565b60ff161061258161242460c0840160a08501612c8b565b6040516020016125919190613c3b565b604051602081830303815290604052906125be5760405162461bcd60e51b8152600401610c009190612ba1565b5060136125d160e0830160c08401612c8b565b60ff16106125e861242460e0840160c08501612c8b565b6040516020016125f89190613c5f565b604051602081830303815290604052906126255760405162461bcd60e51b8152600401610c009190612ba1565b506013612639610100830160e08401612c8b565b60ff1610612651612424610100840160e08501612c8b565b6040516020016126619190613c84565b6040516020818303038152906040529061268e5760405162461bcd60e51b8152600401610c009190612ba1565b5060136126a361012083016101008401612c8b565b60ff16106126bc61242461012084016101008501612c8b565b6040516020016126cc9190613ca9565b604051602081830303815290604052906126f95760405162461bcd60e51b8152600401610c009190612ba1565b50601361270e61014083016101208401612c8b565b60ff161061272761242461014084016101208501612c8b565b6040516020016127379190613cdd565b604051602081830303815290604052906127645760405162461bcd60e51b8152600401610c009190612ba1565b50601361277961016083016101408401612c8b565b60ff161061279261242461016084016101408501612c8b565b6040516020016127a29190613d13565b604051602081830303815290604052906127cf5760405162461bcd60e51b8152600401610c009190612ba1565b5060016127e461018083016101608401612c8b565b60ff161015801561280a5750600761280461018083016101608401612c8b565b60ff1611155b61281f61242461018084016101608501612c8b565b60405160200161282f9190613d4a565b6040516020818303038152906040529061285c5760405162461bcd60e51b8152600401610c009190612ba1565b5060016128716101a083016101808401612c8b565b60ff1610158015612897575060056128916101a083016101808401612c8b565b60ff1611155b6128ac6124246101a084016101808501612c8b565b6040516020016128bc9190613d83565b604051602081830303815290604052906128e95760405162461bcd60e51b8152600401610c009190612ba1565b5060016128fe6101c083016101a08401612c8b565b60ff16101580156129245750600a61291e6101c083016101a08401612c8b565b60ff1611155b6129396124246101c084016101a08501612c8b565b6040516020016129499190613dbd565b604051602081830303815290604052906129765760405162461bcd60e51b8152600401610c009190612ba1565b50600361298b6101e083016101c08401612c8b565b60ff16106129a46124246101e084016101c08501612c8b565b6040516020016129b49190613df2565b604051602081830303815290604052906129e15760405162461bcd60e51b8152600401610c009190612ba1565b5060046129f661020083016101e08401612c8b565b60ff1610612a0f61242461020084016101e08501612c8b565b604051602001612a1f9190613e1d565b60405160208183030381529060405290612a4c5760405162461bcd60e51b8152600401610c009190612ba1565b506013612a6161022083016102008401612c8b565b60ff1610612a7a61242461022084016102008501612c8b565b604051602001612a8a9190613e58565b60405160208183030381529060405290612ab75760405162461bcd60e51b8152600401610c009190612ba1565b50612ac66102208201826136f2565b159050612ae1612ada6102208401846136f2565b9050612144565b604051602001612af19190613e81565b60405160208183030381529060405290610c3c5760405162461bcd60e51b8152600401610c009190612ba1565b6001600160e01b031981168114610c9157600080fd5b600060208284031215612b4657600080fd5b8135611df581612b1e565b60005b83811015612b6c578181015183820152602001612b54565b50506000910152565b60008151808452612b8d816020860160208601612b51565b601f01601f19169290920160200192915050565b602081526000611df56020830184612b75565b600060208284031215612bc657600080fd5b5035919050565b6001600160a01b0381168114610c9157600080fd5b60008060408385031215612bf557600080fd5b8235612c0081612bcd565b946020939093013593505050565b600060208284031215612c2057600080fd5b8135611df581612bcd565b600080600060608486031215612c4057600080fd5b8335612c4b81612bcd565b92506020840135612c5b81612bcd565b929592945050506040919091013590565b60ff81168114610c9157600080fd5b8035612c8681612c6c565b919050565b600060208284031215612c9d57600080fd5b8135611df581612c6c565b8015158114610c9157600080fd5b8035612c8681612ca8565b60008060408385031215612cd457600080fd5b8235612cdf81612bcd565b91506020830135612cef81612ca8565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612d3257634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612d7757612d77612d38565b604052919050565b600067ffffffffffffffff821115612d9957612d99612d38565b50601f01601f191660200190565b60008060008060808587031215612dbd57600080fd5b8435612dc881612bcd565b93506020850135612dd881612bcd565b925060408501359150606085013567ffffffffffffffff811115612dfb57600080fd5b8501601f81018713612e0c57600080fd5b8035612e1f612e1a82612d7f565b612d4e565b818152886020838501011115612e3457600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008083601f840112612e6857600080fd5b50813567ffffffffffffffff811115612e8057600080fd5b6020830191508360208260051b8501011115612e9b57600080fd5b9250929050565b60008060008060408587031215612eb857600080fd5b843567ffffffffffffffff80821115612ed057600080fd5b612edc88838901612e56565b90965094506020870135915080821115612ef557600080fd5b50612f0287828801612e56565b95989497509550505050565b600060208284031215612f2057600080fd5b813560038110611df557600080fd5b60008060208385031215612f4257600080fd5b823567ffffffffffffffff811115612f5957600080fd5b612f6585828601612e56565b90969095509350505050565b60008060408385031215612f8457600080fd5b8235612f8f81612bcd565b91506020830135612cef81612bcd565b600081518084526020808501945080840160005b83811015612fd257815160ff1687529582019590820190600101612fb3565b509495945050505050565b805160ff16825260006102406020830151612ffd602086018260ff169052565b506040830151613012604086018260ff169052565b506060830151613026606086018215159052565b50608083015161303a608086018215159052565b5060a083015161304f60a086018260ff169052565b5060c083015161306460c086018260ff169052565b5060e083015161307960e086018260ff169052565b506101008381015160ff90811691860191909152610120808501518216908601526101408085015182169086015261016080850151821690860152610180808501518216908601526101a0808501518216908601526101c0808501518216908601526101e08085015182169086015261020080850151909116908501526102208084015181860183905261310f83870182612f9f565b9695505050505050565b602081526000611df56020830184612fdd565b60006020828403121561313e57600080fd5b8135611df581612ca8565b600181811c9082168061315d57607f821691505b60208210810361317d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561319557600080fd5b815167ffffffffffffffff8111156131ac57600080fd5b8201601f810184136131bd57600080fd5b80516131cb612e1a82612d7f565b8181528560208385010111156131e057600080fd5b6131f1826020830160208601612b51565b95945050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600182016132575761325761322f565b5060010190565b80820281158282048414176107d1576107d161322f565b818103818111156107d1576107d161322f565b808201808211156107d1576107d161322f565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132c357600080fd5b8151611df581612bcd565b6903737ba1037bbb732b9160b51b8152600082516132f381600a850160208701612b51565b91909101600a0192915050565b6f030b63932b0b23c9031b630b4b6b2b2160851b81526000825161332b816010850160208701612b51565b9190910160100192915050565b6000823561023e1983360301811261334f57600080fd5b9190910192915050565b60ff81811683821601908111156107d1576107d161322f565b8281526040602082015260006116886040830184612fdd565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061310f90830184612b75565b6000602082840312156133d057600080fd5b8151611df581612b1e565b634e487b7160e01b600052601260045260246000fd5b600082613400576134006133db565b500490565b600082613414576134146133db565b500690565b6000808335601e1984360301811261343057600080fd5b830160208101925035905067ffffffffffffffff81111561345057600080fd5b8060051b3603821315612e9b57600080fd5b8183526000602080850194508260005b85811015612fd257813561348581612c6c565b60ff1687529582019590820190600101613472565b602081526134b5602082016134ae84612c7b565b60ff169052565b60006134c360208401612c7b565b60ff81166040840152506134d960408401612c7b565b60ff81166060840152506134ef60608401612cb6565b80151560808401525061350460808401612cb6565b80151560a08401525061351960a08401612c7b565b60ff811660c08401525061352f60c08401612c7b565b60ff811660e08401525061354560e08401612c7b565b6101006135568185018360ff169052565b613561818601612c7b565b9150506101206135758185018360ff169052565b613580818601612c7b565b9150506101406135948185018360ff169052565b61359f818601612c7b565b9150506101606135b38185018360ff169052565b6135be818601612c7b565b9150506101806135d28185018360ff169052565b6135dd818601612c7b565b9150506101a06135f18185018360ff169052565b6135fc818601612c7b565b9150506101c06136108185018360ff169052565b61361b818601612c7b565b9150506101e061362f8185018360ff169052565b61363a818601612c7b565b91505061020061364e8185018360ff169052565b613659818601612c7b565b91505061022061366d8185018360ff169052565b61367981860186613419565b61024086810152925090506131f161026085018383613462565b7f61747472696275746520616c726561647920636c61696d65642e0000000000008152600082516136cb81601a850160208701612b51565b91909101601a0192915050565b600081356107d181612c6c565b600081356107d181612ca8565b6000808335601e1984360301811261370957600080fd5b83018035915067ffffffffffffffff82111561372457600080fd5b6020019150600581901b3603821315612e9b57600080fd5b600160401b82111561375057613750612d38565b805482825580831015610caf57600082815260208120601f850160051c8101601f840160051c82019150601f8616801561379b576000198083018054828460200360031b1c16815550505b505b81811015610ae35782815560010161379d565b67ffffffffffffffff8311156137c8576137c8612d38565b6137d2838261373c565b60008181526020902082908460051c60005b8181101561383c576000805b60208082106137ff575061382f565b61382261380b886136d8565b60ff908116600385901b90811b91901b1985161790565b96019591506001016137f0565b50838201556001016137e4565b50601f198616808703818814613892576000805b8281101561388c5761387b613864886136d8565b60ff908116600384901b90811b91901b1984161790565b602097909701969150600101613850565b50848401555b5050505050505050565b6138b96138a8836136d8565b825460ff191660ff91909116178255565b6138de6138c8602084016136d8565b825461ff00191660089190911b61ff0016178255565b6139056138ed604084016136d8565b825462ff0000191660109190911b62ff000016178255565b613932613914606084016136e5565b82805463ff000000191691151560181b63ff00000016919091179055565b613961613941608084016136e5565b82805464ff00000000191691151560201b64ff0000000016919091179055565b61398e61397060a084016136d8565b825465ff0000000000191660289190911b65ff000000000016178255565b6139bd61399d60c084016136d8565b825466ff000000000000191660309190911b66ff00000000000016178255565b6139ee6139cc60e084016136d8565b825467ff00000000000000191660389190911b67ff0000000000000016178255565b613a226139fe61010084016136d8565b825468ff0000000000000000191660409190911b68ff000000000000000016178255565b613a58613a3261012084016136d8565b825469ff000000000000000000191660489190911b69ff00000000000000000016178255565b613a86613a6861014084016136d8565b82805460ff60501b191660509290921b60ff60501b16919091179055565b613ab4613a9661016084016136d8565b82805460ff60581b191660589290921b60ff60581b16919091179055565b613ae2613ac461018084016136d8565b82805460ff60601b191660609290921b60ff60601b16919091179055565b613b10613af26101a084016136d8565b82805460ff60681b191660689290921b60ff60681b16919091179055565b613b3e613b206101c084016136d8565b82805460ff60701b191660709290921b60ff60701b16919091179055565b613b6c613b4e6101e084016136d8565b82805460ff60781b191660789290921b60ff60781b16919091179055565b613b9a613b7c61020084016136d8565b82805460ff60801b191660809290921b60ff60801b16919091179055565b613ba86102208301836136f2565b610ebb8183600186016137b0565b6803130b210373ab6ac160bd1b815260008251613bda816009850160208701612b51565b9190910160090192915050565b6803130b210373ab6ac960bd1b815260008251613bda816009850160208701612b51565b6703130b2103830b6160c51b815260008251613c2e816008850160208701612b51565b9190910160080192915050565b6803130b2103634b732960bd1b815260008251613bda816009850160208701612b51565b6903130b2103830b4b73a160b51b8152600082516132f381600a850160208701612b51565b6903130b21039b430b832960b51b8152600082516132f381600a850160208701612b51565b6b03130b21032b6b4ba21b7b6160a51b815260008251613cd081600c850160208701612b51565b91909101600c0192915050565b6d03130b21039b430b237bba1b7b6160951b815260008251613d0681600e850160208701612b51565b91909101600e0192915050565b6e03130b2103729b430b221b7b637b91608d1b815260008251613d3d81600f850160208701612b51565b91909101600f0192915050565b7003130b21039b430b832a232b739b4ba3c9607d1b815260008251613d76816011850160208701612b51565b9190910160110192915050565b7103130b2103634b732aa3434b1b5b732b9b9960751b815260008251613db0816012850160208701612b51565b9190910160120192915050565b6c03130b21032b6b4ba2930ba329609d1b815260008251613de581600d850160208701612b51565b91909101600d0192915050565b6f03130b2103bb4b3b3b632a9b832b2b2160851b81526000825161332b816010850160208701612b51565b7203130b2103bb4b3b3b632a9ba3932b733ba341606d1b815260008251613e4b816013850160208701612b51565b9190910160130192915050565b6d03130b2103830b4b73a1924b23c160951b815260008251613d0681600e850160208701612b51565b6603130b21032a8160cd1b815260008251613ea3816007850160208701612b51565b919091016007019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220050702b2262c6ea95056e24930418860fd913913b97255cf1d690364f1d8d0c964736f6c6343000813003368747470733a2f2f736b6965732e7774662f6e66742f70696e67735f636f6e74726163745552492e6a736f6e

Deployed Bytecode

0x6080604052600436106102675760003560e01c80638da5cb5b11610144578063c8c78c1a116100b6578063e985e9c51161007a578063e985e9c514610703578063ecebb3b114610723578063f229abbd14610750578063f2fde38b14610770578063f3cb838514610790578063f516a2e6146107b057600080fd5b8063c8c78c1a14610674578063cf5c1a18146106a4578063d5abeb01146106c4578063d5e1e76c146106da578063e3a800a6146106ed57600080fd5b8063b88d4fde11610108578063b88d4fde146105d8578063b8f7ef60146105eb578063bb073c631461060b578063c03afb591461061e578063c0c371491461063e578063c87b56dd1461065457600080fd5b80638da5cb5b1461054157806395d89b411461055f578063a035b1fe14610574578063a22cb4651461058a578063b1c9fe6e146105aa57600080fd5b806342842e0e116101dd5780636352211e116101a15780636352211e146104965780636f8b44b0146104b657806370a08231146104d6578063715018a6146104f657806378cbcf231461050b5780637d145fde1461052157600080fd5b806342842e0e146103f257806342966c6814610405578063568c8dbb1461042557806356fc87e0146104555780635dc96d161461047557600080fd5b806322054ea81161022f57806322054ea81461033357806323b872dd146103755780632baa031e14610388578063310bd74b1461039d57806339371b25146103bd5780633ccfd60b146103dd57600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146102fb57806318160ddd14610310575b600080fd5b34801561027857600080fd5b5061028c610287366004612b34565b6107c6565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b66107d7565b6040516102989190612ba1565b3480156102cf57600080fd5b506102e36102de366004612bb4565b610869565b6040516001600160a01b039091168152602001610298565b61030e610309366004612be2565b6108ad565b005b34801561031c57600080fd5b50600154600054035b604051908152602001610298565b34801561033f57600080fd5b5061036361034e366004612c0e565b600e6020526000908152604090205460ff1681565b60405160ff9091168152602001610298565b61030e610383366004612c2b565b61094d565b34801561039457600080fd5b506102b6610aeb565b3480156103a957600080fd5b5061030e6103b8366004612bb4565b610bd6565b3480156103c957600080fd5b506013546102e3906001600160a01b031681565b3480156103e957600080fd5b5061030e610c40565b61030e610400366004612c2b565b610c94565b34801561041157600080fd5b5061030e610420366004612bb4565b610cb4565b34801561043157600080fd5b5061028c610440366004612bb4565b60106020526000908152604090205460ff1681565b34801561046157600080fd5b5061030e610470366004612c8b565b610cbf565b34801561048157600080fd5b5060145461028c90600160a81b900460ff1681565b3480156104a257600080fd5b506102e36104b1366004612bb4565b610cf1565b3480156104c257600080fd5b5061030e6104d1366004612bb4565b610cfc565b3480156104e257600080fd5b506103256104f1366004612c0e565b610d2b565b34801561050257600080fd5b5061030e610d7a565b34801561051757600080fd5b50610325600b5481565b34801561052d57600080fd5b5061030e61053c366004612c0e565b610db0565b34801561054d57600080fd5b506009546001600160a01b03166102e3565b34801561056b57600080fd5b506102b6610dfc565b34801561058057600080fd5b5061032560125481565b34801561059657600080fd5b5061030e6105a5366004612cc1565b610e0b565b3480156105b657600080fd5b506014546105cb90600160a01b900460ff1681565b6040516102989190612d10565b61030e6105e6366004612da7565b610e77565b3480156105f757600080fd5b506014546102e3906001600160a01b031681565b61030e610619366004612ea2565b610ec1565b34801561062a57600080fd5b5061030e610639366004612f0e565b6113e1565b34801561064a57600080fd5b5061032560115481565b34801561066057600080fd5b506102b661066f366004612bb4565b611438565b34801561068057600080fd5b5061028c61068f366004612bb4565b600f6020526000908152604090205460ff1681565b3480156106b057600080fd5b5061030e6106bf366004612bb4565b611690565b3480156106d057600080fd5b50610325600c5481565b61030e6106e8366004612f2f565b6116bf565b3480156106f957600080fd5b50610325600a5481565b34801561070f57600080fd5b5061028c61071e366004612f71565b6119b8565b34801561072f57600080fd5b5061074361073e366004612bb4565b6119e6565b6040516102989190613119565b34801561075c57600080fd5b5061030e61076b36600461312c565b611c08565b34801561077c57600080fd5b5061030e61078b366004612c0e565b611c50565b34801561079c57600080fd5b5061030e6107ab366004612c0e565b611ce8565b3480156107bc57600080fd5b50610325600d5481565b60006107d182611d34565b92915050565b6060600280546107e690613149565b80601f016020809104026020016040519081016040528092919081815260200182805461081290613149565b801561085f5780601f106108345761010080835404028352916020019161085f565b820191906000526020600020905b81548152906001019060200180831161084257829003601f168201915b5050505050905090565b600061087482611d82565b610891576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108b882610cf1565b9050336001600160a01b038216146108f1576108d481336119b8565b6108f1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061095882611da9565b9050836001600160a01b0316816001600160a01b03161461098b5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546109b78187335b6001600160a01b039081169116811491141790565b6109e2576109c586336119b8565b6109e257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a0957604051633a954ecd60e21b815260040160405180910390fd5b610a168686866001611e17565b8015610a2157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610ab357600184016000818152600460205260408120549003610ab1576000548114610ab15760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613eb183398151915260405160405180910390a45b505050505050565b6014546060906001600160a01b0316610b225750604080518082019091526009815268139bc814185c995b9d60ba1b602082015290565b6013546001600160a01b0316610b5d575060408051808201909152601081526f27379036b2ba30b230ba309030b2323960811b602082015290565b601354604080516315d5018f60e11b815290516001600160a01b03909216918291632baa031e9160048083019260009291908290030181865afa158015610ba8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bd09190810190613183565b91505090565b6009546001600160a01b03163314610c095760405162461bcd60e51b8152600401610c00906131fa565b60405180910390fd5b60005b81811015610c3c576000818152600f60205260409020805460ff1916905580610c3481613245565b915050610c0c565b5050565b6009546001600160a01b03163314610c6a5760405162461bcd60e51b8152600401610c00906131fa565b6040514790339082156108fc029083906000818181858888f19350505050610c9157600080fd5b50565b610caf83838360405180602001604052806000815250610e77565b505050565b610c91816001611e78565b6009546001600160a01b03163314610ce95760405162461bcd60e51b8152600401610c00906131fa565b60ff16600a55565b60006107d182611da9565b6009546001600160a01b03163314610d265760405162461bcd60e51b8152600401610c00906131fa565b600c55565b60006001600160a01b038216610d54576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b03163314610da45760405162461bcd60e51b8152600401610c00906131fa565b610dae6000611fbe565b565b6009546001600160a01b03163314610dda5760405162461bcd60e51b8152600401610c00906131fa565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546107e690613149565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e8284848461094d565b6001600160a01b0383163b15610ebb57610e9e84848484612010565b610ebb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600260085403610f135760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b60026008556001601454600160a01b900460ff166002811115610f3857610f38612cfa565b1015610f775760405162461bcd60e51b815260206004820152600e60248201526d21b630b4b6902737ba1027b832b760911b6044820152606401610c00565b600a54600090610f87908561325e565b90506000610f958284613275565b9050801561104a573460125482610fac919061325e565b1115610fe85760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b6044820152606401610c00565b600d54336000908152600e602052604090205461100990839060ff16613288565b111561104a5760405162461bcd60e51b815260206004820152601060248201526f13585e1959081c195c881dd85b1b195d60821b6044820152606401610c00565b600c5483908161105d6001546000540390565b6110679190613288565b11156110a05760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610c00565b6110aa85856120fb565b60006110b96001546000540390565b90506000805b888110156112ea5760145433906001600160a01b0316636352211e8c8c858181106110ec576110ec61329b565b905060200201356040518263ffffffff1660e01b815260040161111191815260200190565b602060405180830381865afa15801561112e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115291906132b1565b6001600160a01b03161461117d8b8b848181106111715761117161329b565b90506020020135612144565b60405160200161118d91906132ce565b604051602081830303815290604052906111ba5760405162461bcd60e51b8152600401610c009190612ba1565b50600f60008b8b848181106111d1576111d161329b565b602090810292909201358352508101919091526040016000205460ff16156112048b8b848181106111715761117161329b565b6040516020016112149190613300565b604051602081830303815290604052906112415760405162461bcd60e51b8152600401610c009190612ba1565b506001600f60008c8c8581811061125a5761125a61329b565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055506112cb838061129490613245565b94508989856112a281613245565b96508181106112b3576112b361329b565b90506020028101906112c59190613338565b84612245565b6112d88361129481613245565b806112e281613245565b9150506110bf565b508315611380575b85811015611345576113338261130781613245565b935088888481811061131b5761131b61329b565b905060200281019061132d9190613338565b83612245565b8061133d81613245565b9150506112f2565b336000908152600e60205260408120805486929061136790849060ff16613359565b92506101000a81548160ff021916908360ff1602179055505b61138a33846122fd565b7f08d6b92129e3288a5a525937d5df7d71e44934d581622fd60c2c4a79833e8f1d836113b96001546000540390565b6040805192835260208301919091520160405180910390a15050600160085550505050505050565b6009546001600160a01b0316331461140b5760405162461bcd60e51b8152600401610c00906131fa565b6014805482919060ff60a01b1916600160a01b83600281111561143057611430612cfa565b021790555050565b606061144382611d82565b61147c5760405162461bcd60e51b815260206004820152600a6024820152691d5b9adb9bdddb881a5960b21b6044820152606401610c00565b6013546000838152601660209081526040808320815161024081018352815460ff8082168352610100808304821684880152620100008304821684870152630100000083048216151560608501526401000000008304821615156080850152650100000000008304821660a085015266010000000000008304821660c0850152600160381b8304821660e0850152600160401b8304821690840152600160481b82048116610120840152600160501b82048116610140840152600160581b82048116610160840152600160601b82048116610180840152600160681b820481166101a0840152600160701b820481166101c0840152600160781b820481166101e0840152600160801b909104166102008201526001820180548451818702810187019095528085526001600160a01b03909716969194929361022086019390929083018282801561160a57602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116115db5790505b5050505050815250509050816001600160a01b031663ee79a6ad85836040518363ffffffff1660e01b8152600401611643929190613372565b600060405180830381865afa158015611660573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116889190810190613183565b949350505050565b6009546001600160a01b031633146116ba5760405162461bcd60e51b8152600401610c00906131fa565b600b55565b6002600854036117115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c00565b60026008819055601454600160a01b900460ff16600281111561173657611736612cfa565b10156117715760405162461bcd60e51b815260206004820152600a6024820152694e6f74205075626c696360b01b6044820152606401610c00565b600b54601154829190611785908390613288565b11156117c55760405162461bcd60e51b815260206004820152600f60248201526e141d589b1a58c814dbdb19081bdd5d608a1b6044820152606401610c00565b600d54336000908152600e60205260409020546117e690839060ff16613288565b11156118275760405162461bcd60e51b815260206004820152601060248201526f13585e1959081c195c881dd85b1b195d60821b6044820152606401610c00565b3460125482611836919061325e565b11156118725760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b6044820152606401610c00565b333b156118b05760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b6044820152606401610c00565b336000908152600e6020526040812080548392906118d290849060ff16613359565b92506101000a81548160ff021916908360ff16021790555080601160008282546118fc9190613288565b9091555061190c905083836120fb565b600061191b6001546000540390565b905060005b8381101561195b576119498261193581613245565b935086868481811061131b5761131b61329b565b8061195381613245565b915050611920565b5061196633836122fd565b7f08d6b92129e3288a5a525937d5df7d71e44934d581622fd60c2c4a79833e8f1d826119956001546000540390565b6040805192835260208301919091520160405180910390a1505060016008555050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b604080516102408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082018390526101a082018390526101c082018390526101e08201839052610200820192909252610220810191909152600082815260166020908152604091829020825161024081018452815460ff8082168352610100808304821684870152620100008304821684880152630100000083048216151560608501526401000000008304821615156080850152650100000000008304821660a085015266010000000000008304821660c0850152600160381b8304821660e0850152600160401b8304821690840152600160481b82048116610120840152600160501b82048116610140840152600160581b82048116610160840152600160601b82048116610180840152600160681b820481166101a0840152600160701b820481166101c0840152600160781b820481166101e0840152600160801b90910416610200820152600182018054855181860281018601909652808652919492936102208601939290830182828015611bf857602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611bc95790505b5050505050815250509050919050565b6009546001600160a01b03163314611c325760405162461bcd60e51b8152600401610c00906131fa565b60148054911515600160a81b0260ff60a81b19909216919091179055565b6009546001600160a01b03163314611c7a5760405162461bcd60e51b8152600401610c00906131fa565b6001600160a01b038116611cdf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c00565b610c9181611fbe565b6009546001600160a01b03163314611d125760405162461bcd60e51b8152600401610c00906131fa565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60006301ffc9a760e01b6001600160e01b031983161480611d6557506380ac58cd60e01b6001600160e01b03198316145b806107d15750506001600160e01b031916635b5e139f60e01b1490565b60008054821080156107d1575050600090815260046020526040902054600160e01b161590565b600081600054811015611dfe5760008181526004602052604081205490600160e01b82169003611dfc575b80600003611df5575060001901600081815260046020526040902054611dd4565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038316151580611e375750601454600160a81b900460ff165b611e735760405162461bcd60e51b815260206004820152600d60248201526c189d5c9b88191a5cd8589b1959609a1b6044820152606401610c00565b610ebb565b6000611e8383611da9565b905080600080611ea186600090815260066020526040902080549091565b915091508415611ee157611eb68184336109a2565b611ee157611ec483336119b8565b611ee157604051632ce44b5f60e11b815260040160405180910390fd5b611eef836000886001611e17565b8015611efa57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003611f8857600186016000818152600460205260408120549003611f86576000548114611f865760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020613eb1833981519152908390a45050600180548101905550505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061204590339089908890889060040161338b565b6020604051808303816000875af1925050508015612080575060408051601f3d908101601f1916820190925261207d918101906133be565b60015b6120de573d8080156120ae576040519150601f19603f3d011682016040523d82523d6000602084013e6120b3565b606091505b5080516000036120d6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60005b81811015610caf5761213283838381811061211b5761211b61329b565b905060200281019061212d9190613338565b6123e4565b8061213c81613245565b9150506120fe565b60608160000361216b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612195578061217f81613245565b915061218e9050600a836133f1565b915061216f565b60008167ffffffffffffffff8111156121b0576121b0612d38565b6040519080825280601f01601f1916602001820160405280156121da576020820181803683370190505b5090505b8415611688576121ef600183613275565b91506121fc600a86613405565b612207906030613288565b60f81b81838151811061221c5761221c61329b565b60200101906001600160f81b031916908160001a90535061223e600a866133f1565b94506121de565b600082604051602001612258919061349a565b60408051601f1981840301815291815281516020928301206000818152601090935291205490915060ff161561228d83612144565b60405160200161229d9190613693565b604051602081830303815290604052906122ca5760405162461bcd60e51b8152600401610c009190612ba1565b506000818152601060209081526040808320805460ff19166001179055868352601690915290208390610ae3828261389c565b60008054908290036123225760405163b562e8dd60e01b815260040160405180910390fd5b61232f6000848385611e17565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020613eb18339815191528180a4600183015b8181146123ba5780836000600080516020613eb1833981519152600080a4600101612394565b50816000036123db57604051622e076360e81b815260040160405180910390fd5b60005550505050565b60016123f36020830183612c8b565b60ff16101580156124145750600761240e6020830183612c8b565b60ff1611155b61242c6124246020840184612c8b565b60ff16612144565b60405160200161243c9190613bb6565b604051602081830303815290604052906124695760405162461bcd60e51b8152600401610c009190612ba1565b50600161247c6040830160208401612c8b565b60ff16101580156124a05750600761249a6040830160208401612c8b565b60ff1611155b6124b36124246040840160208501612c8b565b6040516020016124c39190613be7565b604051602081830303815290604052906124f05760405162461bcd60e51b8152600401610c009190612ba1565b5060136125036060830160408401612c8b565b60ff161061251a6124246060840160408501612c8b565b60405160200161252a9190613c0b565b604051602081830303815290604052906125575760405162461bcd60e51b8152600401610c009190612ba1565b50601361256a60c0830160a08401612c8b565b60ff161061258161242460c0840160a08501612c8b565b6040516020016125919190613c3b565b604051602081830303815290604052906125be5760405162461bcd60e51b8152600401610c009190612ba1565b5060136125d160e0830160c08401612c8b565b60ff16106125e861242460e0840160c08501612c8b565b6040516020016125f89190613c5f565b604051602081830303815290604052906126255760405162461bcd60e51b8152600401610c009190612ba1565b506013612639610100830160e08401612c8b565b60ff1610612651612424610100840160e08501612c8b565b6040516020016126619190613c84565b6040516020818303038152906040529061268e5760405162461bcd60e51b8152600401610c009190612ba1565b5060136126a361012083016101008401612c8b565b60ff16106126bc61242461012084016101008501612c8b565b6040516020016126cc9190613ca9565b604051602081830303815290604052906126f95760405162461bcd60e51b8152600401610c009190612ba1565b50601361270e61014083016101208401612c8b565b60ff161061272761242461014084016101208501612c8b565b6040516020016127379190613cdd565b604051602081830303815290604052906127645760405162461bcd60e51b8152600401610c009190612ba1565b50601361277961016083016101408401612c8b565b60ff161061279261242461016084016101408501612c8b565b6040516020016127a29190613d13565b604051602081830303815290604052906127cf5760405162461bcd60e51b8152600401610c009190612ba1565b5060016127e461018083016101608401612c8b565b60ff161015801561280a5750600761280461018083016101608401612c8b565b60ff1611155b61281f61242461018084016101608501612c8b565b60405160200161282f9190613d4a565b6040516020818303038152906040529061285c5760405162461bcd60e51b8152600401610c009190612ba1565b5060016128716101a083016101808401612c8b565b60ff1610158015612897575060056128916101a083016101808401612c8b565b60ff1611155b6128ac6124246101a084016101808501612c8b565b6040516020016128bc9190613d83565b604051602081830303815290604052906128e95760405162461bcd60e51b8152600401610c009190612ba1565b5060016128fe6101c083016101a08401612c8b565b60ff16101580156129245750600a61291e6101c083016101a08401612c8b565b60ff1611155b6129396124246101c084016101a08501612c8b565b6040516020016129499190613dbd565b604051602081830303815290604052906129765760405162461bcd60e51b8152600401610c009190612ba1565b50600361298b6101e083016101c08401612c8b565b60ff16106129a46124246101e084016101c08501612c8b565b6040516020016129b49190613df2565b604051602081830303815290604052906129e15760405162461bcd60e51b8152600401610c009190612ba1565b5060046129f661020083016101e08401612c8b565b60ff1610612a0f61242461020084016101e08501612c8b565b604051602001612a1f9190613e1d565b60405160208183030381529060405290612a4c5760405162461bcd60e51b8152600401610c009190612ba1565b506013612a6161022083016102008401612c8b565b60ff1610612a7a61242461022084016102008501612c8b565b604051602001612a8a9190613e58565b60405160208183030381529060405290612ab75760405162461bcd60e51b8152600401610c009190612ba1565b50612ac66102208201826136f2565b159050612ae1612ada6102208401846136f2565b9050612144565b604051602001612af19190613e81565b60405160208183030381529060405290610c3c5760405162461bcd60e51b8152600401610c009190612ba1565b6001600160e01b031981168114610c9157600080fd5b600060208284031215612b4657600080fd5b8135611df581612b1e565b60005b83811015612b6c578181015183820152602001612b54565b50506000910152565b60008151808452612b8d816020860160208601612b51565b601f01601f19169290920160200192915050565b602081526000611df56020830184612b75565b600060208284031215612bc657600080fd5b5035919050565b6001600160a01b0381168114610c9157600080fd5b60008060408385031215612bf557600080fd5b8235612c0081612bcd565b946020939093013593505050565b600060208284031215612c2057600080fd5b8135611df581612bcd565b600080600060608486031215612c4057600080fd5b8335612c4b81612bcd565b92506020840135612c5b81612bcd565b929592945050506040919091013590565b60ff81168114610c9157600080fd5b8035612c8681612c6c565b919050565b600060208284031215612c9d57600080fd5b8135611df581612c6c565b8015158114610c9157600080fd5b8035612c8681612ca8565b60008060408385031215612cd457600080fd5b8235612cdf81612bcd565b91506020830135612cef81612ca8565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612d3257634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612d7757612d77612d38565b604052919050565b600067ffffffffffffffff821115612d9957612d99612d38565b50601f01601f191660200190565b60008060008060808587031215612dbd57600080fd5b8435612dc881612bcd565b93506020850135612dd881612bcd565b925060408501359150606085013567ffffffffffffffff811115612dfb57600080fd5b8501601f81018713612e0c57600080fd5b8035612e1f612e1a82612d7f565b612d4e565b818152886020838501011115612e3457600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008083601f840112612e6857600080fd5b50813567ffffffffffffffff811115612e8057600080fd5b6020830191508360208260051b8501011115612e9b57600080fd5b9250929050565b60008060008060408587031215612eb857600080fd5b843567ffffffffffffffff80821115612ed057600080fd5b612edc88838901612e56565b90965094506020870135915080821115612ef557600080fd5b50612f0287828801612e56565b95989497509550505050565b600060208284031215612f2057600080fd5b813560038110611df557600080fd5b60008060208385031215612f4257600080fd5b823567ffffffffffffffff811115612f5957600080fd5b612f6585828601612e56565b90969095509350505050565b60008060408385031215612f8457600080fd5b8235612f8f81612bcd565b91506020830135612cef81612bcd565b600081518084526020808501945080840160005b83811015612fd257815160ff1687529582019590820190600101612fb3565b509495945050505050565b805160ff16825260006102406020830151612ffd602086018260ff169052565b506040830151613012604086018260ff169052565b506060830151613026606086018215159052565b50608083015161303a608086018215159052565b5060a083015161304f60a086018260ff169052565b5060c083015161306460c086018260ff169052565b5060e083015161307960e086018260ff169052565b506101008381015160ff90811691860191909152610120808501518216908601526101408085015182169086015261016080850151821690860152610180808501518216908601526101a0808501518216908601526101c0808501518216908601526101e08085015182169086015261020080850151909116908501526102208084015181860183905261310f83870182612f9f565b9695505050505050565b602081526000611df56020830184612fdd565b60006020828403121561313e57600080fd5b8135611df581612ca8565b600181811c9082168061315d57607f821691505b60208210810361317d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561319557600080fd5b815167ffffffffffffffff8111156131ac57600080fd5b8201601f810184136131bd57600080fd5b80516131cb612e1a82612d7f565b8181528560208385010111156131e057600080fd5b6131f1826020830160208601612b51565b95945050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600182016132575761325761322f565b5060010190565b80820281158282048414176107d1576107d161322f565b818103818111156107d1576107d161322f565b808201808211156107d1576107d161322f565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132c357600080fd5b8151611df581612bcd565b6903737ba1037bbb732b9160b51b8152600082516132f381600a850160208701612b51565b91909101600a0192915050565b6f030b63932b0b23c9031b630b4b6b2b2160851b81526000825161332b816010850160208701612b51565b9190910160100192915050565b6000823561023e1983360301811261334f57600080fd5b9190910192915050565b60ff81811683821601908111156107d1576107d161322f565b8281526040602082015260006116886040830184612fdd565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061310f90830184612b75565b6000602082840312156133d057600080fd5b8151611df581612b1e565b634e487b7160e01b600052601260045260246000fd5b600082613400576134006133db565b500490565b600082613414576134146133db565b500690565b6000808335601e1984360301811261343057600080fd5b830160208101925035905067ffffffffffffffff81111561345057600080fd5b8060051b3603821315612e9b57600080fd5b8183526000602080850194508260005b85811015612fd257813561348581612c6c565b60ff1687529582019590820190600101613472565b602081526134b5602082016134ae84612c7b565b60ff169052565b60006134c360208401612c7b565b60ff81166040840152506134d960408401612c7b565b60ff81166060840152506134ef60608401612cb6565b80151560808401525061350460808401612cb6565b80151560a08401525061351960a08401612c7b565b60ff811660c08401525061352f60c08401612c7b565b60ff811660e08401525061354560e08401612c7b565b6101006135568185018360ff169052565b613561818601612c7b565b9150506101206135758185018360ff169052565b613580818601612c7b565b9150506101406135948185018360ff169052565b61359f818601612c7b565b9150506101606135b38185018360ff169052565b6135be818601612c7b565b9150506101806135d28185018360ff169052565b6135dd818601612c7b565b9150506101a06135f18185018360ff169052565b6135fc818601612c7b565b9150506101c06136108185018360ff169052565b61361b818601612c7b565b9150506101e061362f8185018360ff169052565b61363a818601612c7b565b91505061020061364e8185018360ff169052565b613659818601612c7b565b91505061022061366d8185018360ff169052565b61367981860186613419565b61024086810152925090506131f161026085018383613462565b7f61747472696275746520616c726561647920636c61696d65642e0000000000008152600082516136cb81601a850160208701612b51565b91909101601a0192915050565b600081356107d181612c6c565b600081356107d181612ca8565b6000808335601e1984360301811261370957600080fd5b83018035915067ffffffffffffffff82111561372457600080fd5b6020019150600581901b3603821315612e9b57600080fd5b600160401b82111561375057613750612d38565b805482825580831015610caf57600082815260208120601f850160051c8101601f840160051c82019150601f8616801561379b576000198083018054828460200360031b1c16815550505b505b81811015610ae35782815560010161379d565b67ffffffffffffffff8311156137c8576137c8612d38565b6137d2838261373c565b60008181526020902082908460051c60005b8181101561383c576000805b60208082106137ff575061382f565b61382261380b886136d8565b60ff908116600385901b90811b91901b1985161790565b96019591506001016137f0565b50838201556001016137e4565b50601f198616808703818814613892576000805b8281101561388c5761387b613864886136d8565b60ff908116600384901b90811b91901b1984161790565b602097909701969150600101613850565b50848401555b5050505050505050565b6138b96138a8836136d8565b825460ff191660ff91909116178255565b6138de6138c8602084016136d8565b825461ff00191660089190911b61ff0016178255565b6139056138ed604084016136d8565b825462ff0000191660109190911b62ff000016178255565b613932613914606084016136e5565b82805463ff000000191691151560181b63ff00000016919091179055565b613961613941608084016136e5565b82805464ff00000000191691151560201b64ff0000000016919091179055565b61398e61397060a084016136d8565b825465ff0000000000191660289190911b65ff000000000016178255565b6139bd61399d60c084016136d8565b825466ff000000000000191660309190911b66ff00000000000016178255565b6139ee6139cc60e084016136d8565b825467ff00000000000000191660389190911b67ff0000000000000016178255565b613a226139fe61010084016136d8565b825468ff0000000000000000191660409190911b68ff000000000000000016178255565b613a58613a3261012084016136d8565b825469ff000000000000000000191660489190911b69ff00000000000000000016178255565b613a86613a6861014084016136d8565b82805460ff60501b191660509290921b60ff60501b16919091179055565b613ab4613a9661016084016136d8565b82805460ff60581b191660589290921b60ff60581b16919091179055565b613ae2613ac461018084016136d8565b82805460ff60601b191660609290921b60ff60601b16919091179055565b613b10613af26101a084016136d8565b82805460ff60681b191660689290921b60ff60681b16919091179055565b613b3e613b206101c084016136d8565b82805460ff60701b191660709290921b60ff60701b16919091179055565b613b6c613b4e6101e084016136d8565b82805460ff60781b191660789290921b60ff60781b16919091179055565b613b9a613b7c61020084016136d8565b82805460ff60801b191660809290921b60ff60801b16919091179055565b613ba86102208301836136f2565b610ebb8183600186016137b0565b6803130b210373ab6ac160bd1b815260008251613bda816009850160208701612b51565b9190910160090192915050565b6803130b210373ab6ac960bd1b815260008251613bda816009850160208701612b51565b6703130b2103830b6160c51b815260008251613c2e816008850160208701612b51565b9190910160080192915050565b6803130b2103634b732960bd1b815260008251613bda816009850160208701612b51565b6903130b2103830b4b73a160b51b8152600082516132f381600a850160208701612b51565b6903130b21039b430b832960b51b8152600082516132f381600a850160208701612b51565b6b03130b21032b6b4ba21b7b6160a51b815260008251613cd081600c850160208701612b51565b91909101600c0192915050565b6d03130b21039b430b237bba1b7b6160951b815260008251613d0681600e850160208701612b51565b91909101600e0192915050565b6e03130b2103729b430b221b7b637b91608d1b815260008251613d3d81600f850160208701612b51565b91909101600f0192915050565b7003130b21039b430b832a232b739b4ba3c9607d1b815260008251613d76816011850160208701612b51565b9190910160110192915050565b7103130b2103634b732aa3434b1b5b732b9b9960751b815260008251613db0816012850160208701612b51565b9190910160120192915050565b6c03130b21032b6b4ba2930ba329609d1b815260008251613de581600d850160208701612b51565b91909101600d0192915050565b6f03130b2103bb4b3b3b632a9b832b2b2160851b81526000825161332b816010850160208701612b51565b7203130b2103bb4b3b3b632a9ba3932b733ba341606d1b815260008251613e4b816013850160208701612b51565b9190910160130192915050565b6d03130b2103830b4b73a1924b23c160951b815260008251613d0681600e850160208701612b51565b6603130b21032a8160cd1b815260008251613ea3816007850160208701612b51565b919091016007019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220050702b2262c6ea95056e24930418860fd913913b97255cf1d690364f1d8d0c964736f6c63430008130033

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.