ETH Price: $3,290.75 (-3.26%)
 

Overview

Max Total Supply

321 PPL

Holders

137

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
6 PPL
0xaf2e45283ec4047c393a7833ac00db6badd272df
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:
PixelPawsLab

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : PixelPawsLab.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";

struct FactoryLab {
    uint256 publicMintPrice;
    uint16  totalSupply;
    uint16  maxSupplyForPublic;
    uint16  maxSupplyForWhitelist;
    uint8   publicMintPerWallet;
    uint8   whitelistMintPerWallet;
    uint8   numberTokensToUpgrade;
}

contract PixelPawsLab is ERC721A, ERC721ABurnable, ERC721AQueryable, Ownable, ReentrancyGuard {
    enum FactoryState {
        PUBLIC,
        WHITELIST,
        UPGRADE,
        CLOSED
    }

    string private _currentBaseURI;

    FactoryLab public _labState = FactoryLab({
        publicMintPrice: 9000000000000000,
        totalSupply: 3333,
        maxSupplyForPublic: 2983,
        maxSupplyForWhitelist: 350,
        publicMintPerWallet: 6,
        whitelistMintPerWallet: 1,
        numberTokensToUpgrade: 3
    });
    FactoryState public _factoryState = FactoryState.CLOSED;

    bytes32 public _merkleRoot;

    mapping(uint256 => bool) private upgradedTokens;
    mapping(address => uint8) private publicMints;
    mapping(address => uint8) private whitelistMints;

    constructor(string memory baseURI) ERC721A("Pixel Paws Lab", "PPL") {
        setBaseURI(baseURI);
    }

    // events
    event UpdateFactoryState(FactoryState indexed _state);
    event UpgradablePaws(uint256[] indexed _tokenIds);
    event BurnablePaws(uint256[] indexed _tokenIds);

    // modifiers
    modifier publicSale(uint16 _quantity) {
        uint256 _totalSupply = totalSupply();

        require(
            _factoryState == FactoryState.PUBLIC,
            "Public sale is not active"
        );
        require(
            _totalSupply + _quantity <= _labState.maxSupplyForPublic,
            "Public was Sold Out!"
        );
        _;
    }
    modifier whitelistSale() {
        require(
            _factoryState == FactoryState.WHITELIST,
            "Whitelist sale is not active"
        );
        _;
    }
    modifier whenUpgradeIsOpen() {
        require(
            _factoryState == FactoryState.UPGRADE,
            "Upgrade is not active"
        );
        _;
    }
    modifier whenSoldOut(uint16 _quantity) {
        uint256 _totalSupply = totalSupply();
        
        require(_totalSupply + _quantity <= _labState.totalSupply, "Sold out!");
        _;
    }

    // Mint
    function mint(uint8 _quantity)
        public
        payable
        nonReentrant
        publicSale(_quantity)
        whenSoldOut(_quantity)
    {
        require(
            publicMints[msg.sender] + _quantity  <= _labState.publicMintPerWallet,
            "Allowed mints exceeded."
        );
        require(
            msg.value == _labState.publicMintPrice * _quantity,
            "Ether sent is not correct"
        );

        publicMints[msg.sender]++;
        _safeMint(msg.sender, _quantity);
    }

    function verify(bytes32[] memory _proof) private view returns (bool) {
        bytes32 _leaf = keccak256(abi.encodePacked(msg.sender));

        return MerkleProof.verify(_proof, _merkleRoot, _leaf);
    }

    function whitelistMint(bytes32[] calldata _proof, uint8 _quantity)
        public
        nonReentrant
        whitelistSale
        whenSoldOut(_quantity)
    {
        require(verify(_proof), "Address not on Whitelist");
        require(
            whitelistMints[msg.sender] + _quantity  <= _labState.whitelistMintPerWallet,
            "Allowed mints exceeded."
        );

        whitelistMints[msg.sender]++;
        _safeMint(msg.sender, _quantity);
    }

    function upgrade(uint256[] memory _tokenIds)
        public
        nonReentrant
        whenUpgradeIsOpen
    {
        uint256 tokenLength = _tokenIds.length;

        require(tokenLength > 0, "Incorrect number of tokens");
        require(
            tokenLength % _labState.numberTokensToUpgrade == 0,
            "Incorrect number of tokens"
        );

        uint256 amountUpgradeTokens = tokenLength / _labState.numberTokensToUpgrade;

        uint256[] memory burnedTokens = new uint[](tokenLength - amountUpgradeTokens);
        uint256[] memory upgradeTokens = new uint[](amountUpgradeTokens);

        for(uint8 i = 0; i < tokenLength; ++i) {
            require(ownerOf(_tokenIds[i]) == msg.sender, "Must own all tokens!");
            require(!upgradedTokens[_tokenIds[i]], "You can't upgrade a token!");

            if (i < amountUpgradeTokens) {
                upgradedTokens[_tokenIds[i]] = true;
                upgradeTokens[i] = _tokenIds[i];
                continue;
            }
            
            burnedTokens[i - amountUpgradeTokens] = _tokenIds[i];
            _burn(_tokenIds[i]);
        }

        emit UpgradablePaws(upgradeTokens);
        emit BurnablePaws(burnedTokens);
    }

    // by owner
    function setBaseURI(string memory baseURI) public onlyOwner {
        _currentBaseURI = baseURI;
    }

    function toggleState(FactoryState _state) public onlyOwner {
        _factoryState = _state;
        emit UpdateFactoryState(_factoryState);
    }

    function setMerkleRoot(bytes32 root) public onlyOwner {
        _merkleRoot = root;
    }

    function setPublicPerWallet(uint8 _quantity) public onlyOwner {
        _labState.publicMintPerWallet = _quantity;
    }

    function setWhitelistPerWallet(uint8 _quantity) public onlyOwner {
        _labState.whitelistMintPerWallet = _quantity;
    }

    function withdraw() public onlyOwner nonReentrant {
        (bool os, ) = payable(msg.sender).call{value: address(this).balance}(
            ""
        );
        require(os, "Transfer failed.");
    }

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

File 3 of 11 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * 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.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
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 simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _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}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

