ETH Price: $2,132.47 (-1.59%)

Contract

0x5d52B57B9902b27dc5c69Ae92a17c8dffADF4010
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...215181712024-12-30 22:07:11444 days ago1735596431IN
0x5d52B57B...ffADF4010
0 ETH0.000453669.73715788
Set Approval For...189949792024-01-13 2:25:59797 days ago1705112759IN
0x5d52B57B...ffADF4010
0 ETH0.0003153412.76529241
Set Approval For...186622222023-11-27 9:55:23843 days ago1701078923IN
0x5d52B57B...ffADF4010
0 ETH0.0011767425.21142469
Set Approval For...183328642023-10-12 7:32:35889 days ago1697095955IN
0x5d52B57B...ffADF4010
0 ETH0.000200368.1110376
Set Approval For...182525912023-10-01 2:06:11901 days ago1696125971IN
0x5d52B57B...ffADF4010
0 ETH0.000162936.59574358
Set Approval For...179772402023-08-23 11:54:47939 days ago1692791687IN
0x5d52B57B...ffADF4010
0 ETH0.000329213.33949379
Set Approval For...173992002023-06-03 9:13:591020 days ago1685783639IN
0x5d52B57B...ffADF4010
0 ETH0.0009623620.6450016
Safe Transfer Fr...172997972023-05-20 9:37:591034 days ago1684575479IN
0x5d52B57B...ffADF4010
0 ETH0.0021375131.1536814
Set Approval For...169844272023-04-05 18:46:591079 days ago1680720419IN
0x5d52B57B...ffADF4010
0 ETH0.0014125730.30294178
Set Approval For...169012162023-03-25 1:28:591091 days ago1679707739IN
0x5d52B57B...ffADF4010
0 ETH0.0006973514.95990163
Set Approval For...168966932023-03-24 10:13:471091 days ago1679652827IN
0x5d52B57B...ffADF4010
0 ETH0.0008392718.0042953
Set Approval For...168317272023-03-15 7:09:351101 days ago1678864175IN
0x5d52B57B...ffADF4010
0 ETH0.0005386321.80423938
Transfer From168292892023-03-14 22:55:231101 days ago1678834523IN
0x5d52B57B...ffADF4010
0 ETH0.0015070823.14280185
Set Approval For...168249522023-03-14 8:18:591101 days ago1678781939IN
0x5d52B57B...ffADF4010
0 ETH0.0008586218.41960077
Set Approval For...168135002023-03-12 17:42:231103 days ago1678642943IN
0x5d52B57B...ffADF4010
0 ETH0.0016451335.29201987
Set Approval For...168126722023-03-12 14:54:591103 days ago1678632899IN
0x5d52B57B...ffADF4010
0 ETH0.001416930.41162311
Set Approval For...168126712023-03-12 14:54:471103 days ago1678632887IN
0x5d52B57B...ffADF4010
0 ETH0.0014553231.22018895
Set Base URI168091392023-03-12 2:59:591104 days ago1678589999IN
0x5d52B57B...ffADF4010
0 ETH0.0014957119.79455385
Set Approval For...168087752023-03-12 1:45:231104 days ago1678585523IN
0x5d52B57B...ffADF4010
0 ETH0.0012159726.09885908
Set Approval For...168069752023-03-11 19:40:471104 days ago1678563647IN
0x5d52B57B...ffADF4010
0 ETH0.0021190845.48274242
Set Approval For...168062382023-03-11 17:11:351104 days ago1678554695IN
0x5d52B57B...ffADF4010
0 ETH0.0024763353.12316005
Safe Transfer Fr...168061552023-03-11 16:54:591104 days ago1678553699IN
0x5d52B57B...ffADF4010
0 ETH0.0019528241.61317153
Set Approval For...168057802023-03-11 15:38:111104 days ago1678549091IN
0x5d52B57B...ffADF4010
0 ETH0.0018937740.64680475
Set Approval For...168056372023-03-11 15:09:111104 days ago1678547351IN
0x5d52B57B...ffADF4010
0 ETH0.0024432552.41352941
Set Approval For...168016002023-03-11 1:32:111105 days ago1678498331IN
0x5d52B57B...ffADF4010
0 ETH0.0038277782.11472231
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer167955102023-03-10 4:54:471106 days ago1678424087
0x5d52B57B...ffADF4010
34.1 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Gasoline

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./ERC721A.sol";

contract Gasoline is ERC721A, VRFConsumerBaseV2, AccessControl {
    VRFCoordinatorV2Interface public immutable COORDINATOR;

    uint64 public immutable s_subscriptionId;
    bytes32 public immutable s_keyHash;
    uint32 public constant CALLBACK_GAS_LIMIT = 100000;
    uint16 public constant REQUEST_CONFIRMATIONS = 3;
    uint32 public constant NUM_WORDS = 1;

    mapping(uint256 => address) public vrfRequestIdToAddress;
    mapping(address => bool) public allowlistMinted;

    uint256 public constant MAX_TOKEN_SUPPLY = 3333;
    uint256 public constant MAX_STANDARD_TOKEN_SUPPLY = 3000;
    uint256 public constant MAX_SUPER_TOKEN_SUPPLY = 333;
    bool public paused = true;
    bool public publicMintPhase = false;
    bytes32 public allowlistMerkleRoot = 0x0;
    bytes32 public freeClaimMerkleRoot = 0x0;
    uint256 public price = 0.22 ether;
    bool public staking = false;

    event RandomMintRequested(uint256 _requestId);

    event RandomMintFulfilled(
        uint256 _requestId,
        address _minter,
        uint256 _roll
    );

    event NoSupplyRefund(uint256 _requestId, address _minter);

    string private baseURI;

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

    function setBaseURI(string memory _uri)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        baseURI = _uri;
    }

    // NON-SEQUENTIAL STUFF
    uint256 private _currentIndexStandard;
    uint256 private _currentIndexSuper;

    constructor(
        address _vrfCoordinator,
        bytes32 _keyHash,
        uint64 _subscriptionId
    ) ERC721A("Gasoline", "GAS") VRFConsumerBaseV2(_vrfCoordinator) {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

        COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator);

        s_subscriptionId = _subscriptionId;
        s_keyHash = _keyHash;

        _currentIndexStandard = _standardStartTokenId();
        _currentIndexSuper = _superStartTokenId();
    }

    function setAllowlistMerkleRoot(bytes32 _merkleRoot)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        allowlistMerkleRoot = _merkleRoot;
    }

    function setFreeClaimMerkleRoot(bytes32 _merkleRoot)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        freeClaimMerkleRoot = _merkleRoot;
    }

    function pause(bool _pause) external onlyRole(DEFAULT_ADMIN_ROLE) {
        paused = _pause;
    }

    function setPublicMintPhase(bool _publicMintPhase)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        publicMintPhase = _publicMintPhase;
    }

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

    modifier supplyCheck() {
        require(paused == false, "Minting is paused.");
        require(
            _totalMinted() <= MAX_TOKEN_SUPPLY,
            "Max token supply reached."
        );

        _;
    }

    /**
     * @notice Each allowlisted address can mint one token (randomly rolled).
     */
    function allowlistMint(bytes32[] calldata _merkleProof)
        public
        payable
        supplyCheck
    {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));

        require(
            allowlistMinted[msg.sender] == false,
            "Already minted allowlist."
        );
        require(_numberMinted(msg.sender) == 0, "Already minted.");
        require(
            MerkleProof.verify(_merkleProof, allowlistMerkleRoot, leaf),
            "Invalid Merkle proof."
        );
        require(msg.value >= price, "Incorrect ether sent.");

        if (totalMintedSuper() >= 111) {
            _standardMint(msg.sender, 1);
        } else {
            uint256 requestId = requestRandomMint();
            vrfRequestIdToAddress[requestId] = msg.sender;
            allowlistMinted[msg.sender] = true;
        }
    }

    /**
     * @notice Public mint is still 1 mint per tx (still randomly rolled).
     */
    function publicMint() public payable supplyCheck {
        require(publicMintPhase == true, "Public mint is not open.");
        require(msg.value >= price, "Incorrect ether sent.");

        // If one supply is tapped out, then default to the other.
        if (totalMintedStandard() >= MAX_STANDARD_TOKEN_SUPPLY) {
            _superMint(msg.sender, 1);
        } else if (totalMintedSuper() >= MAX_SUPER_TOKEN_SUPPLY) {
            _standardMint(msg.sender, 1);
        } else {
            uint256 requestId = requestRandomMint();
            vrfRequestIdToAddress[requestId] = msg.sender;
        }
    }

    uint256 public constant STANDARD_MINT_COST = 5;
    uint256 public constant SUPER_MINT_COST = 10;

    function freeClaimMint(
        bytes32[] calldata _merkleProof,
        uint256 _numberOfStandardMints,
        uint256 _numberOfSuperMints
    ) public supplyCheck {
        require(_numberOfSuperMints <= 1, "Only 1 super allowed.");
        require(_numberMinted(msg.sender) == 0, "Already minted.");

        bytes32 leaf = keccak256(
            abi.encodePacked(
                msg.sender,
                _numberOfStandardMints *
                    STANDARD_MINT_COST +
                    _numberOfSuperMints *
                    SUPER_MINT_COST
            )
        );

        require(
            MerkleProof.verify(_merkleProof, freeClaimMerkleRoot, leaf),
            "Invalid Merkle proof."
        );

        if (_numberOfStandardMints > 0) {
            _standardMint(msg.sender, _numberOfStandardMints);
        }
        if (_numberOfSuperMints > 0) {
            _superMint(msg.sender, _numberOfSuperMints);
        }
    }

    function adminMint(
        uint256 _numberOfStandardMints,
        uint256 _numberOfSuperMints
    ) external supplyCheck onlyRole(DEFAULT_ADMIN_ROLE) {
        if (_numberOfStandardMints > 0) {
            _standardMint(msg.sender, _numberOfStandardMints);
        }
        if (_numberOfSuperMints > 0) {
            _superMint(msg.sender, _numberOfSuperMints);
        }
    }

    function _standardMint(address _to, uint256 _mintAmount) private {
        // mint 1-3000
        require(
            totalMintedStandard() + _mintAmount <= MAX_STANDARD_TOKEN_SUPPLY,
            "Will exceed token supply."
        );

        _safeMint(_to, _mintAmount, _currentIndexStandard);
        _currentIndexStandard = _currentIndexStandard + _mintAmount;
    }

    function _superMint(address _to, uint256 _mintAmount) private {
        // mint 3001-3333
        require(
            totalMintedSuper() + _mintAmount <= MAX_SUPER_TOKEN_SUPPLY,
            "Will exceed token supply."
        );
        _safeMint(_to, _mintAmount, _currentIndexSuper);
        _currentIndexSuper = _currentIndexSuper + _mintAmount;
    }

    function requestRandomMint() public returns (uint256) {
        uint256 requestId = COORDINATOR.requestRandomWords(
            s_keyHash,
            s_subscriptionId,
            REQUEST_CONFIRMATIONS,
            CALLBACK_GAS_LIMIT,
            NUM_WORDS
        );

        emit RandomMintRequested(requestId);

        return requestId;
    }

    function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords)
        internal
        override
    {
        address minter = vrfRequestIdToAddress[requestId];

        if (totalSupply() >= MAX_TOKEN_SUPPLY) {
            emit NoSupplyRefund(requestId, minter);
        } else if (totalMintedStandard() >= MAX_STANDARD_TOKEN_SUPPLY) {
            _superMint(minter, 1);
            emit RandomMintFulfilled(requestId, minter, 3000);
        } else if (totalMintedSuper() >= MAX_SUPER_TOKEN_SUPPLY) {
            _standardMint(minter, 1);
            emit RandomMintFulfilled(requestId, minter, 2000);
        } else {
            // This will choose a minting path based on what `randomWords` are returned.
            uint256 roll = randomWords[0] % 1000; // [0..999]

            if (minter == address(0)) {
                revert MintToZeroAddress();
            }

            if (roll >= 901) {
                // if roll is [901..999]
                // then superMint
                _superMint(minter, 1);
            } else {
                // standardMint
                _standardMint(minter, 1);
            }

            emit RandomMintFulfilled(requestId, minter, roll);
        }
    }

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

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

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

    function _superStartTokenId() internal view virtual returns (uint256) {
        return 3001;
    }

    function totalMintedStandard() public view virtual returns (uint256) {
        unchecked {
            return _currentIndexStandard - _standardStartTokenId();
        }
    }

    function totalMintedSuper() public view virtual returns (uint256) {
        unchecked {
            return _currentIndexSuper - _superStartTokenId();
        }
    }

    function _totalMinted() internal view virtual override returns (uint256) {
        unchecked {
            return totalMintedStandard() + totalMintedSuper();
        }
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalMinted();
    }

    // =============================================================
    //   STAKING OPERATIONS
    // =============================================================

    mapping(uint256 => uint256) private tokenIdToStakingStartTime;
    event Staked(uint256 indexed _tokenId, uint256 _stakingStartTime);
    event Unstaked(uint256 indexed _tokenId, uint256 _stakingEndTime);

    function setStaking(bool _staking) external onlyRole(DEFAULT_ADMIN_ROLE) {
        staking = _staking;
    }

    function _stake(uint256 tokenId) private {
        require(ownerOf(tokenId) == msg.sender, "Not owner.");

        uint256 timestamp = block.timestamp;

        tokenIdToStakingStartTime[tokenId] = timestamp;
        emit Staked(tokenId, timestamp);
    }

    function stake(uint256[] calldata tokenIds) external {
        require(staking == true, "Staking is not enabled.");

        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            _stake(tokenIds[i]);
        }
    }

    function _unstake(uint256 tokenId, bool _expel) private {
        if (!_expel) {
            require(ownerOf(tokenId) == msg.sender, "Not owner.");
        }
        tokenIdToStakingStartTime[tokenId] = 0;
        emit Unstaked(tokenId, block.timestamp);
    }

    function unstake(uint256[] calldata tokenIds) external {
        require(staking == true, "Staking is not enabled.");

        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            _unstake(tokenIds[i], false);
        }
    }

    function expel(uint256[] calldata tokenIds)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            _unstake(tokenIds[i], true);
        }
    }

    function timeStaked(uint256 tokenId) external view returns (uint256) {
        if (tokenIdToStakingStartTime[tokenId] == 0) {
            return 0;
        }

        return block.timestamp - tokenIdToStakingStartTime[tokenId];
    }

    function stakingStartTime(uint256 tokenId) external view returns (uint256) {
        return tokenIdToStakingStartTime[tokenId];
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal view override {
        uint256 tokenId = startTokenId;

        for (uint256 end = tokenId + quantity; tokenId < end; ++tokenId) {
            require(
                tokenIdToStakingStartTime[tokenId] == 0,
                "Token is staking."
            );
        }
    }

    // =============================================================
    //   ADMIN OPERATIONS
    // =============================================================

    function withdraw() external payable onlyRole(DEFAULT_ADMIN_ROLE) {
        (bool os, ) = payable(msg.sender).call{value: address(this).balance}(
            ""
        );
        require(os);
    }

    function setPrice(uint256 _price) external onlyRole(DEFAULT_ADMIN_ROLE) {
        price = _price;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, AccessControl)
        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 ||
            interfaceId == type(IAccessControl).interfaceId ||
            super.supportsInterface(interfaceId); // ERC165 interface ID for ERC721Metadata.
    }
}

