ETH Price: $3,330.89 (-4.37%)
Gas: 3 Gwei

Packs (Packs)
 

Overview

TokenID

42

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
B4LL3RBox

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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


pragma solidity ^0.8.4;

import "./IERC721ABurnable.sol";
import "./ERC721AQueryable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract B4LL3RBox is ERC721AQueryable, IERC721ABurnable, Ownable, Pausable, ReentrancyGuard {

    event PermanentURI(string _value, uint256 indexed _id);

    string private _baseTokenURI;
    bool public _baseURILocked;

    address private _authorizedContract;
    address private _admin;

    uint256 public _maxMintPerPublicWallet = 250;
    uint256 public _maxMintPerWhiteListWallet = 1;
    uint256 public _maxSupply = 250;
    uint256 public constant PRICE = 0.025 ether;
    bool private _maxSupplyLocked;

    // merkle root
    bytes32 public ballerMintRoot;

    bool public _ballerPublicMintActive = false;
    bool public _ballerWhiteListMintActive = false;

    //mappings for counters
    mapping(address => uint8) public _ballerMintCounter;   

    constructor(
        string memory baseTokenURI,
        address admin)
    ERC721A("Packs", "Packs") {
        _admin = admin;
        _baseTokenURI = baseTokenURI;
        _safeMint(msg.sender, 1);
        _pause();
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Caller is another contract");
        _;
    }

    
    modifier onlyOwnerOrAdmin() {
        require(msg.sender == owner() || msg.sender == _admin, "Not owner or admin");
        _;
    }

    function setBaseURI(string calldata newBaseURI) external onlyOwnerOrAdmin {
        require(!_baseURILocked, "Base URI is locked");
        _baseTokenURI = newBaseURI;
    }

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

    function setBallerMintRoot(bytes32 _root) external onlyOwnerOrAdmin {
        ballerMintRoot = _root;
    }  

    function setBallerPublicMintActive(bool isActive) external onlyOwnerOrAdmin {
        _ballerPublicMintActive = isActive;
    }  

    function setBallerWhitelistMintActive(bool isActive) external onlyOwnerOrAdmin {
        _ballerWhiteListMintActive = isActive;
    }  
    


    function mint(uint256 quantity)
        external
        payable
        nonReentrant
        callerIsUser
        whenNotPaused
    {
        uint256 price = PRICE * quantity;
        require(_ballerPublicMintActive, "Public mint is not yet active");
        require(msg.value >= price, "Not enough ETH");
        require(_numberMinted(msg.sender) + quantity <= _maxMintPerPublicWallet, "Quantity exceeds wallet limit");
        require(totalSupply() + quantity <= _maxSupply, "Quantity exceeds supply");

        _safeMint(msg.sender, quantity);

               // refund excess ETH
        if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    // Presale
    function allowListMint(uint8 quantity, bytes32[] calldata _merkleProof)
        external
        payable
        callerIsUser     
        nonReentrant   
    {       
        uint256 price = PRICE * quantity;
        require(_ballerWhiteListMintActive, "Whitelist mint is not yet active");
        require(_numberMinted(msg.sender) + quantity <= _maxMintPerWhiteListWallet, "Quantity exceeds wallet limit");
        require(quantity > 0, "Must mint more than 0 tokens");
        require(totalSupply() + quantity <= _maxSupply, "Quantity exceeds supply");                
        require(msg.value >= price, "Not enough ETH");
        // check proof & mint
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, ballerMintRoot, leaf), "Invalid MerkleProof"); 

        _safeMint(msg.sender, quantity);

         if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
               
        _ballerMintCounter[msg.sender] = _ballerMintCounter[msg.sender] + quantity;        
    }    
 

    function ownerMint(address to, uint256 quantity) external onlyOwnerOrAdmin {
        require(totalSupply() + quantity <= _maxSupply, "Quantity exceeds supply");
        _safeMint(to, quantity);
    }

    // Pauses the mint process
    function pause() external onlyOwnerOrAdmin {
        _pause();
    }

    // Unpauses the mint process
    function unpause() external onlyOwnerOrAdmin {
        _unpause();
    }

    function setMaxMintPerPublicWallet(uint256 quantity) external onlyOwnerOrAdmin {
        _maxMintPerPublicWallet = quantity;
    }

    function setMaxMintPerWhiteListWallet(uint256 quantity) external onlyOwnerOrAdmin {
        _maxMintPerWhiteListWallet = quantity;
    }

    function setMaxSupply(uint256 supply) external onlyOwnerOrAdmin {
        require(!_maxSupplyLocked, "Max supply is locked");
        _maxSupply = supply;
    }

    // Locks maximum supply forever
    function lockMaxSupply() external onlyOwnerOrAdmin {
        _maxSupplyLocked = true;
    }

    // Locks base token URI forever and emits PermanentURI for marketplaces (e.g. OpenSea)
    function lockBaseURI() external onlyOwnerOrAdmin {
        _baseURILocked = true;
        for (uint256 i = 0; i < totalSupply(); i++) {
            emit PermanentURI(tokenURI(i), i);
        }
    }

    // Only the owner of the token and its approved operators, and the authorized contract
    // can call this function.
    function burn(uint256 tokenId) public virtual override {
        // Avoid unnecessary approvals for the authorized contract
        bool approvalCheck = msg.sender != _authorizedContract;
        _burn(tokenId, approvalCheck);
    }

    function setAdmin(address admin) external onlyOwner {
        _admin = admin;
    }
    
    function setAuthorizedContract(address authorizedContract) external onlyOwnerOrAdmin {
        _authorizedContract = authorizedContract;
    }

    function withdrawMoney(address to) external onlyOwnerOrAdmin {
        (bool success, ) = to.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    // OpenSea metadata initialization
    function contractURI() public pure returns (string memory) {
        return "https://exhale.mypinata.cloud/ipfs/QmUraxUXqhFTpoweuS5xMHypP2VqjcLaERXTh6pbksK6rT";
    }
}

File 2 of 11 : MerkleProof.sol
// 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)
        }
    }
}

File 3 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 11 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 6 of 11 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

File 7 of 11 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