File 5 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 6 of 11 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 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":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","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":"_tokenIds","type":"uint256[]"}],"name":"BurnablePaws","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum PixelPawsLab.FactoryState","name":"_state","type":"uint8"}],"name":"UpdateFactoryState","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"UpgradablePaws","type":"event"},{"inputs":[],"name":"_factoryState","outputs":[{"internalType":"enum PixelPawsLab.FactoryState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_labState","outputs":[{"internalType":"uint256","name":"publicMintPrice","type":"uint256"},{"internalType":"uint16","name":"totalSupply","type":"uint16"},{"internalType":"uint16","name":"maxSupplyForPublic","type":"uint16"},{"internalType":"uint16","name":"maxSupplyForWhitelist","type":"uint16"},{"internalType":"uint8","name":"publicMintPerWallet","type":"uint8"},{"internalType":"uint8","name":"whitelistMintPerWallet","type":"uint8"},{"internalType":"uint8","name":"numberTokensToUpgrade","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":[{"internalType":"uint8","name":"_quantity","type":"uint8"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_quantity","type":"uint8"}],"name":"setPublicPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_quantity","type":"uint8"}],"name":"setWhitelistPerWallet","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":"enum PixelPawsLab.FactoryState","name":"_state","type":"uint8"}],"name":"toggleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint8","name":"_quantity","type":"uint8"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060e00160405280661ff973cafa80008152602001610d0561ffff168152602001610ba761ffff16815260200161015e61ffff168152602001600660ff168152602001600160ff168152602001600360ff16815250600b6000820151816000015560208201518160010160006101000a81548161ffff021916908361ffff16021790555060408201518160010160026101000a81548161ffff021916908361ffff16021790555060608201518160010160046101000a81548161ffff021916908361ffff16021790555060808201518160010160066101000a81548160ff021916908360ff16021790555060a08201518160010160076101000a81548160ff021916908360ff16021790555060c08201518160010160086101000a81548160ff021916908360ff16021790555050506003600d60006101000a81548160ff021916908360038111156200015f576200015e62000436565b5b02179055503480156200017157600080fd5b506040516200589f3803806200589f8339818101604052810190620001979190620005f8565b6040518060400160405280600e81526020017f506978656c2050617773204c61620000000000000000000000000000000000008152506040518060400160405280600381526020017f50504c0000000000000000000000000000000000000000000000000000000000815250816002908162000214919062000894565b50806003908162000226919062000894565b50620002376200027f60201b60201c565b60008190555050506200025f620002536200028860201b60201c565b6200029060201b60201c565b600160098190555062000278816200035660201b60201c565b50620009fe565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003666200037b60201b60201c565b80600a908162000377919062000894565b5050565b6200038b6200028860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003b16200040c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200040a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200040190620009dc565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620004ce8262000483565b810181811067ffffffffffffffff82111715620004f057620004ef62000494565b5b80604052505050565b60006200050562000465565b9050620005138282620004c3565b919050565b600067ffffffffffffffff82111562000536576200053562000494565b5b620005418262000483565b9050602081019050919050565b60005b838110156200056e57808201518184015260208101905062000551565b60008484015250505050565b6000620005916200058b8462000518565b620004f9565b905082815260208101848484011115620005b057620005af6200047e565b5b620005bd8482856200054e565b509392505050565b600082601f830112620005dd57620005dc62000479565b5b8151620005ef8482602086016200057a565b91505092915050565b6000602082840312156200061157620006106200046f565b5b600082015167ffffffffffffffff81111562000632576200063162000474565b5b6200064084828501620005c5565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200069c57607f821691505b602082108103620006b257620006b162000654565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200071c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006dd565b620007288683620006dd565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620007756200076f620007698462000740565b6200074a565b62000740565b9050919050565b6000819050919050565b620007918362000754565b620007a9620007a0826200077c565b848454620006ea565b825550505050565b600090565b620007c0620007b1565b620007cd81848462000786565b505050565b5b81811015620007f557620007e9600082620007b6565b600181019050620007d3565b5050565b601f82111562000844576200080e81620006b8565b6200081984620006cd565b8101602085101562000829578190505b620008416200083885620006cd565b830182620007d2565b50505b505050565b600082821c905092915050565b6000620008696000198460080262000849565b1980831691505092915050565b600062000884838362000856565b9150826002028217905092915050565b6200089f8262000649565b67ffffffffffffffff811115620008bb57620008ba62000494565b5b620008c7825462000683565b620008d4828285620007f9565b600060209050601f8311600181146200090c5760008415620008f7578287015190505b62000903858262000876565b86555062000973565b601f1984166200091c86620006b8565b60005b8281101562000946578489015182556001820191506020850194506020810190506200091f565b8683101562000966578489015162000962601f89168262000856565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620009c46020836200097b565b9150620009d1826200098c565b602082019050919050565b60006020820190508181036000830152620009f781620009b5565b9050919050565b614e918062000a0e6000396000f3fe6080604052600436106101f95760003560e01c80636352211e1161010d57806399a2557a116100a0578063bf91afff1161006f578063bf91afff146106d6578063c23dc68f14610707578063c87b56dd14610744578063e985e9c514610781578063f2fde38b146107be576101f9565b806399a2557a14610629578063a22cb46514610666578063b88d4fde1461068f578063ba3a78b6146106ab576101f9565b80637cb64759116100dc5780637cb647591461056d5780638462151c146105965780638da5cb5b146105d357806395d89b41146105fe576101f9565b80636352211e146104c05780636ecd2306146104fd57806370a0823114610519578063715018a614610556576101f9565b80632fc37ab21161019057806342966c681161015f57806342966c68146103df57806345cc03fb146104085780634c1c55201461043157806355f804b31461045a5780635bbb217714610483576101f9565b80632fc37ab2146103585780633ccfd60b146103835780633f0f5b861461039a57806342842e0e146103c3576101f9565b8063095ea7b3116101cc578063095ea7b3146102cc5780630f800356146102e857806318160ddd1461031157806323b872dd1461033c576101f9565b806301ffc9a7146101fe57806302d179c81461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b50610225600480360381019061022091906131f0565b6107e7565b6040516102329190613238565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d91906132f1565b610879565b005b34801561027057600080fd5b50610279610b3c565b60405161028691906133e1565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b19190613439565b610bce565b6040516102c391906134a7565b60405180910390f35b6102e660048036038101906102e191906134ee565b610c4d565b005b3480156102f457600080fd5b5061030f600480360381019061030a919061366c565b610d91565b005b34801561031d57600080fd5b50610326611254565b60405161033391906136c4565b60405180910390f35b610356600480360381019061035191906136df565b61126b565b005b34801561036457600080fd5b5061036d61158d565b60405161037a919061374b565b60405180910390f35b34801561038f57600080fd5b50610398611593565b005b3480156103a657600080fd5b506103c160048036038101906103bc919061378b565b61165a565b005b6103dd60048036038101906103d891906136df565b6116dd565b005b3480156103eb57600080fd5b5061040660048036038101906104019190613439565b6116fd565b005b34801561041457600080fd5b5061042f600480360381019061042a91906137b8565b61170b565b005b34801561043d57600080fd5b50610458600480360381019061045391906137b8565b611734565b005b34801561046657600080fd5b50610481600480360381019061047c919061389a565b61175d565b005b34801561048f57600080fd5b506104aa60048036038101906104a59190613939565b611778565b6040516104b79190613ae9565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e29190613439565b61183b565b6040516104f491906134a7565b60405180910390f35b610517600480360381019061051291906137b8565b61184d565b005b34801561052557600080fd5b50610540600480360381019061053b9190613b0b565b611b55565b60405161054d91906136c4565b60405180910390f35b34801561056257600080fd5b5061056b611c0d565b005b34801561057957600080fd5b50610594600480360381019061058f9190613b64565b611c21565b005b3480156105a257600080fd5b506105bd60048036038101906105b89190613b0b565b611c33565b6040516105ca9190613c4f565b60405180910390f35b3480156105df57600080fd5b506105e8611d76565b6040516105f591906134a7565b60405180910390f35b34801561060a57600080fd5b50610613611da0565b60405161062091906133e1565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b9190613c71565b611e32565b60405161065d9190613c4f565b60405180910390f35b34801561067257600080fd5b5061068d60048036038101906106889190613cf0565b61203e565b005b6106a960048036038101906106a49190613dd1565b612149565b005b3480156106b757600080fd5b506106c06121bc565b6040516106cd9190613ecb565b60405180910390f35b3480156106e257600080fd5b506106eb6121cf565b6040516106fe9796959493929190613f12565b60405180910390f35b34801561071357600080fd5b5061072e60048036038101906107299190613439565b612250565b60405161073b9190613fd6565b60405180910390f35b34801561075057600080fd5b5061076b60048036038101906107669190613439565b6122ba565b60405161077891906133e1565b60405180910390f35b34801561078d57600080fd5b506107a860048036038101906107a39190613ff1565b612358565b6040516107b59190613238565b60405180910390f35b3480156107ca57600080fd5b506107e560048036038101906107e09190613b0b565b6123ec565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108725750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61088161246f565b6001600381111561089557610894613e54565b5b600d60009054906101000a900460ff1660038111156108b7576108b6613e54565b5b146108f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ee9061407d565b60405180910390fd5b8060ff166000610905611254565b9050600b60010160009054906101000a900461ffff1661ffff168261ffff168261092f91906140cc565b1115610970576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109679061414c565b60405180910390fd5b6109ba858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506124be565b6109f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f0906141b8565b60405180910390fd5b600b60010160079054906101000a900460ff1660ff1683601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610a6791906141d8565b60ff161115610aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa290614259565b60405180910390fd5b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff1680929190610b0790614279565b91906101000a81548160ff021916908360ff16021790555050610b2d338460ff166124ff565b5050610b3761251d565b505050565b606060028054610b4b906142d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b77906142d1565b8015610bc45780601f10610b9957610100808354040283529160200191610bc4565b820191906000526020600020905b815481529060010190602001808311610ba757829003601f168201915b5050505050905090565b6000610bd982612527565b610c0f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c588261183b565b90508073ffffffffffffffffffffffffffffffffffffffff16610c79612586565b73ffffffffffffffffffffffffffffffffffffffff1614610cdc57610ca581610ca0612586565b612358565b610cdb576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610d9961246f565b60026003811115610dad57610dac613e54565b5b600d60009054906101000a900460ff166003811115610dcf57610dce613e54565b5b14610e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e069061434e565b60405180910390fd5b60008151905060008111610e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4f906143ba565b60405180910390fd5b6000600b60010160089054906101000a900460ff1660ff1682610e7b9190614409565b14610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb2906143ba565b60405180910390fd5b6000600b60010160089054906101000a900460ff1660ff1682610ede919061443a565b905060008183610eee919061446b565b67ffffffffffffffff811115610f0757610f0661352e565b5b604051908082528060200260200182016040528015610f355781602001602082028036833780820191505090505b50905060008267ffffffffffffffff811115610f5457610f5361352e565b5b604051908082528060200260200182016040528015610f825781602001602082028036833780820191505090505b50905060005b848160ff1610156111c0573373ffffffffffffffffffffffffffffffffffffffff16610fd0878360ff1681518110610fc357610fc261449f565b5b602002602001015161183b565b73ffffffffffffffffffffffffffffffffffffffff1614611026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101d9061451a565b60405180910390fd5b600f6000878360ff16815181106110405761103f61449f565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff16156110a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109b90614586565b60405180910390fd5b838160ff16101561113d576001600f6000888460ff16815181106110cb576110ca61449f565b5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550858160ff168151811061110e5761110d61449f565b5b6020026020010151828260ff168151811061112c5761112b61449f565b5b6020026020010181815250506111af565b858160ff16815181106111535761115261449f565b5b602002602001015183858360ff1661116b919061446b565b8151811061117c5761117b61449f565b5b6020026020010181815250506111ae868260ff16815181106111a1576111a061449f565b5b602002602001015161258e565b5b806111b990614279565b9050610f88565b50806040516111cf9190614636565b60405180910390207fe9783469e089b2e31632809c8bc3bbd676496202a727f27347e197a98e2d79f260405160405180910390a2816040516112119190614636565b60405180910390207fe99b110511fee5757f748da9938a941f8c8dfd5df1cf86917fb9619e180001ed60405160405180910390a25050505061125161251d565b50565b600061125e61259c565b6001546000540303905090565b6000611276826125a5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112dd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112e984612671565b915091506112ff81876112fa612586565b612698565b61134b576113148661130f612586565b612358565b61134a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113b1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113be86868660016126dc565b80156113c957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611497856114738888876126e2565b7c02000000000000000000000000000000000000000000000000000000001761270a565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361151d576000600185019050600060046000838152602001908152602001600020540361151b57600054811461151a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115858686866001612735565b505050505050565b600e5481565b61159b61273b565b6115a361246f565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516115c99061467e565b60006040518083038185875af1925050503d8060008114611606576040519150601f19603f3d011682016040523d82523d6000602084013e61160b565b606091505b505090508061164f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611646906146df565b60405180910390fd5b5061165861251d565b565b61166261273b565b80600d60006101000a81548160ff0219169083600381111561168757611686613e54565b5b0217905550600d60009054906101000a900460ff1660038111156116ae576116ad613e54565b5b7f9757e20fff637f1e89ea91ac43d3f378fca30e3dacc8902c9ac50f81f4d93fcb60405160405180910390a250565b6116f883838360405180602001604052806000815250612149565b505050565b6117088160016127b9565b50565b61171361273b565b80600b60010160066101000a81548160ff021916908360ff16021790555050565b61173c61273b565b80600b60010160076101000a81548160ff021916908360ff16021790555050565b61176561273b565b80600a908161177491906148ab565b5050565b6060600083839050905060008167ffffffffffffffff81111561179e5761179d61352e565b5b6040519080825280602002602001820160405280156117d757816020015b6117c4613135565b8152602001906001900390816117bc5790505b50905060005b82811461182f576118068686838181106117fa576117f961449f565b5b90506020020135612250565b8282815181106118195761181861449f565b5b60200260200101819052508060010190506117dd565b50809250505092915050565b6000611846826125a5565b9050919050565b61185561246f565b8060ff166000611863611254565b90506000600381111561187957611878613e54565b5b600d60009054906101000a900460ff16600381111561189b5761189a613e54565b5b146118db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d2906149c9565b60405180910390fd5b600b60010160029054906101000a900461ffff1661ffff168261ffff168261190391906140cc565b1115611944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193b90614a35565b60405180910390fd5b8260ff166000611952611254565b9050600b60010160009054906101000a900461ffff1661ffff168261ffff168261197c91906140cc565b11156119bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b49061414c565b60405180910390fd5b600b60010160069054906101000a900460ff1660ff1685601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611a2b91906141d8565b60ff161115611a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6690614259565b60405180910390fd5b8460ff16600b60000154611a839190614a55565b3414611ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abb90614ae3565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff1680929190611b2090614279565b91906101000a81548160ff021916908360ff16021790555050611b46338660ff166124ff565b50505050611b5261251d565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bbc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611c1561273b565b611c1f6000612a0b565b565b611c2961273b565b80600e8190555050565b60606000806000611c4385611b55565b905060008167ffffffffffffffff811115611c6157611c6061352e565b5b604051908082528060200260200182016040528015611c8f5781602001602082028036833780820191505090505b509050611c9a613135565b6000611ca461259c565b90505b838614611d6857611cb781612ad1565b91508160400151611d5d57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611d0257816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611d5c5780838780600101985081518110611d4f57611d4e61449f565b5b6020026020010181815250505b5b806001019050611ca7565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611daf906142d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ddb906142d1565b8015611e285780601f10611dfd57610100808354040283529160200191611e28565b820191906000526020600020905b815481529060010190602001808311611e0b57829003601f168201915b5050505050905090565b6060818310611e6d576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611e78612afc565b9050611e8261259c565b851015611e9457611e9161259c565b94505b80841115611ea0578093505b6000611eab87611b55565b905084861015611ece576000868603905081811015611ec8578091505b50611ed3565b600090505b60008167ffffffffffffffff811115611eef57611eee61352e565b5b604051908082528060200260200182016040528015611f1d5781602001602082028036833780820191505090505b50905060008203611f345780945050505050612037565b6000611f3f88612250565b905060008160400151611f5457816000015190505b60008990505b888114158015611f6a5750848714155b1561202957611f7881612ad1565b9250826040015161201e57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611fc357826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361201d57808488806001019950815181106120105761200f61449f565b5b6020026020010181815250505b5b806001019050611f5a565b508583528296505050505050505b9392505050565b806007600061204b612586565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120f8612586565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161213d9190613238565b60405180910390a35050565b61215484848461126b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121b65761217f84848484612b05565b6121b5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900460ff1681565b600b8060000154908060010160009054906101000a900461ffff16908060010160029054906101000a900461ffff16908060010160049054906101000a900461ffff16908060010160069054906101000a900460ff16908060010160079054906101000a900460ff16908060010160089054906101000a900460ff16905087565b612258613135565b612260613135565b61226861259c565b83108061227c5750612278612afc565b8310155b1561228a57809150506122b5565b61229383612ad1565b90508060400151156122a857809150506122b5565b6122b183612c55565b9150505b919050565b60606122c582612527565b6122fb576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612305612c75565b905060008151036123255760405180602001604052806000815250612350565b8061232f84612d07565b604051602001612340929190614b3f565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6123f461273b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245a90614bd5565b60405180910390fd5b61246c81612a0b565b50565b6002600954036124b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ab90614c41565b60405180910390fd5b6002600981905550565b600080336040516020016124d29190614ca9565b6040516020818303038152906040528051906020012090506124f783600e5483612d57565b915050919050565b612519828260405180602001604052806000815250612d6e565b5050565b6001600981905550565b60008161253261259c565b11158015612541575060005482105b801561257f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6125998160006127b9565b50565b60006001905090565b600080829050806125b461259c565b1161263a576000548110156126395760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612637575b6000810361262d576004600083600190039350838152602001908152602001600020549050612603565b809250505061266c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86126f9868684612e0b565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612743612e14565b73ffffffffffffffffffffffffffffffffffffffff16612761611d76565b73ffffffffffffffffffffffffffffffffffffffff16146127b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ae90614d10565b60405180910390fd5b565b60006127c4836125a5565b905060008190506000806127d786612671565b915091508415612840576127f381846127ee612586565b612698565b61283f5761280883612803612586565b612358565b61283e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b61284e8360008860016126dc565b801561285957600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612901836128be856000886126e2565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761270a565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036129875760006001870190506000600460008381526020019081526020016000205403612985576000548114612984578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129f1836000886001612735565b600160008154809291906001019190505550505050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612ad9613135565b612af56004600084815260200190815260200160002054612e1c565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b2b612586565b8786866040518563ffffffff1660e01b8152600401612b4d9493929190614d85565b6020604051808303816000875af1925050508015612b8957506040513d601f19601f82011682018060405250810190612b869190614de6565b60015b612c02573d8060008114612bb9576040519150601f19603f3d011682016040523d82523d6000602084013e612bbe565b606091505b506000815103612bfa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612c5d613135565b612c6e612c69836125a5565b612e1c565b9050919050565b6060600a8054612c84906142d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612cb0906142d1565b8015612cfd5780601f10612cd257610100808354040283529160200191612cfd565b820191906000526020600020905b815481529060010190602001808311612ce057829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612d4257600184039350600a81066030018453600a8104905080612d20575b50828103602084039350808452505050919050565b600082612d648584612ed2565b1490509392505050565b612d788383612f28565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612e0657600080549050600083820390505b612db86000868380600101945086612b05565b612dee576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612da5578160005414612e0357600080fd5b50505b505050565b60009392505050565b600033905090565b612e24613135565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015612f1d57612f0882868381518110612efb57612efa61449f565b5b60200260200101516130e3565b91508080612f1590614e13565b915050612edb565b508091505092915050565b60008054905060008203612f68576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f7560008483856126dc565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fec83612fdd60008660006126e2565b612fe68561310e565b1761270a565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461308d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613052565b50600082036130c8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506130de6000848385612735565b505050565b60008183106130fb576130f6828461311e565b613106565b613105838361311e565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131cd81613198565b81146131d857600080fd5b50565b6000813590506131ea816131c4565b92915050565b6000602082840312156132065761320561318e565b5b6000613214848285016131db565b91505092915050565b60008115159050919050565b6132328161321d565b82525050565b600060208201905061324d6000830184613229565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261327857613277613253565b5b8235905067ffffffffffffffff81111561329557613294613258565b5b6020830191508360208202830111156132b1576132b061325d565b5b9250929050565b600060ff82169050919050565b6132ce816132b8565b81146132d957600080fd5b50565b6000813590506132eb816132c5565b92915050565b60008060006040848603121561330a5761330961318e565b5b600084013567ffffffffffffffff81111561332857613327613193565b5b61333486828701613262565b93509350506020613347868287016132dc565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b8381101561338b578082015181840152602081019050613370565b60008484015250505050565b6000601f19601f8301169050919050565b60006133b382613351565b6133bd818561335c565b93506133cd81856020860161336d565b6133d681613397565b840191505092915050565b600060208201905081810360008301526133fb81846133a8565b905092915050565b6000819050919050565b61341681613403565b811461342157600080fd5b50565b6000813590506134338161340d565b92915050565b60006020828403121561344f5761344e61318e565b5b600061345d84828501613424565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061349182613466565b9050919050565b6134a181613486565b82525050565b60006020820190506134bc6000830184613498565b92915050565b6134cb81613486565b81146134d657600080fd5b50565b6000813590506134e8816134c2565b92915050565b600080604083850312156135055761350461318e565b5b6000613513858286016134d9565b925050602061352485828601613424565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61356682613397565b810181811067ffffffffffffffff821117156135855761358461352e565b5b80604052505050565b6000613598613184565b90506135a4828261355d565b919050565b600067ffffffffffffffff8211156135c4576135c361352e565b5b602082029050602081019050919050565b60006135e86135e3846135a9565b61358e565b9050808382526020820190506020840283018581111561360b5761360a61325d565b5b835b8181101561363457806136208882613424565b84526020840193505060208101905061360d565b5050509392505050565b600082601f83011261365357613652613253565b5b81356136638482602086016135d5565b91505092915050565b6000602082840312156136825761368161318e565b5b600082013567ffffffffffffffff8111156136a05761369f613193565b5b6136ac8482850161363e565b91505092915050565b6136be81613403565b82525050565b60006020820190506136d960008301846136b5565b92915050565b6000806000606084860312156136f8576136f761318e565b5b6000613706868287016134d9565b9350506020613717868287016134d9565b925050604061372886828701613424565b9150509250925092565b6000819050919050565b61374581613732565b82525050565b6000602082019050613760600083018461373c565b92915050565b6004811061377357600080fd5b50565b60008135905061378581613766565b92915050565b6000602082840312156137a1576137a061318e565b5b60006137af84828501613776565b91505092915050565b6000602082840312156137ce576137cd61318e565b5b60006137dc848285016132dc565b91505092915050565b600080fd5b600067ffffffffffffffff8211156138055761380461352e565b5b61380e82613397565b9050602081019050919050565b82818337600083830152505050565b600061383d613838846137ea565b61358e565b905082815260208101848484011115613859576138586137e5565b5b61386484828561381b565b509392505050565b600082601f83011261388157613880613253565b5b813561389184826020860161382a565b91505092915050565b6000602082840312156138b0576138af61318e565b5b600082013567ffffffffffffffff8111156138ce576138cd613193565b5b6138da8482850161386c565b91505092915050565b60008083601f8401126138f9576138f8613253565b5b8235905067ffffffffffffffff81111561391657613915613258565b5b6020830191508360208202830111156139325761393161325d565b5b9250929050565b600080602083850312156139505761394f61318e565b5b600083013567ffffffffffffffff81111561396e5761396d613193565b5b61397a858286016138e3565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6139bb81613486565b82525050565b600067ffffffffffffffff82169050919050565b6139de816139c1565b82525050565b6139ed8161321d565b82525050565b600062ffffff82169050919050565b613a0b816139f3565b82525050565b608082016000820151613a2760008501826139b2565b506020820151613a3a60208501826139d5565b506040820151613a4d60408501826139e4565b506060820151613a606060850182613a02565b50505050565b6000613a728383613a11565b60808301905092915050565b6000602082019050919050565b6000613a9682613986565b613aa08185613991565b9350613aab836139a2565b8060005b83811015613adc578151613ac38882613a66565b9750613ace83613a7e565b925050600181019050613aaf565b5085935050505092915050565b60006020820190508181036000830152613b038184613a8b565b905092915050565b600060208284031215613b2157613b2061318e565b5b6000613b2f848285016134d9565b91505092915050565b613b4181613732565b8114613b4c57600080fd5b50565b600081359050613b5e81613b38565b92915050565b600060208284031215613b7a57613b7961318e565b5b6000613b8884828501613b4f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613bc681613403565b82525050565b6000613bd88383613bbd565b60208301905092915050565b6000602082019050919050565b6000613bfc82613b91565b613c068185613b9c565b9350613c1183613bad565b8060005b83811015613c42578151613c298882613bcc565b9750613c3483613be4565b925050600181019050613c15565b5085935050505092915050565b60006020820190508181036000830152613c698184613bf1565b905092915050565b600080600060608486031215613c8a57613c8961318e565b5b6000613c98868287016134d9565b9350506020613ca986828701613424565b9250506040613cba86828701613424565b9150509250925092565b613ccd8161321d565b8114613cd857600080fd5b50565b600081359050613cea81613cc4565b92915050565b60008060408385031215613d0757613d0661318e565b5b6000613d15858286016134d9565b9250506020613d2685828601613cdb565b9150509250929050565b600067ffffffffffffffff821115613d4b57613d4a61352e565b5b613d5482613397565b9050602081019050919050565b6000613d74613d6f84613d30565b61358e565b905082815260208101848484011115613d9057613d8f6137e5565b5b613d9b84828561381b565b509392505050565b600082601f830112613db857613db7613253565b5b8135613dc8848260208601613d61565b91505092915050565b60008060008060808587031215613deb57613dea61318e565b5b6000613df9878288016134d9565b9450506020613e0a878288016134d9565b9350506040613e1b87828801613424565b925050606085013567ffffffffffffffff811115613e3c57613e3b613193565b5b613e4887828801613da3565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110613e9457613e93613e54565b5b50565b6000819050613ea582613e83565b919050565b6000613eb582613e97565b9050919050565b613ec581613eaa565b82525050565b6000602082019050613ee06000830184613ebc565b92915050565b600061ffff82169050919050565b613efd81613ee6565b82525050565b613f0c816132b8565b82525050565b600060e082019050613f27600083018a6136b5565b613f346020830189613ef4565b613f416040830188613ef4565b613f4e6060830187613ef4565b613f5b6080830186613f03565b613f6860a0830185613f03565b613f7560c0830184613f03565b98975050505050505050565b608082016000820151613f9760008501826139b2565b506020820151613faa60208501826139d5565b506040820151613fbd60408501826139e4565b506060820151613fd06060850182613a02565b50505050565b6000608082019050613feb6000830184613f81565b92915050565b600080604083850312156140085761400761318e565b5b6000614016858286016134d9565b9250506020614027858286016134d9565b9150509250929050565b7f57686974656c6973742073616c65206973206e6f742061637469766500000000600082015250565b6000614067601c8361335c565b915061407282614031565b602082019050919050565b600060208201905081810360008301526140968161405a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140d782613403565b91506140e283613403565b92508282019050808211156140fa576140f961409d565b5b92915050565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b600061413660098361335c565b915061414182614100565b602082019050919050565b6000602082019050818103600083015261416581614129565b9050919050565b7f41646472657373206e6f74206f6e2057686974656c6973740000000000000000600082015250565b60006141a260188361335c565b91506141ad8261416c565b602082019050919050565b600060208201905081810360008301526141d181614195565b9050919050565b60006141e3826132b8565b91506141ee836132b8565b9250828201905060ff8111156142075761420661409d565b5b92915050565b7f416c6c6f776564206d696e74732065786365656465642e000000000000000000600082015250565b600061424360178361335c565b915061424e8261420d565b602082019050919050565b6000602082019050818103600083015261427281614236565b9050919050565b6000614284826132b8565b915060ff82036142975761429661409d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806142e957607f821691505b6020821081036142fc576142fb6142a2565b5b50919050565b7f55706772616465206973206e6f74206163746976650000000000000000000000600082015250565b600061433860158361335c565b915061434382614302565b602082019050919050565b600060208201905081810360008301526143678161432b565b9050919050565b7f496e636f7272656374206e756d626572206f6620746f6b656e73000000000000600082015250565b60006143a4601a8361335c565b91506143af8261436e565b602082019050919050565b600060208201905081810360008301526143d381614397565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061441482613403565b915061441f83613403565b92508261442f5761442e6143da565b5b828206905092915050565b600061444582613403565b915061445083613403565b9250826144605761445f6143da565b5b828204905092915050565b600061447682613403565b915061448183613403565b92508282039050818111156144995761449861409d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d757374206f776e20616c6c20746f6b656e7321000000000000000000000000600082015250565b600061450460148361335c565b915061450f826144ce565b602082019050919050565b60006020820190508181036000830152614533816144f7565b9050919050565b7f596f752063616e27742075706772616465206120746f6b656e21000000000000600082015250565b6000614570601a8361335c565b915061457b8261453a565b602082019050919050565b6000602082019050818103600083015261459f81614563565b9050919050565b600081905092915050565b6145ba81613403565b82525050565b60006145cc83836145b1565b60208301905092915050565b60006145e382613b91565b6145ed81856145a6565b93506145f883613bad565b8060005b8381101561462957815161461088826145c0565b975061461b83613be4565b9250506001810190506145fc565b5085935050505092915050565b600061464282846145d8565b915081905092915050565b600081905092915050565b50565b600061466860008361464d565b915061467382614658565b600082019050919050565b60006146898261465b565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b60006146c960108361335c565b91506146d482614693565b602082019050919050565b600060208201905081810360008301526146f8816146bc565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147617fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614724565b61476b8683614724565b95508019841693508086168417925050509392505050565b6000819050919050565b60006147a86147a361479e84613403565b614783565b613403565b9050919050565b6000819050919050565b6147c28361478d565b6147d66147ce826147af565b848454614731565b825550505050565b600090565b6147eb6147de565b6147f68184846147b9565b505050565b5b8181101561481a5761480f6000826147e3565b6001810190506147fc565b5050565b601f82111561485f57614830816146ff565b61483984614714565b81016020851015614848578190505b61485c61485485614714565b8301826147fb565b50505b505050565b600082821c905092915050565b600061488260001984600802614864565b1980831691505092915050565b600061489b8383614871565b9150826002028217905092915050565b6148b482613351565b67ffffffffffffffff8111156148cd576148cc61352e565b5b6148d782546142d1565b6148e282828561481e565b600060209050601f8311600181146149155760008415614903578287015190505b61490d858261488f565b865550614975565b601f198416614923866146ff565b60005b8281101561494b57848901518255600182019150602085019450602081019050614926565b868310156149685784890151614964601f891682614871565b8355505b6001600288020188555050505b505050505050565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b60006149b360198361335c565b91506149be8261497d565b602082019050919050565b600060208201905081810360008301526149e2816149a6565b9050919050565b7f5075626c69632077617320536f6c64204f757421000000000000000000000000600082015250565b6000614a1f60148361335c565b9150614a2a826149e9565b602082019050919050565b60006020820190508181036000830152614a4e81614a12565b9050919050565b6000614a6082613403565b9150614a6b83613403565b9250828202614a7981613403565b91508282048414831517614a9057614a8f61409d565b5b5092915050565b7f45746865722073656e74206973206e6f7420636f727265637400000000000000600082015250565b6000614acd60198361335c565b9150614ad882614a97565b602082019050919050565b60006020820190508181036000830152614afc81614ac0565b9050919050565b600081905092915050565b6000614b1982613351565b614b238185614b03565b9350614b3381856020860161336d565b80840191505092915050565b6000614b4b8285614b0e565b9150614b578284614b0e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614bbf60268361335c565b9150614bca82614b63565b604082019050919050565b60006020820190508181036000830152614bee81614bb2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614c2b601f8361335c565b9150614c3682614bf5565b602082019050919050565b60006020820190508181036000830152614c5a81614c1e565b9050919050565b60008160601b9050919050565b6000614c7982614c61565b9050919050565b6000614c8b82614c6e565b9050919050565b614ca3614c9e82613486565b614c80565b82525050565b6000614cb58284614c92565b60148201915081905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614cfa60208361335c565b9150614d0582614cc4565b602082019050919050565b60006020820190508181036000830152614d2981614ced565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614d5782614d30565b614d618185614d3b565b9350614d7181856020860161336d565b614d7a81613397565b840191505092915050565b6000608082019050614d9a6000830187613498565b614da76020830186613498565b614db460408301856136b5565b8181036060830152614dc68184614d4c565b905095945050505050565b600081519050614de0816131c4565b92915050565b600060208284031215614dfc57614dfb61318e565b5b6000614e0a84828501614dd1565b91505092915050565b6000614e1e82613403565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614e5057614e4f61409d565b5b60018201905091905056fea26469706673582212203a66957596d0e0ff4927acf627e7c3a4446a397d3bc2422c9f8c6748014e3beb64736f6c634300081200330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6578706572696d656e742e706978656c2d706177732d6c61622e696f2f6d657461646174612f000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80636352211e1161010d57806399a2557a116100a0578063bf91afff1161006f578063bf91afff146106d6578063c23dc68f14610707578063c87b56dd14610744578063e985e9c514610781578063f2fde38b146107be576101f9565b806399a2557a14610629578063a22cb46514610666578063b88d4fde1461068f578063ba3a78b6146106ab576101f9565b80637cb64759116100dc5780637cb647591461056d5780638462151c146105965780638da5cb5b146105d357806395d89b41146105fe576101f9565b80636352211e146104c05780636ecd2306146104fd57806370a0823114610519578063715018a614610556576101f9565b80632fc37ab21161019057806342966c681161015f57806342966c68146103df57806345cc03fb146104085780634c1c55201461043157806355f804b31461045a5780635bbb217714610483576101f9565b80632fc37ab2146103585780633ccfd60b146103835780633f0f5b861461039a57806342842e0e146103c3576101f9565b8063095ea7b3116101cc578063095ea7b3146102cc5780630f800356146102e857806318160ddd1461031157806323b872dd1461033c576101f9565b806301ffc9a7146101fe57806302d179c81461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b50610225600480360381019061022091906131f0565b6107e7565b6040516102329190613238565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d91906132f1565b610879565b005b34801561027057600080fd5b50610279610b3c565b60405161028691906133e1565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b19190613439565b610bce565b6040516102c391906134a7565b60405180910390f35b6102e660048036038101906102e191906134ee565b610c4d565b005b3480156102f457600080fd5b5061030f600480360381019061030a919061366c565b610d91565b005b34801561031d57600080fd5b50610326611254565b60405161033391906136c4565b60405180910390f35b610356600480360381019061035191906136df565b61126b565b005b34801561036457600080fd5b5061036d61158d565b60405161037a919061374b565b60405180910390f35b34801561038f57600080fd5b50610398611593565b005b3480156103a657600080fd5b506103c160048036038101906103bc919061378b565b61165a565b005b6103dd60048036038101906103d891906136df565b6116dd565b005b3480156103eb57600080fd5b5061040660048036038101906104019190613439565b6116fd565b005b34801561041457600080fd5b5061042f600480360381019061042a91906137b8565b61170b565b005b34801561043d57600080fd5b50610458600480360381019061045391906137b8565b611734565b005b34801561046657600080fd5b50610481600480360381019061047c919061389a565b61175d565b005b34801561048f57600080fd5b506104aa60048036038101906104a59190613939565b611778565b6040516104b79190613ae9565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e29190613439565b61183b565b6040516104f491906134a7565b60405180910390f35b610517600480360381019061051291906137b8565b61184d565b005b34801561052557600080fd5b50610540600480360381019061053b9190613b0b565b611b55565b60405161054d91906136c4565b60405180910390f35b34801561056257600080fd5b5061056b611c0d565b005b34801561057957600080fd5b50610594600480360381019061058f9190613b64565b611c21565b005b3480156105a257600080fd5b506105bd60048036038101906105b89190613b0b565b611c33565b6040516105ca9190613c4f565b60405180910390f35b3480156105df57600080fd5b506105e8611d76565b6040516105f591906134a7565b60405180910390f35b34801561060a57600080fd5b50610613611da0565b60405161062091906133e1565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b9190613c71565b611e32565b60405161065d9190613c4f565b60405180910390f35b34801561067257600080fd5b5061068d60048036038101906106889190613cf0565b61203e565b005b6106a960048036038101906106a49190613dd1565b612149565b005b3480156106b757600080fd5b506106c06121bc565b6040516106cd9190613ecb565b60405180910390f35b3480156106e257600080fd5b506106eb6121cf565b6040516106fe9796959493929190613f12565b60405180910390f35b34801561071357600080fd5b5061072e60048036038101906107299190613439565b612250565b60405161073b9190613fd6565b60405180910390f35b34801561075057600080fd5b5061076b60048036038101906107669190613439565b6122ba565b60405161077891906133e1565b60405180910390f35b34801561078d57600080fd5b506107a860048036038101906107a39190613ff1565b612358565b6040516107b59190613238565b60405180910390f35b3480156107ca57600080fd5b506107e560048036038101906107e09190613b0b565b6123ec565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108725750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61088161246f565b6001600381111561089557610894613e54565b5b600d60009054906101000a900460ff1660038111156108b7576108b6613e54565b5b146108f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ee9061407d565b60405180910390fd5b8060ff166000610905611254565b9050600b60010160009054906101000a900461ffff1661ffff168261ffff168261092f91906140cc565b1115610970576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109679061414c565b60405180910390fd5b6109ba858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506124be565b6109f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f0906141b8565b60405180910390fd5b600b60010160079054906101000a900460ff1660ff1683601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610a6791906141d8565b60ff161115610aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa290614259565b60405180910390fd5b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff1680929190610b0790614279565b91906101000a81548160ff021916908360ff16021790555050610b2d338460ff166124ff565b5050610b3761251d565b505050565b606060028054610b4b906142d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b77906142d1565b8015610bc45780601f10610b9957610100808354040283529160200191610bc4565b820191906000526020600020905b815481529060010190602001808311610ba757829003601f168201915b5050505050905090565b6000610bd982612527565b610c0f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c588261183b565b90508073ffffffffffffffffffffffffffffffffffffffff16610c79612586565b73ffffffffffffffffffffffffffffffffffffffff1614610cdc57610ca581610ca0612586565b612358565b610cdb576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610d9961246f565b60026003811115610dad57610dac613e54565b5b600d60009054906101000a900460ff166003811115610dcf57610dce613e54565b5b14610e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e069061434e565b60405180910390fd5b60008151905060008111610e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4f906143ba565b60405180910390fd5b6000600b60010160089054906101000a900460ff1660ff1682610e7b9190614409565b14610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb2906143ba565b60405180910390fd5b6000600b60010160089054906101000a900460ff1660ff1682610ede919061443a565b905060008183610eee919061446b565b67ffffffffffffffff811115610f0757610f0661352e565b5b604051908082528060200260200182016040528015610f355781602001602082028036833780820191505090505b50905060008267ffffffffffffffff811115610f5457610f5361352e565b5b604051908082528060200260200182016040528015610f825781602001602082028036833780820191505090505b50905060005b848160ff1610156111c0573373ffffffffffffffffffffffffffffffffffffffff16610fd0878360ff1681518110610fc357610fc261449f565b5b602002602001015161183b565b73ffffffffffffffffffffffffffffffffffffffff1614611026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101d9061451a565b60405180910390fd5b600f6000878360ff16815181106110405761103f61449f565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff16156110a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109b90614586565b60405180910390fd5b838160ff16101561113d576001600f6000888460ff16815181106110cb576110ca61449f565b5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550858160ff168151811061110e5761110d61449f565b5b6020026020010151828260ff168151811061112c5761112b61449f565b5b6020026020010181815250506111af565b858160ff16815181106111535761115261449f565b5b602002602001015183858360ff1661116b919061446b565b8151811061117c5761117b61449f565b5b6020026020010181815250506111ae868260ff16815181106111a1576111a061449f565b5b602002602001015161258e565b5b806111b990614279565b9050610f88565b50806040516111cf9190614636565b60405180910390207fe9783469e089b2e31632809c8bc3bbd676496202a727f27347e197a98e2d79f260405160405180910390a2816040516112119190614636565b60405180910390207fe99b110511fee5757f748da9938a941f8c8dfd5df1cf86917fb9619e180001ed60405160405180910390a25050505061125161251d565b50565b600061125e61259c565b6001546000540303905090565b6000611276826125a5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112dd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112e984612671565b915091506112ff81876112fa612586565b612698565b61134b576113148661130f612586565b612358565b61134a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113b1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113be86868660016126dc565b80156113c957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611497856114738888876126e2565b7c02000000000000000000000000000000000000000000000000000000001761270a565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361151d576000600185019050600060046000838152602001908152602001600020540361151b57600054811461151a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115858686866001612735565b505050505050565b600e5481565b61159b61273b565b6115a361246f565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516115c99061467e565b60006040518083038185875af1925050503d8060008114611606576040519150601f19603f3d011682016040523d82523d6000602084013e61160b565b606091505b505090508061164f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611646906146df565b60405180910390fd5b5061165861251d565b565b61166261273b565b80600d60006101000a81548160ff0219169083600381111561168757611686613e54565b5b0217905550600d60009054906101000a900460ff1660038111156116ae576116ad613e54565b5b7f9757e20fff637f1e89ea91ac43d3f378fca30e3dacc8902c9ac50f81f4d93fcb60405160405180910390a250565b6116f883838360405180602001604052806000815250612149565b505050565b6117088160016127b9565b50565b61171361273b565b80600b60010160066101000a81548160ff021916908360ff16021790555050565b61173c61273b565b80600b60010160076101000a81548160ff021916908360ff16021790555050565b61176561273b565b80600a908161177491906148ab565b5050565b6060600083839050905060008167ffffffffffffffff81111561179e5761179d61352e565b5b6040519080825280602002602001820160405280156117d757816020015b6117c4613135565b8152602001906001900390816117bc5790505b50905060005b82811461182f576118068686838181106117fa576117f961449f565b5b90506020020135612250565b8282815181106118195761181861449f565b5b60200260200101819052508060010190506117dd565b50809250505092915050565b6000611846826125a5565b9050919050565b61185561246f565b8060ff166000611863611254565b90506000600381111561187957611878613e54565b5b600d60009054906101000a900460ff16600381111561189b5761189a613e54565b5b146118db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d2906149c9565b60405180910390fd5b600b60010160029054906101000a900461ffff1661ffff168261ffff168261190391906140cc565b1115611944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193b90614a35565b60405180910390fd5b8260ff166000611952611254565b9050600b60010160009054906101000a900461ffff1661ffff168261ffff168261197c91906140cc565b11156119bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b49061414c565b60405180910390fd5b600b60010160069054906101000a900460ff1660ff1685601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611a2b91906141d8565b60ff161115611a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6690614259565b60405180910390fd5b8460ff16600b60000154611a839190614a55565b3414611ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abb90614ae3565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff1680929190611b2090614279565b91906101000a81548160ff021916908360ff16021790555050611b46338660ff166124ff565b50505050611b5261251d565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bbc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611c1561273b565b611c1f6000612a0b565b565b611c2961273b565b80600e8190555050565b60606000806000611c4385611b55565b905060008167ffffffffffffffff811115611c6157611c6061352e565b5b604051908082528060200260200182016040528015611c8f5781602001602082028036833780820191505090505b509050611c9a613135565b6000611ca461259c565b90505b838614611d6857611cb781612ad1565b91508160400151611d5d57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611d0257816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611d5c5780838780600101985081518110611d4f57611d4e61449f565b5b6020026020010181815250505b5b806001019050611ca7565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611daf906142d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ddb906142d1565b8015611e285780601f10611dfd57610100808354040283529160200191611e28565b820191906000526020600020905b815481529060010190602001808311611e0b57829003601f168201915b5050505050905090565b6060818310611e6d576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611e78612afc565b9050611e8261259c565b851015611e9457611e9161259c565b94505b80841115611ea0578093505b6000611eab87611b55565b905084861015611ece576000868603905081811015611ec8578091505b50611ed3565b600090505b60008167ffffffffffffffff811115611eef57611eee61352e565b5b604051908082528060200260200182016040528015611f1d5781602001602082028036833780820191505090505b50905060008203611f345780945050505050612037565b6000611f3f88612250565b905060008160400151611f5457816000015190505b60008990505b888114158015611f6a5750848714155b1561202957611f7881612ad1565b9250826040015161201e57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611fc357826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361201d57808488806001019950815181106120105761200f61449f565b5b6020026020010181815250505b5b806001019050611f5a565b508583528296505050505050505b9392505050565b806007600061204b612586565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120f8612586565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161213d9190613238565b60405180910390a35050565b61215484848461126b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121b65761217f84848484612b05565b6121b5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900460ff1681565b600b8060000154908060010160009054906101000a900461ffff16908060010160029054906101000a900461ffff16908060010160049054906101000a900461ffff16908060010160069054906101000a900460ff16908060010160079054906101000a900460ff16908060010160089054906101000a900460ff16905087565b612258613135565b612260613135565b61226861259c565b83108061227c5750612278612afc565b8310155b1561228a57809150506122b5565b61229383612ad1565b90508060400151156122a857809150506122b5565b6122b183612c55565b9150505b919050565b60606122c582612527565b6122fb576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612305612c75565b905060008151036123255760405180602001604052806000815250612350565b8061232f84612d07565b604051602001612340929190614b3f565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6123f461273b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245a90614bd5565b60405180910390fd5b61246c81612a0b565b50565b6002600954036124b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ab90614c41565b60405180910390fd5b6002600981905550565b600080336040516020016124d29190614ca9565b6040516020818303038152906040528051906020012090506124f783600e5483612d57565b915050919050565b612519828260405180602001604052806000815250612d6e565b5050565b6001600981905550565b60008161253261259c565b11158015612541575060005482105b801561257f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6125998160006127b9565b50565b60006001905090565b600080829050806125b461259c565b1161263a576000548110156126395760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612637575b6000810361262d576004600083600190039350838152602001908152602001600020549050612603565b809250505061266c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86126f9868684612e0b565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612743612e14565b73ffffffffffffffffffffffffffffffffffffffff16612761611d76565b73ffffffffffffffffffffffffffffffffffffffff16146127b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ae90614d10565b60405180910390fd5b565b60006127c4836125a5565b905060008190506000806127d786612671565b915091508415612840576127f381846127ee612586565b612698565b61283f5761280883612803612586565b612358565b61283e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b61284e8360008860016126dc565b801561285957600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612901836128be856000886126e2565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761270a565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036129875760006001870190506000600460008381526020019081526020016000205403612985576000548114612984578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129f1836000886001612735565b600160008154809291906001019190505550505050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612ad9613135565b612af56004600084815260200190815260200160002054612e1c565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b2b612586565b8786866040518563ffffffff1660e01b8152600401612b4d9493929190614d85565b6020604051808303816000875af1925050508015612b8957506040513d601f19601f82011682018060405250810190612b869190614de6565b60015b612c02573d8060008114612bb9576040519150601f19603f3d011682016040523d82523d6000602084013e612bbe565b606091505b506000815103612bfa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612c5d613135565b612c6e612c69836125a5565b612e1c565b9050919050565b6060600a8054612c84906142d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612cb0906142d1565b8015612cfd5780601f10612cd257610100808354040283529160200191612cfd565b820191906000526020600020905b815481529060010190602001808311612ce057829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612d4257600184039350600a81066030018453600a8104905080612d20575b50828103602084039350808452505050919050565b600082612d648584612ed2565b1490509392505050565b612d788383612f28565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612e0657600080549050600083820390505b612db86000868380600101945086612b05565b612dee576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612da5578160005414612e0357600080fd5b50505b505050565b60009392505050565b600033905090565b612e24613135565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015612f1d57612f0882868381518110612efb57612efa61449f565b5b60200260200101516130e3565b91508080612f1590614e13565b915050612edb565b508091505092915050565b60008054905060008203612f68576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f7560008483856126dc565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fec83612fdd60008660006126e2565b612fe68561310e565b1761270a565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461308d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613052565b50600082036130c8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506130de6000848385612735565b505050565b60008183106130fb576130f6828461311e565b613106565b613105838361311e565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131cd81613198565b81146131d857600080fd5b50565b6000813590506131ea816131c4565b92915050565b6000602082840312156132065761320561318e565b5b6000613214848285016131db565b91505092915050565b60008115159050919050565b6132328161321d565b82525050565b600060208201905061324d6000830184613229565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261327857613277613253565b5b8235905067ffffffffffffffff81111561329557613294613258565b5b6020830191508360208202830111156132b1576132b061325d565b5b9250929050565b600060ff82169050919050565b6132ce816132b8565b81146132d957600080fd5b50565b6000813590506132eb816132c5565b92915050565b60008060006040848603121561330a5761330961318e565b5b600084013567ffffffffffffffff81111561332857613327613193565b5b61333486828701613262565b93509350506020613347868287016132dc565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b60005b8381101561338b578082015181840152602081019050613370565b60008484015250505050565b6000601f19601f8301169050919050565b60006133b382613351565b6133bd818561335c565b93506133cd81856020860161336d565b6133d681613397565b840191505092915050565b600060208201905081810360008301526133fb81846133a8565b905092915050565b6000819050919050565b61341681613403565b811461342157600080fd5b50565b6000813590506134338161340d565b92915050565b60006020828403121561344f5761344e61318e565b5b600061345d84828501613424565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061349182613466565b9050919050565b6134a181613486565b82525050565b60006020820190506134bc6000830184613498565b92915050565b6134cb81613486565b81146134d657600080fd5b50565b6000813590506134e8816134c2565b92915050565b600080604083850312156135055761350461318e565b5b6000613513858286016134d9565b925050602061352485828601613424565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61356682613397565b810181811067ffffffffffffffff821117156135855761358461352e565b5b80604052505050565b6000613598613184565b90506135a4828261355d565b919050565b600067ffffffffffffffff8211156135c4576135c361352e565b5b602082029050602081019050919050565b60006135e86135e3846135a9565b61358e565b9050808382526020820190506020840283018581111561360b5761360a61325d565b5b835b8181101561363457806136208882613424565b84526020840193505060208101905061360d565b5050509392505050565b600082601f83011261365357613652613253565b5b81356136638482602086016135d5565b91505092915050565b6000602082840312156136825761368161318e565b5b600082013567ffffffffffffffff8111156136a05761369f613193565b5b6136ac8482850161363e565b91505092915050565b6136be81613403565b82525050565b60006020820190506136d960008301846136b5565b92915050565b6000806000606084860312156136f8576136f761318e565b5b6000613706868287016134d9565b9350506020613717868287016134d9565b925050604061372886828701613424565b9150509250925092565b6000819050919050565b61374581613732565b82525050565b6000602082019050613760600083018461373c565b92915050565b6004811061377357600080fd5b50565b60008135905061378581613766565b92915050565b6000602082840312156137a1576137a061318e565b5b60006137af84828501613776565b91505092915050565b6000602082840312156137ce576137cd61318e565b5b60006137dc848285016132dc565b91505092915050565b600080fd5b600067ffffffffffffffff8211156138055761380461352e565b5b61380e82613397565b9050602081019050919050565b82818337600083830152505050565b600061383d613838846137ea565b61358e565b905082815260208101848484011115613859576138586137e5565b5b61386484828561381b565b509392505050565b600082601f83011261388157613880613253565b5b813561389184826020860161382a565b91505092915050565b6000602082840312156138b0576138af61318e565b5b600082013567ffffffffffffffff8111156138ce576138cd613193565b5b6138da8482850161386c565b91505092915050565b60008083601f8401126138f9576138f8613253565b5b8235905067ffffffffffffffff81111561391657613915613258565b5b6020830191508360208202830111156139325761393161325d565b5b9250929050565b600080602083850312156139505761394f61318e565b5b600083013567ffffffffffffffff81111561396e5761396d613193565b5b61397a858286016138e3565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6139bb81613486565b82525050565b600067ffffffffffffffff82169050919050565b6139de816139c1565b82525050565b6139ed8161321d565b82525050565b600062ffffff82169050919050565b613a0b816139f3565b82525050565b608082016000820151613a2760008501826139b2565b506020820151613a3a60208501826139d5565b506040820151613a4d60408501826139e4565b506060820151613a606060850182613a02565b50505050565b6000613a728383613a11565b60808301905092915050565b6000602082019050919050565b6000613a9682613986565b613aa08185613991565b9350613aab836139a2565b8060005b83811015613adc578151613ac38882613a66565b9750613ace83613a7e565b925050600181019050613aaf565b5085935050505092915050565b60006020820190508181036000830152613b038184613a8b565b905092915050565b600060208284031215613b2157613b2061318e565b5b6000613b2f848285016134d9565b91505092915050565b613b4181613732565b8114613b4c57600080fd5b50565b600081359050613b5e81613b38565b92915050565b600060208284031215613b7a57613b7961318e565b5b6000613b8884828501613b4f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613bc681613403565b82525050565b6000613bd88383613bbd565b60208301905092915050565b6000602082019050919050565b6000613bfc82613b91565b613c068185613b9c565b9350613c1183613bad565b8060005b83811015613c42578151613c298882613bcc565b9750613c3483613be4565b925050600181019050613c15565b5085935050505092915050565b60006020820190508181036000830152613c698184613bf1565b905092915050565b600080600060608486031215613c8a57613c8961318e565b5b6000613c98868287016134d9565b9350506020613ca986828701613424565b9250506040613cba86828701613424565b9150509250925092565b613ccd8161321d565b8114613cd857600080fd5b50565b600081359050613cea81613cc4565b92915050565b60008060408385031215613d0757613d0661318e565b5b6000613d15858286016134d9565b9250506020613d2685828601613cdb565b9150509250929050565b600067ffffffffffffffff821115613d4b57613d4a61352e565b5b613d5482613397565b9050602081019050919050565b6000613d74613d6f84613d30565b61358e565b905082815260208101848484011115613d9057613d8f6137e5565b5b613d9b84828561381b565b509392505050565b600082601f830112613db857613db7613253565b5b8135613dc8848260208601613d61565b91505092915050565b60008060008060808587031215613deb57613dea61318e565b5b6000613df9878288016134d9565b9450506020613e0a878288016134d9565b9350506040613e1b87828801613424565b925050606085013567ffffffffffffffff811115613e3c57613e3b613193565b5b613e4887828801613da3565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110613e9457613e93613e54565b5b50565b6000819050613ea582613e83565b919050565b6000613eb582613e97565b9050919050565b613ec581613eaa565b82525050565b6000602082019050613ee06000830184613ebc565b92915050565b600061ffff82169050919050565b613efd81613ee6565b82525050565b613f0c816132b8565b82525050565b600060e082019050613f27600083018a6136b5565b613f346020830189613ef4565b613f416040830188613ef4565b613f4e6060830187613ef4565b613f5b6080830186613f03565b613f6860a0830185613f03565b613f7560c0830184613f03565b98975050505050505050565b608082016000820151613f9760008501826139b2565b506020820151613faa60208501826139d5565b506040820151613fbd60408501826139e4565b506060820151613fd06060850182613a02565b50505050565b6000608082019050613feb6000830184613f81565b92915050565b600080604083850312156140085761400761318e565b5b6000614016858286016134d9565b9250506020614027858286016134d9565b9150509250929050565b7f57686974656c6973742073616c65206973206e6f742061637469766500000000600082015250565b6000614067601c8361335c565b915061407282614031565b602082019050919050565b600060208201905081810360008301526140968161405a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140d782613403565b91506140e283613403565b92508282019050808211156140fa576140f961409d565b5b92915050565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b600061413660098361335c565b915061414182614100565b602082019050919050565b6000602082019050818103600083015261416581614129565b9050919050565b7f41646472657373206e6f74206f6e2057686974656c6973740000000000000000600082015250565b60006141a260188361335c565b91506141ad8261416c565b602082019050919050565b600060208201905081810360008301526141d181614195565b9050919050565b60006141e3826132b8565b91506141ee836132b8565b9250828201905060ff8111156142075761420661409d565b5b92915050565b7f416c6c6f776564206d696e74732065786365656465642e000000000000000000600082015250565b600061424360178361335c565b915061424e8261420d565b602082019050919050565b6000602082019050818103600083015261427281614236565b9050919050565b6000614284826132b8565b915060ff82036142975761429661409d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806142e957607f821691505b6020821081036142fc576142fb6142a2565b5b50919050565b7f55706772616465206973206e6f74206163746976650000000000000000000000600082015250565b600061433860158361335c565b915061434382614302565b602082019050919050565b600060208201905081810360008301526143678161432b565b9050919050565b7f496e636f7272656374206e756d626572206f6620746f6b656e73000000000000600082015250565b60006143a4601a8361335c565b91506143af8261436e565b602082019050919050565b600060208201905081810360008301526143d381614397565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061441482613403565b915061441f83613403565b92508261442f5761442e6143da565b5b828206905092915050565b600061444582613403565b915061445083613403565b9250826144605761445f6143da565b5b828204905092915050565b600061447682613403565b915061448183613403565b92508282039050818111156144995761449861409d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d757374206f776e20616c6c20746f6b656e7321000000000000000000000000600082015250565b600061450460148361335c565b915061450f826144ce565b602082019050919050565b60006020820190508181036000830152614533816144f7565b9050919050565b7f596f752063616e27742075706772616465206120746f6b656e21000000000000600082015250565b6000614570601a8361335c565b915061457b8261453a565b602082019050919050565b6000602082019050818103600083015261459f81614563565b9050919050565b600081905092915050565b6145ba81613403565b82525050565b60006145cc83836145b1565b60208301905092915050565b60006145e382613b91565b6145ed81856145a6565b93506145f883613bad565b8060005b8381101561462957815161461088826145c0565b975061461b83613be4565b9250506001810190506145fc565b5085935050505092915050565b600061464282846145d8565b915081905092915050565b600081905092915050565b50565b600061466860008361464d565b915061467382614658565b600082019050919050565b60006146898261465b565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b60006146c960108361335c565b91506146d482614693565b602082019050919050565b600060208201905081810360008301526146f8816146bc565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147617fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614724565b61476b8683614724565b95508019841693508086168417925050509392505050565b6000819050919050565b60006147a86147a361479e84613403565b614783565b613403565b9050919050565b6000819050919050565b6147c28361478d565b6147d66147ce826147af565b848454614731565b825550505050565b600090565b6147eb6147de565b6147f68184846147b9565b505050565b5b8181101561481a5761480f6000826147e3565b6001810190506147fc565b5050565b601f82111561485f57614830816146ff565b61483984614714565b81016020851015614848578190505b61485c61485485614714565b8301826147fb565b50505b505050565b600082821c905092915050565b600061488260001984600802614864565b1980831691505092915050565b600061489b8383614871565b9150826002028217905092915050565b6148b482613351565b67ffffffffffffffff8111156148cd576148cc61352e565b5b6148d782546142d1565b6148e282828561481e565b600060209050601f8311600181146149155760008415614903578287015190505b61490d858261488f565b865550614975565b601f198416614923866146ff565b60005b8281101561494b57848901518255600182019150602085019450602081019050614926565b868310156149685784890151614964601f891682614871565b8355505b6001600288020188555050505b505050505050565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b60006149b360198361335c565b91506149be8261497d565b602082019050919050565b600060208201905081810360008301526149e2816149a6565b9050919050565b7f5075626c69632077617320536f6c64204f757421000000000000000000000000600082015250565b6000614a1f60148361335c565b9150614a2a826149e9565b602082019050919050565b60006020820190508181036000830152614a4e81614a12565b9050919050565b6000614a6082613403565b9150614a6b83613403565b9250828202614a7981613403565b91508282048414831517614a9057614a8f61409d565b5b5092915050565b7f45746865722073656e74206973206e6f7420636f727265637400000000000000600082015250565b6000614acd60198361335c565b9150614ad882614a97565b602082019050919050565b60006020820190508181036000830152614afc81614ac0565b9050919050565b600081905092915050565b6000614b1982613351565b614b238185614b03565b9350614b3381856020860161336d565b80840191505092915050565b6000614b4b8285614b0e565b9150614b578284614b0e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614bbf60268361335c565b9150614bca82614b63565b604082019050919050565b60006020820190508181036000830152614bee81614bb2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614c2b601f8361335c565b9150614c3682614bf5565b602082019050919050565b60006020820190508181036000830152614c5a81614c1e565b9050919050565b60008160601b9050919050565b6000614c7982614c61565b9050919050565b6000614c8b82614c6e565b9050919050565b614ca3614c9e82613486565b614c80565b82525050565b6000614cb58284614c92565b60148201915081905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614cfa60208361335c565b9150614d0582614cc4565b602082019050919050565b60006020820190508181036000830152614d2981614ced565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614d5782614d30565b614d618185614d3b565b9350614d7181856020860161336d565b614d7a81613397565b840191505092915050565b6000608082019050614d9a6000830187613498565b614da76020830186613498565b614db460408301856136b5565b8181036060830152614dc68184614d4c565b905095945050505050565b600081519050614de0816131c4565b92915050565b600060208284031215614dfc57614dfb61318e565b5b6000614e0a84828501614dd1565b91505092915050565b6000614e1e82613403565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614e5057614e4f61409d565b5b60018201905091905056fea26469706673582212203a66957596d0e0ff4927acf627e7c3a4446a397d3bc2422c9f8c6748014e3beb64736f6c63430008120033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6578706572696d656e742e706978656c2d706177732d6c61622e696f2f6d657461646174612f000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://experiment.pixel-paws-lab.io/metadata/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [2] : 68747470733a2f2f6578706572696d656e742e706978656c2d706177732d6c61
Arg [3] : 622e696f2f6d657461646174612f000000000000000000000000000000000000


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

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