File 2 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
// NOTE This contract has been modified to allow for non-sequential minting.

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,
        uint256 startTokenId
    ) internal virtual {
        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,
        uint256 startIndex,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity, startIndex);

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

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

    // =============================================================
    //                        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)
        }
    }
}

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

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;

  /*
   * @notice Check to see if there exists a request commitment consumers
   * for all consumers and keyhashes for a given sub.
   * @param subId - ID of the subscription
   * @return true if there exists at least one unfulfilled request for the subscription, false
   * otherwise.
   */
  function pendingRequestExists(uint64 subId) external view returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

// 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

// 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;
    }
}

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint64","name":"_subscriptionId","type":"uint64"}],"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":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","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":"_requestId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_minter","type":"address"}],"name":"NoSupplyRefund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_requestId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_roll","type":"uint256"}],"name":"RandomMintFulfilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_requestId","type":"uint256"}],"name":"RandomMintRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stakingStartTime","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stakingEndTime","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"CALLBACK_GAS_LIMIT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COORDINATOR","outputs":[{"internalType":"contract VRFCoordinatorV2Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STANDARD_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPER_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_WORDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REQUEST_CONFIRMATIONS","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STANDARD_MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPER_MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfStandardMints","type":"uint256"},{"internalType":"uint256","name":"_numberOfSuperMints","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlistMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"tokenIds","type":"uint256[]"}],"name":"expel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeClaimMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_numberOfStandardMints","type":"uint256"},{"internalType":"uint256","name":"_numberOfSuperMints","type":"uint256"}],"name":"freeClaimMint","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"s_keyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_subscriptionId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setFreeClaimMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMintPhase","type":"bool"}],"name":"setPublicMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_staking","type":"bool"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"timeStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedStandard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedSuper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vrfRequestIdToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6101006040526001600b60006101000a81548160ff0219169083151502179055506000600b60016101000a81548160ff0219169083151502179055506000801b600c556000801b600d5567030d98d59a960000600e556000600f60006101000a81548160ff0219169083151502179055503480156200007d57600080fd5b5060405162005cdd38038062005cdd8339818101604052810190620000a39190620004d4565b826040518060400160405280600881526020017f4761736f6c696e650000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4741530000000000000000000000000000000000000000000000000000000000815250816002908051906020019062000128929190620003df565b50806003908051906020019062000141929190620003df565b50620001526200023a60201b60201c565b60008190555050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050620001a76000801b336200024360201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508067ffffffffffffffff1660c08167ffffffffffffffff1660c01b815250508160e08181525050620002156200025960201b60201c565b6011819055506200022b6200027060201b60201c565b6012819055505050506200063a565b60006001905090565b6200025582826200027a60201b60201c565b5050565b60006200026b6200023a60201b60201c565b905090565b6000610bb9905090565b6200028c82826200036c60201b60201c565b620003685760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200030d620003d760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b828054620003ed9062000582565b90600052602060002090601f0160209004810192826200041157600085556200045d565b82601f106200042c57805160ff19168380011785556200045d565b828001600101855582156200045d579182015b828111156200045c5782518255916020019190600101906200043f565b5b5090506200046c919062000470565b5090565b5b808211156200048b57600081600090555060010162000471565b5090565b600081519050620004a081620005ec565b92915050565b600081519050620004b78162000606565b92915050565b600081519050620004ce8162000620565b92915050565b600080600060608486031215620004f057620004ef620005e7565b5b600062000500868287016200048f565b93505060206200051386828701620004a6565b92505060406200052686828701620004bd565b9150509250925092565b60006200053d826200054e565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600060028204905060018216806200059b57607f821691505b60208210811415620005b257620005b1620005b8565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b620005f78162000530565b81146200060357600080fd5b50565b620006118162000544565b81146200061d57600080fd5b50565b6200062b816200056e565b81146200063757600080fd5b50565b60805160601c60a05160601c60c05160c01c60e05161564462000699600039600081816119ea015261220d015260008181611ef9015261222e01526000818161190c01526121d1015260008181611233015261128701526156446000f3fe6080604052600436106103975760003560e01c806367f082b0116101dc578063b004396511610102578063d547741f116100a0578063e81ed0441161006f578063e81ed04414610cf9578063e985e9c514610d36578063f6c6274a14610d73578063f95df41414610db057610397565b8063d547741f14610c53578063e449f34114610c7c578063e489d51014610ca5578063e61058b014610cd057610397565b8063b93d9af6116100dc578063b93d9af614610b99578063c28822d714610bc4578063c87b56dd14610bed578063d00e40ce14610c2a57610397565b8063b004396514610b27578063b713176f14610b52578063b88d4fde14610b7d57610397565b806391b7f5ed1161017a578063a217fddf11610149578063a217fddf14610a6b578063a22cb46514610a96578063a57e1a0714610abf578063acee66fa14610aea57610397565b806391b7f5ed146109af57806391d14854146109d857806395d89b4114610a15578063a035b1fe14610a4057610397565b806385955c83116101b657806385955c83146109075780638ac00021146109305780638ca2fec71461095b578063910730a81461098657610397565b806367f082b01461087457806370a082311461089f57806372cf6e34146108dc57610397565b80632f2ff15d116102c157806344d3575d1161025f578063537924ef1161022e578063537924ef146107c757806355f804b3146107e35780635c975abb1461080c5780636352211e1461083757610397565b806344d3575d1461071b57806345bb327b146107465780634760943e146107715780634cf088d91461079c57610397565b8063399a0de01161029b578063399a0de01461069f5780633b2bcbf1146106ca5780633ccfd60b146106f557806342842e0e146106ff57610397565b80632f2ff15d1461062257806333d608f11461064b57806336568abe1461067657610397565b80631c06adcd11610339578063248a9ca311610308578063248a9ca31461058757806326092b83146105c4578063293108e0146105ce5780632ae8b22f146105f957610397565b80631c06adcd146104da5780631fe543e31461051757806323b872dd14610540578063241b7a871461055c57610397565b8063081812fc11610375578063081812fc1461042d578063095ea7b31461046a5780630fbf0a931461048657806318160ddd146104af57610397565b806301ffc9a71461039c57806302329a29146103d957806306fdde0314610402575b600080fd5b3480156103a857600080fd5b506103c360048036038101906103be91906142f8565b610dd9565b6040516103d09190614995565b60405180910390f35b3480156103e557600080fd5b5061040060048036038101906103fb919061425e565b610ee3565b005b34801561040e57600080fd5b50610417610f0e565b6040516104249190614a39565b60405180910390f35b34801561043957600080fd5b50610454600480360381019061044f919061439b565b610fa0565b6040516104619190614905565b60405180910390f35b610484600480360381019061047f9190614110565b61101f565b005b34801561049257600080fd5b506104ad60048036038101906104a89190614211565b611163565b005b3480156104bb57600080fd5b506104c4611205565b6040516104d19190614c36565b60405180910390f35b3480156104e657600080fd5b5061050160048036038101906104fc919061439b565b611214565b60405161050e9190614c36565b60405180910390f35b34801561052357600080fd5b5061053e600480360381019061053991906143f5565b611231565b005b61055a60048036038101906105559190613ffa565b6112f1565b005b34801561056857600080fd5b50610571611616565b60405161057e9190614c36565b60405180910390f35b34801561059357600080fd5b506105ae60048036038101906105a9919061428b565b611629565b6040516105bb91906149b0565b60405180910390f35b6105cc611649565b005b3480156105da57600080fd5b506105e3611829565b6040516105f091906149b0565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b919061425e565b61182f565b005b34801561062e57600080fd5b50610649600480360381019061064491906142b8565b61185a565b005b34801561065757600080fd5b5061066061187b565b60405161066d9190614d1f565b60405180910390f35b34801561068257600080fd5b5061069d600480360381019061069891906142b8565b611882565b005b3480156106ab57600080fd5b506106b4611905565b6040516106c19190614c36565b60405180910390f35b3480156106d657600080fd5b506106df61190a565b6040516106ec9190614a1e565b60405180910390f35b6106fd61192e565b005b61071960048036038101906107149190613ffa565b6119b5565b005b34801561072757600080fd5b506107306119d5565b60405161073d9190614995565b60405180910390f35b34801561075257600080fd5b5061075b6119e8565b60405161076891906149b0565b60405180910390f35b34801561077d57600080fd5b50610786611a0c565b6040516107939190614c36565b60405180910390f35b3480156107a857600080fd5b506107b1611a1f565b6040516107be9190614995565b60405180910390f35b6107e160048036038101906107dc9190614150565b611a32565b005b3480156107ef57600080fd5b5061080a60048036038101906108059190614352565b611d8b565b005b34801561081857600080fd5b50610821611db3565b60405161082e9190614995565b60405180910390f35b34801561084357600080fd5b5061085e6004803603810190610859919061439b565b611dc6565b60405161086b9190614905565b60405180910390f35b34801561088057600080fd5b50610889611dd8565b6040516108969190614c1b565b60405180910390f35b3480156108ab57600080fd5b506108c660048036038101906108c19190613f8d565b611ddd565b6040516108d39190614c36565b60405180910390f35b3480156108e857600080fd5b506108f1611e96565b6040516108fe9190614d1f565b60405180910390f35b34801561091357600080fd5b5061092e60048036038101906109299190614211565b611e9b565b005b34801561093c57600080fd5b50610945611ef7565b6040516109529190614d3a565b60405180910390f35b34801561096757600080fd5b50610970611f1b565b60405161097d91906149b0565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a8919061425e565b611f21565b005b3480156109bb57600080fd5b506109d660048036038101906109d1919061439b565b611f4c565b005b3480156109e457600080fd5b506109ff60048036038101906109fa91906142b8565b611f64565b604051610a0c9190614995565b60405180910390f35b348015610a2157600080fd5b50610a2a611fcf565b604051610a379190614a39565b60405180910390f35b348015610a4c57600080fd5b50610a55612061565b604051610a629190614c36565b60405180910390f35b348015610a7757600080fd5b50610a80612067565b604051610a8d91906149b0565b60405180910390f35b348015610aa257600080fd5b50610abd6004803603810190610ab891906140d0565b61206e565b005b348015610acb57600080fd5b50610ad4612179565b604051610ae19190614c36565b60405180910390f35b348015610af657600080fd5b50610b116004803603810190610b0c919061439b565b61217f565b604051610b1e9190614c36565b60405180910390f35b348015610b3357600080fd5b50610b3c6121cc565b604051610b499190614c36565b60405180910390f35b348015610b5e57600080fd5b50610b67612307565b604051610b749190614c36565b60405180910390f35b610b976004803603810190610b92919061404d565b61230c565b005b348015610ba557600080fd5b50610bae61237f565b604051610bbb9190614c36565b60405180910390f35b348015610bd057600080fd5b50610beb6004803603810190610be6919061428b565b612385565b005b348015610bf957600080fd5b50610c146004803603810190610c0f919061439b565b61239d565b604051610c219190614a39565b60405180910390f35b348015610c3657600080fd5b50610c516004803603810190610c4c9190614451565b61243c565b005b348015610c5f57600080fd5b50610c7a6004803603810190610c7591906142b8565b612518565b005b348015610c8857600080fd5b50610ca36004803603810190610c9e9190614211565b612539565b005b348015610cb157600080fd5b50610cba6125dd565b604051610cc79190614c36565b60405180910390f35b348015610cdc57600080fd5b50610cf76004803603810190610cf2919061419d565b6125e3565b005b348015610d0557600080fd5b50610d206004803603810190610d1b9190613f8d565b612820565b604051610d2d9190614995565b60405180910390f35b348015610d4257600080fd5b50610d5d6004803603810190610d589190613fba565b612840565b604051610d6a9190614995565b60405180910390f35b348015610d7f57600080fd5b50610d9a6004803603810190610d95919061439b565b6128d4565b604051610da79190614905565b60405180910390f35b348015610dbc57600080fd5b50610dd76004803603810190610dd2919061428b565b612907565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e3457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e645750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ecc57507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610edc5750610edb8261291f565b5b9050919050565b6000801b610ef081612999565b81600b60006101000a81548160ff0219169083151502179055505050565b606060028054610f1d906150b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610f49906150b0565b8015610f965780601f10610f6b57610100808354040283529160200191610f96565b820191906000526020600020905b815481529060010190602001808311610f7957829003601f168201915b5050505050905090565b6000610fab826129ad565b610fe1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061102a82611dc6565b90508073ffffffffffffffffffffffffffffffffffffffff1661104b612a0c565b73ffffffffffffffffffffffffffffffffffffffff16146110ae5761107781611072612a0c565b612840565b6110ad576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60011515600f60009054906101000a900460ff161515146111b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b090614b5b565b60405180910390fd5b600082829050905060005b818110156111ff576111ee8484838181106111e2576111e1615248565b5b90506020020135612a14565b806111f890615113565b90506111c4565b50505050565b600061120f612ae3565b905090565b600060136000838152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112e357337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f40000000000000000000000000000000000000000000000000000000081526004016112da929190614920565b60405180910390fd5b6112ed8282612afb565b5050565b60006112fc82612d38565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611363576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061136f84612e06565b915091506113858187611380612a0c565b612e2d565b6113d15761139a86611395612a0c565b612840565b6113d0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611438576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114458686866001612e71565b801561145057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061151e856114fa888887612efe565b7c020000000000000000000000000000000000000000000000000000000017612f26565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156115a65760006001850190506000600460008381526020019081526020016000205414156115a45760005481146115a3578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461160e8686866001612f51565b505050505050565b6000611620612f57565b60125403905090565b600060086000838152602001908152602001600020600101549050919050565b60001515600b60009054906101000a900460ff1615151461169f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169690614a7b565b60405180910390fd5b610d056116aa612ae3565b11156116eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e290614abb565b60405180910390fd5b60011515600b60019054906101000a900460ff16151514611741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173890614afb565b60405180910390fd5b600e54341015611786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177d90614bbb565b60405180910390fd5b610bb8611791611a0c565b106117a6576117a1336001612f61565b611827565b61014d6117b1611616565b106117c6576117c1336001612fdd565b611826565b60006117d06121cc565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b5b565b600c5481565b6000801b61183c81612999565b81600b60016101000a81548160ff0219169083151502179055505050565b61186382611629565b61186c81612999565b6118768383613059565b505050565b620186a081565b61188a61313a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ee90614bdb565b60405180910390fd5b6119018282613142565b5050565b600581565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000801b61193b81612999565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611961906148b6565b60006040518083038185875af1925050503d806000811461199e576040519150601f19603f3d011682016040523d82523d6000602084013e6119a3565b606091505b50509050806119b157600080fd5b5050565b6119d08383836040518060200160405280600081525061230c565b505050565b600b60019054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000611a16613224565b60115403905090565b600f60009054906101000a900460ff1681565b60001515600b60009054906101000a900460ff16151514611a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7f90614a7b565b60405180910390fd5b610d05611a93612ae3565b1115611ad4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acb90614abb565b60405180910390fd5b600033604051602001611ae7919061484b565b60405160208183030381529060405280519060200120905060001515600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8990614a9b565b60405180910390fd5b6000611b9d33613233565b14611bdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd490614adb565b60405180910390fd5b611c2b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c548361328a565b611c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6190614b7b565b60405180910390fd5b600e54341015611caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca690614bbb565b60405180910390fd5b606f611cb9611616565b10611cce57611cc9336001612fdd565b611d86565b6000611cd86121cc565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505b505050565b6000801b611d9881612999565b8160109080519060200190611dae929190613c2d565b505050565b600b60009054906101000a900460ff1681565b6000611dd182612d38565b9050919050565b600381565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e45576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600181565b6000801b611ea881612999565b600083839050905060005b81811015611ef057611edf858583818110611ed157611ed0615248565b5b9050602002013560016132a1565b80611ee990615113565b9050611eb3565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600d5481565b6000801b611f2e81612999565b81600f60006101000a81548160ff0219169083151502179055505050565b6000801b611f5981612999565b81600e819055505050565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060038054611fde906150b0565b80601f016020809104026020016040519081016040528092919081815260200182805461200a906150b0565b80156120575780601f1061202c57610100808354040283529160200191612057565b820191906000526020600020905b81548152906001019060200180831161203a57829003601f168201915b5050505050905090565b600e5481565b6000801b81565b806007600061207b612a0c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612128612a0c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161216d9190614995565b60405180910390a35050565b610bb881565b600080601360008481526020019081526020016000205414156121a557600090506121c7565b6013600083815260200190815260200160002054426121c49190614f06565b90505b919050565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635d3b1d307f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006003620186a060016040518663ffffffff1660e01b81526004016122759594939291906149cb565b602060405180830381600087803b15801561228f57600080fd5b505af11580156122a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c791906143c8565b90507f360f498aa1f3d1dd6165e739ca66c0856a6adbe07c8908b10b9e28375005c7dc816040516122f89190614c36565b60405180910390a18091505090565b600a81565b6123178484846112f1565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123795761234284848484613372565b612378576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61014d81565b6000801b61239281612999565b81600d819055505050565b60606123a8826129ad565b6123de576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006123e86134d2565b90506000815114156124095760405180602001604052806000815250612434565b8061241384613564565b604051602001612424929190614892565b6040516020818303038152906040525b915050919050565b60001515600b60009054906101000a900460ff16151514612492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248990614a7b565b60405180910390fd5b610d0561249d612ae3565b11156124de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d590614abb565b60405180910390fd5b6000801b6124eb81612999565b60008311156124ff576124fe3384612fdd565b5b6000821115612513576125123383612f61565b5b505050565b61252182611629565b61252a81612999565b6125348383613142565b505050565b60011515600f60009054906101000a900460ff1615151461258f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258690614b5b565b60405180910390fd5b600082829050905060005b818110156125d7576125c68484838181106125b8576125b7615248565b5b9050602002013560006132a1565b806125d090615113565b905061259a565b50505050565b610d0581565b60001515600b60009054906101000a900460ff16151514612639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263090614a7b565b60405180910390fd5b610d05612644612ae3565b1115612685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267c90614abb565b60405180910390fd5b60018111156126c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c090614b3b565b60405180910390fd5b60006126d433613233565b14612714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270b90614adb565b60405180910390fd5b600033600a836127249190614eac565b6005856127319190614eac565b61273b9190614e56565b60405160200161274c929190614866565b6040516020818303038152906040528051906020012090506127b2858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d548361328a565b6127f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e890614b7b565b60405180910390fd5b6000831115612805576128043384612fdd565b5b6000821115612819576128183383612f61565b5b5050505050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b61291481612999565b81600c819055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129925750612991826135bd565b5b9050919050565b6129aa816129a561313a565b613627565b50565b6000816129b86136c4565b111580156129c7575060005482105b8015612a05575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b3373ffffffffffffffffffffffffffffffffffffffff16612a3482611dc6565b73ffffffffffffffffffffffffffffffffffffffff1614612a8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8190614b9b565b60405180910390fd5b6000429050806013600084815260200190815260200160002081905550817f925435fa7e37e5d9555bb18ce0d62bb9627d0846942e58e5291e9a2dded462ed82604051612ad79190614c36565b60405180910390a25050565b6000612aed611616565b612af5611a0c565b01905090565b60006009600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050610d05612b3e611205565b10612b81577f425fdc023cdc78e8d2a63ed82ca9702dee7e8b69be2d03bda65ab62a5166d0058382604051612b74929190614c51565b60405180910390a1612d33565b610bb8612b8c611a0c565b10612bde57612b9c816001612f61565b7f5a02a6f81d96766eea6e6a38f12f37de800ac74325410134cff4f769724eb65a8382610bb8604051612bd193929190614cb1565b60405180910390a1612d32565b61014d612be9611616565b10612c3b57612bf9816001612fdd565b7f5a02a6f81d96766eea6e6a38f12f37de800ac74325410134cff4f769724eb65a83826107d0604051612c2e93929190614c7a565b60405180910390a1612d31565b60006103e883600081518110612c5457612c53615248565b5b6020026020010151612c66919061518a565b9050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ccf576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103858110612ce857612ce3826001612f61565b612cf4565b612cf3826001612fdd565b5b7f5a02a6f81d96766eea6e6a38f12f37de800ac74325410134cff4f769724eb65a848383604051612d2793929190614ce8565b60405180910390a1505b5b5b505050565b60008082905080612d476136c4565b11612dcf57600054811015612dce5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612dcc575b6000811415612dc2576004600083600190039350838152602001908152602001600020549050612d97565b8092505050612e01565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600082905060008282612e849190614e56565b90505b80821015612ef6576000601360008481526020019081526020016000205414612ee5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612edc90614b1b565b60405180910390fd5b81612eef90615113565b9150612e87565b505050505050565b60008060e883901c905060e8612f158686846136cd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000610bb9905090565b61014d81612f6d611616565b612f779190614e56565b1115612fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612faf90614bfb565b60405180910390fd5b612fc582826012546136d6565b80601254612fd39190614e56565b6012819055505050565b610bb881612fe9611a0c565b612ff39190614e56565b1115613034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302b90614bfb565b60405180910390fd5b61304182826011546136d6565b8060115461304f9190614e56565b6011819055505050565b6130638282611f64565b6131365760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506130db61313a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b61314c8282611f64565b156132205760006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506131c561313a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600061322e6136c4565b905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008261329785846136f6565b1490509392505050565b8061331d573373ffffffffffffffffffffffffffffffffffffffff166132c683611dc6565b73ffffffffffffffffffffffffffffffffffffffff161461331c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331390614b9b565b60405180910390fd5b5b60006013600084815260200190815260200160002081905550817ffe67007f52a1bf967323b00fd406f9028a8e8a88aec274e07a63b2fabacc64a7426040516133669190614c36565b60405180910390a25050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613398612a0c565b8786866040518563ffffffff1660e01b81526004016133ba9493929190614949565b602060405180830381600087803b1580156133d457600080fd5b505af192505050801561340557506040513d601f19601f820116820180604052508101906134029190614325565b60015b61347f573d8060008114613435576040519150601f19603f3d011682016040523d82523d6000602084013e61343a565b606091505b50600081511415613477576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601080546134e1906150b0565b80601f016020809104026020016040519081016040528092919081815260200182805461350d906150b0565b801561355a5780601f1061352f5761010080835404028352916020019161355a565b820191906000526020600020905b81548152906001019060200180831161353d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156135a857600184039350600a81066030018453600a81049050806135a3576135a8565b61357d565b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6136318282611f64565b6136c0576136568173ffffffffffffffffffffffffffffffffffffffff16601461374c565b6136648360001c602061374c565b6040516020016136759291906148cb565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136b79190614a39565b60405180910390fd5b5050565b60006001905090565b60009392505050565b6136f183838360405180602001604052806000815250613988565b505050565b60008082905060005b84518110156137415761372c8286838151811061371f5761371e615248565b5b6020026020010151613a24565b9150808061373990615113565b9150506136ff565b508091505092915050565b60606000600283600261375f9190614eac565b6137699190614e56565b67ffffffffffffffff81111561378257613781615277565b5b6040519080825280601f01601f1916602001820160405280156137b45781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106137ec576137eb615248565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106138505761384f615248565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026138909190614eac565b61389a9190614e56565b90505b600181111561393a577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106138dc576138db615248565b5b1a60f81b8282815181106138f3576138f2615248565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061393390615086565b905061389d565b506000841461397e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397590614a5b565b60405180910390fd5b8091505092915050565b613993848484613a4f565b60008473ffffffffffffffffffffffffffffffffffffffff163b14613a1e576000829050600084820390505b6139d26000878380600101945086613372565b613a08576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106139bf57818414613a1b57600080fd5b50505b50505050565b6000818310613a3c57613a378284613c06565b613a47565b613a468383613c06565b5b905092915050565b6000821415613a8a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613a976000848385612e71565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613b0e83613aff6000866000612efe565b613b0885613c1d565b17612f26565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613baf57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613b74565b506000821415613beb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613c016000848385612f51565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054613c39906150b0565b90600052602060002090601f016020900481019282613c5b5760008555613ca2565b82601f10613c7457805160ff1916838001178555613ca2565b82800160010185558215613ca2579182015b82811115613ca1578251825591602001919060010190613c86565b5b509050613caf9190613cb3565b5090565b5b80821115613ccc576000816000905550600101613cb4565b5090565b6000613ce3613cde84614d7a565b614d55565b90508083825260208201905082856020860282011115613d0657613d056152b0565b5b60005b85811015613d365781613d1c8882613f63565b845260208401935060208301925050600181019050613d09565b5050509392505050565b6000613d53613d4e84614da6565b614d55565b905082815260208101848484011115613d6f57613d6e6152b5565b5b613d7a848285615044565b509392505050565b6000613d95613d9084614dd7565b614d55565b905082815260208101848484011115613db157613db06152b5565b5b613dbc848285615044565b509392505050565b600081359050613dd38161559b565b92915050565b60008083601f840112613def57613dee6152ab565b5b8235905067ffffffffffffffff811115613e0c57613e0b6152a6565b5b602083019150836020820283011115613e2857613e276152b0565b5b9250929050565b60008083601f840112613e4557613e446152ab565b5b8235905067ffffffffffffffff811115613e6257613e616152a6565b5b602083019150836020820283011115613e7e57613e7d6152b0565b5b9250929050565b600082601f830112613e9a57613e996152ab565b5b8135613eaa848260208601613cd0565b91505092915050565b600081359050613ec2816155b2565b92915050565b600081359050613ed7816155c9565b92915050565b600081359050613eec816155e0565b92915050565b600081519050613f01816155e0565b92915050565b600082601f830112613f1c57613f1b6152ab565b5b8135613f2c848260208601613d40565b91505092915050565b600082601f830112613f4a57613f496152ab565b5b8135613f5a848260208601613d82565b91505092915050565b600081359050613f72816155f7565b92915050565b600081519050613f87816155f7565b92915050565b600060208284031215613fa357613fa26152bf565b5b6000613fb184828501613dc4565b91505092915050565b60008060408385031215613fd157613fd06152bf565b5b6000613fdf85828601613dc4565b9250506020613ff085828601613dc4565b9150509250929050565b600080600060608486031215614013576140126152bf565b5b600061402186828701613dc4565b935050602061403286828701613dc4565b925050604061404386828701613f63565b9150509250925092565b60008060008060808587031215614067576140666152bf565b5b600061407587828801613dc4565b945050602061408687828801613dc4565b935050604061409787828801613f63565b925050606085013567ffffffffffffffff8111156140b8576140b76152ba565b5b6140c487828801613f07565b91505092959194509250565b600080604083850312156140e7576140e66152bf565b5b60006140f585828601613dc4565b925050602061410685828601613eb3565b9150509250929050565b60008060408385031215614127576141266152bf565b5b600061413585828601613dc4565b925050602061414685828601613f63565b9150509250929050565b60008060208385031215614167576141666152bf565b5b600083013567ffffffffffffffff811115614185576141846152ba565b5b61419185828601613dd9565b92509250509250929050565b600080600080606085870312156141b7576141b66152bf565b5b600085013567ffffffffffffffff8111156141d5576141d46152ba565b5b6141e187828801613dd9565b945094505060206141f487828801613f63565b925050604061420587828801613f63565b91505092959194509250565b60008060208385031215614228576142276152bf565b5b600083013567ffffffffffffffff811115614246576142456152ba565b5b61425285828601613e2f565b92509250509250929050565b600060208284031215614274576142736152bf565b5b600061428284828501613eb3565b91505092915050565b6000602082840312156142a1576142a06152bf565b5b60006142af84828501613ec8565b91505092915050565b600080604083850312156142cf576142ce6152bf565b5b60006142dd85828601613ec8565b92505060206142ee85828601613dc4565b9150509250929050565b60006020828403121561430e5761430d6152bf565b5b600061431c84828501613edd565b91505092915050565b60006020828403121561433b5761433a6152bf565b5b600061434984828501613ef2565b91505092915050565b600060208284031215614368576143676152bf565b5b600082013567ffffffffffffffff811115614386576143856152ba565b5b61439284828501613f35565b91505092915050565b6000602082840312156143b1576143b06152bf565b5b60006143bf84828501613f63565b91505092915050565b6000602082840312156143de576143dd6152bf565b5b60006143ec84828501613f78565b91505092915050565b6000806040838503121561440c5761440b6152bf565b5b600061441a85828601613f63565b925050602083013567ffffffffffffffff81111561443b5761443a6152ba565b5b61444785828601613e85565b9150509250929050565b60008060408385031215614468576144676152bf565b5b600061447685828601613f63565b925050602061448785828601613f63565b9150509250929050565b61449a81614f3a565b82525050565b6144b16144ac82614f3a565b61515c565b82525050565b6144c081614f4c565b82525050565b6144cf81614f58565b82525050565b60006144e082614e08565b6144ea8185614e1e565b93506144fa818560208601615053565b614503816152c4565b840191505092915050565b61451781614fea565b82525050565b61452681614ffc565b82525050565b6145358161500e565b82525050565b600061454682614e13565b6145508185614e3a565b9350614560818560208601615053565b614569816152c4565b840191505092915050565b600061457f82614e13565b6145898185614e4b565b9350614599818560208601615053565b80840191505092915050565b60006145b2602083614e3a565b91506145bd826152e2565b602082019050919050565b60006145d5601283614e3a565b91506145e08261530b565b602082019050919050565b60006145f8601983614e3a565b915061460382615334565b602082019050919050565b600061461b601983614e3a565b91506146268261535d565b602082019050919050565b600061463e600f83614e3a565b915061464982615386565b602082019050919050565b6000614661601883614e3a565b915061466c826153af565b602082019050919050565b6000614684601183614e3a565b915061468f826153d8565b602082019050919050565b60006146a7601583614e3a565b91506146b282615401565b602082019050919050565b60006146ca601783614e3a565b91506146d58261542a565b602082019050919050565b60006146ed601583614e3a565b91506146f882615453565b602082019050919050565b6000614710600a83614e3a565b915061471b8261547c565b602082019050919050565b6000614733600083614e2f565b915061473e826154a5565b600082019050919050565b6000614756601783614e4b565b9150614761826154a8565b601782019050919050565b6000614779601583614e3a565b9150614784826154d1565b602082019050919050565b600061479c601183614e4b565b91506147a7826154fa565b601182019050919050565b60006147bf602f83614e3a565b91506147ca82615523565b604082019050919050565b60006147e2601983614e3a565b91506147ed82615572565b602082019050919050565b61480181614f8e565b82525050565b61481081614fbc565b82525050565b61482761482282614fbc565b615180565b82525050565b61483681614fc6565b82525050565b61484581614fd6565b82525050565b600061485782846144a0565b60148201915081905092915050565b600061487282856144a0565b6014820191506148828284614816565b6020820191508190509392505050565b600061489e8285614574565b91506148aa8284614574565b91508190509392505050565b60006148c182614726565b9150819050919050565b60006148d682614749565b91506148e28285614574565b91506148ed8261478f565b91506148f98284614574565b91508190509392505050565b600060208201905061491a6000830184614491565b92915050565b60006040820190506149356000830185614491565b6149426020830184614491565b9392505050565b600060808201905061495e6000830187614491565b61496b6020830186614491565b6149786040830185614807565b818103606083015261498a81846144d5565b905095945050505050565b60006020820190506149aa60008301846144b7565b92915050565b60006020820190506149c560008301846144c6565b92915050565b600060a0820190506149e060008301886144c6565b6149ed602083018761483c565b6149fa60408301866147f8565b614a07606083018561482d565b614a14608083018461482d565b9695505050505050565b6000602082019050614a33600083018461450e565b92915050565b60006020820190508181036000830152614a53818461453b565b905092915050565b60006020820190508181036000830152614a74816145a5565b9050919050565b60006020820190508181036000830152614a94816145c8565b9050919050565b60006020820190508181036000830152614ab4816145eb565b9050919050565b60006020820190508181036000830152614ad48161460e565b9050919050565b60006020820190508181036000830152614af481614631565b9050919050565b60006020820190508181036000830152614b1481614654565b9050919050565b60006020820190508181036000830152614b3481614677565b9050919050565b60006020820190508181036000830152614b548161469a565b9050919050565b60006020820190508181036000830152614b74816146bd565b9050919050565b60006020820190508181036000830152614b94816146e0565b9050919050565b60006020820190508181036000830152614bb481614703565b9050919050565b60006020820190508181036000830152614bd48161476c565b9050919050565b60006020820190508181036000830152614bf4816147b2565b9050919050565b60006020820190508181036000830152614c14816147d5565b9050919050565b6000602082019050614c3060008301846147f8565b92915050565b6000602082019050614c4b6000830184614807565b92915050565b6000604082019050614c666000830185614807565b614c736020830184614491565b9392505050565b6000606082019050614c8f6000830186614807565b614c9c6020830185614491565b614ca9604083018461451d565b949350505050565b6000606082019050614cc66000830186614807565b614cd36020830185614491565b614ce0604083018461452c565b949350505050565b6000606082019050614cfd6000830186614807565b614d0a6020830185614491565b614d176040830184614807565b949350505050565b6000602082019050614d34600083018461482d565b92915050565b6000602082019050614d4f600083018461483c565b92915050565b6000614d5f614d70565b9050614d6b82826150e2565b919050565b6000604051905090565b600067ffffffffffffffff821115614d9557614d94615277565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614dc157614dc0615277565b5b614dca826152c4565b9050602081019050919050565b600067ffffffffffffffff821115614df257614df1615277565b5b614dfb826152c4565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614e6182614fbc565b9150614e6c83614fbc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ea157614ea06151bb565b5b828201905092915050565b6000614eb782614fbc565b9150614ec283614fbc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614efb57614efa6151bb565b5b828202905092915050565b6000614f1182614fbc565b9150614f1c83614fbc565b925082821015614f2f57614f2e6151bb565b5b828203905092915050565b6000614f4582614f9c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b6000614ff582615020565b9050919050565b600061500782614fbc565b9050919050565b600061501982614fbc565b9050919050565b600061502b82615032565b9050919050565b600061503d82614f9c565b9050919050565b82818337600083830152505050565b60005b83811015615071578082015181840152602081019050615056565b83811115615080576000848401525b50505050565b600061509182614fbc565b915060008214156150a5576150a46151bb565b5b600182039050919050565b600060028204905060018216806150c857607f821691505b602082108114156150dc576150db615219565b5b50919050565b6150eb826152c4565b810181811067ffffffffffffffff8211171561510a57615109615277565b5b80604052505050565b600061511e82614fbc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615151576151506151bb565b5b600182019050919050565b60006151678261516e565b9050919050565b6000615179826152d5565b9050919050565b6000819050919050565b600061519582614fbc565b91506151a083614fbc565b9250826151b0576151af6151ea565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4d696e74696e67206973207061757365642e0000000000000000000000000000600082015250565b7f416c7265616479206d696e74656420616c6c6f776c6973742e00000000000000600082015250565b7f4d617820746f6b656e20737570706c7920726561636865642e00000000000000600082015250565b7f416c7265616479206d696e7465642e0000000000000000000000000000000000600082015250565b7f5075626c6963206d696e74206973206e6f74206f70656e2e0000000000000000600082015250565b7f546f6b656e206973207374616b696e672e000000000000000000000000000000600082015250565b7f4f6e6c79203120737570657220616c6c6f7765642e0000000000000000000000600082015250565b7f5374616b696e67206973206e6f7420656e61626c65642e000000000000000000600082015250565b7f496e76616c6964204d65726b6c652070726f6f662e0000000000000000000000600082015250565b7f4e6f74206f776e65722e00000000000000000000000000000000000000000000600082015250565b50565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f496e636f72726563742065746865722073656e742e0000000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b7f57696c6c2065786365656420746f6b656e20737570706c792e00000000000000600082015250565b6155a481614f3a565b81146155af57600080fd5b50565b6155bb81614f4c565b81146155c657600080fd5b50565b6155d281614f58565b81146155dd57600080fd5b50565b6155e981614f62565b81146155f457600080fd5b50565b61560081614fbc565b811461560b57600080fd5b5056fea264697066735822122060337907228e047e83ec323e262d00d9dff8a1d141fbf895760e0203b0ff4b8164736f6c63430008070033000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f9200000000000000000000000000000000000000000000000000000000000002a4