File 8 of 11 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// 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();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 11 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    string public baseExtension = ".json";
    // Reference type for token approval.
    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), baseExtension)) : '';
    }

    /**
     * @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 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 {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _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 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 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 virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

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

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

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

File 10 of 11 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_ballerMintCounter","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ballerPublicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ballerWhiteListMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxMintPerPublicWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxMintPerWhiteListWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ballerMintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","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":"address","name":"authorizedContract","type":"address"}],"name":"setAuthorizedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setBallerMintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setBallerPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setBallerWhitelistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setMaxMintPerPublicWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setMaxMintPerWhiteListWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060400160405280600581526020017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152506000908051906020019062000051929190620008b8565b5060fa600e556001600f5560fa6010556000601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff021916908315150217905550348015620000a457600080fd5b506040516200687f3803806200687f8339818101604052810190620000ca919062000a46565b6040518060400160405280600581526020017f5061636b730000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f5061636b7300000000000000000000000000000000000000000000000000000081525081600390805190602001906200014e929190620008b8565b50806004908051906020019062000167929190620008b8565b50620001786200024860201b60201c565b6001819055505050620001a0620001946200024d60201b60201c565b6200025560201b60201c565b6000600960146101000a81548160ff0219169083151502179055506001600a8190555080600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600b90805190602001906200021c929190620008b8565b50620002303360016200031b60201b60201c565b620002406200034160201b60201c565b505062000e41565b600090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200033d828260405180602001604052806000815250620003b660201b60201c565b5050565b620003516200046860201b60201c565b6001600960146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200039d6200024d60201b60201c565b604051620003ac919062000b36565b60405180910390a1565b620003c88383620004bd60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620004635760006001549050600083820390505b620004126000868380600101945086620006a760201b60201c565b62000449576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620003f75781600154146200046057600080fd5b50505b505050565b620004786200081960201b60201c565b15620004bb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004b29062000ba7565b60405180910390fd5b565b60006001549050600082141562000500576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200051560008483856200083060201b60201c565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620005a4836200058660008660006200083660201b60201c565b62000597856200086660201b60201c565b176200087660201b60201c565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200064757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506200060a565b50600082141562000684576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050620006a26000848385620008a160201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620006d5620008a760201b60201c565b8786866040518563ffffffff1660e01b8152600401620006f9949392919062000b53565b602060405180830381600087803b1580156200071457600080fd5b505af19250505080156200074857506040513d601f19601f8201168201806040525081019062000745919062000a14565b60015b620007c6573d80600081146200077b576040519150601f19603f3d011682016040523d82523d6000602084013e62000780565b606091505b50600081511415620007be576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000600960149054906101000a900460ff16905090565b50505050565b60008060e883901c905060e862000855868684620008af60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b828054620008c69062000cf5565b90600052602060002090601f016020900481019282620008ea576000855562000936565b82601f106200090557805160ff191683800117855562000936565b8280016001018555821562000936579182015b828111156200093557825182559160200191906001019062000918565b5b50905062000945919062000949565b5090565b5b80821115620009645760008160009055506001016200094a565b5090565b60006200097f620009798462000bf2565b62000bc9565b9050828152602081018484840111156200099e576200099d62000dc4565b5b620009ab84828562000cbf565b509392505050565b600081519050620009c48162000e0d565b92915050565b600081519050620009db8162000e27565b92915050565b600082601f830112620009f957620009f862000dbf565b5b815162000a0b84826020860162000968565b91505092915050565b60006020828403121562000a2d5762000a2c62000dce565b5b600062000a3d84828501620009ca565b91505092915050565b6000806040838503121562000a605762000a5f62000dce565b5b600083015167ffffffffffffffff81111562000a815762000a8062000dc9565b5b62000a8f85828601620009e1565b925050602062000aa285828601620009b3565b9150509250929050565b62000ab78162000c55565b82525050565b600062000aca8262000c28565b62000ad6818562000c33565b935062000ae881856020860162000cbf565b62000af38162000dd3565b840191505092915050565b600062000b0d60108362000c44565b915062000b1a8262000de4565b602082019050919050565b62000b308162000cb5565b82525050565b600060208201905062000b4d600083018462000aac565b92915050565b600060808201905062000b6a600083018762000aac565b62000b79602083018662000aac565b62000b88604083018562000b25565b818103606083015262000b9c818462000abd565b905095945050505050565b6000602082019050818103600083015262000bc28162000afe565b9050919050565b600062000bd562000be8565b905062000be3828262000d2b565b919050565b6000604051905090565b600067ffffffffffffffff82111562000c105762000c0f62000d90565b5b62000c1b8262000dd3565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600062000c628262000c95565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000cdf57808201518184015260208101905062000cc2565b8381111562000cef576000848401525b50505050565b6000600282049050600182168062000d0e57607f821691505b6020821081141562000d255762000d2462000d61565b5b50919050565b62000d368262000dd3565b810181811067ffffffffffffffff8211171562000d585762000d5762000d90565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b62000e188162000c55565b811462000e2457600080fd5b50565b62000e328162000c69565b811462000e3e57600080fd5b50565b615a2e8062000e516000396000f3fe6080604052600436106102e45760003560e01c80638462151c11610190578063a97f3259116100dc578063db41a6db11610095578063e985e9c51161006f578063e985e9c514610b01578063f2fde38b14610b3e578063f571c04114610b67578063fca76c2614610b83576102e4565b8063db41a6db14610a84578063e8a3d48514610aad578063e938106b14610ad8576102e4565b8063a97f32591461094e578063ae1fc2a61461098b578063b88d4fde146109b6578063c23dc68f146109df578063c668286214610a1c578063c87b56dd14610a47576102e4565b806399a2557a11610149578063a0712d6811610123578063a0712d68146108b5578063a22cb465146108d1578063a271a031146108fa578063a8fc6fcd14610923576102e4565b806399a2557a146108265780639aad69e7146108635780639c8f79331461088c576102e4565b80638462151c146107125780638a383ff11461074f5780638d859f3e1461077a5780638da5cb5b146107a557806394f895e7146107d057806395d89b41146107fb576102e4565b806342966c681161024f5780636352211e11610208578063704b6c02116101e2578063704b6c021461067e57806370a08231146106a7578063715018a6146106e45780638456cb59146106fb576102e4565b80636352211e146105ed5780636a832cbf1461062a5780636f8b44b014610655576102e4565b806342966c68146104f3578063484b973c1461051c57806353df5c7c1461054557806355f804b31461055c5780635bbb2177146105855780635c975abb146105c2576102e4565b806318160ddd116102a157806318160ddd1461040b57806322f4596f1461043657806323b872dd146104615780632f9710291461048a5780633f4ba83a146104b357806342842e0e146104ca576102e4565b806301ffc9a7146102e957806306fdde0314610326578063081812fc14610351578063095ea7b31461038e5780630ddde776146103b75780630ef86a3b146103e0575b600080fd5b3480156102f557600080fd5b50610310600480360381019061030b9190614659565b610b9a565b60405161031d9190614e74565b60405180910390f35b34801561033257600080fd5b5061033b610c2c565b6040516103489190614eaa565b60405180910390f35b34801561035d57600080fd5b5061037860048036038101906103739190614700565b610cbe565b6040516103859190614dc9565b60405180910390f35b34801561039a57600080fd5b506103b560048036038101906103b0919061451f565b610d3d565b005b3480156103c357600080fd5b506103de60048036038101906103d991906145ff565b610e81565b005b3480156103ec57600080fd5b506103f5610f6b565b6040516104029190614e8f565b60405180910390f35b34801561041757600080fd5b50610420610f71565b60405161042d9190615107565b60405180910390f35b34801561044257600080fd5b5061044b610f88565b6040516104589190615107565b60405180910390f35b34801561046d57600080fd5b5061048860048036038101906104839190614409565b610f8e565b005b34801561049657600080fd5b506104b160048036038101906104ac919061439c565b6112b3565b005b3480156104bf57600080fd5b506104c8611430565b005b3480156104d657600080fd5b506104f160048036038101906104ec9190614409565b611507565b005b3480156104ff57600080fd5b5061051a60048036038101906105159190614700565b611527565b005b34801561052857600080fd5b50610543600480360381019061053e919061451f565b61158b565b005b34801561055157600080fd5b5061055a6116bd565b005b34801561056857600080fd5b50610583600480360381019061057e91906146b3565b61180d565b005b34801561059157600080fd5b506105ac60048036038101906105a791906145b2565b611940565b6040516105b99190614e30565b60405180910390f35b3480156105ce57600080fd5b506105d7611a03565b6040516105e49190614e74565b60405180910390f35b3480156105f957600080fd5b50610614600480360381019061060f9190614700565b611a1a565b6040516106219190614dc9565b60405180910390f35b34801561063657600080fd5b5061063f611a2c565b60405161064c9190615107565b60405180910390f35b34801561066157600080fd5b5061067c60048036038101906106779190614700565b611a32565b005b34801561068a57600080fd5b506106a560048036038101906106a0919061439c565b611b59565b005b3480156106b357600080fd5b506106ce60048036038101906106c9919061439c565b611ba5565b6040516106db9190615107565b60405180910390f35b3480156106f057600080fd5b506106f9611c5e565b005b34801561070757600080fd5b50610710611c72565b005b34801561071e57600080fd5b506107396004803603810190610734919061439c565b611d49565b6040516107469190614e52565b60405180910390f35b34801561075b57600080fd5b50610764611e93565b6040516107719190614e74565b60405180910390f35b34801561078657600080fd5b5061078f611ea6565b60405161079c9190615107565b60405180910390f35b3480156107b157600080fd5b506107ba611eb1565b6040516107c79190614dc9565b60405180910390f35b3480156107dc57600080fd5b506107e5611edb565b6040516107f29190614e74565b60405180910390f35b34801561080757600080fd5b50610810611eee565b60405161081d9190614eaa565b60405180910390f35b34801561083257600080fd5b5061084d6004803603810190610848919061455f565b611f80565b60405161085a9190614e52565b60405180910390f35b34801561086f57600080fd5b5061088a6004803603810190610885919061439c565b612194565b005b34801561089857600080fd5b506108b360048036038101906108ae9190614700565b6122a5565b005b6108cf60048036038101906108ca9190614700565b61237c565b005b3480156108dd57600080fd5b506108f860048036038101906108f391906144df565b612609565b005b34801561090657600080fd5b50610921600480360381019061091c91906145ff565b612781565b005b34801561092f57600080fd5b5061093861286b565b6040516109459190614e74565b60405180910390f35b34801561095a57600080fd5b506109756004803603810190610970919061439c565b61287e565b6040516109829190615122565b60405180910390f35b34801561099757600080fd5b506109a061289e565b6040516109ad9190615107565b60405180910390f35b3480156109c257600080fd5b506109dd60048036038101906109d8919061445c565b6128a4565b005b3480156109eb57600080fd5b50610a066004803603810190610a019190614700565b612917565b604051610a1391906150ec565b60405180910390f35b348015610a2857600080fd5b50610a31612981565b604051610a3e9190614eaa565b60405180910390f35b348015610a5357600080fd5b50610a6e6004803603810190610a699190614700565b612a0f565b604051610a7b9190614eaa565b60405180910390f35b348015610a9057600080fd5b50610aab6004803603810190610aa6919061462c565b612ab1565b005b348015610ab957600080fd5b50610ac2612b88565b604051610acf9190614eaa565b60405180910390f35b348015610ae457600080fd5b50610aff6004803603810190610afa9190614700565b612ba8565b005b348015610b0d57600080fd5b50610b286004803603810190610b2391906143c9565b612c7f565b604051610b359190614e74565b60405180910390f35b348015610b4a57600080fd5b50610b656004803603810190610b60919061439c565b612d13565b005b610b816004803603810190610b7c919061472d565b612d97565b005b348015610b8f57600080fd5b50610b986131d8565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bf557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c255750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060038054610c3b90615473565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6790615473565b8015610cb45780601f10610c8957610100808354040283529160200191610cb4565b820191906000526020600020905b815481529060010190602001808311610c9757829003601f168201915b5050505050905090565b6000610cc9826132c2565b610cff576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d4882611a1a565b90508073ffffffffffffffffffffffffffffffffffffffff16610d69613321565b73ffffffffffffffffffffffffffffffffffffffff1614610dcc57610d9581610d90613321565b612c7f565b610dcb576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610e89611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f0f5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590614f8c565b60405180910390fd5b80601360016101000a81548160ff02191690831515021790555050565b60125481565b6000610f7b613329565b6002546001540303905090565b60105481565b6000610f998261332e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611000576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061100c846133fc565b91509150611022818761101d613321565b613423565b61106e5761103786611032613321565b612c7f565b61106d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156110d5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110e28686866001613467565b80156110ed57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111bb8561119788888761346d565b7c020000000000000000000000000000000000000000000000000000000017613495565b600560008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611243576000600185019050600060056000838152602001908152602001600020541415611241576001548114611240578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112ab86868660016134c0565b505050505050565b6112bb611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113415750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137790614f8c565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516113a690614db4565b60006040518083038185875af1925050503d80600081146113e3576040519150601f19603f3d011682016040523d82523d6000602084013e6113e8565b606091505b505090508061142c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114239061504c565b60405180910390fd5b5050565b611438611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114be5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f490614f8c565b60405180910390fd5b6115056134c6565b565b611522838383604051806020016040528060008152506128a4565b505050565b6000600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141590506115878282613529565b5050565b611593611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806116195750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f90614f8c565b60405180910390fd5b60105481611664610f71565b61166e9190615268565b11156116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a69061502c565b60405180910390fd5b6116b9828261377d565b5050565b6116c5611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061174b5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61178a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178190614f8c565b60405180910390fd5b6001600c60006101000a81548160ff02191690831515021790555060005b6117b0610f71565b81101561180a57807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b556572076117e283612a0f565b6040516117ef9190614eaa565b60405180910390a28080611802906154d6565b9150506117a8565b50565b611815611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061189b5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6118da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d190614f8c565b60405180910390fd5b600c60009054906101000a900460ff161561192a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119219061506c565b60405180910390fd5b8181600b919061193b9291906140a5565b505050565b6060600083839050905060008167ffffffffffffffff811115611966576119656155d0565b5b60405190808252806020026020018201604052801561199f57816020015b61198c61412b565b8152602001906001900390816119845790505b50905060005b8281146119f7576119ce8686838181106119c2576119c16155a1565b5b90506020020135612917565b8282815181106119e1576119e06155a1565b5b60200260200101819052508060010190506119a5565b50809250505092915050565b6000600960149054906101000a900460ff16905090565b6000611a258261332e565b9050919050565b600e5481565b611a3a611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611ac05750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af690614f8c565b60405180910390fd5b601160009054906101000a900460ff1615611b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b46906150cc565b60405180910390fd5b8060108190555050565b611b6161379b565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c0d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611c6661379b565b611c706000613819565b565b611c7a611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611d005750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3690614f8c565b60405180910390fd5b611d476138df565b565b60606000806000611d5985611ba5565b905060008167ffffffffffffffff811115611d7757611d766155d0565b5b604051908082528060200260200182016040528015611da55781602001602082028036833780820191505090505b509050611db061412b565b6000611dba613329565b90505b838614611e8557611dcd81613942565b9150816040015115611dde57611e7a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611e1e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611e795780838780600101985081518110611e6c57611e6b6155a1565b5b6020026020010181815250505b5b806001019050611dbd565b508195505050505050919050565b600c60009054906101000a900460ff1681565b6658d15e1762800081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601360019054906101000a900460ff1681565b606060048054611efd90615473565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2990615473565b8015611f765780601f10611f4b57610100808354040283529160200191611f76565b820191906000526020600020905b815481529060010190602001808311611f5957829003601f168201915b5050505050905090565b6060818310611fbb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611fc661396d565b9050611fd0613329565b851015611fe257611fdf613329565b94505b80841115611fee578093505b6000611ff987611ba5565b90508486101561201c576000868603905081811015612016578091505b50612021565b600090505b60008167ffffffffffffffff81111561203d5761203c6155d0565b5b60405190808252806020026020018201604052801561206b5781602001602082028036833780820191505090505b5090506000821415612083578094505050505061218d565b600061208e88612917565b9050600081604001516120a357816000015190505b60008990505b8881141580156120b95750848714155b1561217f576120c781613942565b92508260400151156120d857612174565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461211857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121735780848880600101995081518110612166576121656155a1565b5b6020026020010181815250505b5b8060010190506120a9565b508583528296505050505050505b9392505050565b61219c611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806122225750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225890614f8c565b60405180910390fd5b80600c60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122ad611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806123335750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236990614f8c565b60405180910390fd5b80600e8190555050565b6002600a5414156123c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b9906150ac565b60405180910390fd5b6002600a819055503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612438576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242f9061508c565b60405180910390fd5b612440613977565b6000816658d15e1762800061245591906152f5565b9050601360009054906101000a900460ff166124a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249d90614fcc565b60405180910390fd5b803410156124e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e090614fec565b60405180910390fd5b600e54826124f6336139c1565b6125009190615268565b1115612541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253890614f0c565b60405180910390fd5b6010548261254d610f71565b6125579190615268565b1115612598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258f9061502c565b60405180910390fd5b6125a2338361377d565b803411156125fd573373ffffffffffffffffffffffffffffffffffffffff166108fc82346125d0919061534f565b9081150290604051600060405180830381858888f193505050501580156125fb573d6000803e3d6000fd5b505b506001600a8190555050565b612611613321565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612676576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000612683613321565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612730613321565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127759190614e74565b60405180910390a35050565b612789611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061280f5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61284e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284590614f8c565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b601360009054906101000a900460ff1681565b60146020528060005260406000206000915054906101000a900460ff1681565b600f5481565b6128af848484610f8e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612911576128da84848484613a18565b612910576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61291f61412b565b61292761412b565b61292f613329565b831080612943575061293f61396d565b8310155b15612951578091505061297c565b61295a83613942565b905080604001511561296f578091505061297c565b61297883613b78565b9150505b919050565b6000805461298e90615473565b80601f01602080910402602001604051908101604052809291908181526020018280546129ba90615473565b8015612a075780601f106129dc57610100808354040283529160200191612a07565b820191906000526020600020905b8154815290600101906020018083116129ea57829003601f168201915b505050505081565b6060612a1a826132c2565b612a50576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612a5a613b98565b9050600081511415612a7b5760405180602001604052806000815250612aa9565b80612a8584613c2a565b6000604051602001612a9993929190614d83565b6040516020818303038152906040525b915050919050565b612ab9611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612b3f5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7590614f8c565b60405180910390fd5b8060128190555050565b60606040518060800160405280605181526020016159a860519139905090565b612bb0611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612c365750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6c90614f8c565b60405180910390fd5b80600f8190555050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612d1b61379b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8290614eec565b60405180910390fd5b612d9481613819565b50565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfc9061508c565b60405180910390fd5b6002600a541415612e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e42906150ac565b60405180910390fd5b6002600a8190555060008360ff166658d15e17628000612e6b91906152f5565b9050601360019054906101000a900460ff16612ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb390614f2c565b60405180910390fd5b600f548460ff16612ecc336139c1565b612ed69190615268565b1115612f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0e90614f0c565b60405180910390fd5b60008460ff1611612f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5490614fac565b60405180910390fd5b6010548460ff16612f6c610f71565b612f769190615268565b1115612fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fae9061502c565b60405180910390fd5b80341015612ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff190614fec565b60405180910390fd5b60003360405160200161300d9190614d68565b604051602081830303815290604052805190602001209050613073848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483613c7a565b6130b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a990614f4c565b60405180910390fd5b6130bf338660ff1661377d565b8134111561311a573373ffffffffffffffffffffffffffffffffffffffff166108fc83346130ed919061534f565b9081150290604051600060405180830381858888f19350505050158015613118573d6000803e3d6000fd5b505b84601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661317291906152be565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555050506001600a81905550505050565b6131e0611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806132665750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6132a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329c90614f8c565b60405180910390fd5b6001601160006101000a81548160ff021916908315150217905550565b6000816132cd613329565b111580156132dc575060015482105b801561331a575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061333d613329565b116133c5576001548110156133c45760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156133c2575b60008114156133b857600560008360019003935083815260200190815260200160002054905061338d565b80925050506133f7565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613484868684613c91565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6134ce613c9a565b6000600960146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613512613ce3565b60405161351f9190614dc9565b60405180910390a1565b60006135348361332e565b90506000819050600080613547866133fc565b9150915084156135b057613563818461355e613321565b613423565b6135af5761357883613573613321565b612c7f565b6135ae576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6135be836000886001613467565b80156135c957600082555b600160806001901b03600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506136718361362e8560008861346d565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613495565b600560008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851614156136f95760006001870190506000600560008381526020019081526020016000205414156136f75760015481146136f6578460056000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46137638360008860016134c0565b600260008154809291906001019190505550505050505050565b613797828260405180602001604052806000815250613ceb565b5050565b6137a3613ce3565b73ffffffffffffffffffffffffffffffffffffffff166137c1611eb1565b73ffffffffffffffffffffffffffffffffffffffff1614613817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161380e9061500c565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6138e7613977565b6001600960146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861392b613ce3565b6040516139389190614dc9565b60405180910390a1565b61394a61412b565b6139666005600084815260200190815260200160002054613d89565b9050919050565b6000600154905090565b61397f611a03565b156139bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139b690614f6c565b60405180910390fd5b565b600067ffffffffffffffff6040600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613a3e613321565b8786866040518563ffffffff1660e01b8152600401613a609493929190614de4565b602060405180830381600087803b158015613a7a57600080fd5b505af1925050508015613aab57506040513d601f19601f82011682018060405250810190613aa89190614686565b60015b613b25573d8060008114613adb576040519150601f19603f3d011682016040523d82523d6000602084013e613ae0565b606091505b50600081511415613b1d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b613b8061412b565b613b91613b8c8361332e565b613d89565b9050919050565b6060600b8054613ba790615473565b80601f0160208091040260200160405190810160405280929190818152602001828054613bd390615473565b8015613c205780601f10613bf557610100808354040283529160200191613c20565b820191906000526020600020905b815481529060010190602001808311613c0357829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115613c6657600183039250600a81066030018353600a8104905080613c6157613c66565b613c3b565b508181036020830392508083525050919050565b600082613c878584613e3f565b1490509392505050565b60009392505050565b613ca2611a03565b613ce1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cd890614ecc565b60405180910390fd5b565b600033905090565b613cf58383613e95565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613d845760006001549050600083820390505b613d366000868380600101945086613a18565b613d6c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613d23578160015414613d8157600080fd5b50505b505050565b613d9161412b565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015613e8a57613e7582868381518110613e6857613e676155a1565b5b6020026020010151614053565b91508080613e82906154d6565b915050613e48565b508091505092915050565b600060015490506000821415613ed7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613ee46000848385613467565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613f5b83613f4c600086600061346d565b613f558561407e565b17613495565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613ffc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613fc1565b506000821415614038576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600181905550505061404e60008483856134c0565b505050565b600081831061406b57614066828461408e565b614076565b614075838361408e565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b8280546140b190615473565b90600052602060002090601f0160209004810192826140d3576000855561411a565b82601f106140ec57803560ff191683800117855561411a565b8280016001018555821561411a579182015b828111156141195782358255916020019190600101906140fe565b5b509050614127919061417a565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561419357600081600090555060010161417b565b5090565b60006141aa6141a584615162565b61513d565b9050828152602081018484840111156141c6576141c561560e565b5b6141d1848285615431565b509392505050565b6000813590506141e88161591d565b92915050565b60008083601f84011261420457614203615604565b5b8235905067ffffffffffffffff811115614221576142206155ff565b5b60208301915083602082028301111561423d5761423c615609565b5b9250929050565b60008083601f84011261425a57614259615604565b5b8235905067ffffffffffffffff811115614277576142766155ff565b5b60208301915083602082028301111561429357614292615609565b5b9250929050565b6000813590506142a981615934565b92915050565b6000813590506142be8161594b565b92915050565b6000813590506142d381615962565b92915050565b6000815190506142e881615962565b92915050565b600082601f83011261430357614302615604565b5b8135614313848260208601614197565b91505092915050565b60008083601f84011261433257614331615604565b5b8235905067ffffffffffffffff81111561434f5761434e6155ff565b5b60208301915083600182028301111561436b5761436a615609565b5b9250929050565b60008135905061438181615979565b92915050565b60008135905061439681615990565b92915050565b6000602082840312156143b2576143b1615618565b5b60006143c0848285016141d9565b91505092915050565b600080604083850312156143e0576143df615618565b5b60006143ee858286016141d9565b92505060206143ff858286016141d9565b9150509250929050565b60008060006060848603121561442257614421615618565b5b6000614430868287016141d9565b9350506020614441868287016141d9565b925050604061445286828701614372565b9150509250925092565b6000806000806080858703121561447657614475615618565b5b6000614484878288016141d9565b9450506020614495878288016141d9565b93505060406144a687828801614372565b925050606085013567ffffffffffffffff8111156144c7576144c6615613565b5b6144d3878288016142ee565b91505092959194509250565b600080604083850312156144f6576144f5615618565b5b6000614504858286016141d9565b92505060206145158582860161429a565b9150509250929050565b6000806040838503121561453657614535615618565b5b6000614544858286016141d9565b925050602061455585828601614372565b9150509250929050565b60008060006060848603121561457857614577615618565b5b6000614586868287016141d9565b935050602061459786828701614372565b92505060406145a886828701614372565b9150509250925092565b600080602083850312156145c9576145c8615618565b5b600083013567ffffffffffffffff8111156145e7576145e6615613565b5b6145f385828601614244565b92509250509250929050565b60006020828403121561461557614614615618565b5b60006146238482850161429a565b91505092915050565b60006020828403121561464257614641615618565b5b6000614650848285016142af565b91505092915050565b60006020828403121561466f5761466e615618565b5b600061467d848285016142c4565b91505092915050565b60006020828403121561469c5761469b615618565b5b60006146aa848285016142d9565b91505092915050565b600080602083850312156146ca576146c9615618565b5b600083013567ffffffffffffffff8111156146e8576146e7615613565b5b6146f48582860161431c565b92509250509250929050565b60006020828403121561471657614715615618565b5b600061472484828501614372565b91505092915050565b60008060006040848603121561474657614745615618565b5b600061475486828701614387565b935050602084013567ffffffffffffffff81111561477557614774615613565b5b614781868287016141ee565b92509250509250925092565b60006147998383614c73565b60808301905092915050565b60006147b18383614d2c565b60208301905092915050565b6147c681615383565b82525050565b6147d581615383565b82525050565b6147ec6147e782615383565b61551f565b82525050565b60006147fd826151c8565b614807818561520e565b935061481283615193565b8060005b8381101561484357815161482a888261478d565b9750614835836151f4565b925050600181019050614816565b5085935050505092915050565b600061485b826151d3565b614865818561521f565b9350614870836151a3565b8060005b838110156148a157815161488888826147a5565b975061489383615201565b925050600181019050614874565b5085935050505092915050565b6148b781615395565b82525050565b6148c681615395565b82525050565b6148d5816153a1565b82525050565b60006148e6826151de565b6148f08185615230565b9350614900818560208601615440565b6149098161561d565b840191505092915050565b600061491f826151e9565b614929818561524c565b9350614939818560208601615440565b6149428161561d565b840191505092915050565b6000614958826151e9565b614962818561525d565b9350614972818560208601615440565b80840191505092915050565b6000815461498b81615473565b614995818661525d565b945060018216600081146149b057600181146149c1576149f4565b60ff198316865281860193506149f4565b6149ca856151b3565b60005b838110156149ec578154818901526001820191506020810190506149cd565b838801955050505b50505092915050565b6000614a0a60148361524c565b9150614a158261563b565b602082019050919050565b6000614a2d60268361524c565b9150614a3882615664565b604082019050919050565b6000614a50601d8361524c565b9150614a5b826156b3565b602082019050919050565b6000614a7360208361524c565b9150614a7e826156dc565b602082019050919050565b6000614a9660138361524c565b9150614aa182615705565b602082019050919050565b6000614ab960108361524c565b9150614ac48261572e565b602082019050919050565b6000614adc60128361524c565b9150614ae782615757565b602082019050919050565b6000614aff601c8361524c565b9150614b0a82615780565b602082019050919050565b6000614b22601d8361524c565b9150614b2d826157a9565b602082019050919050565b6000614b45600e8361524c565b9150614b50826157d2565b602082019050919050565b6000614b6860208361524c565b9150614b73826157fb565b602082019050919050565b6000614b8b60178361524c565b9150614b9682615824565b602082019050919050565b6000614bae600083615241565b9150614bb98261584d565b600082019050919050565b6000614bd160108361524c565b9150614bdc82615850565b602082019050919050565b6000614bf460128361524c565b9150614bff82615879565b602082019050919050565b6000614c17601a8361524c565b9150614c22826158a2565b602082019050919050565b6000614c3a601f8361524c565b9150614c45826158cb565b602082019050919050565b6000614c5d60148361524c565b9150614c68826158f4565b602082019050919050565b608082016000820151614c8960008501826147bd565b506020820151614c9c6020850182614d4a565b506040820151614caf60408501826148ae565b506060820151614cc26060850182614d1d565b50505050565b608082016000820151614cde60008501826147bd565b506020820151614cf16020850182614d4a565b506040820151614d0460408501826148ae565b506060820151614d176060850182614d1d565b50505050565b614d26816153f7565b82525050565b614d3581615406565b82525050565b614d4481615406565b82525050565b614d5381615410565b82525050565b614d6281615424565b82525050565b6000614d7482846147db565b60148201915081905092915050565b6000614d8f828661494d565b9150614d9b828561494d565b9150614da7828461497e565b9150819050949350505050565b6000614dbf82614ba1565b9150819050919050565b6000602082019050614dde60008301846147cc565b92915050565b6000608082019050614df960008301876147cc565b614e0660208301866147cc565b614e136040830185614d3b565b8181036060830152614e2581846148db565b905095945050505050565b60006020820190508181036000830152614e4a81846147f2565b905092915050565b60006020820190508181036000830152614e6c8184614850565b905092915050565b6000602082019050614e8960008301846148bd565b92915050565b6000602082019050614ea460008301846148cc565b92915050565b60006020820190508181036000830152614ec48184614914565b905092915050565b60006020820190508181036000830152614ee5816149fd565b9050919050565b60006020820190508181036000830152614f0581614a20565b9050919050565b60006020820190508181036000830152614f2581614a43565b9050919050565b60006020820190508181036000830152614f4581614a66565b9050919050565b60006020820190508181036000830152614f6581614a89565b9050919050565b60006020820190508181036000830152614f8581614aac565b9050919050565b60006020820190508181036000830152614fa581614acf565b9050919050565b60006020820190508181036000830152614fc581614af2565b9050919050565b60006020820190508181036000830152614fe581614b15565b9050919050565b6000602082019050818103600083015261500581614b38565b9050919050565b6000602082019050818103600083015261502581614b5b565b9050919050565b6000602082019050818103600083015261504581614b7e565b9050919050565b6000602082019050818103600083015261506581614bc4565b9050919050565b6000602082019050818103600083015261508581614be7565b9050919050565b600060208201905081810360008301526150a581614c0a565b9050919050565b600060208201905081810360008301526150c581614c2d565b9050919050565b600060208201905081810360008301526150e581614c50565b9050919050565b60006080820190506151016000830184614cc8565b92915050565b600060208201905061511c6000830184614d3b565b92915050565b60006020820190506151376000830184614d59565b92915050565b6000615147615158565b905061515382826154a5565b919050565b6000604051905090565b600067ffffffffffffffff82111561517d5761517c6155d0565b5b6151868261561d565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061527382615406565b915061527e83615406565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152b3576152b2615543565b5b828201905092915050565b60006152c982615424565b91506152d483615424565b92508260ff038211156152ea576152e9615543565b5b828201905092915050565b600061530082615406565b915061530b83615406565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561534457615343615543565b5b828202905092915050565b600061535a82615406565b915061536583615406565b92508282101561537857615377615543565b5b828203905092915050565b600061538e826153d7565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561545e578082015181840152602081019050615443565b8381111561546d576000848401525b50505050565b6000600282049050600182168061548b57607f821691505b6020821081141561549f5761549e615572565b5b50919050565b6154ae8261561d565b810181811067ffffffffffffffff821117156154cd576154cc6155d0565b5b80604052505050565b60006154e182615406565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561551457615513615543565b5b600182019050919050565b600061552a82615531565b9050919050565b600061553c8261562e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5175616e7469747920657863656564732077616c6c6574206c696d6974000000600082015250565b7f57686974656c697374206d696e74206973206e6f742079657420616374697665600082015250565b7f496e76616c6964204d65726b6c6550726f6f6600000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4e6f74206f776e6572206f722061646d696e0000000000000000000000000000600082015250565b7f4d757374206d696e74206d6f7265207468616e203020746f6b656e7300000000600082015250565b7f5075626c6963206d696e74206973206e6f742079657420616374697665000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5175616e74697479206578636565647320737570706c79000000000000000000600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4261736520555249206973206c6f636b65640000000000000000000000000000600082015250565b7f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4d617820737570706c79206973206c6f636b6564000000000000000000000000600082015250565b61592681615383565b811461593157600080fd5b50565b61593d81615395565b811461594857600080fd5b50565b615954816153a1565b811461595f57600080fd5b50565b61596b816153ab565b811461597657600080fd5b50565b61598281615406565b811461598d57600080fd5b50565b61599981615424565b81146159a457600080fd5b5056fe68747470733a2f2f657868616c652e6d7970696e6174612e636c6f75642f697066732f516d55726178555871684654706f7765755335784d487970503256716a634c6145525854683670626b734b367254a264697066735822122006c76057c941dd93c4a315cda2a1e66c8427df5025257a494ad9084f19c7f57964736f6c634300080700330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5d224b43eab837aa2ee9c6ed727f1613f301a5e000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f657868616c652e6d7970696e6174612e636c6f75642f697066732f516d526a7945753858663852313339544d6955794376716371697841634576774d567a6d737941347031695061392f0000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102e45760003560e01c80638462151c11610190578063a97f3259116100dc578063db41a6db11610095578063e985e9c51161006f578063e985e9c514610b01578063f2fde38b14610b3e578063f571c04114610b67578063fca76c2614610b83576102e4565b8063db41a6db14610a84578063e8a3d48514610aad578063e938106b14610ad8576102e4565b8063a97f32591461094e578063ae1fc2a61461098b578063b88d4fde146109b6578063c23dc68f146109df578063c668286214610a1c578063c87b56dd14610a47576102e4565b806399a2557a11610149578063a0712d6811610123578063a0712d68146108b5578063a22cb465146108d1578063a271a031146108fa578063a8fc6fcd14610923576102e4565b806399a2557a146108265780639aad69e7146108635780639c8f79331461088c576102e4565b80638462151c146107125780638a383ff11461074f5780638d859f3e1461077a5780638da5cb5b146107a557806394f895e7146107d057806395d89b41146107fb576102e4565b806342966c681161024f5780636352211e11610208578063704b6c02116101e2578063704b6c021461067e57806370a08231146106a7578063715018a6146106e45780638456cb59146106fb576102e4565b80636352211e146105ed5780636a832cbf1461062a5780636f8b44b014610655576102e4565b806342966c68146104f3578063484b973c1461051c57806353df5c7c1461054557806355f804b31461055c5780635bbb2177146105855780635c975abb146105c2576102e4565b806318160ddd116102a157806318160ddd1461040b57806322f4596f1461043657806323b872dd146104615780632f9710291461048a5780633f4ba83a146104b357806342842e0e146104ca576102e4565b806301ffc9a7146102e957806306fdde0314610326578063081812fc14610351578063095ea7b31461038e5780630ddde776146103b75780630ef86a3b146103e0575b600080fd5b3480156102f557600080fd5b50610310600480360381019061030b9190614659565b610b9a565b60405161031d9190614e74565b60405180910390f35b34801561033257600080fd5b5061033b610c2c565b6040516103489190614eaa565b60405180910390f35b34801561035d57600080fd5b5061037860048036038101906103739190614700565b610cbe565b6040516103859190614dc9565b60405180910390f35b34801561039a57600080fd5b506103b560048036038101906103b0919061451f565b610d3d565b005b3480156103c357600080fd5b506103de60048036038101906103d991906145ff565b610e81565b005b3480156103ec57600080fd5b506103f5610f6b565b6040516104029190614e8f565b60405180910390f35b34801561041757600080fd5b50610420610f71565b60405161042d9190615107565b60405180910390f35b34801561044257600080fd5b5061044b610f88565b6040516104589190615107565b60405180910390f35b34801561046d57600080fd5b5061048860048036038101906104839190614409565b610f8e565b005b34801561049657600080fd5b506104b160048036038101906104ac919061439c565b6112b3565b005b3480156104bf57600080fd5b506104c8611430565b005b3480156104d657600080fd5b506104f160048036038101906104ec9190614409565b611507565b005b3480156104ff57600080fd5b5061051a60048036038101906105159190614700565b611527565b005b34801561052857600080fd5b50610543600480360381019061053e919061451f565b61158b565b005b34801561055157600080fd5b5061055a6116bd565b005b34801561056857600080fd5b50610583600480360381019061057e91906146b3565b61180d565b005b34801561059157600080fd5b506105ac60048036038101906105a791906145b2565b611940565b6040516105b99190614e30565b60405180910390f35b3480156105ce57600080fd5b506105d7611a03565b6040516105e49190614e74565b60405180910390f35b3480156105f957600080fd5b50610614600480360381019061060f9190614700565b611a1a565b6040516106219190614dc9565b60405180910390f35b34801561063657600080fd5b5061063f611a2c565b60405161064c9190615107565b60405180910390f35b34801561066157600080fd5b5061067c60048036038101906106779190614700565b611a32565b005b34801561068a57600080fd5b506106a560048036038101906106a0919061439c565b611b59565b005b3480156106b357600080fd5b506106ce60048036038101906106c9919061439c565b611ba5565b6040516106db9190615107565b60405180910390f35b3480156106f057600080fd5b506106f9611c5e565b005b34801561070757600080fd5b50610710611c72565b005b34801561071e57600080fd5b506107396004803603810190610734919061439c565b611d49565b6040516107469190614e52565b60405180910390f35b34801561075b57600080fd5b50610764611e93565b6040516107719190614e74565b60405180910390f35b34801561078657600080fd5b5061078f611ea6565b60405161079c9190615107565b60405180910390f35b3480156107b157600080fd5b506107ba611eb1565b6040516107c79190614dc9565b60405180910390f35b3480156107dc57600080fd5b506107e5611edb565b6040516107f29190614e74565b60405180910390f35b34801561080757600080fd5b50610810611eee565b60405161081d9190614eaa565b60405180910390f35b34801561083257600080fd5b5061084d6004803603810190610848919061455f565b611f80565b60405161085a9190614e52565b60405180910390f35b34801561086f57600080fd5b5061088a6004803603810190610885919061439c565b612194565b005b34801561089857600080fd5b506108b360048036038101906108ae9190614700565b6122a5565b005b6108cf60048036038101906108ca9190614700565b61237c565b005b3480156108dd57600080fd5b506108f860048036038101906108f391906144df565b612609565b005b34801561090657600080fd5b50610921600480360381019061091c91906145ff565b612781565b005b34801561092f57600080fd5b5061093861286b565b6040516109459190614e74565b60405180910390f35b34801561095a57600080fd5b506109756004803603810190610970919061439c565b61287e565b6040516109829190615122565b60405180910390f35b34801561099757600080fd5b506109a061289e565b6040516109ad9190615107565b60405180910390f35b3480156109c257600080fd5b506109dd60048036038101906109d8919061445c565b6128a4565b005b3480156109eb57600080fd5b50610a066004803603810190610a019190614700565b612917565b604051610a1391906150ec565b60405180910390f35b348015610a2857600080fd5b50610a31612981565b604051610a3e9190614eaa565b60405180910390f35b348015610a5357600080fd5b50610a6e6004803603810190610a699190614700565b612a0f565b604051610a7b9190614eaa565b60405180910390f35b348015610a9057600080fd5b50610aab6004803603810190610aa6919061462c565b612ab1565b005b348015610ab957600080fd5b50610ac2612b88565b604051610acf9190614eaa565b60405180910390f35b348015610ae457600080fd5b50610aff6004803603810190610afa9190614700565b612ba8565b005b348015610b0d57600080fd5b50610b286004803603810190610b2391906143c9565b612c7f565b604051610b359190614e74565b60405180910390f35b348015610b4a57600080fd5b50610b656004803603810190610b60919061439c565b612d13565b005b610b816004803603810190610b7c919061472d565b612d97565b005b348015610b8f57600080fd5b50610b986131d8565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bf557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c255750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060038054610c3b90615473565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6790615473565b8015610cb45780601f10610c8957610100808354040283529160200191610cb4565b820191906000526020600020905b815481529060010190602001808311610c9757829003601f168201915b5050505050905090565b6000610cc9826132c2565b610cff576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d4882611a1a565b90508073ffffffffffffffffffffffffffffffffffffffff16610d69613321565b73ffffffffffffffffffffffffffffffffffffffff1614610dcc57610d9581610d90613321565b612c7f565b610dcb576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610e89611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f0f5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590614f8c565b60405180910390fd5b80601360016101000a81548160ff02191690831515021790555050565b60125481565b6000610f7b613329565b6002546001540303905090565b60105481565b6000610f998261332e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611000576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061100c846133fc565b91509150611022818761101d613321565b613423565b61106e5761103786611032613321565b612c7f565b61106d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156110d5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110e28686866001613467565b80156110ed57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111bb8561119788888761346d565b7c020000000000000000000000000000000000000000000000000000000017613495565b600560008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611243576000600185019050600060056000838152602001908152602001600020541415611241576001548114611240578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112ab86868660016134c0565b505050505050565b6112bb611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113415750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137790614f8c565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516113a690614db4565b60006040518083038185875af1925050503d80600081146113e3576040519150601f19603f3d011682016040523d82523d6000602084013e6113e8565b606091505b505090508061142c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114239061504c565b60405180910390fd5b5050565b611438611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114be5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f490614f8c565b60405180910390fd5b6115056134c6565b565b611522838383604051806020016040528060008152506128a4565b505050565b6000600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141590506115878282613529565b5050565b611593611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806116195750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f90614f8c565b60405180910390fd5b60105481611664610f71565b61166e9190615268565b11156116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a69061502c565b60405180910390fd5b6116b9828261377d565b5050565b6116c5611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061174b5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61178a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178190614f8c565b60405180910390fd5b6001600c60006101000a81548160ff02191690831515021790555060005b6117b0610f71565b81101561180a57807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b556572076117e283612a0f565b6040516117ef9190614eaa565b60405180910390a28080611802906154d6565b9150506117a8565b50565b611815611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061189b5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6118da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d190614f8c565b60405180910390fd5b600c60009054906101000a900460ff161561192a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119219061506c565b60405180910390fd5b8181600b919061193b9291906140a5565b505050565b6060600083839050905060008167ffffffffffffffff811115611966576119656155d0565b5b60405190808252806020026020018201604052801561199f57816020015b61198c61412b565b8152602001906001900390816119845790505b50905060005b8281146119f7576119ce8686838181106119c2576119c16155a1565b5b90506020020135612917565b8282815181106119e1576119e06155a1565b5b60200260200101819052508060010190506119a5565b50809250505092915050565b6000600960149054906101000a900460ff16905090565b6000611a258261332e565b9050919050565b600e5481565b611a3a611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611ac05750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af690614f8c565b60405180910390fd5b601160009054906101000a900460ff1615611b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b46906150cc565b60405180910390fd5b8060108190555050565b611b6161379b565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c0d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611c6661379b565b611c706000613819565b565b611c7a611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611d005750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3690614f8c565b60405180910390fd5b611d476138df565b565b60606000806000611d5985611ba5565b905060008167ffffffffffffffff811115611d7757611d766155d0565b5b604051908082528060200260200182016040528015611da55781602001602082028036833780820191505090505b509050611db061412b565b6000611dba613329565b90505b838614611e8557611dcd81613942565b9150816040015115611dde57611e7a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611e1e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611e795780838780600101985081518110611e6c57611e6b6155a1565b5b6020026020010181815250505b5b806001019050611dbd565b508195505050505050919050565b600c60009054906101000a900460ff1681565b6658d15e1762800081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601360019054906101000a900460ff1681565b606060048054611efd90615473565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2990615473565b8015611f765780601f10611f4b57610100808354040283529160200191611f76565b820191906000526020600020905b815481529060010190602001808311611f5957829003601f168201915b5050505050905090565b6060818310611fbb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611fc661396d565b9050611fd0613329565b851015611fe257611fdf613329565b94505b80841115611fee578093505b6000611ff987611ba5565b90508486101561201c576000868603905081811015612016578091505b50612021565b600090505b60008167ffffffffffffffff81111561203d5761203c6155d0565b5b60405190808252806020026020018201604052801561206b5781602001602082028036833780820191505090505b5090506000821415612083578094505050505061218d565b600061208e88612917565b9050600081604001516120a357816000015190505b60008990505b8881141580156120b95750848714155b1561217f576120c781613942565b92508260400151156120d857612174565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461211857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121735780848880600101995081518110612166576121656155a1565b5b6020026020010181815250505b5b8060010190506120a9565b508583528296505050505050505b9392505050565b61219c611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806122225750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225890614f8c565b60405180910390fd5b80600c60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122ad611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806123335750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236990614f8c565b60405180910390fd5b80600e8190555050565b6002600a5414156123c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b9906150ac565b60405180910390fd5b6002600a819055503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612438576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242f9061508c565b60405180910390fd5b612440613977565b6000816658d15e1762800061245591906152f5565b9050601360009054906101000a900460ff166124a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249d90614fcc565b60405180910390fd5b803410156124e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e090614fec565b60405180910390fd5b600e54826124f6336139c1565b6125009190615268565b1115612541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253890614f0c565b60405180910390fd5b6010548261254d610f71565b6125579190615268565b1115612598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258f9061502c565b60405180910390fd5b6125a2338361377d565b803411156125fd573373ffffffffffffffffffffffffffffffffffffffff166108fc82346125d0919061534f565b9081150290604051600060405180830381858888f193505050501580156125fb573d6000803e3d6000fd5b505b506001600a8190555050565b612611613321565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612676576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000612683613321565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612730613321565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127759190614e74565b60405180910390a35050565b612789611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061280f5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61284e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284590614f8c565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b601360009054906101000a900460ff1681565b60146020528060005260406000206000915054906101000a900460ff1681565b600f5481565b6128af848484610f8e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612911576128da84848484613a18565b612910576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61291f61412b565b61292761412b565b61292f613329565b831080612943575061293f61396d565b8310155b15612951578091505061297c565b61295a83613942565b905080604001511561296f578091505061297c565b61297883613b78565b9150505b919050565b6000805461298e90615473565b80601f01602080910402602001604051908101604052809291908181526020018280546129ba90615473565b8015612a075780601f106129dc57610100808354040283529160200191612a07565b820191906000526020600020905b8154815290600101906020018083116129ea57829003601f168201915b505050505081565b6060612a1a826132c2565b612a50576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612a5a613b98565b9050600081511415612a7b5760405180602001604052806000815250612aa9565b80612a8584613c2a565b6000604051602001612a9993929190614d83565b6040516020818303038152906040525b915050919050565b612ab9611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612b3f5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7590614f8c565b60405180910390fd5b8060128190555050565b60606040518060800160405280605181526020016159a860519139905090565b612bb0611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612c365750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6c90614f8c565b60405180910390fd5b80600f8190555050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612d1b61379b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8290614eec565b60405180910390fd5b612d9481613819565b50565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfc9061508c565b60405180910390fd5b6002600a541415612e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e42906150ac565b60405180910390fd5b6002600a8190555060008360ff166658d15e17628000612e6b91906152f5565b9050601360019054906101000a900460ff16612ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb390614f2c565b60405180910390fd5b600f548460ff16612ecc336139c1565b612ed69190615268565b1115612f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0e90614f0c565b60405180910390fd5b60008460ff1611612f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5490614fac565b60405180910390fd5b6010548460ff16612f6c610f71565b612f769190615268565b1115612fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fae9061502c565b60405180910390fd5b80341015612ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff190614fec565b60405180910390fd5b60003360405160200161300d9190614d68565b604051602081830303815290604052805190602001209050613073848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483613c7a565b6130b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a990614f4c565b60405180910390fd5b6130bf338660ff1661377d565b8134111561311a573373ffffffffffffffffffffffffffffffffffffffff166108fc83346130ed919061534f565b9081150290604051600060405180830381858888f19350505050158015613118573d6000803e3d6000fd5b505b84601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661317291906152be565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555050506001600a81905550505050565b6131e0611eb1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806132665750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6132a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329c90614f8c565b60405180910390fd5b6001601160006101000a81548160ff021916908315150217905550565b6000816132cd613329565b111580156132dc575060015482105b801561331a575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061333d613329565b116133c5576001548110156133c45760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156133c2575b60008114156133b857600560008360019003935083815260200190815260200160002054905061338d565b80925050506133f7565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613484868684613c91565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6134ce613c9a565b6000600960146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613512613ce3565b60405161351f9190614dc9565b60405180910390a1565b60006135348361332e565b90506000819050600080613547866133fc565b9150915084156135b057613563818461355e613321565b613423565b6135af5761357883613573613321565b612c7f565b6135ae576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6135be836000886001613467565b80156135c957600082555b600160806001901b03600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506136718361362e8560008861346d565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613495565b600560008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851614156136f95760006001870190506000600560008381526020019081526020016000205414156136f75760015481146136f6578460056000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46137638360008860016134c0565b600260008154809291906001019190505550505050505050565b613797828260405180602001604052806000815250613ceb565b5050565b6137a3613ce3565b73ffffffffffffffffffffffffffffffffffffffff166137c1611eb1565b73ffffffffffffffffffffffffffffffffffffffff1614613817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161380e9061500c565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6138e7613977565b6001600960146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861392b613ce3565b6040516139389190614dc9565b60405180910390a1565b61394a61412b565b6139666005600084815260200190815260200160002054613d89565b9050919050565b6000600154905090565b61397f611a03565b156139bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139b690614f6c565b60405180910390fd5b565b600067ffffffffffffffff6040600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613a3e613321565b8786866040518563ffffffff1660e01b8152600401613a609493929190614de4565b602060405180830381600087803b158015613a7a57600080fd5b505af1925050508015613aab57506040513d601f19601f82011682018060405250810190613aa89190614686565b60015b613b25573d8060008114613adb576040519150601f19603f3d011682016040523d82523d6000602084013e613ae0565b606091505b50600081511415613b1d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b613b8061412b565b613b91613b8c8361332e565b613d89565b9050919050565b6060600b8054613ba790615473565b80601f0160208091040260200160405190810160405280929190818152602001828054613bd390615473565b8015613c205780601f10613bf557610100808354040283529160200191613c20565b820191906000526020600020905b815481529060010190602001808311613c0357829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115613c6657600183039250600a81066030018353600a8104905080613c6157613c66565b613c3b565b508181036020830392508083525050919050565b600082613c878584613e3f565b1490509392505050565b60009392505050565b613ca2611a03565b613ce1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cd890614ecc565b60405180910390fd5b565b600033905090565b613cf58383613e95565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613d845760006001549050600083820390505b613d366000868380600101945086613a18565b613d6c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613d23578160015414613d8157600080fd5b50505b505050565b613d9161412b565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015613e8a57613e7582868381518110613e6857613e676155a1565b5b6020026020010151614053565b91508080613e82906154d6565b915050613e48565b508091505092915050565b600060015490506000821415613ed7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613ee46000848385613467565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613f5b83613f4c600086600061346d565b613f558561407e565b17613495565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613ffc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613fc1565b506000821415614038576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600181905550505061404e60008483856134c0565b505050565b600081831061406b57614066828461408e565b614076565b614075838361408e565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b8280546140b190615473565b90600052602060002090601f0160209004810192826140d3576000855561411a565b82601f106140ec57803560ff191683800117855561411a565b8280016001018555821561411a579182015b828111156141195782358255916020019190600101906140fe565b5b509050614127919061417a565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561419357600081600090555060010161417b565b5090565b60006141aa6141a584615162565b61513d565b9050828152602081018484840111156141c6576141c561560e565b5b6141d1848285615431565b509392505050565b6000813590506141e88161591d565b92915050565b60008083601f84011261420457614203615604565b5b8235905067ffffffffffffffff811115614221576142206155ff565b5b60208301915083602082028301111561423d5761423c615609565b5b9250929050565b60008083601f84011261425a57614259615604565b5b8235905067ffffffffffffffff811115614277576142766155ff565b5b60208301915083602082028301111561429357614292615609565b5b9250929050565b6000813590506142a981615934565b92915050565b6000813590506142be8161594b565b92915050565b6000813590506142d381615962565b92915050565b6000815190506142e881615962565b92915050565b600082601f83011261430357614302615604565b5b8135614313848260208601614197565b91505092915050565b60008083601f84011261433257614331615604565b5b8235905067ffffffffffffffff81111561434f5761434e6155ff565b5b60208301915083600182028301111561436b5761436a615609565b5b9250929050565b60008135905061438181615979565b92915050565b60008135905061439681615990565b92915050565b6000602082840312156143b2576143b1615618565b5b60006143c0848285016141d9565b91505092915050565b600080604083850312156143e0576143df615618565b5b60006143ee858286016141d9565b92505060206143ff858286016141d9565b9150509250929050565b60008060006060848603121561442257614421615618565b5b6000614430868287016141d9565b9350506020614441868287016141d9565b925050604061445286828701614372565b9150509250925092565b6000806000806080858703121561447657614475615618565b5b6000614484878288016141d9565b9450506020614495878288016141d9565b93505060406144a687828801614372565b925050606085013567ffffffffffffffff8111156144c7576144c6615613565b5b6144d3878288016142ee565b91505092959194509250565b600080604083850312156144f6576144f5615618565b5b6000614504858286016141d9565b92505060206145158582860161429a565b9150509250929050565b6000806040838503121561453657614535615618565b5b6000614544858286016141d9565b925050602061455585828601614372565b9150509250929050565b60008060006060848603121561457857614577615618565b5b6000614586868287016141d9565b935050602061459786828701614372565b92505060406145a886828701614372565b9150509250925092565b600080602083850312156145c9576145c8615618565b5b600083013567ffffffffffffffff8111156145e7576145e6615613565b5b6145f385828601614244565b92509250509250929050565b60006020828403121561461557614614615618565b5b60006146238482850161429a565b91505092915050565b60006020828403121561464257614641615618565b5b6000614650848285016142af565b91505092915050565b60006020828403121561466f5761466e615618565b5b600061467d848285016142c4565b91505092915050565b60006020828403121561469c5761469b615618565b5b60006146aa848285016142d9565b91505092915050565b600080602083850312156146ca576146c9615618565b5b600083013567ffffffffffffffff8111156146e8576146e7615613565b5b6146f48582860161431c565b92509250509250929050565b60006020828403121561471657614715615618565b5b600061472484828501614372565b91505092915050565b60008060006040848603121561474657614745615618565b5b600061475486828701614387565b935050602084013567ffffffffffffffff81111561477557614774615613565b5b614781868287016141ee565b92509250509250925092565b60006147998383614c73565b60808301905092915050565b60006147b18383614d2c565b60208301905092915050565b6147c681615383565b82525050565b6147d581615383565b82525050565b6147ec6147e782615383565b61551f565b82525050565b60006147fd826151c8565b614807818561520e565b935061481283615193565b8060005b8381101561484357815161482a888261478d565b9750614835836151f4565b925050600181019050614816565b5085935050505092915050565b600061485b826151d3565b614865818561521f565b9350614870836151a3565b8060005b838110156148a157815161488888826147a5565b975061489383615201565b925050600181019050614874565b5085935050505092915050565b6148b781615395565b82525050565b6148c681615395565b82525050565b6148d5816153a1565b82525050565b60006148e6826151de565b6148f08185615230565b9350614900818560208601615440565b6149098161561d565b840191505092915050565b600061491f826151e9565b614929818561524c565b9350614939818560208601615440565b6149428161561d565b840191505092915050565b6000614958826151e9565b614962818561525d565b9350614972818560208601615440565b80840191505092915050565b6000815461498b81615473565b614995818661525d565b945060018216600081146149b057600181146149c1576149f4565b60ff198316865281860193506149f4565b6149ca856151b3565b60005b838110156149ec578154818901526001820191506020810190506149cd565b838801955050505b50505092915050565b6000614a0a60148361524c565b9150614a158261563b565b602082019050919050565b6000614a2d60268361524c565b9150614a3882615664565b604082019050919050565b6000614a50601d8361524c565b9150614a5b826156b3565b602082019050919050565b6000614a7360208361524c565b9150614a7e826156dc565b602082019050919050565b6000614a9660138361524c565b9150614aa182615705565b602082019050919050565b6000614ab960108361524c565b9150614ac48261572e565b602082019050919050565b6000614adc60128361524c565b9150614ae782615757565b602082019050919050565b6000614aff601c8361524c565b9150614b0a82615780565b602082019050919050565b6000614b22601d8361524c565b9150614b2d826157a9565b602082019050919050565b6000614b45600e8361524c565b9150614b50826157d2565b602082019050919050565b6000614b6860208361524c565b9150614b73826157fb565b602082019050919050565b6000614b8b60178361524c565b9150614b9682615824565b602082019050919050565b6000614bae600083615241565b9150614bb98261584d565b600082019050919050565b6000614bd160108361524c565b9150614bdc82615850565b602082019050919050565b6000614bf460128361524c565b9150614bff82615879565b602082019050919050565b6000614c17601a8361524c565b9150614c22826158a2565b602082019050919050565b6000614c3a601f8361524c565b9150614c45826158cb565b602082019050919050565b6000614c5d60148361524c565b9150614c68826158f4565b602082019050919050565b608082016000820151614c8960008501826147bd565b506020820151614c9c6020850182614d4a565b506040820151614caf60408501826148ae565b506060820151614cc26060850182614d1d565b50505050565b608082016000820151614cde60008501826147bd565b506020820151614cf16020850182614d4a565b506040820151614d0460408501826148ae565b506060820151614d176060850182614d1d565b50505050565b614d26816153f7565b82525050565b614d3581615406565b82525050565b614d4481615406565b82525050565b614d5381615410565b82525050565b614d6281615424565b82525050565b6000614d7482846147db565b60148201915081905092915050565b6000614d8f828661494d565b9150614d9b828561494d565b9150614da7828461497e565b9150819050949350505050565b6000614dbf82614ba1565b9150819050919050565b6000602082019050614dde60008301846147cc565b92915050565b6000608082019050614df960008301876147cc565b614e0660208301866147cc565b614e136040830185614d3b565b8181036060830152614e2581846148db565b905095945050505050565b60006020820190508181036000830152614e4a81846147f2565b905092915050565b60006020820190508181036000830152614e6c8184614850565b905092915050565b6000602082019050614e8960008301846148bd565b92915050565b6000602082019050614ea460008301846148cc565b92915050565b60006020820190508181036000830152614ec48184614914565b905092915050565b60006020820190508181036000830152614ee5816149fd565b9050919050565b60006020820190508181036000830152614f0581614a20565b9050919050565b60006020820190508181036000830152614f2581614a43565b9050919050565b60006020820190508181036000830152614f4581614a66565b9050919050565b60006020820190508181036000830152614f6581614a89565b9050919050565b60006020820190508181036000830152614f8581614aac565b9050919050565b60006020820190508181036000830152614fa581614acf565b9050919050565b60006020820190508181036000830152614fc581614af2565b9050919050565b60006020820190508181036000830152614fe581614b15565b9050919050565b6000602082019050818103600083015261500581614b38565b9050919050565b6000602082019050818103600083015261502581614b5b565b9050919050565b6000602082019050818103600083015261504581614b7e565b9050919050565b6000602082019050818103600083015261506581614bc4565b9050919050565b6000602082019050818103600083015261508581614be7565b9050919050565b600060208201905081810360008301526150a581614c0a565b9050919050565b600060208201905081810360008301526150c581614c2d565b9050919050565b600060208201905081810360008301526150e581614c50565b9050919050565b60006080820190506151016000830184614cc8565b92915050565b600060208201905061511c6000830184614d3b565b92915050565b60006020820190506151376000830184614d59565b92915050565b6000615147615158565b905061515382826154a5565b919050565b6000604051905090565b600067ffffffffffffffff82111561517d5761517c6155d0565b5b6151868261561d565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061527382615406565b915061527e83615406565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152b3576152b2615543565b5b828201905092915050565b60006152c982615424565b91506152d483615424565b92508260ff038211156152ea576152e9615543565b5b828201905092915050565b600061530082615406565b915061530b83615406565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561534457615343615543565b5b828202905092915050565b600061535a82615406565b915061536583615406565b92508282101561537857615377615543565b5b828203905092915050565b600061538e826153d7565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561545e578082015181840152602081019050615443565b8381111561546d576000848401525b50505050565b6000600282049050600182168061548b57607f821691505b6020821081141561549f5761549e615572565b5b50919050565b6154ae8261561d565b810181811067ffffffffffffffff821117156154cd576154cc6155d0565b5b80604052505050565b60006154e182615406565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561551457615513615543565b5b600182019050919050565b600061552a82615531565b9050919050565b600061553c8261562e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5175616e7469747920657863656564732077616c6c6574206c696d6974000000600082015250565b7f57686974656c697374206d696e74206973206e6f742079657420616374697665600082015250565b7f496e76616c6964204d65726b6c6550726f6f6600000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4e6f74206f776e6572206f722061646d696e0000000000000000000000000000600082015250565b7f4d757374206d696e74206d6f7265207468616e203020746f6b656e7300000000600082015250565b7f5075626c6963206d696e74206973206e6f742079657420616374697665000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5175616e74697479206578636565647320737570706c79000000000000000000600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4261736520555249206973206c6f636b65640000000000000000000000000000600082015250565b7f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4d617820737570706c79206973206c6f636b6564000000000000000000000000600082015250565b61592681615383565b811461593157600080fd5b50565b61593d81615395565b811461594857600080fd5b50565b615954816153a1565b811461595f57600080fd5b50565b61596b816153ab565b811461597657600080fd5b50565b61598281615406565b811461598d57600080fd5b50565b61599981615424565b81146159a457600080fd5b5056fe68747470733a2f2f657868616c652e6d7970696e6174612e636c6f75642f697066732f516d55726178555871684654706f7765755335784d487970503256716a634c6145525854683670626b734b367254a264697066735822122006c76057c941dd93c4a315cda2a1e66c8427df5025257a494ad9084f19c7f57964736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5d224b43eab837aa2ee9c6ed727f1613f301a5e000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f657868616c652e6d7970696e6174612e636c6f75642f697066732f516d526a7945753858663852313339544d6955794376716371697841634576774d567a6d737941347031695061392f0000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://exhale.mypinata.cloud/ipfs/QmRjyEu8Xf8R139TMiUyCvqcqixAcEvwMVzmsyA4p1iPa9/
Arg [1] : admin (address): 0xA5D224B43EAB837aa2Ee9C6Ed727f1613f301A5E

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000a5d224b43eab837aa2ee9c6ed727f1613f301a5e
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000052
Arg [3] : 68747470733a2f2f657868616c652e6d7970696e6174612e636c6f75642f6970
Arg [4] : 66732f516d526a7945753858663852313339544d695579437671637169784163
Arg [5] : 4576774d567a6d737941347031695061392f0000000000000000000000000000


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

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