ETH Price: $3,048.81 (+0.83%)
Gas: 3 Gwei

Token

CNPC Seasons SBT (CNPCS)
 

Overview

Max Total Supply

1,366 CNPCS

Holders

268

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Null: 0x000...000
Balance
0 CNPCS
0x0000000000000000000000000000000000000000
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:
CNPCSeasonsSBT

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : CNPCSeasonsSBT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";

interface ITokenURI {
    function tokenURI_future(uint256 _tokenId)
        external
        view
        returns (string memory);
}

interface ICNPC {
    function balanceOf(address _owner)
    external
        view
        returns (uint);
}

contract CNPCSeasonsSBT is ERC721AQueryable, Ownable, AccessControl {
    using Strings for uint256;
    bytes32 public ADMIN = "ADMIN";
    string baseURI;
    string public baseExtension = ".json";
    uint256 public maxMintAmount = 5;
    uint256 public maxSupply = 99999999;
    bool public paused = false;
    uint256 public cost = 0.0045 ether;
    uint256 public discountCost = 0.00225 ether;
    uint256 public discountBorderAmount = 2;
    uint256 public canBuyBorderAmount = 1;
    bool public isCnpcSale = true;
    address withdrawAddress = 0xd3005389DfEfe5CabBa55149cFB9e8017809B0D6;
    ITokenURI public tokenuri;
    ICNPC public cnpc;
    

    constructor() ERC721A("CNPC Seasons SBT", "CNPCS") {
        // baseURI;
        _setRoleAdmin(ADMIN, DEFAULT_ADMIN_ROLE);
        grantRole(ADMIN, msg.sender);
    }

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

    // external
    function mint(address recipient, uint256 _mintAmount) external payable {
        uint256 supply = totalSupply();
        require(!paused, "mint is paused!");
        require(tx.origin == msg.sender, "the caller is another controler");
        require(_mintAmount > 0);
        require(_mintAmount <= maxMintAmount);
        require(supply + _mintAmount <= maxSupply);        
        if(address(cnpc)!=address(0)){
            require(cnpc.balanceOf(_msgSender()) >= canBuyBorderAmount, "not enough CNPC amount");
            if(isCnpcSale==true && cnpc.balanceOf(_msgSender()) >= discountBorderAmount){
                    require(msg.value >= discountCost * _mintAmount, "not enough amount");
                    _safeMint(recipient, _mintAmount);
                    return;
            }
        } 
        require(msg.value >= cost * _mintAmount, "not enough amount");
        _safeMint(recipient, _mintAmount);
        
    }

    function burn(uint256 burnTokenId) external {
        require(
            _msgSenderERC721A() == ownerOf(burnTokenId),
            "Only the owner can burn"
        );
        _burn(burnTokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        if (address(tokenuri) == address(0)) {
        require(
            _exists(tokenId),
            "ERC721AMetadata: URI query for nonexistent token"
        );
        string memory currentBaseURI = _baseURI();
        return
            bytes(currentBaseURI).length > 0
                ? string(
                    abi.encodePacked(
                        currentBaseURI,
                        tokenId.toString(),
                        baseExtension
                    )
                )
                : "";
        } else {
            return tokenuri.tokenURI_future(tokenId);
        }
    }

    //only owner
    function setMaxMintAmount(uint256 _newmaxMintAmount) external onlyRole(ADMIN) {
        maxMintAmount = _newmaxMintAmount;
    }

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

    function setBaseURI(string memory _newBaseURI) external onlyRole(ADMIN) {
        baseURI = _newBaseURI;
    }

    function setBaseExtension(string memory _newBaseExtension)
        external
        onlyOwner
    {
        baseExtension = _newBaseExtension;
    }

    function pause(bool _state) external onlyRole(ADMIN) {
        paused = _state;
    }

    function setCost(uint256 _newCost) external onlyRole(ADMIN) {
        cost = _newCost;
    }

    function setDiscountCost(uint256 _newDiscountCost) external onlyRole(ADMIN) {
        discountCost = _newDiscountCost;
    }

    function setDiscountBorderAmount(uint256 _newBorderAmount) external onlyOwner {
        discountBorderAmount = _newBorderAmount;
    }

    function setCanBuyBorderAmount(uint256 _newBorderAmount) external onlyOwner {
        canBuyBorderAmount = _newBorderAmount;
    }
    function setIsCnpcSale(bool _bool) external onlyOwner {
        isCnpcSale = _bool;
    }

    function setCnpcUri(ICNPC _cnpc) external onlyOwner {
        cnpc = _cnpc;
    }

    //SBT
    function approve(address, uint256) public payable virtual override {
        require(false, "This token is SBT, so this can not approval.");
    }

    function setApprovalForAll(address, bool) public virtual override {
        require(false, "This token is SBT, so this can not approval.");
    }

    function transferFrom(
        address,
        address,
        uint256
    ) public payable virtual override {
        require(false, "This token is SBT, so this can not transfer.");
    }

    //Role
    function grantRole(bytes32 role, address account)
        public
        override
        onlyOwner
    {
        _grantRole(role, account);
    }

    function revokeRole(bytes32 role, address account)
        public
        override
        onlyOwner
    {
        _revokeRole(role, account);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(AccessControl, ERC721A)
        returns (bool)
    {
        return
            ERC721A.supportsInterface(interfaceId) ||
            AccessControl.supportsInterface(interfaceId);
    }

    //Full on chain
    function setTokenURI(ITokenURI _tokenuri) external onlyOwner {
        tokenuri = _tokenuri;
    }

    //start token id
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    //withdraw
    function withdraw() external onlyOwner {
        _withdraw();
    }

    function setWithdrawAddress(address _newAddress) external onlyOwner {
        withdrawAddress = _newAddress;
    }

    function _withdraw() internal virtual {
        require(
            withdrawAddress != address(0),
            "withdraw address is 0 address."
        );
        (bool os, ) = withdrawAddress.call{value: address(this).balance}("");
        require(os);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 9 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","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":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"burnTokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canBuyBorderAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cnpc","outputs":[{"internalType":"contract ICNPC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountBorderAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCnpcSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newBorderAmount","type":"uint256"}],"name":"setCanBuyBorderAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ICNPC","name":"_cnpc","type":"address"}],"name":"setCnpcUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newBorderAmount","type":"uint256"}],"name":"setDiscountBorderAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDiscountCost","type":"uint256"}],"name":"setDiscountCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setIsCnpcSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITokenURI","name":"_tokenuri","type":"address"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenuri","outputs":[{"internalType":"contract ITokenURI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040527f41444d494e000000000000000000000000000000000000000000000000000000600a556040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c908051906020019062000075929190620005dc565b506005600d556305f5e0ff600e556000600f60006101000a81548160ff021916908315150217905550660ffcb9e57d40006010556607fe5cf2bea000601155600260125560016013556001601460006101000a81548160ff02191690831515021790555073d3005389dfefe5cabba55149cfb9e8017809b0d6601460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200013b57600080fd5b506040518060400160405280601081526020017f434e504320536561736f6e7320534254000000000000000000000000000000008152506040518060400160405280600581526020017f434e5043530000000000000000000000000000000000000000000000000000008152508160029080519060200190620001c0929190620005dc565b508060039080519060200190620001d9929190620005dc565b50620001ea6200024360201b60201c565b600081905550505062000212620002066200024c60201b60201c565b6200025460201b60201c565b62000229600a546000801b6200031a60201b60201c565b6200023d600a54336200037e60201b60201c565b62000774565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006200032d83620003a460201b60201c565b90508160096000858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b6200038e620003c460201b60201c565b620003a082826200045560201b60201c565b5050565b600060096000838152602001908152602001600020600101549050919050565b620003d46200024c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003fa6200054760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000453576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200044a90620006ed565b60405180910390fd5b565b6200046782826200057160201b60201c565b620005435760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004e86200024c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054620005ea906200073e565b90600052602060002090601f0160209004810192826200060e57600085556200065a565b82601f106200062957805160ff19168380011785556200065a565b828001600101855582156200065a579182015b82811115620006595782518255916020019190600101906200063c565b5b5090506200066991906200066d565b5090565b5b80821115620006885760008160009055506001016200066e565b5090565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620006d56020836200068c565b9150620006e2826200069d565b602082019050919050565b600060208201905081810360008301526200070881620006c6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200075757607f821691505b602082108114156200076e576200076d6200070f565b5b50919050565b61505980620007846000396000f3fe6080604052600436106103505760003560e01c80636352211e116101c6578063a22cb465116100f7578063d547741f11610095578063e5fc6ef71161006f578063e5fc6ef714610c17578063e63bef4414610c40578063e985e9c514610c6b578063f2fde38b14610ca857610350565b8063d547741f14610b9a578063d5abeb0114610bc3578063da3ef23f14610bee57610350565b8063c0c2e0a3116100d1578063c0c2e0a314610acc578063c23dc68f14610af5578063c668286214610b32578063c87b56dd14610b5d57610350565b8063a22cb46514610a5c578063b88d4fde14610a85578063bba64ab414610aa157610350565b80637d83f7c71161016457806391d148541161013e57806391d148541461098c57806395d89b41146109c957806399a2557a146109f4578063a217fddf14610a3157610350565b80637d83f7c7146108fb5780638462151c146109245780638da5cb5b1461096157610350565b80636ec05d55116101a05780636ec05d55146108555780636f8b44b01461087e57806370a08231146108a7578063715018a6146108e457610350565b80636352211e146107c25780636a98de4c146107ff5780636c9a33481461082a57610350565b80632f2ff15d116102a057806342966c681161023e578063592b021511610218578063592b0215146107045780635bbb21771461072f5780635c975abb1461076c5780635cb0e67d1461079757610350565b806342966c681461068957806344a0d68a146106b257806355f804b3146106db57610350565b80633ab1a4941161027a5780633ab1a494146106115780633ccfd60b1461063a57806340c10f191461065157806342842e0e1461066d57610350565b80632f2ff15d1461059657806336568abe146105bf5780633a515b2f146105e857610350565b806313faede61161030d578063239c70ae116102e7578063239c70ae146104e757806323b872dd14610512578063248a9ca31461052e5780632a0acc6a1461056b57610350565b806313faede61461046857806318160ddd146104935780631d17ed32146104be57610350565b806301ffc9a71461035557806302329a291461039257806306fdde03146103bb578063081812fc146103e6578063088a4ed014610423578063095ea7b31461044c575b600080fd5b34801561036157600080fd5b5061037c600480360381019061037791906136af565b610cd1565b60405161038991906136f7565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b4919061373e565b610cf3565b005b3480156103c757600080fd5b506103d0610d1d565b6040516103dd9190613804565b60405180910390f35b3480156103f257600080fd5b5061040d6004803603810190610408919061385c565b610daf565b60405161041a91906138ca565b60405180910390f35b34801561042f57600080fd5b5061044a6004803603810190610445919061385c565b610e2e565b005b61046660048036038101906104619190613911565b610e45565b005b34801561047457600080fd5b5061047d610e8a565b60405161048a9190613960565b60405180910390f35b34801561049f57600080fd5b506104a8610e90565b6040516104b59190613960565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e0919061385c565b610ea7565b005b3480156104f357600080fd5b506104fc610eb9565b6040516105099190613960565b60405180910390f35b61052c6004803603810190610527919061397b565b610ebf565b005b34801561053a57600080fd5b5061055560048036038101906105509190613a04565b610f05565b6040516105629190613a40565b60405180910390f35b34801561057757600080fd5b50610580610f25565b60405161058d9190613a40565b60405180910390f35b3480156105a257600080fd5b506105bd60048036038101906105b89190613a5b565b610f2b565b005b3480156105cb57600080fd5b506105e660048036038101906105e19190613a5b565b610f41565b005b3480156105f457600080fd5b5061060f600480360381019061060a919061385c565b610fc4565b005b34801561061d57600080fd5b5061063860048036038101906106339190613a9b565b610fdb565b005b34801561064657600080fd5b5061064f611027565b005b61066b60048036038101906106669190613911565b611039565b005b6106876004803603810190610682919061397b565b611421565b005b34801561069557600080fd5b506106b060048036038101906106ab919061385c565b611441565b005b3480156106be57600080fd5b506106d960048036038101906106d4919061385c565b6114ca565b005b3480156106e757600080fd5b5061070260048036038101906106fd9190613bfd565b6114e1565b005b34801561071057600080fd5b50610719611508565b6040516107269190613ca5565b60405180910390f35b34801561073b57600080fd5b5061075660048036038101906107519190613d20565b61152e565b6040516107639190613ed0565b60405180910390f35b34801561077857600080fd5b506107816115f1565b60405161078e91906136f7565b60405180910390f35b3480156107a357600080fd5b506107ac611604565b6040516107b99190613960565b60405180910390f35b3480156107ce57600080fd5b506107e960048036038101906107e4919061385c565b61160a565b6040516107f691906138ca565b60405180910390f35b34801561080b57600080fd5b5061081461161c565b6040516108219190613f13565b60405180910390f35b34801561083657600080fd5b5061083f611642565b60405161084c91906136f7565b60405180910390f35b34801561086157600080fd5b5061087c6004803603810190610877919061385c565b611655565b005b34801561088a57600080fd5b506108a560048036038101906108a0919061385c565b611667565b005b3480156108b357600080fd5b506108ce60048036038101906108c99190613a9b565b611679565b6040516108db9190613960565b60405180910390f35b3480156108f057600080fd5b506108f9611732565b005b34801561090757600080fd5b50610922600480360381019061091d9190613f6c565b611746565b005b34801561093057600080fd5b5061094b60048036038101906109469190613a9b565b611792565b6040516109589190614057565b60405180910390f35b34801561096d57600080fd5b506109766118dc565b60405161098391906138ca565b60405180910390f35b34801561099857600080fd5b506109b360048036038101906109ae9190613a5b565b611906565b6040516109c091906136f7565b60405180910390f35b3480156109d557600080fd5b506109de611971565b6040516109eb9190613804565b60405180910390f35b348015610a0057600080fd5b50610a1b6004803603810190610a169190614079565b611a03565b604051610a289190614057565b60405180910390f35b348015610a3d57600080fd5b50610a46611c17565b604051610a539190613a40565b60405180910390f35b348015610a6857600080fd5b50610a836004803603810190610a7e91906140cc565b611c1e565b005b610a9f6004803603810190610a9a91906141ad565b611c63565b005b348015610aad57600080fd5b50610ab6611cd6565b604051610ac39190613960565b60405180910390f35b348015610ad857600080fd5b50610af36004803603810190610aee919061426e565b611cdc565b005b348015610b0157600080fd5b50610b1c6004803603810190610b17919061385c565b611d28565b604051610b2991906142f0565b60405180910390f35b348015610b3e57600080fd5b50610b47611d92565b604051610b549190613804565b60405180910390f35b348015610b6957600080fd5b50610b846004803603810190610b7f919061385c565b611e20565b604051610b919190613804565b60405180910390f35b348015610ba657600080fd5b50610bc16004803603810190610bbc9190613a5b565b611fd9565b005b348015610bcf57600080fd5b50610bd8611fef565b604051610be59190613960565b60405180910390f35b348015610bfa57600080fd5b50610c156004803603810190610c109190613bfd565b611ff5565b005b348015610c2357600080fd5b50610c3e6004803603810190610c39919061373e565b612017565b005b348015610c4c57600080fd5b50610c5561203c565b604051610c629190613960565b60405180910390f35b348015610c7757600080fd5b50610c926004803603810190610c8d919061430b565b612042565b604051610c9f91906136f7565b60405180910390f35b348015610cb457600080fd5b50610ccf6004803603810190610cca9190613a9b565b6120d6565b005b6000610cdc8261215a565b80610cec5750610ceb826121ec565b5b9050919050565b600a54610cff81612266565b81600f60006101000a81548160ff0219169083151502179055505050565b606060028054610d2c9061437a565b80601f0160208091040260200160405190810160405280929190818152602001828054610d589061437a565b8015610da55780601f10610d7a57610100808354040283529160200191610da5565b820191906000526020600020905b815481529060010190602001808311610d8857829003601f168201915b5050505050905090565b6000610dba8261227a565b610df0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600a54610e3a81612266565b81600d819055505050565b6000610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d9061441e565b60405180910390fd5b5050565b60105481565b6000610e9a6122d9565b6001546000540303905090565b610eaf6122e2565b8060138190555050565b600d5481565b6000610f00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef7906144b0565b60405180910390fd5b505050565b600060096000838152602001908152602001600020600101549050919050565b600a5481565b610f336122e2565b610f3d8282612360565b5050565b610f49612441565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fad90614542565b60405180910390fd5b610fc08282612449565b5050565b600a54610fd081612266565b816011819055505050565b610fe36122e2565b80601460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61102f6122e2565b61103761252b565b565b6000611043610e90565b9050600f60009054906101000a900460ff1615611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c906145ae565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fa9061461a565b60405180910390fd5b6000821161111057600080fd5b600d5482111561111f57600080fd5b600e54828261112e9190614669565b111561113957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113c157601354601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316111d8612441565b6040518263ffffffff1660e01b81526004016111f491906138ca565b60206040518083038186803b15801561120c57600080fd5b505afa158015611220573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124491906146d4565b1015611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c9061474d565b60405180910390fd5b60011515601460009054906101000a900460ff16151514801561135b5750601254601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316112ec612441565b6040518263ffffffff1660e01b815260040161130891906138ca565b60206040518083038186803b15801561132057600080fd5b505afa158015611334573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135891906146d4565b10155b156113c0578160115461136e919061476d565b3410156113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a790614813565b60405180910390fd5b6113ba8383612658565b5061141d565b5b816010546113cf919061476d565b341015611411576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140890614813565b60405180910390fd5b61141b8383612658565b505b5050565b61143c83838360405180602001604052806000815250611c63565b505050565b61144a8161160a565b73ffffffffffffffffffffffffffffffffffffffff16611468612676565b73ffffffffffffffffffffffffffffffffffffffff16146114be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b59061487f565b60405180910390fd5b6114c78161267e565b50565b600a546114d681612266565b816010819055505050565b600a546114ed81612266565b81600b9080519060200190611503929190613551565b505050565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600083839050905060008167ffffffffffffffff81111561155457611553613ad2565b5b60405190808252806020026020018201604052801561158d57816020015b61157a6135d7565b8152602001906001900390816115725790505b50905060005b8281146115e5576115bc8686838181106115b0576115af61489f565b5b90506020020135611d28565b8282815181106115cf576115ce61489f565b5b6020026020010181905250806001019050611593565b50809250505092915050565b600f60009054906101000a900460ff1681565b60125481565b60006116158261268c565b9050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601460009054906101000a900460ff1681565b61165d6122e2565b8060128190555050565b61166f6122e2565b80600e8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116e1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61173a6122e2565b611744600061275a565b565b61174e6122e2565b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008060006117a285611679565b905060008167ffffffffffffffff8111156117c0576117bf613ad2565b5b6040519080825280602002602001820160405280156117ee5781602001602082028036833780820191505090505b5090506117f96135d7565b60006118036122d9565b90505b8386146118ce5761181681612820565b9150816040015115611827576118c3565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461186757816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156118c257808387806001019850815181106118b5576118b461489f565b5b6020026020010181815250505b5b806001019050611806565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600380546119809061437a565b80601f01602080910402602001604051908101604052809291908181526020018280546119ac9061437a565b80156119f95780601f106119ce576101008083540402835291602001916119f9565b820191906000526020600020905b8154815290600101906020018083116119dc57829003601f168201915b5050505050905090565b6060818310611a3e576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611a4961284b565b9050611a536122d9565b851015611a6557611a626122d9565b94505b80841115611a71578093505b6000611a7c87611679565b905084861015611a9f576000868603905081811015611a99578091505b50611aa4565b600090505b60008167ffffffffffffffff811115611ac057611abf613ad2565b5b604051908082528060200260200182016040528015611aee5781602001602082028036833780820191505090505b5090506000821415611b065780945050505050611c10565b6000611b1188611d28565b905060008160400151611b2657816000015190505b60008990505b888114158015611b3c5750848714155b15611c0257611b4a81612820565b9250826040015115611b5b57611bf7565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611b9b57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bf65780848880600101995081518110611be957611be861489f565b5b6020026020010181815250505b5b806001019050611b2c565b508583528296505050505050505b9392505050565b6000801b81565b6000611c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c569061441e565b60405180910390fd5b5050565b611c6e848484610ebf565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611cd057611c9984848484612854565b611ccf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60115481565b611ce46122e2565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d306135d7565b611d386135d7565b611d406122d9565b831080611d545750611d5061284b565b8310155b15611d625780915050611d8d565b611d6b83612820565b9050806040015115611d805780915050611d8d565b611d89836129b4565b9150505b919050565b600c8054611d9f9061437a565b80601f0160208091040260200160405190810160405280929190818152602001828054611dcb9061437a565b8015611e185780601f10611ded57610100808354040283529160200191611e18565b820191906000526020600020905b815481529060010190602001808311611dfb57829003601f168201915b505050505081565b6060600073ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611f2157611e828261227a565b611ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb890614940565b60405180910390fd5b6000611ecb6129d4565b90506000815111611eeb5760405180602001604052806000815250611f19565b80611ef584612a66565b600c604051602001611f0993929190614a30565b6040516020818303038152906040525b915050611fd4565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166378b219bd836040518263ffffffff1660e01b8152600401611f7c9190613960565b60006040518083038186803b158015611f9457600080fd5b505afa158015611fa8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611fd19190614ad1565b90505b919050565b611fe16122e2565b611feb8282612449565b5050565b600e5481565b611ffd6122e2565b80600c9080519060200190612013929190613551565b5050565b61201f6122e2565b80601460006101000a81548160ff02191690831515021790555050565b60135481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120de6122e2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561214e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214590614b8c565b60405180910390fd5b6121578161275a565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121b557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121e55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061225f575061225e82612bc7565b5b9050919050565b61227781612272612441565b612c31565b50565b6000816122856122d9565b11158015612294575060005482105b80156122d2575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006001905090565b6122ea612441565b73ffffffffffffffffffffffffffffffffffffffff166123086118dc565b73ffffffffffffffffffffffffffffffffffffffff161461235e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235590614bf8565b60405180910390fd5b565b61236a8282611906565b61243d5760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506123e2612441565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6124538282611906565b156125275760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506124cc612441565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff16601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b490614c64565b60405180910390fd5b6000601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161260590614cb5565b60006040518083038185875af1925050503d8060008114612642576040519150601f19603f3d011682016040523d82523d6000602084013e612647565b606091505b505090508061265557600080fd5b50565b612672828260405180602001604052806000815250612cce565b5050565b600033905090565b612689816000612d6b565b50565b6000808290508061269b6122d9565b11612723576000548110156127225760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612720575b60008114156127165760046000836001900393508381526020019081526020016000205490506126eb565b8092505050612755565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6128286135d7565b6128446004600084815260200190815260200160002054612fbf565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261287a612676565b8786866040518563ffffffff1660e01b815260040161289c9493929190614d1f565b602060405180830381600087803b1580156128b657600080fd5b505af19250505080156128e757506040513d601f19601f820116820180604052508101906128e49190614d80565b60015b612961573d8060008114612917576040519150601f19603f3d011682016040523d82523d6000602084013e61291c565b606091505b50600081511415612959576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6129bc6135d7565b6129cd6129c88361268c565b612fbf565b9050919050565b6060600b80546129e39061437a565b80601f0160208091040260200160405190810160405280929190818152602001828054612a0f9061437a565b8015612a5c5780601f10612a3157610100808354040283529160200191612a5c565b820191906000526020600020905b815481529060010190602001808311612a3f57829003601f168201915b5050505050905090565b60606000821415612aae576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612bc2565b600082905060005b60008214612ae0578080612ac990614dad565b915050600a82612ad99190614e25565b9150612ab6565b60008167ffffffffffffffff811115612afc57612afb613ad2565b5b6040519080825280601f01601f191660200182016040528015612b2e5781602001600182028036833780820191505090505b5090505b60008514612bbb57600182612b479190614e56565b9150600a85612b569190614e8a565b6030612b629190614669565b60f81b818381518110612b7857612b7761489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bb49190614e25565b9450612b32565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c3b8282611906565b612cca57612c608173ffffffffffffffffffffffffffffffffffffffff166014613075565b612c6e8360001c6020613075565b604051602001612c7f929190614f53565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc19190613804565b60405180910390fd5b5050565b612cd883836132b1565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612d6657600080549050600083820390505b612d186000868380600101945086612854565b612d4e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612d05578160005414612d6357600080fd5b50505b505050565b6000612d768361268c565b90506000819050600080612d898661346e565b915091508415612df257612da58184612da0612676565b613495565b612df157612dba83612db5612676565b612042565b612df0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612e008360008860016134d9565b8015612e0b57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612eb383612e70856000886134df565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613507565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085161415612f3b576000600187019050600060046000838152602001908152602001600020541415612f39576000548114612f38578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612fa5836000886001613532565b600160008154809291906001019190505550505050505050565b612fc76135d7565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b606060006002836002613088919061476d565b6130929190614669565b67ffffffffffffffff8111156130ab576130aa613ad2565b5b6040519080825280601f01601f1916602001820160405280156130dd5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106131155761311461489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106131795761317861489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026131b9919061476d565b6131c39190614669565b90505b6001811115613263577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132055761320461489f565b5b1a60f81b82828151811061321c5761321b61489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061325c90614f8d565b90506131c6565b50600084146132a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329e90615003565b60405180910390fd5b8091505092915050565b60008054905060008214156132f2576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132ff60008483856134d9565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506133768361336760008660006134df565b61337085613538565b17613507565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461341757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506133dc565b506000821415613453576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506134696000848385613532565b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86134f6868684613548565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006001821460e11b9050919050565b60009392505050565b82805461355d9061437a565b90600052602060002090601f01602090048101928261357f57600085556135c6565b82601f1061359857805160ff19168380011785556135c6565b828001600101855582156135c6579182015b828111156135c55782518255916020019190600101906135aa565b5b5090506135d39190613626565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561363f576000816000905550600101613627565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61368c81613657565b811461369757600080fd5b50565b6000813590506136a981613683565b92915050565b6000602082840312156136c5576136c461364d565b5b60006136d38482850161369a565b91505092915050565b60008115159050919050565b6136f1816136dc565b82525050565b600060208201905061370c60008301846136e8565b92915050565b61371b816136dc565b811461372657600080fd5b50565b60008135905061373881613712565b92915050565b6000602082840312156137545761375361364d565b5b600061376284828501613729565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137a557808201518184015260208101905061378a565b838111156137b4576000848401525b50505050565b6000601f19601f8301169050919050565b60006137d68261376b565b6137e08185613776565b93506137f0818560208601613787565b6137f9816137ba565b840191505092915050565b6000602082019050818103600083015261381e81846137cb565b905092915050565b6000819050919050565b61383981613826565b811461384457600080fd5b50565b60008135905061385681613830565b92915050565b6000602082840312156138725761387161364d565b5b600061388084828501613847565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138b482613889565b9050919050565b6138c4816138a9565b82525050565b60006020820190506138df60008301846138bb565b92915050565b6138ee816138a9565b81146138f957600080fd5b50565b60008135905061390b816138e5565b92915050565b600080604083850312156139285761392761364d565b5b6000613936858286016138fc565b925050602061394785828601613847565b9150509250929050565b61395a81613826565b82525050565b60006020820190506139756000830184613951565b92915050565b6000806000606084860312156139945761399361364d565b5b60006139a2868287016138fc565b93505060206139b3868287016138fc565b92505060406139c486828701613847565b9150509250925092565b6000819050919050565b6139e1816139ce565b81146139ec57600080fd5b50565b6000813590506139fe816139d8565b92915050565b600060208284031215613a1a57613a1961364d565b5b6000613a28848285016139ef565b91505092915050565b613a3a816139ce565b82525050565b6000602082019050613a556000830184613a31565b92915050565b60008060408385031215613a7257613a7161364d565b5b6000613a80858286016139ef565b9250506020613a91858286016138fc565b9150509250929050565b600060208284031215613ab157613ab061364d565b5b6000613abf848285016138fc565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b0a826137ba565b810181811067ffffffffffffffff82111715613b2957613b28613ad2565b5b80604052505050565b6000613b3c613643565b9050613b488282613b01565b919050565b600067ffffffffffffffff821115613b6857613b67613ad2565b5b613b71826137ba565b9050602081019050919050565b82818337600083830152505050565b6000613ba0613b9b84613b4d565b613b32565b905082815260208101848484011115613bbc57613bbb613acd565b5b613bc7848285613b7e565b509392505050565b600082601f830112613be457613be3613ac8565b5b8135613bf4848260208601613b8d565b91505092915050565b600060208284031215613c1357613c1261364d565b5b600082013567ffffffffffffffff811115613c3157613c30613652565b5b613c3d84828501613bcf565b91505092915050565b6000819050919050565b6000613c6b613c66613c6184613889565b613c46565b613889565b9050919050565b6000613c7d82613c50565b9050919050565b6000613c8f82613c72565b9050919050565b613c9f81613c84565b82525050565b6000602082019050613cba6000830184613c96565b92915050565b600080fd5b600080fd5b60008083601f840112613ce057613cdf613ac8565b5b8235905067ffffffffffffffff811115613cfd57613cfc613cc0565b5b602083019150836020820283011115613d1957613d18613cc5565b5b9250929050565b60008060208385031215613d3757613d3661364d565b5b600083013567ffffffffffffffff811115613d5557613d54613652565b5b613d6185828601613cca565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613da2816138a9565b82525050565b600067ffffffffffffffff82169050919050565b613dc581613da8565b82525050565b613dd4816136dc565b82525050565b600062ffffff82169050919050565b613df281613dda565b82525050565b608082016000820151613e0e6000850182613d99565b506020820151613e216020850182613dbc565b506040820151613e346040850182613dcb565b506060820151613e476060850182613de9565b50505050565b6000613e598383613df8565b60808301905092915050565b6000602082019050919050565b6000613e7d82613d6d565b613e878185613d78565b9350613e9283613d89565b8060005b83811015613ec3578151613eaa8882613e4d565b9750613eb583613e65565b925050600181019050613e96565b5085935050505092915050565b60006020820190508181036000830152613eea8184613e72565b905092915050565b6000613efd82613c72565b9050919050565b613f0d81613ef2565b82525050565b6000602082019050613f286000830184613f04565b92915050565b6000613f39826138a9565b9050919050565b613f4981613f2e565b8114613f5457600080fd5b50565b600081359050613f6681613f40565b92915050565b600060208284031215613f8257613f8161364d565b5b6000613f9084828501613f57565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fce81613826565b82525050565b6000613fe08383613fc5565b60208301905092915050565b6000602082019050919050565b600061400482613f99565b61400e8185613fa4565b935061401983613fb5565b8060005b8381101561404a5781516140318882613fd4565b975061403c83613fec565b92505060018101905061401d565b5085935050505092915050565b600060208201905081810360008301526140718184613ff9565b905092915050565b6000806000606084860312156140925761409161364d565b5b60006140a0868287016138fc565b93505060206140b186828701613847565b92505060406140c286828701613847565b9150509250925092565b600080604083850312156140e3576140e261364d565b5b60006140f1858286016138fc565b925050602061410285828601613729565b9150509250929050565b600067ffffffffffffffff82111561412757614126613ad2565b5b614130826137ba565b9050602081019050919050565b600061415061414b8461410c565b613b32565b90508281526020810184848401111561416c5761416b613acd565b5b614177848285613b7e565b509392505050565b600082601f83011261419457614193613ac8565b5b81356141a484826020860161413d565b91505092915050565b600080600080608085870312156141c7576141c661364d565b5b60006141d5878288016138fc565b94505060206141e6878288016138fc565b93505060406141f787828801613847565b925050606085013567ffffffffffffffff81111561421857614217613652565b5b6142248782880161417f565b91505092959194509250565b600061423b826138a9565b9050919050565b61424b81614230565b811461425657600080fd5b50565b60008135905061426881614242565b92915050565b6000602082840312156142845761428361364d565b5b600061429284828501614259565b91505092915050565b6080820160008201516142b16000850182613d99565b5060208201516142c46020850182613dbc565b5060408201516142d76040850182613dcb565b5060608201516142ea6060850182613de9565b50505050565b6000608082019050614305600083018461429b565b92915050565b600080604083850312156143225761432161364d565b5b6000614330858286016138fc565b9250506020614341858286016138fc565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061439257607f821691505b602082108114156143a6576143a561434b565b5b50919050565b7f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60008201527f6f7420617070726f76616c2e0000000000000000000000000000000000000000602082015250565b6000614408602c83613776565b9150614413826143ac565b604082019050919050565b60006020820190508181036000830152614437816143fb565b9050919050565b7f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60008201527f6f74207472616e736665722e0000000000000000000000000000000000000000602082015250565b600061449a602c83613776565b91506144a58261443e565b604082019050919050565b600060208201905081810360008301526144c98161448d565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061452c602f83613776565b9150614537826144d0565b604082019050919050565b6000602082019050818103600083015261455b8161451f565b9050919050565b7f6d696e7420697320706175736564210000000000000000000000000000000000600082015250565b6000614598600f83613776565b91506145a382614562565b602082019050919050565b600060208201905081810360008301526145c78161458b565b9050919050565b7f7468652063616c6c657220697320616e6f7468657220636f6e74726f6c657200600082015250565b6000614604601f83613776565b915061460f826145ce565b602082019050919050565b60006020820190508181036000830152614633816145f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061467482613826565b915061467f83613826565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146b4576146b361463a565b5b828201905092915050565b6000815190506146ce81613830565b92915050565b6000602082840312156146ea576146e961364d565b5b60006146f8848285016146bf565b91505092915050565b7f6e6f7420656e6f75676820434e504320616d6f756e7400000000000000000000600082015250565b6000614737601683613776565b915061474282614701565b602082019050919050565b600060208201905081810360008301526147668161472a565b9050919050565b600061477882613826565b915061478383613826565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147bc576147bb61463a565b5b828202905092915050565b7f6e6f7420656e6f75676820616d6f756e74000000000000000000000000000000600082015250565b60006147fd601183613776565b9150614808826147c7565b602082019050919050565b6000602082019050818103600083015261482c816147f0565b9050919050565b7f4f6e6c7920746865206f776e65722063616e206275726e000000000000000000600082015250565b6000614869601783613776565b915061487482614833565b602082019050919050565b600060208201905081810360008301526148988161485c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231414d657461646174613a2055524920717565727920666f72206e60008201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b600061492a603083613776565b9150614935826148ce565b604082019050919050565b600060208201905081810360008301526149598161491d565b9050919050565b600081905092915050565b60006149768261376b565b6149808185614960565b9350614990818560208601613787565b80840191505092915050565b60008190508160005260206000209050919050565b600081546149be8161437a565b6149c88186614960565b945060018216600081146149e357600181146149f457614a27565b60ff19831686528186019350614a27565b6149fd8561499c565b60005b83811015614a1f57815481890152600182019150602081019050614a00565b838801955050505b50505092915050565b6000614a3c828661496b565b9150614a48828561496b565b9150614a5482846149b1565b9150819050949350505050565b6000614a74614a6f84613b4d565b613b32565b905082815260208101848484011115614a9057614a8f613acd565b5b614a9b848285613787565b509392505050565b600082601f830112614ab857614ab7613ac8565b5b8151614ac8848260208601614a61565b91505092915050565b600060208284031215614ae757614ae661364d565b5b600082015167ffffffffffffffff811115614b0557614b04613652565b5b614b1184828501614aa3565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b76602683613776565b9150614b8182614b1a565b604082019050919050565b60006020820190508181036000830152614ba581614b69565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614be2602083613776565b9150614bed82614bac565b602082019050919050565b60006020820190508181036000830152614c1181614bd5565b9050919050565b7f77697468647261772061646472657373206973203020616464726573732e0000600082015250565b6000614c4e601e83613776565b9150614c5982614c18565b602082019050919050565b60006020820190508181036000830152614c7d81614c41565b9050919050565b600081905092915050565b50565b6000614c9f600083614c84565b9150614caa82614c8f565b600082019050919050565b6000614cc082614c92565b9150819050919050565b600081519050919050565b600082825260208201905092915050565b6000614cf182614cca565b614cfb8185614cd5565b9350614d0b818560208601613787565b614d14816137ba565b840191505092915050565b6000608082019050614d3460008301876138bb565b614d4160208301866138bb565b614d4e6040830185613951565b8181036060830152614d608184614ce6565b905095945050505050565b600081519050614d7a81613683565b92915050565b600060208284031215614d9657614d9561364d565b5b6000614da484828501614d6b565b91505092915050565b6000614db882613826565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614deb57614dea61463a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e3082613826565b9150614e3b83613826565b925082614e4b57614e4a614df6565b5b828204905092915050565b6000614e6182613826565b9150614e6c83613826565b925082821015614e7f57614e7e61463a565b5b828203905092915050565b6000614e9582613826565b9150614ea083613826565b925082614eb057614eaf614df6565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614ef1601783614960565b9150614efc82614ebb565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614f3d601183614960565b9150614f4882614f07565b601182019050919050565b6000614f5e82614ee4565b9150614f6a828561496b565b9150614f7582614f30565b9150614f81828461496b565b91508190509392505050565b6000614f9882613826565b91506000821415614fac57614fab61463a565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614fed602083613776565b9150614ff882614fb7565b602082019050919050565b6000602082019050818103600083015261501c81614fe0565b905091905056fea2646970667358221220a297ae104c456b4b711b51360f0eb99fc0bfb143412d163784aa082a02820f9664736f6c63430008090033

Deployed Bytecode

0x6080604052600436106103505760003560e01c80636352211e116101c6578063a22cb465116100f7578063d547741f11610095578063e5fc6ef71161006f578063e5fc6ef714610c17578063e63bef4414610c40578063e985e9c514610c6b578063f2fde38b14610ca857610350565b8063d547741f14610b9a578063d5abeb0114610bc3578063da3ef23f14610bee57610350565b8063c0c2e0a3116100d1578063c0c2e0a314610acc578063c23dc68f14610af5578063c668286214610b32578063c87b56dd14610b5d57610350565b8063a22cb46514610a5c578063b88d4fde14610a85578063bba64ab414610aa157610350565b80637d83f7c71161016457806391d148541161013e57806391d148541461098c57806395d89b41146109c957806399a2557a146109f4578063a217fddf14610a3157610350565b80637d83f7c7146108fb5780638462151c146109245780638da5cb5b1461096157610350565b80636ec05d55116101a05780636ec05d55146108555780636f8b44b01461087e57806370a08231146108a7578063715018a6146108e457610350565b80636352211e146107c25780636a98de4c146107ff5780636c9a33481461082a57610350565b80632f2ff15d116102a057806342966c681161023e578063592b021511610218578063592b0215146107045780635bbb21771461072f5780635c975abb1461076c5780635cb0e67d1461079757610350565b806342966c681461068957806344a0d68a146106b257806355f804b3146106db57610350565b80633ab1a4941161027a5780633ab1a494146106115780633ccfd60b1461063a57806340c10f191461065157806342842e0e1461066d57610350565b80632f2ff15d1461059657806336568abe146105bf5780633a515b2f146105e857610350565b806313faede61161030d578063239c70ae116102e7578063239c70ae146104e757806323b872dd14610512578063248a9ca31461052e5780632a0acc6a1461056b57610350565b806313faede61461046857806318160ddd146104935780631d17ed32146104be57610350565b806301ffc9a71461035557806302329a291461039257806306fdde03146103bb578063081812fc146103e6578063088a4ed014610423578063095ea7b31461044c575b600080fd5b34801561036157600080fd5b5061037c600480360381019061037791906136af565b610cd1565b60405161038991906136f7565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b4919061373e565b610cf3565b005b3480156103c757600080fd5b506103d0610d1d565b6040516103dd9190613804565b60405180910390f35b3480156103f257600080fd5b5061040d6004803603810190610408919061385c565b610daf565b60405161041a91906138ca565b60405180910390f35b34801561042f57600080fd5b5061044a6004803603810190610445919061385c565b610e2e565b005b61046660048036038101906104619190613911565b610e45565b005b34801561047457600080fd5b5061047d610e8a565b60405161048a9190613960565b60405180910390f35b34801561049f57600080fd5b506104a8610e90565b6040516104b59190613960565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e0919061385c565b610ea7565b005b3480156104f357600080fd5b506104fc610eb9565b6040516105099190613960565b60405180910390f35b61052c6004803603810190610527919061397b565b610ebf565b005b34801561053a57600080fd5b5061055560048036038101906105509190613a04565b610f05565b6040516105629190613a40565b60405180910390f35b34801561057757600080fd5b50610580610f25565b60405161058d9190613a40565b60405180910390f35b3480156105a257600080fd5b506105bd60048036038101906105b89190613a5b565b610f2b565b005b3480156105cb57600080fd5b506105e660048036038101906105e19190613a5b565b610f41565b005b3480156105f457600080fd5b5061060f600480360381019061060a919061385c565b610fc4565b005b34801561061d57600080fd5b5061063860048036038101906106339190613a9b565b610fdb565b005b34801561064657600080fd5b5061064f611027565b005b61066b60048036038101906106669190613911565b611039565b005b6106876004803603810190610682919061397b565b611421565b005b34801561069557600080fd5b506106b060048036038101906106ab919061385c565b611441565b005b3480156106be57600080fd5b506106d960048036038101906106d4919061385c565b6114ca565b005b3480156106e757600080fd5b5061070260048036038101906106fd9190613bfd565b6114e1565b005b34801561071057600080fd5b50610719611508565b6040516107269190613ca5565b60405180910390f35b34801561073b57600080fd5b5061075660048036038101906107519190613d20565b61152e565b6040516107639190613ed0565b60405180910390f35b34801561077857600080fd5b506107816115f1565b60405161078e91906136f7565b60405180910390f35b3480156107a357600080fd5b506107ac611604565b6040516107b99190613960565b60405180910390f35b3480156107ce57600080fd5b506107e960048036038101906107e4919061385c565b61160a565b6040516107f691906138ca565b60405180910390f35b34801561080b57600080fd5b5061081461161c565b6040516108219190613f13565b60405180910390f35b34801561083657600080fd5b5061083f611642565b60405161084c91906136f7565b60405180910390f35b34801561086157600080fd5b5061087c6004803603810190610877919061385c565b611655565b005b34801561088a57600080fd5b506108a560048036038101906108a0919061385c565b611667565b005b3480156108b357600080fd5b506108ce60048036038101906108c99190613a9b565b611679565b6040516108db9190613960565b60405180910390f35b3480156108f057600080fd5b506108f9611732565b005b34801561090757600080fd5b50610922600480360381019061091d9190613f6c565b611746565b005b34801561093057600080fd5b5061094b60048036038101906109469190613a9b565b611792565b6040516109589190614057565b60405180910390f35b34801561096d57600080fd5b506109766118dc565b60405161098391906138ca565b60405180910390f35b34801561099857600080fd5b506109b360048036038101906109ae9190613a5b565b611906565b6040516109c091906136f7565b60405180910390f35b3480156109d557600080fd5b506109de611971565b6040516109eb9190613804565b60405180910390f35b348015610a0057600080fd5b50610a1b6004803603810190610a169190614079565b611a03565b604051610a289190614057565b60405180910390f35b348015610a3d57600080fd5b50610a46611c17565b604051610a539190613a40565b60405180910390f35b348015610a6857600080fd5b50610a836004803603810190610a7e91906140cc565b611c1e565b005b610a9f6004803603810190610a9a91906141ad565b611c63565b005b348015610aad57600080fd5b50610ab6611cd6565b604051610ac39190613960565b60405180910390f35b348015610ad857600080fd5b50610af36004803603810190610aee919061426e565b611cdc565b005b348015610b0157600080fd5b50610b1c6004803603810190610b17919061385c565b611d28565b604051610b2991906142f0565b60405180910390f35b348015610b3e57600080fd5b50610b47611d92565b604051610b549190613804565b60405180910390f35b348015610b6957600080fd5b50610b846004803603810190610b7f919061385c565b611e20565b604051610b919190613804565b60405180910390f35b348015610ba657600080fd5b50610bc16004803603810190610bbc9190613a5b565b611fd9565b005b348015610bcf57600080fd5b50610bd8611fef565b604051610be59190613960565b60405180910390f35b348015610bfa57600080fd5b50610c156004803603810190610c109190613bfd565b611ff5565b005b348015610c2357600080fd5b50610c3e6004803603810190610c39919061373e565b612017565b005b348015610c4c57600080fd5b50610c5561203c565b604051610c629190613960565b60405180910390f35b348015610c7757600080fd5b50610c926004803603810190610c8d919061430b565b612042565b604051610c9f91906136f7565b60405180910390f35b348015610cb457600080fd5b50610ccf6004803603810190610cca9190613a9b565b6120d6565b005b6000610cdc8261215a565b80610cec5750610ceb826121ec565b5b9050919050565b600a54610cff81612266565b81600f60006101000a81548160ff0219169083151502179055505050565b606060028054610d2c9061437a565b80601f0160208091040260200160405190810160405280929190818152602001828054610d589061437a565b8015610da55780601f10610d7a57610100808354040283529160200191610da5565b820191906000526020600020905b815481529060010190602001808311610d8857829003601f168201915b5050505050905090565b6000610dba8261227a565b610df0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600a54610e3a81612266565b81600d819055505050565b6000610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d9061441e565b60405180910390fd5b5050565b60105481565b6000610e9a6122d9565b6001546000540303905090565b610eaf6122e2565b8060138190555050565b600d5481565b6000610f00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef7906144b0565b60405180910390fd5b505050565b600060096000838152602001908152602001600020600101549050919050565b600a5481565b610f336122e2565b610f3d8282612360565b5050565b610f49612441565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fad90614542565b60405180910390fd5b610fc08282612449565b5050565b600a54610fd081612266565b816011819055505050565b610fe36122e2565b80601460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61102f6122e2565b61103761252b565b565b6000611043610e90565b9050600f60009054906101000a900460ff1615611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c906145ae565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fa9061461a565b60405180910390fd5b6000821161111057600080fd5b600d5482111561111f57600080fd5b600e54828261112e9190614669565b111561113957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113c157601354601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316111d8612441565b6040518263ffffffff1660e01b81526004016111f491906138ca565b60206040518083038186803b15801561120c57600080fd5b505afa158015611220573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124491906146d4565b1015611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c9061474d565b60405180910390fd5b60011515601460009054906101000a900460ff16151514801561135b5750601254601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316112ec612441565b6040518263ffffffff1660e01b815260040161130891906138ca565b60206040518083038186803b15801561132057600080fd5b505afa158015611334573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135891906146d4565b10155b156113c0578160115461136e919061476d565b3410156113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a790614813565b60405180910390fd5b6113ba8383612658565b5061141d565b5b816010546113cf919061476d565b341015611411576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140890614813565b60405180910390fd5b61141b8383612658565b505b5050565b61143c83838360405180602001604052806000815250611c63565b505050565b61144a8161160a565b73ffffffffffffffffffffffffffffffffffffffff16611468612676565b73ffffffffffffffffffffffffffffffffffffffff16146114be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b59061487f565b60405180910390fd5b6114c78161267e565b50565b600a546114d681612266565b816010819055505050565b600a546114ed81612266565b81600b9080519060200190611503929190613551565b505050565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600083839050905060008167ffffffffffffffff81111561155457611553613ad2565b5b60405190808252806020026020018201604052801561158d57816020015b61157a6135d7565b8152602001906001900390816115725790505b50905060005b8281146115e5576115bc8686838181106115b0576115af61489f565b5b90506020020135611d28565b8282815181106115cf576115ce61489f565b5b6020026020010181905250806001019050611593565b50809250505092915050565b600f60009054906101000a900460ff1681565b60125481565b60006116158261268c565b9050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601460009054906101000a900460ff1681565b61165d6122e2565b8060128190555050565b61166f6122e2565b80600e8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116e1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61173a6122e2565b611744600061275a565b565b61174e6122e2565b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008060006117a285611679565b905060008167ffffffffffffffff8111156117c0576117bf613ad2565b5b6040519080825280602002602001820160405280156117ee5781602001602082028036833780820191505090505b5090506117f96135d7565b60006118036122d9565b90505b8386146118ce5761181681612820565b9150816040015115611827576118c3565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461186757816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156118c257808387806001019850815181106118b5576118b461489f565b5b6020026020010181815250505b5b806001019050611806565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600380546119809061437a565b80601f01602080910402602001604051908101604052809291908181526020018280546119ac9061437a565b80156119f95780601f106119ce576101008083540402835291602001916119f9565b820191906000526020600020905b8154815290600101906020018083116119dc57829003601f168201915b5050505050905090565b6060818310611a3e576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611a4961284b565b9050611a536122d9565b851015611a6557611a626122d9565b94505b80841115611a71578093505b6000611a7c87611679565b905084861015611a9f576000868603905081811015611a99578091505b50611aa4565b600090505b60008167ffffffffffffffff811115611ac057611abf613ad2565b5b604051908082528060200260200182016040528015611aee5781602001602082028036833780820191505090505b5090506000821415611b065780945050505050611c10565b6000611b1188611d28565b905060008160400151611b2657816000015190505b60008990505b888114158015611b3c5750848714155b15611c0257611b4a81612820565b9250826040015115611b5b57611bf7565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611b9b57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bf65780848880600101995081518110611be957611be861489f565b5b6020026020010181815250505b5b806001019050611b2c565b508583528296505050505050505b9392505050565b6000801b81565b6000611c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c569061441e565b60405180910390fd5b5050565b611c6e848484610ebf565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611cd057611c9984848484612854565b611ccf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60115481565b611ce46122e2565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d306135d7565b611d386135d7565b611d406122d9565b831080611d545750611d5061284b565b8310155b15611d625780915050611d8d565b611d6b83612820565b9050806040015115611d805780915050611d8d565b611d89836129b4565b9150505b919050565b600c8054611d9f9061437a565b80601f0160208091040260200160405190810160405280929190818152602001828054611dcb9061437a565b8015611e185780601f10611ded57610100808354040283529160200191611e18565b820191906000526020600020905b815481529060010190602001808311611dfb57829003601f168201915b505050505081565b6060600073ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611f2157611e828261227a565b611ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb890614940565b60405180910390fd5b6000611ecb6129d4565b90506000815111611eeb5760405180602001604052806000815250611f19565b80611ef584612a66565b600c604051602001611f0993929190614a30565b6040516020818303038152906040525b915050611fd4565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166378b219bd836040518263ffffffff1660e01b8152600401611f7c9190613960565b60006040518083038186803b158015611f9457600080fd5b505afa158015611fa8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611fd19190614ad1565b90505b919050565b611fe16122e2565b611feb8282612449565b5050565b600e5481565b611ffd6122e2565b80600c9080519060200190612013929190613551565b5050565b61201f6122e2565b80601460006101000a81548160ff02191690831515021790555050565b60135481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120de6122e2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561214e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214590614b8c565b60405180910390fd5b6121578161275a565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121b557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121e55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061225f575061225e82612bc7565b5b9050919050565b61227781612272612441565b612c31565b50565b6000816122856122d9565b11158015612294575060005482105b80156122d2575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006001905090565b6122ea612441565b73ffffffffffffffffffffffffffffffffffffffff166123086118dc565b73ffffffffffffffffffffffffffffffffffffffff161461235e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235590614bf8565b60405180910390fd5b565b61236a8282611906565b61243d5760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506123e2612441565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6124538282611906565b156125275760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506124cc612441565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff16601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b490614c64565b60405180910390fd5b6000601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161260590614cb5565b60006040518083038185875af1925050503d8060008114612642576040519150601f19603f3d011682016040523d82523d6000602084013e612647565b606091505b505090508061265557600080fd5b50565b612672828260405180602001604052806000815250612cce565b5050565b600033905090565b612689816000612d6b565b50565b6000808290508061269b6122d9565b11612723576000548110156127225760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612720575b60008114156127165760046000836001900393508381526020019081526020016000205490506126eb565b8092505050612755565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6128286135d7565b6128446004600084815260200190815260200160002054612fbf565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261287a612676565b8786866040518563ffffffff1660e01b815260040161289c9493929190614d1f565b602060405180830381600087803b1580156128b657600080fd5b505af19250505080156128e757506040513d601f19601f820116820180604052508101906128e49190614d80565b60015b612961573d8060008114612917576040519150601f19603f3d011682016040523d82523d6000602084013e61291c565b606091505b50600081511415612959576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6129bc6135d7565b6129cd6129c88361268c565b612fbf565b9050919050565b6060600b80546129e39061437a565b80601f0160208091040260200160405190810160405280929190818152602001828054612a0f9061437a565b8015612a5c5780601f10612a3157610100808354040283529160200191612a5c565b820191906000526020600020905b815481529060010190602001808311612a3f57829003601f168201915b5050505050905090565b60606000821415612aae576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612bc2565b600082905060005b60008214612ae0578080612ac990614dad565b915050600a82612ad99190614e25565b9150612ab6565b60008167ffffffffffffffff811115612afc57612afb613ad2565b5b6040519080825280601f01601f191660200182016040528015612b2e5781602001600182028036833780820191505090505b5090505b60008514612bbb57600182612b479190614e56565b9150600a85612b569190614e8a565b6030612b629190614669565b60f81b818381518110612b7857612b7761489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bb49190614e25565b9450612b32565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c3b8282611906565b612cca57612c608173ffffffffffffffffffffffffffffffffffffffff166014613075565b612c6e8360001c6020613075565b604051602001612c7f929190614f53565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc19190613804565b60405180910390fd5b5050565b612cd883836132b1565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612d6657600080549050600083820390505b612d186000868380600101945086612854565b612d4e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612d05578160005414612d6357600080fd5b50505b505050565b6000612d768361268c565b90506000819050600080612d898661346e565b915091508415612df257612da58184612da0612676565b613495565b612df157612dba83612db5612676565b612042565b612df0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612e008360008860016134d9565b8015612e0b57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612eb383612e70856000886134df565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613507565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085161415612f3b576000600187019050600060046000838152602001908152602001600020541415612f39576000548114612f38578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612fa5836000886001613532565b600160008154809291906001019190505550505050505050565b612fc76135d7565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b606060006002836002613088919061476d565b6130929190614669565b67ffffffffffffffff8111156130ab576130aa613ad2565b5b6040519080825280601f01601f1916602001820160405280156130dd5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106131155761311461489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106131795761317861489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026131b9919061476d565b6131c39190614669565b90505b6001811115613263577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132055761320461489f565b5b1a60f81b82828151811061321c5761321b61489f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061325c90614f8d565b90506131c6565b50600084146132a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329e90615003565b60405180910390fd5b8091505092915050565b60008054905060008214156132f2576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132ff60008483856134d9565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506133768361336760008660006134df565b61337085613538565b17613507565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461341757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506133dc565b506000821415613453576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506134696000848385613532565b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86134f6868684613548565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006001821460e11b9050919050565b60009392505050565b82805461355d9061437a565b90600052602060002090601f01602090048101928261357f57600085556135c6565b82601f1061359857805160ff19168380011785556135c6565b828001600101855582156135c6579182015b828111156135c55782518255916020019190600101906135aa565b5b5090506135d39190613626565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561363f576000816000905550600101613627565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61368c81613657565b811461369757600080fd5b50565b6000813590506136a981613683565b92915050565b6000602082840312156136c5576136c461364d565b5b60006136d38482850161369a565b91505092915050565b60008115159050919050565b6136f1816136dc565b82525050565b600060208201905061370c60008301846136e8565b92915050565b61371b816136dc565b811461372657600080fd5b50565b60008135905061373881613712565b92915050565b6000602082840312156137545761375361364d565b5b600061376284828501613729565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137a557808201518184015260208101905061378a565b838111156137b4576000848401525b50505050565b6000601f19601f8301169050919050565b60006137d68261376b565b6137e08185613776565b93506137f0818560208601613787565b6137f9816137ba565b840191505092915050565b6000602082019050818103600083015261381e81846137cb565b905092915050565b6000819050919050565b61383981613826565b811461384457600080fd5b50565b60008135905061385681613830565b92915050565b6000602082840312156138725761387161364d565b5b600061388084828501613847565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138b482613889565b9050919050565b6138c4816138a9565b82525050565b60006020820190506138df60008301846138bb565b92915050565b6138ee816138a9565b81146138f957600080fd5b50565b60008135905061390b816138e5565b92915050565b600080604083850312156139285761392761364d565b5b6000613936858286016138fc565b925050602061394785828601613847565b9150509250929050565b61395a81613826565b82525050565b60006020820190506139756000830184613951565b92915050565b6000806000606084860312156139945761399361364d565b5b60006139a2868287016138fc565b93505060206139b3868287016138fc565b92505060406139c486828701613847565b9150509250925092565b6000819050919050565b6139e1816139ce565b81146139ec57600080fd5b50565b6000813590506139fe816139d8565b92915050565b600060208284031215613a1a57613a1961364d565b5b6000613a28848285016139ef565b91505092915050565b613a3a816139ce565b82525050565b6000602082019050613a556000830184613a31565b92915050565b60008060408385031215613a7257613a7161364d565b5b6000613a80858286016139ef565b9250506020613a91858286016138fc565b9150509250929050565b600060208284031215613ab157613ab061364d565b5b6000613abf848285016138fc565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b0a826137ba565b810181811067ffffffffffffffff82111715613b2957613b28613ad2565b5b80604052505050565b6000613b3c613643565b9050613b488282613b01565b919050565b600067ffffffffffffffff821115613b6857613b67613ad2565b5b613b71826137ba565b9050602081019050919050565b82818337600083830152505050565b6000613ba0613b9b84613b4d565b613b32565b905082815260208101848484011115613bbc57613bbb613acd565b5b613bc7848285613b7e565b509392505050565b600082601f830112613be457613be3613ac8565b5b8135613bf4848260208601613b8d565b91505092915050565b600060208284031215613c1357613c1261364d565b5b600082013567ffffffffffffffff811115613c3157613c30613652565b5b613c3d84828501613bcf565b91505092915050565b6000819050919050565b6000613c6b613c66613c6184613889565b613c46565b613889565b9050919050565b6000613c7d82613c50565b9050919050565b6000613c8f82613c72565b9050919050565b613c9f81613c84565b82525050565b6000602082019050613cba6000830184613c96565b92915050565b600080fd5b600080fd5b60008083601f840112613ce057613cdf613ac8565b5b8235905067ffffffffffffffff811115613cfd57613cfc613cc0565b5b602083019150836020820283011115613d1957613d18613cc5565b5b9250929050565b60008060208385031215613d3757613d3661364d565b5b600083013567ffffffffffffffff811115613d5557613d54613652565b5b613d6185828601613cca565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613da2816138a9565b82525050565b600067ffffffffffffffff82169050919050565b613dc581613da8565b82525050565b613dd4816136dc565b82525050565b600062ffffff82169050919050565b613df281613dda565b82525050565b608082016000820151613e0e6000850182613d99565b506020820151613e216020850182613dbc565b506040820151613e346040850182613dcb565b506060820151613e476060850182613de9565b50505050565b6000613e598383613df8565b60808301905092915050565b6000602082019050919050565b6000613e7d82613d6d565b613e878185613d78565b9350613e9283613d89565b8060005b83811015613ec3578151613eaa8882613e4d565b9750613eb583613e65565b925050600181019050613e96565b5085935050505092915050565b60006020820190508181036000830152613eea8184613e72565b905092915050565b6000613efd82613c72565b9050919050565b613f0d81613ef2565b82525050565b6000602082019050613f286000830184613f04565b92915050565b6000613f39826138a9565b9050919050565b613f4981613f2e565b8114613f5457600080fd5b50565b600081359050613f6681613f40565b92915050565b600060208284031215613f8257613f8161364d565b5b6000613f9084828501613f57565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fce81613826565b82525050565b6000613fe08383613fc5565b60208301905092915050565b6000602082019050919050565b600061400482613f99565b61400e8185613fa4565b935061401983613fb5565b8060005b8381101561404a5781516140318882613fd4565b975061403c83613fec565b92505060018101905061401d565b5085935050505092915050565b600060208201905081810360008301526140718184613ff9565b905092915050565b6000806000606084860312156140925761409161364d565b5b60006140a0868287016138fc565b93505060206140b186828701613847565b92505060406140c286828701613847565b9150509250925092565b600080604083850312156140e3576140e261364d565b5b60006140f1858286016138fc565b925050602061410285828601613729565b9150509250929050565b600067ffffffffffffffff82111561412757614126613ad2565b5b614130826137ba565b9050602081019050919050565b600061415061414b8461410c565b613b32565b90508281526020810184848401111561416c5761416b613acd565b5b614177848285613b7e565b509392505050565b600082601f83011261419457614193613ac8565b5b81356141a484826020860161413d565b91505092915050565b600080600080608085870312156141c7576141c661364d565b5b60006141d5878288016138fc565b94505060206141e6878288016138fc565b93505060406141f787828801613847565b925050606085013567ffffffffffffffff81111561421857614217613652565b5b6142248782880161417f565b91505092959194509250565b600061423b826138a9565b9050919050565b61424b81614230565b811461425657600080fd5b50565b60008135905061426881614242565b92915050565b6000602082840312156142845761428361364d565b5b600061429284828501614259565b91505092915050565b6080820160008201516142b16000850182613d99565b5060208201516142c46020850182613dbc565b5060408201516142d76040850182613dcb565b5060608201516142ea6060850182613de9565b50505050565b6000608082019050614305600083018461429b565b92915050565b600080604083850312156143225761432161364d565b5b6000614330858286016138fc565b9250506020614341858286016138fc565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061439257607f821691505b602082108114156143a6576143a561434b565b5b50919050565b7f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60008201527f6f7420617070726f76616c2e0000000000000000000000000000000000000000602082015250565b6000614408602c83613776565b9150614413826143ac565b604082019050919050565b60006020820190508181036000830152614437816143fb565b9050919050565b7f5468697320746f6b656e206973205342542c20736f20746869732063616e206e60008201527f6f74207472616e736665722e0000000000000000000000000000000000000000602082015250565b600061449a602c83613776565b91506144a58261443e565b604082019050919050565b600060208201905081810360008301526144c98161448d565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061452c602f83613776565b9150614537826144d0565b604082019050919050565b6000602082019050818103600083015261455b8161451f565b9050919050565b7f6d696e7420697320706175736564210000000000000000000000000000000000600082015250565b6000614598600f83613776565b91506145a382614562565b602082019050919050565b600060208201905081810360008301526145c78161458b565b9050919050565b7f7468652063616c6c657220697320616e6f7468657220636f6e74726f6c657200600082015250565b6000614604601f83613776565b915061460f826145ce565b602082019050919050565b60006020820190508181036000830152614633816145f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061467482613826565b915061467f83613826565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146b4576146b361463a565b5b828201905092915050565b6000815190506146ce81613830565b92915050565b6000602082840312156146ea576146e961364d565b5b60006146f8848285016146bf565b91505092915050565b7f6e6f7420656e6f75676820434e504320616d6f756e7400000000000000000000600082015250565b6000614737601683613776565b915061474282614701565b602082019050919050565b600060208201905081810360008301526147668161472a565b9050919050565b600061477882613826565b915061478383613826565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147bc576147bb61463a565b5b828202905092915050565b7f6e6f7420656e6f75676820616d6f756e74000000000000000000000000000000600082015250565b60006147fd601183613776565b9150614808826147c7565b602082019050919050565b6000602082019050818103600083015261482c816147f0565b9050919050565b7f4f6e6c7920746865206f776e65722063616e206275726e000000000000000000600082015250565b6000614869601783613776565b915061487482614833565b602082019050919050565b600060208201905081810360008301526148988161485c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231414d657461646174613a2055524920717565727920666f72206e60008201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b600061492a603083613776565b9150614935826148ce565b604082019050919050565b600060208201905081810360008301526149598161491d565b9050919050565b600081905092915050565b60006149768261376b565b6149808185614960565b9350614990818560208601613787565b80840191505092915050565b60008190508160005260206000209050919050565b600081546149be8161437a565b6149c88186614960565b945060018216600081146149e357600181146149f457614a27565b60ff19831686528186019350614a27565b6149fd8561499c565b60005b83811015614a1f57815481890152600182019150602081019050614a00565b838801955050505b50505092915050565b6000614a3c828661496b565b9150614a48828561496b565b9150614a5482846149b1565b9150819050949350505050565b6000614a74614a6f84613b4d565b613b32565b905082815260208101848484011115614a9057614a8f613acd565b5b614a9b848285613787565b509392505050565b600082601f830112614ab857614ab7613ac8565b5b8151614ac8848260208601614a61565b91505092915050565b600060208284031215614ae757614ae661364d565b5b600082015167ffffffffffffffff811115614b0557614b04613652565b5b614b1184828501614aa3565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b76602683613776565b9150614b8182614b1a565b604082019050919050565b60006020820190508181036000830152614ba581614b69565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614be2602083613776565b9150614bed82614bac565b602082019050919050565b60006020820190508181036000830152614c1181614bd5565b9050919050565b7f77697468647261772061646472657373206973203020616464726573732e0000600082015250565b6000614c4e601e83613776565b9150614c5982614c18565b602082019050919050565b60006020820190508181036000830152614c7d81614c41565b9050919050565b600081905092915050565b50565b6000614c9f600083614c84565b9150614caa82614c8f565b600082019050919050565b6000614cc082614c92565b9150819050919050565b600081519050919050565b600082825260208201905092915050565b6000614cf182614cca565b614cfb8185614cd5565b9350614d0b818560208601613787565b614d14816137ba565b840191505092915050565b6000608082019050614d3460008301876138bb565b614d4160208301866138bb565b614d4e6040830185613951565b8181036060830152614d608184614ce6565b905095945050505050565b600081519050614d7a81613683565b92915050565b600060208284031215614d9657614d9561364d565b5b6000614da484828501614d6b565b91505092915050565b6000614db882613826565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614deb57614dea61463a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e3082613826565b9150614e3b83613826565b925082614e4b57614e4a614df6565b5b828204905092915050565b6000614e6182613826565b9150614e6c83613826565b925082821015614e7f57614e7e61463a565b5b828203905092915050565b6000614e9582613826565b9150614ea083613826565b925082614eb057614eaf614df6565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614ef1601783614960565b9150614efc82614ebb565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614f3d601183614960565b9150614f4882614f07565b601182019050919050565b6000614f5e82614ee4565b9150614f6a828561496b565b9150614f7582614f30565b9150614f81828461496b565b91508190509392505050565b6000614f9882613826565b91506000821415614fac57614fab61463a565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614fed602083613776565b9150614ff882614fb7565b602082019050919050565b6000602082019050818103600083015261501c81614fe0565b905091905056fea2646970667358221220a297ae104c456b4b711b51360f0eb99fc0bfb143412d163784aa082a02820f9664736f6c63430008090033

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.