Deployed Bytecode

0x6080604052600436106103975760003560e01c806367f082b0116101dc578063b004396511610102578063d547741f116100a0578063e81ed0441161006f578063e81ed04414610cf9578063e985e9c514610d36578063f6c6274a14610d73578063f95df41414610db057610397565b8063d547741f14610c53578063e449f34114610c7c578063e489d51014610ca5578063e61058b014610cd057610397565b8063b93d9af6116100dc578063b93d9af614610b99578063c28822d714610bc4578063c87b56dd14610bed578063d00e40ce14610c2a57610397565b8063b004396514610b27578063b713176f14610b52578063b88d4fde14610b7d57610397565b806391b7f5ed1161017a578063a217fddf11610149578063a217fddf14610a6b578063a22cb46514610a96578063a57e1a0714610abf578063acee66fa14610aea57610397565b806391b7f5ed146109af57806391d14854146109d857806395d89b4114610a15578063a035b1fe14610a4057610397565b806385955c83116101b657806385955c83146109075780638ac00021146109305780638ca2fec71461095b578063910730a81461098657610397565b806367f082b01461087457806370a082311461089f57806372cf6e34146108dc57610397565b80632f2ff15d116102c157806344d3575d1161025f578063537924ef1161022e578063537924ef146107c757806355f804b3146107e35780635c975abb1461080c5780636352211e1461083757610397565b806344d3575d1461071b57806345bb327b146107465780634760943e146107715780634cf088d91461079c57610397565b8063399a0de01161029b578063399a0de01461069f5780633b2bcbf1146106ca5780633ccfd60b146106f557806342842e0e146106ff57610397565b80632f2ff15d1461062257806333d608f11461064b57806336568abe1461067657610397565b80631c06adcd11610339578063248a9ca311610308578063248a9ca31461058757806326092b83146105c4578063293108e0146105ce5780632ae8b22f146105f957610397565b80631c06adcd146104da5780631fe543e31461051757806323b872dd14610540578063241b7a871461055c57610397565b8063081812fc11610375578063081812fc1461042d578063095ea7b31461046a5780630fbf0a931461048657806318160ddd146104af57610397565b806301ffc9a71461039c57806302329a29146103d957806306fdde0314610402575b600080fd5b3480156103a857600080fd5b506103c360048036038101906103be91906142f8565b610dd9565b6040516103d09190614995565b60405180910390f35b3480156103e557600080fd5b5061040060048036038101906103fb919061425e565b610ee3565b005b34801561040e57600080fd5b50610417610f0e565b6040516104249190614a39565b60405180910390f35b34801561043957600080fd5b50610454600480360381019061044f919061439b565b610fa0565b6040516104619190614905565b60405180910390f35b610484600480360381019061047f9190614110565b61101f565b005b34801561049257600080fd5b506104ad60048036038101906104a89190614211565b611163565b005b3480156104bb57600080fd5b506104c4611205565b6040516104d19190614c36565b60405180910390f35b3480156104e657600080fd5b5061050160048036038101906104fc919061439b565b611214565b60405161050e9190614c36565b60405180910390f35b34801561052357600080fd5b5061053e600480360381019061053991906143f5565b611231565b005b61055a60048036038101906105559190613ffa565b6112f1565b005b34801561056857600080fd5b50610571611616565b60405161057e9190614c36565b60405180910390f35b34801561059357600080fd5b506105ae60048036038101906105a9919061428b565b611629565b6040516105bb91906149b0565b60405180910390f35b6105cc611649565b005b3480156105da57600080fd5b506105e3611829565b6040516105f091906149b0565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b919061425e565b61182f565b005b34801561062e57600080fd5b50610649600480360381019061064491906142b8565b61185a565b005b34801561065757600080fd5b5061066061187b565b60405161066d9190614d1f565b60405180910390f35b34801561068257600080fd5b5061069d600480360381019061069891906142b8565b611882565b005b3480156106ab57600080fd5b506106b4611905565b6040516106c19190614c36565b60405180910390f35b3480156106d657600080fd5b506106df61190a565b6040516106ec9190614a1e565b60405180910390f35b6106fd61192e565b005b61071960048036038101906107149190613ffa565b6119b5565b005b34801561072757600080fd5b506107306119d5565b60405161073d9190614995565b60405180910390f35b34801561075257600080fd5b5061075b6119e8565b60405161076891906149b0565b60405180910390f35b34801561077d57600080fd5b50610786611a0c565b6040516107939190614c36565b60405180910390f35b3480156107a857600080fd5b506107b1611a1f565b6040516107be9190614995565b60405180910390f35b6107e160048036038101906107dc9190614150565b611a32565b005b3480156107ef57600080fd5b5061080a60048036038101906108059190614352565b611d8b565b005b34801561081857600080fd5b50610821611db3565b60405161082e9190614995565b60405180910390f35b34801561084357600080fd5b5061085e6004803603810190610859919061439b565b611dc6565b60405161086b9190614905565b60405180910390f35b34801561088057600080fd5b50610889611dd8565b6040516108969190614c1b565b60405180910390f35b3480156108ab57600080fd5b506108c660048036038101906108c19190613f8d565b611ddd565b6040516108d39190614c36565b60405180910390f35b3480156108e857600080fd5b506108f1611e96565b6040516108fe9190614d1f565b60405180910390f35b34801561091357600080fd5b5061092e60048036038101906109299190614211565b611e9b565b005b34801561093c57600080fd5b50610945611ef7565b6040516109529190614d3a565b60405180910390f35b34801561096757600080fd5b50610970611f1b565b60405161097d91906149b0565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a8919061425e565b611f21565b005b3480156109bb57600080fd5b506109d660048036038101906109d1919061439b565b611f4c565b005b3480156109e457600080fd5b506109ff60048036038101906109fa91906142b8565b611f64565b604051610a0c9190614995565b60405180910390f35b348015610a2157600080fd5b50610a2a611fcf565b604051610a379190614a39565b60405180910390f35b348015610a4c57600080fd5b50610a55612061565b604051610a629190614c36565b60405180910390f35b348015610a7757600080fd5b50610a80612067565b604051610a8d91906149b0565b60405180910390f35b348015610aa257600080fd5b50610abd6004803603810190610ab891906140d0565b61206e565b005b348015610acb57600080fd5b50610ad4612179565b604051610ae19190614c36565b60405180910390f35b348015610af657600080fd5b50610b116004803603810190610b0c919061439b565b61217f565b604051610b1e9190614c36565b60405180910390f35b348015610b3357600080fd5b50610b3c6121cc565b604051610b499190614c36565b60405180910390f35b348015610b5e57600080fd5b50610b67612307565b604051610b749190614c36565b60405180910390f35b610b976004803603810190610b92919061404d565b61230c565b005b348015610ba557600080fd5b50610bae61237f565b604051610bbb9190614c36565b60405180910390f35b348015610bd057600080fd5b50610beb6004803603810190610be6919061428b565b612385565b005b348015610bf957600080fd5b50610c146004803603810190610c0f919061439b565b61239d565b604051610c219190614a39565b60405180910390f35b348015610c3657600080fd5b50610c516004803603810190610c4c9190614451565b61243c565b005b348015610c5f57600080fd5b50610c7a6004803603810190610c7591906142b8565b612518565b005b348015610c8857600080fd5b50610ca36004803603810190610c9e9190614211565b612539565b005b348015610cb157600080fd5b50610cba6125dd565b604051610cc79190614c36565b60405180910390f35b348015610cdc57600080fd5b50610cf76004803603810190610cf2919061419d565b6125e3565b005b348015610d0557600080fd5b50610d206004803603810190610d1b9190613f8d565b612820565b604051610d2d9190614995565b60405180910390f35b348015610d4257600080fd5b50610d5d6004803603810190610d589190613fba565b612840565b604051610d6a9190614995565b60405180910390f35b348015610d7f57600080fd5b50610d9a6004803603810190610d95919061439b565b6128d4565b604051610da79190614905565b60405180910390f35b348015610dbc57600080fd5b50610dd76004803603810190610dd2919061428b565b612907565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e3457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e645750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ecc57507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610edc5750610edb8261291f565b5b9050919050565b6000801b610ef081612999565b81600b60006101000a81548160ff0219169083151502179055505050565b606060028054610f1d906150b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610f49906150b0565b8015610f965780601f10610f6b57610100808354040283529160200191610f96565b820191906000526020600020905b815481529060010190602001808311610f7957829003601f168201915b5050505050905090565b6000610fab826129ad565b610fe1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061102a82611dc6565b90508073ffffffffffffffffffffffffffffffffffffffff1661104b612a0c565b73ffffffffffffffffffffffffffffffffffffffff16146110ae5761107781611072612a0c565b612840565b6110ad576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60011515600f60009054906101000a900460ff161515146111b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b090614b5b565b60405180910390fd5b600082829050905060005b818110156111ff576111ee8484838181106111e2576111e1615248565b5b90506020020135612a14565b806111f890615113565b90506111c4565b50505050565b600061120f612ae3565b905090565b600060136000838152602001908152602001600020549050919050565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112e357337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f40000000000000000000000000000000000000000000000000000000081526004016112da929190614920565b60405180910390fd5b6112ed8282612afb565b5050565b60006112fc82612d38565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611363576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061136f84612e06565b915091506113858187611380612a0c565b612e2d565b6113d15761139a86611395612a0c565b612840565b6113d0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611438576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114458686866001612e71565b801561145057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061151e856114fa888887612efe565b7c020000000000000000000000000000000000000000000000000000000017612f26565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156115a65760006001850190506000600460008381526020019081526020016000205414156115a45760005481146115a3578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461160e8686866001612f51565b505050505050565b6000611620612f57565b60125403905090565b600060086000838152602001908152602001600020600101549050919050565b60001515600b60009054906101000a900460ff1615151461169f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169690614a7b565b60405180910390fd5b610d056116aa612ae3565b11156116eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e290614abb565b60405180910390fd5b60011515600b60019054906101000a900460ff16151514611741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173890614afb565b60405180910390fd5b600e54341015611786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177d90614bbb565b60405180910390fd5b610bb8611791611a0c565b106117a6576117a1336001612f61565b611827565b61014d6117b1611616565b106117c6576117c1336001612fdd565b611826565b60006117d06121cc565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b5b565b600c5481565b6000801b61183c81612999565b81600b60016101000a81548160ff0219169083151502179055505050565b61186382611629565b61186c81612999565b6118768383613059565b505050565b620186a081565b61188a61313a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ee90614bdb565b60405180910390fd5b6119018282613142565b5050565b600581565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990981565b6000801b61193b81612999565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611961906148b6565b60006040518083038185875af1925050503d806000811461199e576040519150601f19603f3d011682016040523d82523d6000602084013e6119a3565b606091505b50509050806119b157600080fd5b5050565b6119d08383836040518060200160405280600081525061230c565b505050565b600b60019054906101000a900460ff1681565b7fff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f9281565b6000611a16613224565b60115403905090565b600f60009054906101000a900460ff1681565b60001515600b60009054906101000a900460ff16151514611a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7f90614a7b565b60405180910390fd5b610d05611a93612ae3565b1115611ad4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acb90614abb565b60405180910390fd5b600033604051602001611ae7919061484b565b60405160208183030381529060405280519060200120905060001515600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8990614a9b565b60405180910390fd5b6000611b9d33613233565b14611bdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd490614adb565b60405180910390fd5b611c2b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c548361328a565b611c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6190614b7b565b60405180910390fd5b600e54341015611caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca690614bbb565b60405180910390fd5b606f611cb9611616565b10611cce57611cc9336001612fdd565b611d86565b6000611cd86121cc565b9050336009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505b505050565b6000801b611d9881612999565b8160109080519060200190611dae929190613c2d565b505050565b600b60009054906101000a900460ff1681565b6000611dd182612d38565b9050919050565b600381565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e45576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600181565b6000801b611ea881612999565b600083839050905060005b81811015611ef057611edf858583818110611ed157611ed0615248565b5b9050602002013560016132a1565b80611ee990615113565b9050611eb3565b5050505050565b7f00000000000000000000000000000000000000000000000000000000000002a481565b600d5481565b6000801b611f2e81612999565b81600f60006101000a81548160ff0219169083151502179055505050565b6000801b611f5981612999565b81600e819055505050565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060038054611fde906150b0565b80601f016020809104026020016040519081016040528092919081815260200182805461200a906150b0565b80156120575780601f1061202c57610100808354040283529160200191612057565b820191906000526020600020905b81548152906001019060200180831161203a57829003601f168201915b5050505050905090565b600e5481565b6000801b81565b806007600061207b612a0c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612128612a0c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161216d9190614995565b60405180910390a35050565b610bb881565b600080601360008481526020019081526020016000205414156121a557600090506121c7565b6013600083815260200190815260200160002054426121c49190614f06565b90505b919050565b6000807f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff16635d3b1d307fff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f927f00000000000000000000000000000000000000000000000000000000000002a46003620186a060016040518663ffffffff1660e01b81526004016122759594939291906149cb565b602060405180830381600087803b15801561228f57600080fd5b505af11580156122a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c791906143c8565b90507f360f498aa1f3d1dd6165e739ca66c0856a6adbe07c8908b10b9e28375005c7dc816040516122f89190614c36565b60405180910390a18091505090565b600a81565b6123178484846112f1565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123795761234284848484613372565b612378576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61014d81565b6000801b61239281612999565b81600d819055505050565b60606123a8826129ad565b6123de576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006123e86134d2565b90506000815114156124095760405180602001604052806000815250612434565b8061241384613564565b604051602001612424929190614892565b6040516020818303038152906040525b915050919050565b60001515600b60009054906101000a900460ff16151514612492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248990614a7b565b60405180910390fd5b610d0561249d612ae3565b11156124de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d590614abb565b60405180910390fd5b6000801b6124eb81612999565b60008311156124ff576124fe3384612fdd565b5b6000821115612513576125123383612f61565b5b505050565b61252182611629565b61252a81612999565b6125348383613142565b505050565b60011515600f60009054906101000a900460ff1615151461258f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258690614b5b565b60405180910390fd5b600082829050905060005b818110156125d7576125c68484838181106125b8576125b7615248565b5b9050602002013560006132a1565b806125d090615113565b905061259a565b50505050565b610d0581565b60001515600b60009054906101000a900460ff16151514612639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263090614a7b565b60405180910390fd5b610d05612644612ae3565b1115612685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267c90614abb565b60405180910390fd5b60018111156126c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c090614b3b565b60405180910390fd5b60006126d433613233565b14612714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270b90614adb565b60405180910390fd5b600033600a836127249190614eac565b6005856127319190614eac565b61273b9190614e56565b60405160200161274c929190614866565b6040516020818303038152906040528051906020012090506127b2858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d548361328a565b6127f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e890614b7b565b60405180910390fd5b6000831115612805576128043384612fdd565b5b6000821115612819576128183383612f61565b5b5050505050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b61291481612999565b81600c819055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129925750612991826135bd565b5b9050919050565b6129aa816129a561313a565b613627565b50565b6000816129b86136c4565b111580156129c7575060005482105b8015612a05575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b3373ffffffffffffffffffffffffffffffffffffffff16612a3482611dc6565b73ffffffffffffffffffffffffffffffffffffffff1614612a8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8190614b9b565b60405180910390fd5b6000429050806013600084815260200190815260200160002081905550817f925435fa7e37e5d9555bb18ce0d62bb9627d0846942e58e5291e9a2dded462ed82604051612ad79190614c36565b60405180910390a25050565b6000612aed611616565b612af5611a0c565b01905090565b60006009600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050610d05612b3e611205565b10612b81577f425fdc023cdc78e8d2a63ed82ca9702dee7e8b69be2d03bda65ab62a5166d0058382604051612b74929190614c51565b60405180910390a1612d33565b610bb8612b8c611a0c565b10612bde57612b9c816001612f61565b7f5a02a6f81d96766eea6e6a38f12f37de800ac74325410134cff4f769724eb65a8382610bb8604051612bd193929190614cb1565b60405180910390a1612d32565b61014d612be9611616565b10612c3b57612bf9816001612fdd565b7f5a02a6f81d96766eea6e6a38f12f37de800ac74325410134cff4f769724eb65a83826107d0604051612c2e93929190614c7a565b60405180910390a1612d31565b60006103e883600081518110612c5457612c53615248565b5b6020026020010151612c66919061518a565b9050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ccf576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103858110612ce857612ce3826001612f61565b612cf4565b612cf3826001612fdd565b5b7f5a02a6f81d96766eea6e6a38f12f37de800ac74325410134cff4f769724eb65a848383604051612d2793929190614ce8565b60405180910390a1505b5b5b505050565b60008082905080612d476136c4565b11612dcf57600054811015612dce5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612dcc575b6000811415612dc2576004600083600190039350838152602001908152602001600020549050612d97565b8092505050612e01565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600082905060008282612e849190614e56565b90505b80821015612ef6576000601360008481526020019081526020016000205414612ee5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612edc90614b1b565b60405180910390fd5b81612eef90615113565b9150612e87565b505050505050565b60008060e883901c905060e8612f158686846136cd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000610bb9905090565b61014d81612f6d611616565b612f779190614e56565b1115612fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612faf90614bfb565b60405180910390fd5b612fc582826012546136d6565b80601254612fd39190614e56565b6012819055505050565b610bb881612fe9611a0c565b612ff39190614e56565b1115613034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302b90614bfb565b60405180910390fd5b61304182826011546136d6565b8060115461304f9190614e56565b6011819055505050565b6130638282611f64565b6131365760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506130db61313a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b61314c8282611f64565b156132205760006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506131c561313a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600061322e6136c4565b905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008261329785846136f6565b1490509392505050565b8061331d573373ffffffffffffffffffffffffffffffffffffffff166132c683611dc6565b73ffffffffffffffffffffffffffffffffffffffff161461331c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331390614b9b565b60405180910390fd5b5b60006013600084815260200190815260200160002081905550817ffe67007f52a1bf967323b00fd406f9028a8e8a88aec274e07a63b2fabacc64a7426040516133669190614c36565b60405180910390a25050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613398612a0c565b8786866040518563ffffffff1660e01b81526004016133ba9493929190614949565b602060405180830381600087803b1580156133d457600080fd5b505af192505050801561340557506040513d601f19601f820116820180604052508101906134029190614325565b60015b61347f573d8060008114613435576040519150601f19603f3d011682016040523d82523d6000602084013e61343a565b606091505b50600081511415613477576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601080546134e1906150b0565b80601f016020809104026020016040519081016040528092919081815260200182805461350d906150b0565b801561355a5780601f1061352f5761010080835404028352916020019161355a565b820191906000526020600020905b81548152906001019060200180831161353d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156135a857600184039350600a81066030018453600a81049050806135a3576135a8565b61357d565b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6136318282611f64565b6136c0576136568173ffffffffffffffffffffffffffffffffffffffff16601461374c565b6136648360001c602061374c565b6040516020016136759291906148cb565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136b79190614a39565b60405180910390fd5b5050565b60006001905090565b60009392505050565b6136f183838360405180602001604052806000815250613988565b505050565b60008082905060005b84518110156137415761372c8286838151811061371f5761371e615248565b5b6020026020010151613a24565b9150808061373990615113565b9150506136ff565b508091505092915050565b60606000600283600261375f9190614eac565b6137699190614e56565b67ffffffffffffffff81111561378257613781615277565b5b6040519080825280601f01601f1916602001820160405280156137b45781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106137ec576137eb615248565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106138505761384f615248565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026138909190614eac565b61389a9190614e56565b90505b600181111561393a577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106138dc576138db615248565b5b1a60f81b8282815181106138f3576138f2615248565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061393390615086565b905061389d565b506000841461397e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397590614a5b565b60405180910390fd5b8091505092915050565b613993848484613a4f565b60008473ffffffffffffffffffffffffffffffffffffffff163b14613a1e576000829050600084820390505b6139d26000878380600101945086613372565b613a08576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106139bf57818414613a1b57600080fd5b50505b50505050565b6000818310613a3c57613a378284613c06565b613a47565b613a468383613c06565b5b905092915050565b6000821415613a8a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613a976000848385612e71565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613b0e83613aff6000866000612efe565b613b0885613c1d565b17612f26565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613baf57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613b74565b506000821415613beb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613c016000848385612f51565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054613c39906150b0565b90600052602060002090601f016020900481019282613c5b5760008555613ca2565b82601f10613c7457805160ff1916838001178555613ca2565b82800160010185558215613ca2579182015b82811115613ca1578251825591602001919060010190613c86565b5b509050613caf9190613cb3565b5090565b5b80821115613ccc576000816000905550600101613cb4565b5090565b6000613ce3613cde84614d7a565b614d55565b90508083825260208201905082856020860282011115613d0657613d056152b0565b5b60005b85811015613d365781613d1c8882613f63565b845260208401935060208301925050600181019050613d09565b5050509392505050565b6000613d53613d4e84614da6565b614d55565b905082815260208101848484011115613d6f57613d6e6152b5565b5b613d7a848285615044565b509392505050565b6000613d95613d9084614dd7565b614d55565b905082815260208101848484011115613db157613db06152b5565b5b613dbc848285615044565b509392505050565b600081359050613dd38161559b565b92915050565b60008083601f840112613def57613dee6152ab565b5b8235905067ffffffffffffffff811115613e0c57613e0b6152a6565b5b602083019150836020820283011115613e2857613e276152b0565b5b9250929050565b60008083601f840112613e4557613e446152ab565b5b8235905067ffffffffffffffff811115613e6257613e616152a6565b5b602083019150836020820283011115613e7e57613e7d6152b0565b5b9250929050565b600082601f830112613e9a57613e996152ab565b5b8135613eaa848260208601613cd0565b91505092915050565b600081359050613ec2816155b2565b92915050565b600081359050613ed7816155c9565b92915050565b600081359050613eec816155e0565b92915050565b600081519050613f01816155e0565b92915050565b600082601f830112613f1c57613f1b6152ab565b5b8135613f2c848260208601613d40565b91505092915050565b600082601f830112613f4a57613f496152ab565b5b8135613f5a848260208601613d82565b91505092915050565b600081359050613f72816155f7565b92915050565b600081519050613f87816155f7565b92915050565b600060208284031215613fa357613fa26152bf565b5b6000613fb184828501613dc4565b91505092915050565b60008060408385031215613fd157613fd06152bf565b5b6000613fdf85828601613dc4565b9250506020613ff085828601613dc4565b9150509250929050565b600080600060608486031215614013576140126152bf565b5b600061402186828701613dc4565b935050602061403286828701613dc4565b925050604061404386828701613f63565b9150509250925092565b60008060008060808587031215614067576140666152bf565b5b600061407587828801613dc4565b945050602061408687828801613dc4565b935050604061409787828801613f63565b925050606085013567ffffffffffffffff8111156140b8576140b76152ba565b5b6140c487828801613f07565b91505092959194509250565b600080604083850312156140e7576140e66152bf565b5b60006140f585828601613dc4565b925050602061410685828601613eb3565b9150509250929050565b60008060408385031215614127576141266152bf565b5b600061413585828601613dc4565b925050602061414685828601613f63565b9150509250929050565b60008060208385031215614167576141666152bf565b5b600083013567ffffffffffffffff811115614185576141846152ba565b5b61419185828601613dd9565b92509250509250929050565b600080600080606085870312156141b7576141b66152bf565b5b600085013567ffffffffffffffff8111156141d5576141d46152ba565b5b6141e187828801613dd9565b945094505060206141f487828801613f63565b925050604061420587828801613f63565b91505092959194509250565b60008060208385031215614228576142276152bf565b5b600083013567ffffffffffffffff811115614246576142456152ba565b5b61425285828601613e2f565b92509250509250929050565b600060208284031215614274576142736152bf565b5b600061428284828501613eb3565b91505092915050565b6000602082840312156142a1576142a06152bf565b5b60006142af84828501613ec8565b91505092915050565b600080604083850312156142cf576142ce6152bf565b5b60006142dd85828601613ec8565b92505060206142ee85828601613dc4565b9150509250929050565b60006020828403121561430e5761430d6152bf565b5b600061431c84828501613edd565b91505092915050565b60006020828403121561433b5761433a6152bf565b5b600061434984828501613ef2565b91505092915050565b600060208284031215614368576143676152bf565b5b600082013567ffffffffffffffff811115614386576143856152ba565b5b61439284828501613f35565b91505092915050565b6000602082840312156143b1576143b06152bf565b5b60006143bf84828501613f63565b91505092915050565b6000602082840312156143de576143dd6152bf565b5b60006143ec84828501613f78565b91505092915050565b6000806040838503121561440c5761440b6152bf565b5b600061441a85828601613f63565b925050602083013567ffffffffffffffff81111561443b5761443a6152ba565b5b61444785828601613e85565b9150509250929050565b60008060408385031215614468576144676152bf565b5b600061447685828601613f63565b925050602061448785828601613f63565b9150509250929050565b61449a81614f3a565b82525050565b6144b16144ac82614f3a565b61515c565b82525050565b6144c081614f4c565b82525050565b6144cf81614f58565b82525050565b60006144e082614e08565b6144ea8185614e1e565b93506144fa818560208601615053565b614503816152c4565b840191505092915050565b61451781614fea565b82525050565b61452681614ffc565b82525050565b6145358161500e565b82525050565b600061454682614e13565b6145508185614e3a565b9350614560818560208601615053565b614569816152c4565b840191505092915050565b600061457f82614e13565b6145898185614e4b565b9350614599818560208601615053565b80840191505092915050565b60006145b2602083614e3a565b91506145bd826152e2565b602082019050919050565b60006145d5601283614e3a565b91506145e08261530b565b602082019050919050565b60006145f8601983614e3a565b915061460382615334565b602082019050919050565b600061461b601983614e3a565b91506146268261535d565b602082019050919050565b600061463e600f83614e3a565b915061464982615386565b602082019050919050565b6000614661601883614e3a565b915061466c826153af565b602082019050919050565b6000614684601183614e3a565b915061468f826153d8565b602082019050919050565b60006146a7601583614e3a565b91506146b282615401565b602082019050919050565b60006146ca601783614e3a565b91506146d58261542a565b602082019050919050565b60006146ed601583614e3a565b91506146f882615453565b602082019050919050565b6000614710600a83614e3a565b915061471b8261547c565b602082019050919050565b6000614733600083614e2f565b915061473e826154a5565b600082019050919050565b6000614756601783614e4b565b9150614761826154a8565b601782019050919050565b6000614779601583614e3a565b9150614784826154d1565b602082019050919050565b600061479c601183614e4b565b91506147a7826154fa565b601182019050919050565b60006147bf602f83614e3a565b91506147ca82615523565b604082019050919050565b60006147e2601983614e3a565b91506147ed82615572565b602082019050919050565b61480181614f8e565b82525050565b61481081614fbc565b82525050565b61482761482282614fbc565b615180565b82525050565b61483681614fc6565b82525050565b61484581614fd6565b82525050565b600061485782846144a0565b60148201915081905092915050565b600061487282856144a0565b6014820191506148828284614816565b6020820191508190509392505050565b600061489e8285614574565b91506148aa8284614574565b91508190509392505050565b60006148c182614726565b9150819050919050565b60006148d682614749565b91506148e28285614574565b91506148ed8261478f565b91506148f98284614574565b91508190509392505050565b600060208201905061491a6000830184614491565b92915050565b60006040820190506149356000830185614491565b6149426020830184614491565b9392505050565b600060808201905061495e6000830187614491565b61496b6020830186614491565b6149786040830185614807565b818103606083015261498a81846144d5565b905095945050505050565b60006020820190506149aa60008301846144b7565b92915050565b60006020820190506149c560008301846144c6565b92915050565b600060a0820190506149e060008301886144c6565b6149ed602083018761483c565b6149fa60408301866147f8565b614a07606083018561482d565b614a14608083018461482d565b9695505050505050565b6000602082019050614a33600083018461450e565b92915050565b60006020820190508181036000830152614a53818461453b565b905092915050565b60006020820190508181036000830152614a74816145a5565b9050919050565b60006020820190508181036000830152614a94816145c8565b9050919050565b60006020820190508181036000830152614ab4816145eb565b9050919050565b60006020820190508181036000830152614ad48161460e565b9050919050565b60006020820190508181036000830152614af481614631565b9050919050565b60006020820190508181036000830152614b1481614654565b9050919050565b60006020820190508181036000830152614b3481614677565b9050919050565b60006020820190508181036000830152614b548161469a565b9050919050565b60006020820190508181036000830152614b74816146bd565b9050919050565b60006020820190508181036000830152614b94816146e0565b9050919050565b60006020820190508181036000830152614bb481614703565b9050919050565b60006020820190508181036000830152614bd48161476c565b9050919050565b60006020820190508181036000830152614bf4816147b2565b9050919050565b60006020820190508181036000830152614c14816147d5565b9050919050565b6000602082019050614c3060008301846147f8565b92915050565b6000602082019050614c4b6000830184614807565b92915050565b6000604082019050614c666000830185614807565b614c736020830184614491565b9392505050565b6000606082019050614c8f6000830186614807565b614c9c6020830185614491565b614ca9604083018461451d565b949350505050565b6000606082019050614cc66000830186614807565b614cd36020830185614491565b614ce0604083018461452c565b949350505050565b6000606082019050614cfd6000830186614807565b614d0a6020830185614491565b614d176040830184614807565b949350505050565b6000602082019050614d34600083018461482d565b92915050565b6000602082019050614d4f600083018461483c565b92915050565b6000614d5f614d70565b9050614d6b82826150e2565b919050565b6000604051905090565b600067ffffffffffffffff821115614d9557614d94615277565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614dc157614dc0615277565b5b614dca826152c4565b9050602081019050919050565b600067ffffffffffffffff821115614df257614df1615277565b5b614dfb826152c4565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614e6182614fbc565b9150614e6c83614fbc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ea157614ea06151bb565b5b828201905092915050565b6000614eb782614fbc565b9150614ec283614fbc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614efb57614efa6151bb565b5b828202905092915050565b6000614f1182614fbc565b9150614f1c83614fbc565b925082821015614f2f57614f2e6151bb565b5b828203905092915050565b6000614f4582614f9c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b6000614ff582615020565b9050919050565b600061500782614fbc565b9050919050565b600061501982614fbc565b9050919050565b600061502b82615032565b9050919050565b600061503d82614f9c565b9050919050565b82818337600083830152505050565b60005b83811015615071578082015181840152602081019050615056565b83811115615080576000848401525b50505050565b600061509182614fbc565b915060008214156150a5576150a46151bb565b5b600182039050919050565b600060028204905060018216806150c857607f821691505b602082108114156150dc576150db615219565b5b50919050565b6150eb826152c4565b810181811067ffffffffffffffff8211171561510a57615109615277565b5b80604052505050565b600061511e82614fbc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615151576151506151bb565b5b600182019050919050565b60006151678261516e565b9050919050565b6000615179826152d5565b9050919050565b6000819050919050565b600061519582614fbc565b91506151a083614fbc565b9250826151b0576151af6151ea565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4d696e74696e67206973207061757365642e0000000000000000000000000000600082015250565b7f416c7265616479206d696e74656420616c6c6f776c6973742e00000000000000600082015250565b7f4d617820746f6b656e20737570706c7920726561636865642e00000000000000600082015250565b7f416c7265616479206d696e7465642e0000000000000000000000000000000000600082015250565b7f5075626c6963206d696e74206973206e6f74206f70656e2e0000000000000000600082015250565b7f546f6b656e206973207374616b696e672e000000000000000000000000000000600082015250565b7f4f6e6c79203120737570657220616c6c6f7765642e0000000000000000000000600082015250565b7f5374616b696e67206973206e6f7420656e61626c65642e000000000000000000600082015250565b7f496e76616c6964204d65726b6c652070726f6f662e0000000000000000000000600082015250565b7f4e6f74206f776e65722e00000000000000000000000000000000000000000000600082015250565b50565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f496e636f72726563742065746865722073656e742e0000000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b7f57696c6c2065786365656420746f6b656e20737570706c792e00000000000000600082015250565b6155a481614f3a565b81146155af57600080fd5b50565b6155bb81614f4c565b81146155c657600080fd5b50565b6155d281614f58565b81146155dd57600080fd5b50565b6155e981614f62565b81146155f457600080fd5b50565b61560081614fbc565b811461560b57600080fd5b5056fea264697066735822122060337907228e047e83ec323e262d00d9dff8a1d141fbf895760e0203b0ff4b8164736f6c63430008070033

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

000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f9200000000000000000000000000000000000000000000000000000000000002a4

-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [1] : _keyHash (bytes32): 0xff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [2] : _subscriptionId (uint64): 676

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [1] : ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [2] : 00000000000000000000000000000000000000000000000000000000000002a4


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.