ETH Price: $3,359.86 (+0.36%)

Contract

0x52f516a94D0eb5Fd8fA628484e864C80BED497e4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...211280912024-11-06 10:43:5917 days ago1730889839IN
0x52f516a9...0BED497e4
0 ETH0.0008350613.81577754
Set Approval For...211280832024-11-06 10:42:2317 days ago1730889743IN
0x52f516a9...0BED497e4
0 ETH0.0008206413.59606388
Set Approval For...211280712024-11-06 10:39:5917 days ago1730889599IN
0x52f516a9...0BED497e4
0 ETH0.0008165613.52854429
Set Approval For...211164552024-11-04 19:44:2318 days ago1730749463IN
0x52f516a9...0BED497e4
0 ETH0.000355345.88715259
Set Approval For...210788702024-10-30 13:52:4723 days ago1730296367IN
0x52f516a9...0BED497e4
0 ETH0.001064617.63794012
Safe Transfer Fr...210630712024-10-28 8:55:2326 days ago1730105723IN
0x52f516a9...0BED497e4
0 ETH0.000294987.06068079
Set Approval For...208508792024-09-28 18:18:5955 days ago1727547539IN
0x52f516a9...0BED497e4
0 ETH0.000331365.48996283
Set Approval For...208508792024-09-28 18:18:5955 days ago1727547539IN
0x52f516a9...0BED497e4
0 ETH0.000331825.48996283
Set Approval For...207968562024-09-21 5:25:5963 days ago1726896359IN
0x52f516a9...0BED497e4
0 ETH0.000522048.64903192
Set Approval For...207839362024-09-19 10:06:4765 days ago1726740407IN
0x52f516a9...0BED497e4
0 ETH0.0018288930.3003228
Set Approval For...207750022024-09-18 4:09:2366 days ago1726632563IN
0x52f516a9...0BED497e4
0 ETH0.000288384.77779805
Set Approval For...207526722024-09-15 1:17:1169 days ago1726363031IN
0x52f516a9...0BED497e4
0 ETH0.000056261.46334844
Safe Transfer Fr...206457062024-08-31 2:56:2384 days ago1725072983IN
0x52f516a9...0BED497e4
0 ETH0.000086081.46174883
Set Approval For...206222392024-08-27 20:13:4787 days ago1724789627IN
0x52f516a9...0BED497e4
0 ETH0.000170762.82920798
Set Approval For...206041232024-08-25 7:29:5990 days ago1724570999IN
0x52f516a9...0BED497e4
0 ETH0.000058540.96989302
Safe Transfer Fr...205318032024-08-15 5:00:35100 days ago1723698035IN
0x52f516a9...0BED497e4
0 ETH0.000121072.8972663
Safe Transfer Fr...205317982024-08-15 4:59:35100 days ago1723697975IN
0x52f516a9...0BED497e4
0 ETH0.000137612.95362233
Set Approval For...204893682024-08-09 6:52:11106 days ago1723186331IN
0x52f516a9...0BED497e4
0 ETH0.000136872.26764334
Set Approval For...204628352024-08-05 14:02:47109 days ago1722866567IN
0x52f516a9...0BED497e4
0 ETH0.0048483880.32577487
Set Approval For...204372092024-08-02 0:14:35113 days ago1722557675IN
0x52f516a9...0BED497e4
0 ETH0.000268284.44489515
Transfer From204152412024-07-29 22:34:11116 days ago1722292451IN
0x52f516a9...0BED497e4
0 ETH0.000124162.21922806
Set Approval For...203635782024-07-22 17:31:47123 days ago1721669507IN
0x52f516a9...0BED497e4
0 ETH0.000402286.65560745
Set Approval For...203365682024-07-18 23:03:35127 days ago1721343815IN
0x52f516a9...0BED497e4
0 ETH0.000503178.3364017
Set Approval For...203283112024-07-17 19:22:59128 days ago1721244179IN
0x52f516a9...0BED497e4
0 ETH0.000400896.64187426
Set Approval For...202818872024-07-11 7:52:11135 days ago1720684331IN
0x52f516a9...0BED497e4
0 ETH0.00030715.0880264
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VFTokenBurnToMint

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.4;

import "../burn/IBurnVF.sol";
import "../token/ERC721VF.sol";
import "./VFTokenAllExtensions.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract VFTokenBurnToMint is ERC721VF, VFTokenAllExtensions, ReentrancyGuard {
    using ECDSA for bytes32;

    //Token base URI
    string private _baseUri;

    //Address of burn signer
    address private _mintSigner;

    //Address to burn tokens from
    address private _burnFromContractAddress;

    //Address to burn tokens to
    address public constant BURN_ADDRESS =
        0x000000000000000000000000000000000000dEaD;

    error InvalidMintSignature();

    /**
     * @dev Initializes the contract by setting a `initialBaseUri`, `name`, `symbol`,
     * and a `controlContractAddress` to the token collection.
     */
    constructor(
        string memory initialBaseUri,
        string memory name,
        string memory symbol,
        address controlContractAddress,
        address royaltiesContractAddress,
        address renderingContractAddress,
        address mintSigner,
        address burnFromContractAddress
    )
        ERC721VF(name, symbol)
        VFTokenAllExtensions(
            controlContractAddress,
            royaltiesContractAddress,
            renderingContractAddress
        )
    {
        string memory contractAddress = Strings.toHexString(
            uint160(address(this)),
            20
        );
        setBaseURI(
            string(
                abi.encodePacked(initialBaseUri, contractAddress, "/tokens/")
            )
        );
        _mintSigner = mintSigner;
        _burnFromContractAddress = burnFromContractAddress;
    }

    /**
     * @dev Update the mint signer address with `signer`
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function setMintSigner(address signer) external onlyRole(getAdminRole()) {
        _mintSigner = signer;
    }

    /**
     * @dev Get the base token URI
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseUri;
    }

    /**
     * @dev Update the base token URI
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function setBaseURI(string memory baseUri) public onlyRole(getAdminRole()) {
        _baseUri = baseUri;
    }

    /**
     * @dev Permanently lock minting
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function lockMintingPermanently() external onlyRole(getAdminRole()) {
        _lockMintingPermanently();
    }

    /**
     * @dev Set the active/inactive state of minting
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function toggleMintActive() external onlyRole(getAdminRole()) {
        _toggleMintActive();
    }

    /**
     * @dev Set the active/inactive state of burning
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function toggleBurnActive() external onlyRole(getAdminRole()) {
        _toggleBurnActive();
    }

    /**
     * @dev mint batch `to` for `quantity` starting at `startTokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     */
    function mintBatch(
        address to,
        uint8 quantity
    ) external onlyRoles(getMinterRoles()) nonReentrant notLocked mintActive {
        _mintBatch(to, quantity, totalMinted() + 1);
    }

    /**
     * @dev Send tokens to burn island
     *
     * Requirements:
     *
     * - `contractAddress` must support the IERC721 interface
     * - `signature` must be signed by the burn signer address
     * - `nonce` must be unique
     * - `tokenIds` must be owned by the sender
     */
    function burnAndMint(
        string calldata mintId,
        uint256[] calldata tokenIds,
        uint256 nonce,
        bytes calldata signature
    ) external nonReentrant notLocked mintActive {
        bytes32 txHash = _getTxHash(
            mintId,
            _msgSender(),
            tokenIds,
            nonce
        );

        if (!_isValidMintSignature(txHash, signature)) {
            revert InvalidMintSignature();
        }

        for (uint256 i = 0; i < tokenIds.length; i++) {
            IBurnVF(_burnFromContractAddress).transferFrom(
                _msgSender(),
                BURN_ADDRESS,
                tokenIds[i]
            );
        }

        _mintBatch(_msgSender(), tokenIds.length, totalMinted() + 1);
    }

    /**
     * @dev burn `from` token `tokenId`
     *
     * Requirements:
     *
     * - the caller must be a burner role
     * - burning must be active
     */
    function burn(
        address from,
        uint256 tokenId
    ) external onlyRole(getBurnerRole()) burnActive {
        _burn(from, tokenId, false);
    }

    /**
     * @dev If renderingContract is set then returns its tokenURI(tokenId)
     * return value, otherwise returns the standard baseTokenURI + tokenId.
     */
    function tokenURI(
        uint256 tokenId
    ) public view override returns (string memory) {
        if (getRenderingContract() != address(0)) {
            return renderingContractTokenURI(tokenId);
        }
        return super.tokenURI(tokenId);
    }

    /**
     * @dev Validate a burn id is signed by the burn signer address
     */
    function _isValidMintSignature(
        bytes32 txHash,
        bytes calldata signature
    ) internal view returns (bool isValid) {
        address signer = txHash.toEthSignedMessageHash().recover(signature);
        return signer == _mintSigner;
    }

    /**
     * @dev Get the hash of a mint transaction
     */
    function _getTxHash(
        string calldata mintId,
        address sender,
        uint256[] calldata tokenIds,
        uint256 nonce
    ) internal pure returns (bytes32) {
        return
            keccak256(
                abi.encodePacked(mintId, sender, tokenIds, nonce)
            );
    }
}

File 2 of 26 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 3 of 26 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

File 4 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @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 have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 5 of 26 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 6 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 26 : 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 8 of 26 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

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

File 11 of 26 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 12 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _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 13 of 26 : IAccessControlVF.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IAccessControlVF {
    /**
     * @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 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) external view;

    /**
     * @dev Returns bytes of default admin role
     */
    function getAdminRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of token contract role
     */
    function getTokenContractRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of sales contract role
     */
    function getSalesContractRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of burner role
     */
    function getBurnerRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of minter role
     */
    function getMinterRole() external view returns (bytes32);

    /**
     * @dev Returns a bytes array of roles that can be minters
     */
    function getMinterRoles() external view returns (bytes32[] memory);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_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 revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;

    /**
     * @dev Selects the next minter from the minters array using the current minter index.
     * The current minter index should be incremented after each selection.  If the
     * current minter index + 1 is equal to the minters array length then the current
     * minter index should be set back to 0
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function selectNextMinter() external returns (address payable);

    /**
     * @dev Grants `minter` minter role and adds `minter` to minters array
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function grantMinterRole(address minter) external;

    /**
     * @dev Revokes minter role from `minter` and removes `minter` from minters array
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function revokeMinterRole(address minter) external;

    /**
     * @dev Distributes ETH evenly to all addresses in minters array
     */
    function fundMinters() external payable;
}

File 14 of 26 : IBurnVF.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IBurnVF {
    function transferFrom(address from, address to, uint256 tokenId) external;

    function burn(uint256 tokenId) external;

    function burn(address from, uint256 tokenId) external;
}

File 15 of 26 : VFTokenAllExtensions.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {AccessControlVFExtension} from "../extensions/accesscontrol/AccessControlVFExtension.sol";
import {RoyaltiesVFExtension} from "../extensions/royalties/RoyaltiesVFExtension.sol";
import {TokenURIGeneratorVFExtension} from "../extensions/tokenurigenerator/TokenURIGeneratorVFExtension.sol";
import {WithdrawVFExtension} from "../extensions/withdraw/WithdrawVFExtension.sol";

abstract contract VFTokenAllExtensions is
    AccessControlVFExtension,
    RoyaltiesVFExtension,
    TokenURIGeneratorVFExtension,
    WithdrawVFExtension
{
    constructor(
        address controlContractAddress,
        address royaltiesContractAddress,
        address renderingContractAddress
    )
        AccessControlVFExtension(controlContractAddress)
        RoyaltiesVFExtension(royaltiesContractAddress)
        TokenURIGeneratorVFExtension(renderingContractAddress)
    {}

    function setRoyaltiesContract(address royaltiesContractAddress)
        external
        onlyRole(getAdminRole())
    {
        super._setRoyaltiesContract(royaltiesContractAddress);
    }

    function setRenderingContract(address renderContractAddress)
        external
        onlyRole(getAdminRole())
    {
        super._setRenderingContract(renderContractAddress);
    }

    function withdrawMoney() external onlyRole(getAdminRole()) {
        super._withdrawMoney();
    }

    function withdrawToken(
        address contractAddress,
        address to,
        uint256 tokenId
    ) external onlyRole(getAdminRole()) {
        super._withdrawToken(contractAddress, to, tokenId);
    }
}

File 16 of 26 : AccessControlVFExtension.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IAccessControlVF} from "../../access/IAccessControlVF.sol";
import {Context} from "@openzeppelin/contracts/utils/Context.sol";
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

abstract contract AccessControlVFExtension is Context, IERC165 {
    //Contract for function access control
    IAccessControlVF private _controlContract;

    constructor(address controlContractAddress) {
        _controlContract = IAccessControlVF(controlContractAddress);
    }

    modifier onlyRole(bytes32 role) virtual {
        _controlContract.checkRole(role, _msgSender());
        _;
    }

    modifier onlyRoles(bytes32[] memory roles) virtual {
        bool hasRequiredRole = false;
        for (uint256 i; i < roles.length; i++) {
            bytes32 role = roles[i];
            if (_controlContract.hasRole(role, _msgSender())) {
                hasRequiredRole = true;
                break;
            }
        }
        require(hasRequiredRole, "Missing required role");
        _;
    }

    function getAdminRole() public view returns (bytes32) {
        return _controlContract.getAdminRole();
    }

    function getMinterRoles() public view returns (bytes32[] memory) {
        return _controlContract.getMinterRoles();
    }

    function getBurnerRole() public view returns (bytes32) {
        return _controlContract.getBurnerRole();
    }

    /**
     * @dev Update the access control contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `controlContractAddress` must support the IVFAccesControl interface
     */
    function setControlContract(address controlContractAddress)
        external
        onlyRole(_controlContract.getAdminRole())
    {
        require(
            IERC165(controlContractAddress).supportsInterface(
                type(IAccessControlVF).interfaceId
            ),
            "Contract does not support required interface"
        );
        _controlContract = IAccessControlVF(controlContractAddress);
    }
}

File 17 of 26 : RoyaltiesVFExtension.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IRoyaltiesVF} from "../../royalties/IRoyaltiesVF.sol";
import {Context} from "@openzeppelin/contracts/utils/Context.sol";
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {IERC2981} from "@openzeppelin/contracts/interfaces/IERC2981.sol";

abstract contract RoyaltiesVFExtension is Context, IERC165, IERC2981 {
    //Contract for function access control
    IRoyaltiesVF private _royaltiesContract;

    constructor(address royaltiesContractAddress) {
        _royaltiesContract = IRoyaltiesVF(royaltiesContractAddress);
    }

    /**
     * @dev Get royalty information for a token based on the `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        return
            _royaltiesContract.royaltyInfo(tokenId, address(this), salePrice);
    }

    /**
     * @dev Update the royalties contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `royaltiesContractAddress` must support the IRoyaltiesVF interface
     */
    function _setRoyaltiesContract(address royaltiesContractAddress) internal {
        require(
            IERC165(royaltiesContractAddress).supportsInterface(
                type(IRoyaltiesVF).interfaceId
            ),
            "Contract does not support required interface"
        );
        _royaltiesContract = IRoyaltiesVF(royaltiesContractAddress);
    }
}

File 18 of 26 : TokenURIGeneratorVFExtension.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ITokenURIGeneratorVF} from "../../urigenerator/ITokenURIGeneratorVF.sol";
import {Context} from "@openzeppelin/contracts/utils/Context.sol";
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

abstract contract TokenURIGeneratorVFExtension is Context, IERC165 {
    //Contract for function access control
    ITokenURIGeneratorVF private _tokenURIGeneratorContract;

    constructor(address tokenURIGeneratorContractAddress) {
        if (tokenURIGeneratorContractAddress != address(0)) {
            _tokenURIGeneratorContract = ITokenURIGeneratorVF(
                tokenURIGeneratorContractAddress
            );
        }
    }

    function renderingContractTokenURI(uint256 tokenId)
        public
        view
        returns (string memory)
    {
        return _tokenURIGeneratorContract.tokenURI(tokenId);
    }

    function getRenderingContract() public view returns (address) {
        return address(_tokenURIGeneratorContract);
    }

    /**
     * @dev Update the royalties contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `tokenURIGeneratorContractAddress` must support the IRoyaltiesVF interface
     */
    function _setRenderingContract(address tokenURIGeneratorContractAddress)
        internal
    {
        require(
            IERC165(tokenURIGeneratorContractAddress).supportsInterface(
                type(ITokenURIGeneratorVF).interfaceId
            ),
            "Contract does not support required interface"
        );
        _tokenURIGeneratorContract = ITokenURIGeneratorVF(
            tokenURIGeneratorContractAddress
        );
    }
}

File 19 of 26 : WithdrawVFExtension.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {Context} from "@openzeppelin/contracts/utils/Context.sol";

abstract contract WithdrawVFExtension is Context {
    constructor() {}

    /**
     * @dev Withdraw balance on contact to msg sender
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function _withdrawMoney() internal {
        address payable to = payable(_msgSender());
        to.transfer(address(this).balance);
    }

    /**
     * @dev Withdraw token if we need to refund
     *
     * Requirements:
     *
     * - `contractAddress` must support the IVFToken interface
     * - the caller must be an admin role
     */
    function _withdrawToken(
        address contractAddress,
        address to,
        uint256 tokenId
    ) internal {
        IERC721(contractAddress).transferFrom(address(this), to, tokenId);
    }
}

File 20 of 26 : IRoyaltiesVF.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IRoyaltiesVF {
    /**
     * @dev Update the access control contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `controlContractAddress` must support the IVFAccesControl interface
     */
    function setControlContract(address controlContractAddress) external;

    /**
     * @dev Get royalty information for a contract based on the `salePrice` of a token
     */
    function royaltyInfo(
        uint256,
        address contractAddress,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external;

    /**
     * @dev Removes default royalty information.
     */
    function deleteDefaultRoyalty() external;

    /**
     * @dev Sets the royalty information for `contractAddress`.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function setContractRoyalties(
        address contractAddress,
        address receiver,
        uint96 feeNumerator
    ) external;

    /**
     * @dev Removes royalty information for `contractAddress`.
     */
    function resetContractRoyalty(address contractAddress) external;
}

File 21 of 26 : ERC721VF.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721VF.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension.
 */
contract ERC721VF is Context, ERC165, IERC721VF, DefaultOperatorFilterer {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    // The number of tokens minted
    uint256 private _mintCounter;

    // The number of tokens burned
    uint256 private _burnCounter;

    //Flag to permanently lock minting
    bool public mintingPermanentlyLocked = false;
    //Flag to activate or disable minting
    bool public isMintActive = false;
    //Flag to activate or disable burning
    bool public isBurnActive = false;

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

    modifier notLocked() virtual {
        if (mintingPermanentlyLocked) {
            revert ERC721VFMintingPermanentlyLocked();
        }
        _;
    }

    modifier mintActive() virtual {
        if (!isMintActive) {
            revert ERC721VFMintIsNotActive();
        }
        _;
    }

    modifier burnActive() virtual {
        if (!isBurnActive) {
            revert ERC721VFBurnIsNotActive();
        }
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721
            interfaceId == 0x5b5e139f || // ERC165 interface ID for ERC721Metadata
            interfaceId == type(IERC721VF).interfaceId || // ERC165 interface ID for ERC721VF.
            super.supportsInterface(interfaceId); // ERC165 interface ID for ERC165
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        if (owner == address(0)) {
            revert ERC721VFAddressZeroIsNotAValidOwner();
        }

        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721VFInvalidTokenID(tokenId);
        }
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        _requireMinted(tokenId);

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId)
        public
        virtual
        override
        onlyAllowedOperatorApproval(to)
    {
        address owner = ERC721VF.ownerOf(tokenId);
        if (to == owner) {
            revert ERC721VFApprovalToCurrentOwner(to, tokenId);
        }

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ERC721VFApproveCallerIsNotTokenOwnerOrApprovedForAll(
                to,
                tokenId
            );
        }

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override onlyAllowedOperator(from) {
        _transferFrom(from, to, tokenId, true);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        _safeTransferFrom(from, to, tokenId, true, data);
    }

    /**
     * @dev See {IERC721VF-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        unchecked {
            return _mintCounter - _burnCounter;
        }
    }

    /**
     * @dev See {IERC721VF-totalMinted}.
     */
    function totalMinted() public view returns (uint256) {
        unchecked {
            return _mintCounter;
        }
    }

    /**
     * @dev See {IERC721VF-totalBurned}.
     */
    function totalBurned() public view returns (uint256) {
        unchecked {
            return _burnCounter;
        }
    }

    /**
     * @dev See {IERC721VF-tokensOfOwner}.
     */
    function tokensOfOwner(address owner)
        public
        view
        returns (uint256[] memory ownerTokens)
    {
        address currentOwnerAddress;
        uint256 tokenCount = balanceOf(owner);

        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 resultIndex = 0;

            uint256 index;
            for (index = 0; resultIndex != tokenCount; index++) {
                currentOwnerAddress = _owners[index];
                if (currentOwnerAddress == owner) {
                    result[resultIndex++] = index;
                }
            }

            return result;
        }
    }

    /**
     * @dev See {IERC721VF-tokensOfOwnerIn}.
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 startIndex,
        uint256 endIndex
    ) public view returns (uint256[] memory ownerTokens) {
        address currentOwnerAddress;
        uint256 tokenCount = balanceOf(owner);

        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 resultIndex = 0;

            uint256 index = startIndex;
            for (index; index <= endIndex; index++) {
                currentOwnerAddress = _owners[index];
                if (currentOwnerAddress == owner) {
                    result[resultIndex++] = index;
                }
            }

            // Downsize the array to fit.
            assembly {
                mstore(result, resultIndex)
            }

            return result;
        }
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function _transferFrom(
        address from,
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        //solhint-disable-next-line max-line-length

        if (approvalCheck) {
            if (!_isApprovedOrOwner(_msgSender(), tokenId)) {
                revert ERC721VFCallerIsNotTokenOwnerOrApproved(
                    from,
                    to,
                    tokenId
                );
            }
        }

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        _safeTransferFrom(from, to, tokenId, approvalCheck, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bool approvalCheck,
        bytes memory data
    ) internal virtual {
        if (approvalCheck) {
            if (!_isApprovedOrOwner(_msgSender(), tokenId)) {
                revert ERC721VFCallerIsNotTokenOwnerOrApproved(
                    from,
                    to,
                    tokenId
                );
            }
        }
        _safeTransfer(from, to, tokenId, data);
    }

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

    /**
     * @dev Permanently lock minting
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function _lockMintingPermanently() internal {
        mintingPermanentlyLocked = true;
    }

    /**
     * @dev Set the active/inactive state of minting
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function _toggleMintActive() internal {
        isMintActive = !isMintActive;
    }

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

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        if (!_checkOnERC721Received(address(0), to, tokenId, data)) {
            revert ERC721VFTransferToNonERC721VFReceiverImplementer(
                to,
                tokenId
            );
        }
    }

    /**
     * @dev Safely batch mints tokens starting at `startTokenId` until `quantity` is met and transfers them to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     * - Transfer to only ERC721Reciever implementers
     *
     * Emits a {Transfer} event.
     */
    function _safeMintBatch(
        address to,
        uint256 quantity,
        uint256 startTokenId
    ) internal returns (uint256 endToken) {
        uint256 tokenId = startTokenId;
        for (uint256 i; i < quantity; i++) {
            if (to == address(0)) {
                revert ERC721VFMintToTheZeroAddress();
            }

            if (_exists(tokenId)) {
                revert ERC721VFTokenAlreadyMinted(tokenId);
            }

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

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

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

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

            if (!_checkOnERC721Received(address(0), to, tokenId, "")) {
                revert ERC721VFTransferToNonERC721VFReceiverImplementer(
                    to,
                    tokenId
                );
            }

            tokenId++;
        }

        unchecked {
            _mintCounter += quantity;
        }

        return tokenId;
    }

    /**
     * @dev Airdrop `addresses` for `quantity` starting at `startTokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     * - `addresses` and `quantities` must have the same length
     */
    function _airdrop(
        address[] calldata addresses,
        uint256[] calldata quantities,
        uint256 startTokenId
    ) internal virtual {
        if (addresses.length != quantities.length) {
            revert ERC721VFAddressAndQuantitiesNeedToBeEqualLength();
        }

        for (uint256 i; i < addresses.length; i++) {
            startTokenId = _mintBatch(
                addresses[i],
                quantities[i],
                startTokenId
            );
        }
    }

    /**
     * @dev Batch mints tokens starting at `startTokenId` until `quantity` is met and transfers them to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _mintBatch(
        address to,
        uint256 quantity,
        uint256 startTokenId
    ) internal virtual returns (uint256 endToken) {
        uint256 tokenId = startTokenId;
        for (uint256 i; i < quantity; i++) {
            if (to == address(0)) {
                revert ERC721VFMintToTheZeroAddress();
            }

            if (_exists(tokenId)) {
                revert ERC721VFTokenAlreadyMinted(tokenId);
            }

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

            _owners[tokenId] = to;

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

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

            tokenId++;
        }

        unchecked {
            _balances[to] += quantity;
            _mintCounter += quantity;
        }

        return tokenId;
    }

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

        if (_exists(tokenId)) {
            revert ERC721VFTokenAlreadyMinted(tokenId);
        }

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

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        unchecked {
            _mintCounter++;
        }

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

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

    /**
     * @dev Set the active/inactive state of burning
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function _toggleBurnActive() internal {
        isBurnActive = !isBurnActive;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(
        address from,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        if (approvalCheck) {
            if (!_isApprovedOrOwner(from, tokenId)) {
                revert ERC721VFBurnCallerIsNotTokenOwnerOrApproved(
                    from,
                    tokenId
                );
            }
        }
        _burn(tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721VF.ownerOf(tokenId);

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

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        unchecked {
            _burnCounter++;
        }

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

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

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

        if (ERC721VF.ownerOf(tokenId) != from) {
            revert ERC721VFTransferFromIncorrectOwner(from, tokenId);
        }

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        if (owner == operator) {
            revert ERC721VFApproveToCaller();
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        if (!_exists(tokenId)) {
            revert ERC721VFInvalidTokenID(tokenId);
        }
    }

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

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

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 22 of 26 : IERC721VF.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721VF compliant contract.
 */
interface IERC721VF is IERC165 {
    error ERC721VFAddressZeroIsNotAValidOwner();
    error ERC721VFInvalidTokenID(uint256 tokenId);
    error ERC721VFApprovalToCurrentOwner(address to, uint256 tokenId);
    error ERC721VFApproveCallerIsNotTokenOwnerOrApprovedForAll(
        address to,
        uint256 tokenId
    );
    error ERC721VFCallerIsNotTokenOwnerOrApproved(
        address from,
        address to,
        uint256 tokenId
    );
    error ERC721VFTransferToNonERC721VFReceiverImplementer(
        address to,
        uint256 tokenId
    );
    error ERC721VFAddressAndQuantitiesNeedToBeEqualLength();
    error ERC721VFMintToTheZeroAddress();
    error ERC721VFTokenAlreadyMinted(uint256 tokenId);
    error ERC721VFTransferToTheZeroAddress();
    error ERC721VFTransferFromIncorrectOwner(address from, uint256 tokenId);
    error ERC721VFApproveToCaller();
    error ERC721VFBurnCallerIsNotTokenOwnerOrApproved(
        address from,
        uint256 tokenId
    );
    error ERC721VFMintingPermanentlyLocked();
    error ERC721VFMintIsNotActive();
    error ERC721VFBurnIsNotActive();

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

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

    /**
     * @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 have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 23 of 26 : ITokenURIGeneratorVF.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ITokenURIGeneratorVF {
    /**
     * @dev Update the access control contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `controlContractAddress` must support the IVFAccesControl interface
     */
    function setControlContract(address controlContractAddress) external;

    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 24 of 26 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 25 of 26 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 26 of 26 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"initialBaseUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"controlContractAddress","type":"address"},{"internalType":"address","name":"royaltiesContractAddress","type":"address"},{"internalType":"address","name":"renderingContractAddress","type":"address"},{"internalType":"address","name":"mintSigner","type":"address"},{"internalType":"address","name":"burnFromContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC721VFAddressAndQuantitiesNeedToBeEqualLength","type":"error"},{"inputs":[],"name":"ERC721VFAddressZeroIsNotAValidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFApprovalToCurrentOwner","type":"error"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFApproveCallerIsNotTokenOwnerOrApprovedForAll","type":"error"},{"inputs":[],"name":"ERC721VFApproveToCaller","type":"error"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFBurnCallerIsNotTokenOwnerOrApproved","type":"error"},{"inputs":[],"name":"ERC721VFBurnIsNotActive","type":"error"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFCallerIsNotTokenOwnerOrApproved","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFInvalidTokenID","type":"error"},{"inputs":[],"name":"ERC721VFMintIsNotActive","type":"error"},{"inputs":[],"name":"ERC721VFMintToTheZeroAddress","type":"error"},{"inputs":[],"name":"ERC721VFMintingPermanentlyLocked","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFTokenAlreadyMinted","type":"error"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFTransferFromIncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721VFTransferToNonERC721VFReceiverImplementer","type":"error"},{"inputs":[],"name":"ERC721VFTransferToTheZeroAddress","type":"error"},{"inputs":[],"name":"InvalidMintSignature","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":"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":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"mintId","type":"string"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"burnAndMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdminRole","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBurnerRole","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinterRoles","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRenderingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMintingPermanently","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingPermanentlyLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"renderingContractTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"controlContractAddress","type":"address"}],"name":"setControlContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setMintSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"renderContractAddress","type":"address"}],"name":"setRenderingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltiesContractAddress","type":"address"}],"name":"setRoyaltiesContract","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":[],"name":"toggleBurnActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600860006101000a81548160ff0219169083151502179055506000600860016101000a81548160ff0219169083151502179055506000600860026101000a81548160ff0219169083151502179055503480156200006257600080fd5b5060405162006b4b38038062006b4b833981810160405281019062000088919062000a7e565b8484848082848c8c733cc6cdda760b79bafa08df41ecfa224f810dceb6600160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200029c57801562000162576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200012892919062000bb5565b600060405180830381600087803b1580156200014357600080fd5b505af115801562000158573d6000803e3d6000fd5b505050506200029b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200021c576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620001e292919062000bb5565b600060405180830381600087803b158015620001fd57600080fd5b505af115801562000212573d6000803e3d6000fd5b505050506200029a565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000265919062000be2565b600060405180830381600087803b1580156200028057600080fd5b505af115801562000295573d6000803e3d6000fd5b505050505b5b5b50508160009081620002af919062000e4a565b508060019081620002c1919062000e4a565b50505080600860036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614620003bf5780600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b505050506001600b819055506000620003fb3073ffffffffffffffffffffffffffffffffffffffff166014620004c260201b620022681760201c565b90506200043189826040516020016200041692919062000fc3565b6040516020818303038152906040526200071d60201b60201c565b82600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050505062001238565b606060006002836002620004d7919062001027565b620004e3919062001072565b67ffffffffffffffff811115620004ff57620004fe620008b5565b5b6040519080825280601f01601f191660200182016040528015620005325781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106200056d576200056c620010ad565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110620005d457620005d3620010ad565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600262000616919062001027565b62000622919062001072565b90505b6001811115620006cc577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110620006685762000667620010ad565b5b1a60f81b828281518110620006825762000681620010ad565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080620006c490620010dc565b905062000625565b506000841462000713576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200070a906200116b565b60405180910390fd5b8091505092915050565b6200072d620007e360201b60201c565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826200077c6200087e60201b60201c565b6040518363ffffffff1660e01b81526004016200079b929190620011a8565b60006040518083038186803b158015620007b457600080fd5b505afa158015620007c9573d6000803e3d6000fd5b5050505081600c9081620007de919062000e4a565b505050565b6000600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000853573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000879919062001206565b905090565b600033905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620008ef82620008a4565b810181811067ffffffffffffffff82111715620009115762000910620008b5565b5b80604052505050565b60006200092662000886565b9050620009348282620008e4565b919050565b600067ffffffffffffffff821115620009575762000956620008b5565b5b6200096282620008a4565b9050602081019050919050565b60005b838110156200098f57808201518184015260208101905062000972565b60008484015250505050565b6000620009b2620009ac8462000939565b6200091a565b905082815260208101848484011115620009d157620009d06200089f565b5b620009de8482856200096f565b509392505050565b600082601f830112620009fe57620009fd6200089a565b5b815162000a108482602086016200099b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a468262000a19565b9050919050565b62000a588162000a39565b811462000a6457600080fd5b50565b60008151905062000a788162000a4d565b92915050565b600080600080600080600080610100898b03121562000aa25762000aa162000890565b5b600089015167ffffffffffffffff81111562000ac35762000ac262000895565b5b62000ad18b828c01620009e6565b985050602089015167ffffffffffffffff81111562000af55762000af462000895565b5b62000b038b828c01620009e6565b975050604089015167ffffffffffffffff81111562000b275762000b2662000895565b5b62000b358b828c01620009e6565b965050606062000b488b828c0162000a67565b955050608062000b5b8b828c0162000a67565b94505060a062000b6e8b828c0162000a67565b93505060c062000b818b828c0162000a67565b92505060e062000b948b828c0162000a67565b9150509295985092959890939650565b62000baf8162000a39565b82525050565b600060408201905062000bcc600083018562000ba4565b62000bdb602083018462000ba4565b9392505050565b600060208201905062000bf9600083018462000ba4565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000c5257607f821691505b60208210810362000c685762000c6762000c0a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000cd27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000c93565b62000cde868362000c93565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000d2b62000d2562000d1f8462000cf6565b62000d00565b62000cf6565b9050919050565b6000819050919050565b62000d478362000d0a565b62000d5f62000d568262000d32565b84845462000ca0565b825550505050565b600090565b62000d7662000d67565b62000d8381848462000d3c565b505050565b5b8181101562000dab5762000d9f60008262000d6c565b60018101905062000d89565b5050565b601f82111562000dfa5762000dc48162000c6e565b62000dcf8462000c83565b8101602085101562000ddf578190505b62000df762000dee8562000c83565b83018262000d88565b50505b505050565b600082821c905092915050565b600062000e1f6000198460080262000dff565b1980831691505092915050565b600062000e3a838362000e0c565b9150826002028217905092915050565b62000e558262000bff565b67ffffffffffffffff81111562000e715762000e70620008b5565b5b62000e7d825462000c39565b62000e8a82828562000daf565b600060209050601f83116001811462000ec2576000841562000ead578287015190505b62000eb9858262000e2c565b86555062000f29565b601f19841662000ed28662000c6e565b60005b8281101562000efc5784890151825560018201915060208501945060208101905062000ed5565b8683101562000f1c578489015162000f18601f89168262000e0c565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b600062000f498262000bff565b62000f55818562000f31565b935062000f678185602086016200096f565b80840191505092915050565b7f2f746f6b656e732f000000000000000000000000000000000000000000000000600082015250565b600062000fab60088362000f31565b915062000fb88262000f73565b600882019050919050565b600062000fd1828562000f3c565b915062000fdf828462000f3c565b915062000fec8262000f9c565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620010348262000cf6565b9150620010418362000cf6565b9250828202620010518162000cf6565b915082820484148315176200106b576200106a62000ff8565b5b5092915050565b60006200107f8262000cf6565b91506200108c8362000cf6565b9250828201905080821115620010a757620010a662000ff8565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000620010e98262000cf6565b915060008203620010ff57620010fe62000ff8565b5b600182039050919050565b600082825260208201905092915050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000620011536020836200110a565b915062001160826200111b565b602082019050919050565b60006020820190508181036000830152620011868162001144565b9050919050565b6000819050919050565b620011a2816200118d565b82525050565b6000604082019050620011bf600083018562001197565b620011ce602083018462000ba4565b9392505050565b620011e0816200118d565b8114620011ec57600080fd5b50565b6000815190506200120081620011d5565b92915050565b6000602082840312156200121f576200121e62000890565b5b60006200122f84828501620011ef565b91505092915050565b61590380620012486000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c8063a2309ff811610146578063c87b56dd116100c3578063dd5adf0c11610087578063dd5adf0c146106d6578063e65ff566146106f4578063e84a972814610710578063e985e9c51461072c578063f5e92b951461075c578063fccc28131461077a5761025e565b8063c87b56dd14610644578063ca35e8a014610674578063d02c2bf214610690578063d2f235d41461069a578063d89135cd146106b85761025e565b8063b7f1d0721161010a578063b7f1d072146105c8578063b88d4fde146105e4578063bb7648b614610600578063c5b66dc91461060a578063c68295a4146106285761025e565b8063a2309ff814610548578063ac44600214610566578063b166da4214610570578063b1a6676e1461058c578063b3ecf236146105aa5761025e565b806342842e0e116101df57806370a08231116101a357806370a08231146104625780638462151c1461049257806395d89b41146104c257806399a2557a146104e05780639dc29fac14610510578063a22cb4651461052c5761025e565b806342842e0e146103d257806355f804b3146103ee5780635b92ac0d1461040a5780635bc0997c146104285780636352211e146104325761025e565b806318160ddd1161022657806318160ddd1461031957806323b872dd146103375780632a55205a146103535780632b2389bf1461038457806341f43434146103b45761025e565b806301e336671461026357806301ffc9a71461027f57806306fdde03146102af578063081812fc146102cd578063095ea7b3146102fd575b600080fd5b61027d60048036038101906102789190613e77565b610798565b005b61029960048036038101906102949190613f22565b610845565b6040516102a69190613f6a565b60405180910390f35b6102b761091f565b6040516102c49190614015565b60405180910390f35b6102e760048036038101906102e29190614037565b6109b1565b6040516102f49190614073565b60405180910390f35b6103176004803603810190610312919061408e565b6109f7565b005b610321610b25565b60405161032e91906140dd565b60405180910390f35b610351600480360381019061034c9190613e77565b610b33565b005b61036d600480360381019061036891906140f8565b610b84565b60405161037b929190614138565b60405180910390f35b61039e60048036038101906103999190614037565b610c31565b6040516103ab9190614015565b60405180910390f35b6103bc610cdb565b6040516103c991906141c0565b60405180910390f35b6103ec60048036038101906103e79190613e77565b610ced565b005b61040860048036038101906104039190614310565b610d3e565b005b610412610dee565b60405161041f9190613f6a565b60405180910390f35b610430610e01565b005b61044c60048036038101906104479190614037565b610ea8565b6040516104599190614073565b60405180910390f35b61047c60048036038101906104779190614359565b610f30565b60405161048991906140dd565b60405180910390f35b6104ac60048036038101906104a79190614359565b610fde565b6040516104b99190614444565b60405180910390f35b6104ca611158565b6040516104d79190614015565b60405180910390f35b6104fa60048036038101906104f59190614466565b6111ea565b6040516105079190614444565b60405180910390f35b61052a6004803603810190610525919061408e565b61136c565b005b610546600480360381019061054191906144e5565b61145f565b005b610550611480565b60405161055d91906140dd565b60405180910390f35b61056e61148a565b005b61058a60048036038101906105859190614359565b611531565b005b6105946115da565b6040516105a19190613f6a565b60405180910390f35b6105b26115ed565b6040516105bf919061453e565b60405180910390f35b6105e260048036038101906105dd9190614359565b611685565b005b6105fe60048036038101906105f991906145fa565b61172e565b005b610608611781565b005b610612611828565b60405161061f919061453e565b60405180910390f35b610642600480360381019061063d91906146b6565b6118c0565b005b61065e60048036038101906106599190614037565b611ac2565b60405161066b9190614015565b60405180910390f35b61068e60048036038101906106899190614359565b611b20565b005b610698611d63565b005b6106a2611e0a565b6040516106af9190614073565b60405180910390f35b6106c0611e34565b6040516106cd91906140dd565b60405180910390f35b6106de611e3e565b6040516106eb91906147b4565b60405180910390f35b61070e600480360381019061070991906148e2565b611edb565b005b61072a60048036038101906107259190614359565b6120da565b005b610746600480360381019061074191906149ab565b6121bb565b6040516107539190613f6a565b60405180910390f35b61076461224f565b6040516107719190613f6a565b60405180910390f35b610782612262565b60405161078f9190614073565b60405180910390f35b6107a06115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826107e76124a4565b6040518363ffffffff1660e01b81526004016108049291906149eb565b60006040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b5050505061083f8484846124ac565b50505050565b60006380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061090857507fdbf24b52000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610918575061091782612520565b5b9050919050565b60606000805461092e90614a43565b80601f016020809104026020016040519081016040528092919081815260200182805461095a90614a43565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b5050505050905090565b60006109bc8261258a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610a01816125d7565b6000610a0c83610ea8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610a805783836040517f26ac089f000000000000000000000000000000000000000000000000000000008152600401610a77929190614138565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a9f6124a4565b73ffffffffffffffffffffffffffffffffffffffff1614158015610ad15750610acf81610aca6124a4565b6121bb565b155b15610b155783836040517fb1ab84a4000000000000000000000000000000000000000000000000000000008152600401610b0c929190614138565b60405180910390fd5b610b1f84846126d4565b50505050565b600060075460065403905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b7157610b70336125d7565b5b610b7e848484600161278d565b50505050565b600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8ca29d58530866040518463ffffffff1660e01b8152600401610be693929190614a74565b6040805180830381865afa158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c269190614ad5565b915091509250929050565b6060600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401610c8e91906140dd565b600060405180830381865afa158015610cab573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610cd49190614b85565b9050919050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d2b57610d2a336125d7565b5b610d3884848460016127fb565b50505050565b610d466115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82610d8d6124a4565b6040518363ffffffff1660e01b8152600401610daa9291906149eb565b60006040518083038186803b158015610dc257600080fd5b505afa158015610dd6573d6000803e3d6000fd5b5050505081600c9081610de99190614d70565b505050565b600860019054906101000a900460ff1681565b610e096115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82610e506124a4565b6040518363ffffffff1660e01b8152600401610e6d9291906149eb565b60006040518083038186803b158015610e8557600080fd5b505afa158015610e99573d6000803e3d6000fd5b50505050610ea561281d565b50565b600080610eb483612849565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f2757826040517fb718b687000000000000000000000000000000000000000000000000000000008152600401610f1e91906140dd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f97576040517f560440d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600080610fec84610f30565b90506000810361104957600067ffffffffffffffff811115611011576110106141e5565b5b60405190808252806020026020018201604052801561103f5781602001602082028036833780820191505090505b5092505050611153565b60008167ffffffffffffffff811115611065576110646141e5565b5b6040519080825280602002602001820160405280156110935781602001602082028036833780820191505090505b5090506000805b83821461114a576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611137578083838061111790614e71565b94508151811061112a57611129614eb9565b5b6020026020010181815250505b808061114290614e71565b91505061109a565b82955050505050505b919050565b60606001805461116790614a43565b80601f016020809104026020016040519081016040528092919081815260200182805461119390614a43565b80156111e05780601f106111b5576101008083540402835291602001916111e0565b820191906000526020600020905b8154815290600101906020018083116111c357829003601f168201915b5050505050905090565b60606000806111f886610f30565b90506000810361125557600067ffffffffffffffff81111561121d5761121c6141e5565b5b60405190808252806020026020018201604052801561124b5781602001602082028036833780820191505090505b5092505050611365565b60008167ffffffffffffffff811115611271576112706141e5565b5b60405190808252806020026020018201604052801561129f5781602001602082028036833780820191505090505b5090506000808790505b868111611359576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508873ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611346578083838061132690614e71565b94508151811061133957611338614eb9565b5b6020026020010181815250505b808061135190614e71565b9150506112a9565b81835282955050505050505b9392505050565b611374611828565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826113bb6124a4565b6040518363ffffffff1660e01b81526004016113d89291906149eb565b60006040518083038186803b1580156113f057600080fd5b505afa158015611404573d6000803e3d6000fd5b50505050600860029054906101000a900460ff1661144e576040517febb5afac00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61145a83836000612886565b505050565b81611469816125d7565b61147b6114746124a4565b84846128e8565b505050565b6000600654905090565b6114926115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826114d96124a4565b6040518363ffffffff1660e01b81526004016114f69291906149eb565b60006040518083038186803b15801561150e57600080fd5b505afa158015611522573d6000803e3d6000fd5b5050505061152e612a4b565b50565b6115396115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826115806124a4565b6040518363ffffffff1660e01b815260040161159d9291906149eb565b60006040518083038186803b1580156115b557600080fd5b505afa1580156115c9573d6000803e3d6000fd5b505050506115d682612aa1565b5050565b600860029054906101000a900460ff1681565b6000600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b8152600401602060405180830381865afa15801561165c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116809190614f14565b905090565b61168d6115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826116d46124a4565b6040518363ffffffff1660e01b81526004016116f19291906149eb565b60006040518083038186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b5050505061172a82612bbe565b5050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461176c5761176b336125d7565b5b61177a858585600186612cdb565b5050505050565b6117896115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826117d06124a4565b6040518363ffffffff1660e01b81526004016117ed9291906149eb565b60006040518083038186803b15801561180557600080fd5b505afa158015611819573d6000803e3d6000fd5b50505050611825612d4b565b50565b6000600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c5b66dc96040518163ffffffff1660e01b8152600401602060405180830381865afa158015611897573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bb9190614f14565b905090565b6118c8611e3e565b6000805b82518110156119bc5760008382815181106118ea576118e9614eb9565b5b60200260200101519050600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148548261193b6124a4565b6040518363ffffffff1660e01b81526004016119589291906149eb565b602060405180830381865afa158015611975573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119999190614f56565b156119a85760019250506119bc565b5080806119b490614e71565b9150506118cc565b50806119fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f490614fcf565b60405180910390fd5b611a05612d68565b600860009054906101000a900460ff1615611a4c576040517fb8ef635100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860019054906101000a900460ff16611a92576040517f59e4eebe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ab3848460ff166001611aa4611480565b611aae9190614fef565b612db7565b50611abc612fcd565b50505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16611ae4611e0a565b73ffffffffffffffffffffffffffffffffffffffff1614611b0f57611b0882610c31565b9050611b1b565b611b1882612fd7565b90505b919050565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb19190614f14565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611bf86124a4565b6040518363ffffffff1660e01b8152600401611c159291906149eb565b60006040518083038186803b158015611c2d57600080fd5b505afa158015611c41573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f0b7162d4000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401611c9e9190615032565b602060405180830381865afa158015611cbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdf9190614f56565b611d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d15906150bf565b60405180910390fd5b81600860036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b611d6b6115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611db26124a4565b6040518363ffffffff1660e01b8152600401611dcf9291906149eb565b60006040518083038186803b158015611de757600080fd5b505afa158015611dfb573d6000803e3d6000fd5b50505050611e0761303f565b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600754905090565b6060600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611ead573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ed691906151a2565b905090565b611ee3612d68565b600860009054906101000a900460ff1615611f2a576040517fb8ef635100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860019054906101000a900460ff16611f70576040517f59e4eebe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f878888611f7f6124a4565b89898961306b565b9050611f948184846130aa565b611fca576040517f9a69144c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8686905081101561209e57600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61201e6124a4565b61dead8a8a8681811061203457612033614eb9565b5b905060200201356040518463ffffffff1660e01b8152600401612059939291906151eb565b600060405180830381600087803b15801561207357600080fd5b505af1158015612087573d6000803e3d6000fd5b50505050808061209690614e71565b915050611fcd565b506120c76120aa6124a4565b8787905060016120b8611480565b6120c29190614fef565b612db7565b50506120d1612fcd565b50505050505050565b6120e26115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826121296124a4565b6040518363ffffffff1660e01b81526004016121469291906149eb565b60006040518083038186803b15801561215e57600080fd5b505afa158015612172573d6000803e3d6000fd5b5050505081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600860009054906101000a900460ff1681565b61dead81565b60606000600283600261227b9190615222565b6122859190614fef565b67ffffffffffffffff81111561229e5761229d6141e5565b5b6040519080825280601f01601f1916602001820160405280156122d05781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061230857612307614eb9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061236c5761236b614eb9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026123ac9190615222565b6123b69190614fef565b90505b6001811115612456577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106123f8576123f7614eb9565b5b1a60f81b82828151811061240f5761240e614eb9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061244f90615264565b90506123b9565b506000841461249a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612491906152d9565b60405180910390fd5b8091505092915050565b600033905090565b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3084846040518463ffffffff1660e01b81526004016124e9939291906151eb565b600060405180830381600087803b15801561250357600080fd5b505af1158015612517573d6000803e3d6000fd5b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61259381613169565b6125d457806040517fb718b6870000000000000000000000000000000000000000000000000000000081526004016125cb91906140dd565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156126d1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161264e9291906152f9565b602060405180830381865afa15801561266b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268f9190614f56565b6126d057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016126c79190614073565b60405180910390fd5b5b50565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661274783610ea8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80156127ea576127a461279e6124a4565b836131aa565b6127e9578383836040517f0957569f0000000000000000000000000000000000000000000000000000000081526004016127e0939291906151eb565b60405180910390fd5b5b6127f584848461323f565b50505050565b6128178484848460405180602001604052806000815250612cdb565b50505050565b600860029054906101000a900460ff1615600860026101000a81548160ff021916908315150217905550565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80156128da5761289683836131aa565b6128d95782826040517fb2b70f890000000000000000000000000000000000000000000000000000000081526004016128d0929190614138565b60405180910390fd5b5b6128e3826134bd565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361294d576040517ffa447c3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a3e9190613f6a565b60405180910390a3505050565b6000612a556124a4565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015612a9d573d6000803e3d6000fd5b5050565b8073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f84648494000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612afa9190615032565b602060405180830381865afa158015612b17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b3b9190614f56565b612b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b71906150bf565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f024ebe7d000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612c179190615032565b602060405180830381865afa158015612c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c589190614f56565b612c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8e906150bf565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8115612d3857612cf2612cec6124a4565b846131aa565b612d37578484846040517f0957569f000000000000000000000000000000000000000000000000000000008152600401612d2e939291906151eb565b60405180910390fd5b5b612d4485858584613612565b5050505050565b6001600860006101000a81548160ff021916908315150217905550565b6002600b5403612dad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da49061536e565b60405180910390fd5b6002600b81905550565b60008082905060005b84811015612f6457600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603612e2e576040517fe7070eb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e3782613169565b15612e7957816040517f3dd6ca50000000000000000000000000000000000000000000000000000000008152600401612e7091906140dd565b60405180910390fd5b612e87600087846001613672565b856002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f43600087846001613678565b8180612f4e90614e71565b9250508080612f5c90614e71565b915050612dc0565b5083600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555083600660008282540192505081905550809150509392505050565b6001600b81905550565b6060612fe28261258a565b6000612fec61367e565b9050600081511161300c5760405180602001604052806000815250613037565b8061301684613710565b6040516020016130279291906153ca565b6040516020818303038152906040525b915050919050565b600860019054906101000a900460ff1615600860016101000a81548160ff021916908315150217905550565b6000868686868686604051602001613088969594939291906154f1565b6040516020818303038152906040528051906020012090509695505050505050565b60008061310c84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506130fe876137de565b61380e90919063ffffffff16565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661318b83612849565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000806131b683610ea8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806131f857506131f781856121bb565b5b8061323657508373ffffffffffffffffffffffffffffffffffffffff1661321e846109b1565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036132a5576040517fa4aa808000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166132c582610ea8565b73ffffffffffffffffffffffffffffffffffffffff161461331f5782816040517fb04a7806000000000000000000000000000000000000000000000000000000008152600401613316929190614138565b60405180910390fd5b61332c8383836001613672565b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134b88383836001613678565b505050565b60006134c882610ea8565b90506134d8816000846001613672565b6004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560076000815480929190600101919050555081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461360e816000846001613678565b5050565b61361d84848461323f565b61362984848484613835565b61366c5782826040517ffbf98f28000000000000000000000000000000000000000000000000000000008152600401613663929190614138565b60405180910390fd5b50505050565b50505050565b50505050565b6060600c805461368d90614a43565b80601f01602080910402602001604051908101604052809291908181526020018280546136b990614a43565b80156137065780601f106136db57610100808354040283529160200191613706565b820191906000526020600020905b8154815290600101906020018083116136e957829003601f168201915b5050505050905090565b60606000600161371f846139c0565b01905060008167ffffffffffffffff81111561373e5761373d6141e5565b5b6040519080825280601f01601f1916602001820160405280156137705781602001600182028036833780820191505090505b509050600082602001820190505b6001156137d3578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816137c7576137c661553b565b5b0494506000850361377e575b819350505050919050565b6000816040516020016137f191906155d7565b604051602081830303815290604052805190602001209050919050565b600080600061381d8585613b13565b9150915061382a81613b64565b819250505092915050565b60006138568473ffffffffffffffffffffffffffffffffffffffff16613cca565b156139b3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261387f6124a4565b8786866040518563ffffffff1660e01b81526004016138a19493929190615652565b6020604051808303816000875af19250505080156138dd57506040513d601f19601f820116820180604052508101906138da91906156b3565b60015b613963573d806000811461390d576040519150601f19603f3d011682016040523d82523d6000602084013e613912565b606091505b50600081510361395b5784846040517ffbf98f28000000000000000000000000000000000000000000000000000000008152600401613952929190614138565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506139b8565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613a1e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613a1457613a1361553b565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613a5b576d04ee2d6d415b85acef81000000008381613a5157613a5061553b565b5b0492506020810190505b662386f26fc100008310613a8a57662386f26fc100008381613a8057613a7f61553b565b5b0492506010810190505b6305f5e1008310613ab3576305f5e1008381613aa957613aa861553b565b5b0492506008810190505b6127108310613ad8576127108381613ace57613acd61553b565b5b0492506004810190505b60648310613afb5760648381613af157613af061553b565b5b0492506002810190505b600a8310613b0a576001810190505b80915050919050565b6000806041835103613b545760008060006020860151925060408601519150606086015160001a9050613b4887828585613ced565b94509450505050613b5d565b60006002915091505b9250929050565b60006004811115613b7857613b776156e0565b5b816004811115613b8b57613b8a6156e0565b5b0315613cc75760016004811115613ba557613ba46156e0565b5b816004811115613bb857613bb76156e0565b5b03613bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bef9061575b565b60405180910390fd5b60026004811115613c0c57613c0b6156e0565b5b816004811115613c1f57613c1e6156e0565b5b03613c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c56906157c7565b60405180910390fd5b60036004811115613c7357613c726156e0565b5b816004811115613c8657613c856156e0565b5b03613cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cbd90615859565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613d28576000600391509150613dc6565b600060018787878760405160008152602001604052604051613d4d9493929190615888565b6020604051602081039080840390855afa158015613d6f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613dbd57600060019250925050613dc6565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e0e82613de3565b9050919050565b613e1e81613e03565b8114613e2957600080fd5b50565b600081359050613e3b81613e15565b92915050565b6000819050919050565b613e5481613e41565b8114613e5f57600080fd5b50565b600081359050613e7181613e4b565b92915050565b600080600060608486031215613e9057613e8f613dd9565b5b6000613e9e86828701613e2c565b9350506020613eaf86828701613e2c565b9250506040613ec086828701613e62565b9150509250925092565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613eff81613eca565b8114613f0a57600080fd5b50565b600081359050613f1c81613ef6565b92915050565b600060208284031215613f3857613f37613dd9565b5b6000613f4684828501613f0d565b91505092915050565b60008115159050919050565b613f6481613f4f565b82525050565b6000602082019050613f7f6000830184613f5b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fbf578082015181840152602081019050613fa4565b60008484015250505050565b6000601f19601f8301169050919050565b6000613fe782613f85565b613ff18185613f90565b9350614001818560208601613fa1565b61400a81613fcb565b840191505092915050565b6000602082019050818103600083015261402f8184613fdc565b905092915050565b60006020828403121561404d5761404c613dd9565b5b600061405b84828501613e62565b91505092915050565b61406d81613e03565b82525050565b60006020820190506140886000830184614064565b92915050565b600080604083850312156140a5576140a4613dd9565b5b60006140b385828601613e2c565b92505060206140c485828601613e62565b9150509250929050565b6140d781613e41565b82525050565b60006020820190506140f260008301846140ce565b92915050565b6000806040838503121561410f5761410e613dd9565b5b600061411d85828601613e62565b925050602061412e85828601613e62565b9150509250929050565b600060408201905061414d6000830185614064565b61415a60208301846140ce565b9392505050565b6000819050919050565b600061418661418161417c84613de3565b614161565b613de3565b9050919050565b60006141988261416b565b9050919050565b60006141aa8261418d565b9050919050565b6141ba8161419f565b82525050565b60006020820190506141d560008301846141b1565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61421d82613fcb565b810181811067ffffffffffffffff8211171561423c5761423b6141e5565b5b80604052505050565b600061424f613dcf565b905061425b8282614214565b919050565b600067ffffffffffffffff82111561427b5761427a6141e5565b5b61428482613fcb565b9050602081019050919050565b82818337600083830152505050565b60006142b36142ae84614260565b614245565b9050828152602081018484840111156142cf576142ce6141e0565b5b6142da848285614291565b509392505050565b600082601f8301126142f7576142f66141db565b5b81356143078482602086016142a0565b91505092915050565b60006020828403121561432657614325613dd9565b5b600082013567ffffffffffffffff81111561434457614343613dde565b5b614350848285016142e2565b91505092915050565b60006020828403121561436f5761436e613dd9565b5b600061437d84828501613e2c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6143bb81613e41565b82525050565b60006143cd83836143b2565b60208301905092915050565b6000602082019050919050565b60006143f182614386565b6143fb8185614391565b9350614406836143a2565b8060005b8381101561443757815161441e88826143c1565b9750614429836143d9565b92505060018101905061440a565b5085935050505092915050565b6000602082019050818103600083015261445e81846143e6565b905092915050565b60008060006060848603121561447f5761447e613dd9565b5b600061448d86828701613e2c565b935050602061449e86828701613e62565b92505060406144af86828701613e62565b9150509250925092565b6144c281613f4f565b81146144cd57600080fd5b50565b6000813590506144df816144b9565b92915050565b600080604083850312156144fc576144fb613dd9565b5b600061450a85828601613e2c565b925050602061451b858286016144d0565b9150509250929050565b6000819050919050565b61453881614525565b82525050565b6000602082019050614553600083018461452f565b92915050565b600067ffffffffffffffff821115614574576145736141e5565b5b61457d82613fcb565b9050602081019050919050565b600061459d61459884614559565b614245565b9050828152602081018484840111156145b9576145b86141e0565b5b6145c4848285614291565b509392505050565b600082601f8301126145e1576145e06141db565b5b81356145f184826020860161458a565b91505092915050565b6000806000806080858703121561461457614613613dd9565b5b600061462287828801613e2c565b945050602061463387828801613e2c565b935050604061464487828801613e62565b925050606085013567ffffffffffffffff81111561466557614664613dde565b5b614671878288016145cc565b91505092959194509250565b600060ff82169050919050565b6146938161467d565b811461469e57600080fd5b50565b6000813590506146b08161468a565b92915050565b600080604083850312156146cd576146cc613dd9565b5b60006146db85828601613e2c565b92505060206146ec858286016146a1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61472b81614525565b82525050565b600061473d8383614722565b60208301905092915050565b6000602082019050919050565b6000614761826146f6565b61476b8185614701565b935061477683614712565b8060005b838110156147a757815161478e8882614731565b975061479983614749565b92505060018101905061477a565b5085935050505092915050565b600060208201905081810360008301526147ce8184614756565b905092915050565b600080fd5b600080fd5b60008083601f8401126147f6576147f56141db565b5b8235905067ffffffffffffffff811115614813576148126147d6565b5b60208301915083600182028301111561482f5761482e6147db565b5b9250929050565b60008083601f84011261484c5761484b6141db565b5b8235905067ffffffffffffffff811115614869576148686147d6565b5b602083019150836020820283011115614885576148846147db565b5b9250929050565b60008083601f8401126148a2576148a16141db565b5b8235905067ffffffffffffffff8111156148bf576148be6147d6565b5b6020830191508360018202830111156148db576148da6147db565b5b9250929050565b60008060008060008060006080888a03121561490157614900613dd9565b5b600088013567ffffffffffffffff81111561491f5761491e613dde565b5b61492b8a828b016147e0565b9750975050602088013567ffffffffffffffff81111561494e5761494d613dde565b5b61495a8a828b01614836565b9550955050604061496d8a828b01613e62565b935050606088013567ffffffffffffffff81111561498e5761498d613dde565b5b61499a8a828b0161488c565b925092505092959891949750929550565b600080604083850312156149c2576149c1613dd9565b5b60006149d085828601613e2c565b92505060206149e185828601613e2c565b9150509250929050565b6000604082019050614a00600083018561452f565b614a0d6020830184614064565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a5b57607f821691505b602082108103614a6e57614a6d614a14565b5b50919050565b6000606082019050614a8960008301866140ce565b614a966020830185614064565b614aa360408301846140ce565b949350505050565b600081519050614aba81613e15565b92915050565b600081519050614acf81613e4b565b92915050565b60008060408385031215614aec57614aeb613dd9565b5b6000614afa85828601614aab565b9250506020614b0b85828601614ac0565b9150509250929050565b6000614b28614b2384614260565b614245565b905082815260208101848484011115614b4457614b436141e0565b5b614b4f848285613fa1565b509392505050565b600082601f830112614b6c57614b6b6141db565b5b8151614b7c848260208601614b15565b91505092915050565b600060208284031215614b9b57614b9a613dd9565b5b600082015167ffffffffffffffff811115614bb957614bb8613dde565b5b614bc584828501614b57565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614c307fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614bf3565b614c3a8683614bf3565b95508019841693508086168417925050509392505050565b6000614c6d614c68614c6384613e41565b614161565b613e41565b9050919050565b6000819050919050565b614c8783614c52565b614c9b614c9382614c74565b848454614c00565b825550505050565b600090565b614cb0614ca3565b614cbb818484614c7e565b505050565b5b81811015614cdf57614cd4600082614ca8565b600181019050614cc1565b5050565b601f821115614d2457614cf581614bce565b614cfe84614be3565b81016020851015614d0d578190505b614d21614d1985614be3565b830182614cc0565b50505b505050565b600082821c905092915050565b6000614d4760001984600802614d29565b1980831691505092915050565b6000614d608383614d36565b9150826002028217905092915050565b614d7982613f85565b67ffffffffffffffff811115614d9257614d916141e5565b5b614d9c8254614a43565b614da7828285614ce3565b600060209050601f831160018114614dda5760008415614dc8578287015190505b614dd28582614d54565b865550614e3a565b601f198416614de886614bce565b60005b82811015614e1057848901518255600182019150602085019450602081019050614deb565b86831015614e2d5784890151614e29601f891682614d36565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614e7c82613e41565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614eae57614ead614e42565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b614ef181614525565b8114614efc57600080fd5b50565b600081519050614f0e81614ee8565b92915050565b600060208284031215614f2a57614f29613dd9565b5b6000614f3884828501614eff565b91505092915050565b600081519050614f50816144b9565b92915050565b600060208284031215614f6c57614f6b613dd9565b5b6000614f7a84828501614f41565b91505092915050565b7f4d697373696e6720726571756972656420726f6c650000000000000000000000600082015250565b6000614fb9601583613f90565b9150614fc482614f83565b602082019050919050565b60006020820190508181036000830152614fe881614fac565b9050919050565b6000614ffa82613e41565b915061500583613e41565b925082820190508082111561501d5761501c614e42565b5b92915050565b61502c81613eca565b82525050565b60006020820190506150476000830184615023565b92915050565b7f436f6e747261637420646f6573206e6f7420737570706f72742072657175697260008201527f656420696e746572666163650000000000000000000000000000000000000000602082015250565b60006150a9602c83613f90565b91506150b48261504d565b604082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b600067ffffffffffffffff8211156150fa576150f96141e5565b5b602082029050602081019050919050565b600061511e615119846150df565b614245565b90508083825260208201905060208402830185811115615141576151406147db565b5b835b8181101561516a57806151568882614eff565b845260208401935050602081019050615143565b5050509392505050565b600082601f830112615189576151886141db565b5b815161519984826020860161510b565b91505092915050565b6000602082840312156151b8576151b7613dd9565b5b600082015167ffffffffffffffff8111156151d6576151d5613dde565b5b6151e284828501615174565b91505092915050565b60006060820190506152006000830186614064565b61520d6020830185614064565b61521a60408301846140ce565b949350505050565b600061522d82613e41565b915061523883613e41565b925082820261524681613e41565b9150828204841483151761525d5761525c614e42565b5b5092915050565b600061526f82613e41565b91506000820361528257615281614e42565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006152c3602083613f90565b91506152ce8261528d565b602082019050919050565b600060208201905081810360008301526152f2816152b6565b9050919050565b600060408201905061530e6000830185614064565b61531b6020830184614064565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615358601f83613f90565b915061536382615322565b602082019050919050565b600060208201905081810360008301526153878161534b565b9050919050565b600081905092915050565b60006153a482613f85565b6153ae818561538e565b93506153be818560208601613fa1565b80840191505092915050565b60006153d68285615399565b91506153e28284615399565b91508190509392505050565b60006153fa838561538e565b9350615407838584614291565b82840190509392505050565b60008160601b9050919050565b600061542b82615413565b9050919050565b600061543d82615420565b9050919050565b61545561545082613e03565b615432565b82525050565b600081905092915050565b600080fd5b82818337505050565b6000615480838561545b565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156154b3576154b2615466565b5b6020830292506154c483858461546b565b82840190509392505050565b6000819050919050565b6154eb6154e682613e41565b6154d0565b82525050565b60006154fe82888a6153ee565b915061550a8287615444565b60148201915061551b828587615474565b915061552782846154da565b602082019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006155a0601c8361538e565b91506155ab8261556a565b601c82019050919050565b6000819050919050565b6155d16155cc82614525565b6155b6565b82525050565b60006155e282615593565b91506155ee82846155c0565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000615624826155fd565b61562e8185615608565b935061563e818560208601613fa1565b61564781613fcb565b840191505092915050565b60006080820190506156676000830187614064565b6156746020830186614064565b61568160408301856140ce565b81810360608301526156938184615619565b905095945050505050565b6000815190506156ad81613ef6565b92915050565b6000602082840312156156c9576156c8613dd9565b5b60006156d78482850161569e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615745601883613f90565b91506157508261570f565b602082019050919050565b6000602082019050818103600083015261577481615738565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006157b1601f83613f90565b91506157bc8261577b565b602082019050919050565b600060208201905081810360008301526157e0816157a4565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615843602283613f90565b915061584e826157e7565b604082019050919050565b6000602082019050818103600083015261587281615836565b9050919050565b6158828161467d565b82525050565b600060808201905061589d600083018761452f565b6158aa6020830186615879565b6158b7604083018561452f565b6158c4606083018461452f565b9594505050505056fea2646970667358221220756b4cdf3000d24bfaf105737b0564141009be424ceea06f2785fa31d1515c3a64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000cdf831868185c4e92433b2f66a88123523011ecf00000000000000000000000021bbb2f84053197a2455a6c230c2883030b15d0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000091e29c8cfdc161217d75286188507f07a576629b0000000000000000000000004d928fada59f3446627c5bea707a81e006cf676f000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f76322f636f6c6c656374696f6e732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017506c656173652054616b6520612053746570204261636b0000000000000000000000000000000000000000000000000000000000000000000000000000000009504c5353545042434b0000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025e5760003560e01c8063a2309ff811610146578063c87b56dd116100c3578063dd5adf0c11610087578063dd5adf0c146106d6578063e65ff566146106f4578063e84a972814610710578063e985e9c51461072c578063f5e92b951461075c578063fccc28131461077a5761025e565b8063c87b56dd14610644578063ca35e8a014610674578063d02c2bf214610690578063d2f235d41461069a578063d89135cd146106b85761025e565b8063b7f1d0721161010a578063b7f1d072146105c8578063b88d4fde146105e4578063bb7648b614610600578063c5b66dc91461060a578063c68295a4146106285761025e565b8063a2309ff814610548578063ac44600214610566578063b166da4214610570578063b1a6676e1461058c578063b3ecf236146105aa5761025e565b806342842e0e116101df57806370a08231116101a357806370a08231146104625780638462151c1461049257806395d89b41146104c257806399a2557a146104e05780639dc29fac14610510578063a22cb4651461052c5761025e565b806342842e0e146103d257806355f804b3146103ee5780635b92ac0d1461040a5780635bc0997c146104285780636352211e146104325761025e565b806318160ddd1161022657806318160ddd1461031957806323b872dd146103375780632a55205a146103535780632b2389bf1461038457806341f43434146103b45761025e565b806301e336671461026357806301ffc9a71461027f57806306fdde03146102af578063081812fc146102cd578063095ea7b3146102fd575b600080fd5b61027d60048036038101906102789190613e77565b610798565b005b61029960048036038101906102949190613f22565b610845565b6040516102a69190613f6a565b60405180910390f35b6102b761091f565b6040516102c49190614015565b60405180910390f35b6102e760048036038101906102e29190614037565b6109b1565b6040516102f49190614073565b60405180910390f35b6103176004803603810190610312919061408e565b6109f7565b005b610321610b25565b60405161032e91906140dd565b60405180910390f35b610351600480360381019061034c9190613e77565b610b33565b005b61036d600480360381019061036891906140f8565b610b84565b60405161037b929190614138565b60405180910390f35b61039e60048036038101906103999190614037565b610c31565b6040516103ab9190614015565b60405180910390f35b6103bc610cdb565b6040516103c991906141c0565b60405180910390f35b6103ec60048036038101906103e79190613e77565b610ced565b005b61040860048036038101906104039190614310565b610d3e565b005b610412610dee565b60405161041f9190613f6a565b60405180910390f35b610430610e01565b005b61044c60048036038101906104479190614037565b610ea8565b6040516104599190614073565b60405180910390f35b61047c60048036038101906104779190614359565b610f30565b60405161048991906140dd565b60405180910390f35b6104ac60048036038101906104a79190614359565b610fde565b6040516104b99190614444565b60405180910390f35b6104ca611158565b6040516104d79190614015565b60405180910390f35b6104fa60048036038101906104f59190614466565b6111ea565b6040516105079190614444565b60405180910390f35b61052a6004803603810190610525919061408e565b61136c565b005b610546600480360381019061054191906144e5565b61145f565b005b610550611480565b60405161055d91906140dd565b60405180910390f35b61056e61148a565b005b61058a60048036038101906105859190614359565b611531565b005b6105946115da565b6040516105a19190613f6a565b60405180910390f35b6105b26115ed565b6040516105bf919061453e565b60405180910390f35b6105e260048036038101906105dd9190614359565b611685565b005b6105fe60048036038101906105f991906145fa565b61172e565b005b610608611781565b005b610612611828565b60405161061f919061453e565b60405180910390f35b610642600480360381019061063d91906146b6565b6118c0565b005b61065e60048036038101906106599190614037565b611ac2565b60405161066b9190614015565b60405180910390f35b61068e60048036038101906106899190614359565b611b20565b005b610698611d63565b005b6106a2611e0a565b6040516106af9190614073565b60405180910390f35b6106c0611e34565b6040516106cd91906140dd565b60405180910390f35b6106de611e3e565b6040516106eb91906147b4565b60405180910390f35b61070e600480360381019061070991906148e2565b611edb565b005b61072a60048036038101906107259190614359565b6120da565b005b610746600480360381019061074191906149ab565b6121bb565b6040516107539190613f6a565b60405180910390f35b61076461224f565b6040516107719190613f6a565b60405180910390f35b610782612262565b60405161078f9190614073565b60405180910390f35b6107a06115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826107e76124a4565b6040518363ffffffff1660e01b81526004016108049291906149eb565b60006040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b5050505061083f8484846124ac565b50505050565b60006380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061090857507fdbf24b52000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610918575061091782612520565b5b9050919050565b60606000805461092e90614a43565b80601f016020809104026020016040519081016040528092919081815260200182805461095a90614a43565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b5050505050905090565b60006109bc8261258a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610a01816125d7565b6000610a0c83610ea8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610a805783836040517f26ac089f000000000000000000000000000000000000000000000000000000008152600401610a77929190614138565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a9f6124a4565b73ffffffffffffffffffffffffffffffffffffffff1614158015610ad15750610acf81610aca6124a4565b6121bb565b155b15610b155783836040517fb1ab84a4000000000000000000000000000000000000000000000000000000008152600401610b0c929190614138565b60405180910390fd5b610b1f84846126d4565b50505050565b600060075460065403905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b7157610b70336125d7565b5b610b7e848484600161278d565b50505050565b600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8ca29d58530866040518463ffffffff1660e01b8152600401610be693929190614a74565b6040805180830381865afa158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c269190614ad5565b915091509250929050565b6060600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401610c8e91906140dd565b600060405180830381865afa158015610cab573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610cd49190614b85565b9050919050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d2b57610d2a336125d7565b5b610d3884848460016127fb565b50505050565b610d466115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82610d8d6124a4565b6040518363ffffffff1660e01b8152600401610daa9291906149eb565b60006040518083038186803b158015610dc257600080fd5b505afa158015610dd6573d6000803e3d6000fd5b5050505081600c9081610de99190614d70565b505050565b600860019054906101000a900460ff1681565b610e096115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82610e506124a4565b6040518363ffffffff1660e01b8152600401610e6d9291906149eb565b60006040518083038186803b158015610e8557600080fd5b505afa158015610e99573d6000803e3d6000fd5b50505050610ea561281d565b50565b600080610eb483612849565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f2757826040517fb718b687000000000000000000000000000000000000000000000000000000008152600401610f1e91906140dd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f97576040517f560440d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600080610fec84610f30565b90506000810361104957600067ffffffffffffffff811115611011576110106141e5565b5b60405190808252806020026020018201604052801561103f5781602001602082028036833780820191505090505b5092505050611153565b60008167ffffffffffffffff811115611065576110646141e5565b5b6040519080825280602002602001820160405280156110935781602001602082028036833780820191505090505b5090506000805b83821461114a576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611137578083838061111790614e71565b94508151811061112a57611129614eb9565b5b6020026020010181815250505b808061114290614e71565b91505061109a565b82955050505050505b919050565b60606001805461116790614a43565b80601f016020809104026020016040519081016040528092919081815260200182805461119390614a43565b80156111e05780601f106111b5576101008083540402835291602001916111e0565b820191906000526020600020905b8154815290600101906020018083116111c357829003601f168201915b5050505050905090565b60606000806111f886610f30565b90506000810361125557600067ffffffffffffffff81111561121d5761121c6141e5565b5b60405190808252806020026020018201604052801561124b5781602001602082028036833780820191505090505b5092505050611365565b60008167ffffffffffffffff811115611271576112706141e5565b5b60405190808252806020026020018201604052801561129f5781602001602082028036833780820191505090505b5090506000808790505b868111611359576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508873ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611346578083838061132690614e71565b94508151811061133957611338614eb9565b5b6020026020010181815250505b808061135190614e71565b9150506112a9565b81835282955050505050505b9392505050565b611374611828565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826113bb6124a4565b6040518363ffffffff1660e01b81526004016113d89291906149eb565b60006040518083038186803b1580156113f057600080fd5b505afa158015611404573d6000803e3d6000fd5b50505050600860029054906101000a900460ff1661144e576040517febb5afac00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61145a83836000612886565b505050565b81611469816125d7565b61147b6114746124a4565b84846128e8565b505050565b6000600654905090565b6114926115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826114d96124a4565b6040518363ffffffff1660e01b81526004016114f69291906149eb565b60006040518083038186803b15801561150e57600080fd5b505afa158015611522573d6000803e3d6000fd5b5050505061152e612a4b565b50565b6115396115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826115806124a4565b6040518363ffffffff1660e01b815260040161159d9291906149eb565b60006040518083038186803b1580156115b557600080fd5b505afa1580156115c9573d6000803e3d6000fd5b505050506115d682612aa1565b5050565b600860029054906101000a900460ff1681565b6000600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b8152600401602060405180830381865afa15801561165c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116809190614f14565b905090565b61168d6115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826116d46124a4565b6040518363ffffffff1660e01b81526004016116f19291906149eb565b60006040518083038186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b5050505061172a82612bbe565b5050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461176c5761176b336125d7565b5b61177a858585600186612cdb565b5050505050565b6117896115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826117d06124a4565b6040518363ffffffff1660e01b81526004016117ed9291906149eb565b60006040518083038186803b15801561180557600080fd5b505afa158015611819573d6000803e3d6000fd5b50505050611825612d4b565b50565b6000600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c5b66dc96040518163ffffffff1660e01b8152600401602060405180830381865afa158015611897573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bb9190614f14565b905090565b6118c8611e3e565b6000805b82518110156119bc5760008382815181106118ea576118e9614eb9565b5b60200260200101519050600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148548261193b6124a4565b6040518363ffffffff1660e01b81526004016119589291906149eb565b602060405180830381865afa158015611975573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119999190614f56565b156119a85760019250506119bc565b5080806119b490614e71565b9150506118cc565b50806119fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f490614fcf565b60405180910390fd5b611a05612d68565b600860009054906101000a900460ff1615611a4c576040517fb8ef635100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860019054906101000a900460ff16611a92576040517f59e4eebe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ab3848460ff166001611aa4611480565b611aae9190614fef565b612db7565b50611abc612fcd565b50505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16611ae4611e0a565b73ffffffffffffffffffffffffffffffffffffffff1614611b0f57611b0882610c31565b9050611b1b565b611b1882612fd7565b90505b919050565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb19190614f14565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611bf86124a4565b6040518363ffffffff1660e01b8152600401611c159291906149eb565b60006040518083038186803b158015611c2d57600080fd5b505afa158015611c41573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f0b7162d4000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401611c9e9190615032565b602060405180830381865afa158015611cbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdf9190614f56565b611d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d15906150bf565b60405180910390fd5b81600860036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b611d6b6115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611db26124a4565b6040518363ffffffff1660e01b8152600401611dcf9291906149eb565b60006040518083038186803b158015611de757600080fd5b505afa158015611dfb573d6000803e3d6000fd5b50505050611e0761303f565b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600754905090565b6060600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611ead573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ed691906151a2565b905090565b611ee3612d68565b600860009054906101000a900460ff1615611f2a576040517fb8ef635100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860019054906101000a900460ff16611f70576040517f59e4eebe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f878888611f7f6124a4565b89898961306b565b9050611f948184846130aa565b611fca576040517f9a69144c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8686905081101561209e57600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61201e6124a4565b61dead8a8a8681811061203457612033614eb9565b5b905060200201356040518463ffffffff1660e01b8152600401612059939291906151eb565b600060405180830381600087803b15801561207357600080fd5b505af1158015612087573d6000803e3d6000fd5b50505050808061209690614e71565b915050611fcd565b506120c76120aa6124a4565b8787905060016120b8611480565b6120c29190614fef565b612db7565b50506120d1612fcd565b50505050505050565b6120e26115ed565b600860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826121296124a4565b6040518363ffffffff1660e01b81526004016121469291906149eb565b60006040518083038186803b15801561215e57600080fd5b505afa158015612172573d6000803e3d6000fd5b5050505081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600860009054906101000a900460ff1681565b61dead81565b60606000600283600261227b9190615222565b6122859190614fef565b67ffffffffffffffff81111561229e5761229d6141e5565b5b6040519080825280601f01601f1916602001820160405280156122d05781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061230857612307614eb9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061236c5761236b614eb9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026123ac9190615222565b6123b69190614fef565b90505b6001811115612456577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106123f8576123f7614eb9565b5b1a60f81b82828151811061240f5761240e614eb9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061244f90615264565b90506123b9565b506000841461249a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612491906152d9565b60405180910390fd5b8091505092915050565b600033905090565b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3084846040518463ffffffff1660e01b81526004016124e9939291906151eb565b600060405180830381600087803b15801561250357600080fd5b505af1158015612517573d6000803e3d6000fd5b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61259381613169565b6125d457806040517fb718b6870000000000000000000000000000000000000000000000000000000081526004016125cb91906140dd565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156126d1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161264e9291906152f9565b602060405180830381865afa15801561266b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268f9190614f56565b6126d057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016126c79190614073565b60405180910390fd5b5b50565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661274783610ea8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80156127ea576127a461279e6124a4565b836131aa565b6127e9578383836040517f0957569f0000000000000000000000000000000000000000000000000000000081526004016127e0939291906151eb565b60405180910390fd5b5b6127f584848461323f565b50505050565b6128178484848460405180602001604052806000815250612cdb565b50505050565b600860029054906101000a900460ff1615600860026101000a81548160ff021916908315150217905550565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80156128da5761289683836131aa565b6128d95782826040517fb2b70f890000000000000000000000000000000000000000000000000000000081526004016128d0929190614138565b60405180910390fd5b5b6128e3826134bd565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361294d576040517ffa447c3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a3e9190613f6a565b60405180910390a3505050565b6000612a556124a4565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015612a9d573d6000803e3d6000fd5b5050565b8073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f84648494000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612afa9190615032565b602060405180830381865afa158015612b17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b3b9190614f56565b612b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b71906150bf565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f024ebe7d000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612c179190615032565b602060405180830381865afa158015612c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c589190614f56565b612c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8e906150bf565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8115612d3857612cf2612cec6124a4565b846131aa565b612d37578484846040517f0957569f000000000000000000000000000000000000000000000000000000008152600401612d2e939291906151eb565b60405180910390fd5b5b612d4485858584613612565b5050505050565b6001600860006101000a81548160ff021916908315150217905550565b6002600b5403612dad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da49061536e565b60405180910390fd5b6002600b81905550565b60008082905060005b84811015612f6457600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603612e2e576040517fe7070eb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e3782613169565b15612e7957816040517f3dd6ca50000000000000000000000000000000000000000000000000000000008152600401612e7091906140dd565b60405180910390fd5b612e87600087846001613672565b856002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f43600087846001613678565b8180612f4e90614e71565b9250508080612f5c90614e71565b915050612dc0565b5083600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555083600660008282540192505081905550809150509392505050565b6001600b81905550565b6060612fe28261258a565b6000612fec61367e565b9050600081511161300c5760405180602001604052806000815250613037565b8061301684613710565b6040516020016130279291906153ca565b6040516020818303038152906040525b915050919050565b600860019054906101000a900460ff1615600860016101000a81548160ff021916908315150217905550565b6000868686868686604051602001613088969594939291906154f1565b6040516020818303038152906040528051906020012090509695505050505050565b60008061310c84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506130fe876137de565b61380e90919063ffffffff16565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff1661318b83612849565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000806131b683610ea8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806131f857506131f781856121bb565b5b8061323657508373ffffffffffffffffffffffffffffffffffffffff1661321e846109b1565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036132a5576040517fa4aa808000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166132c582610ea8565b73ffffffffffffffffffffffffffffffffffffffff161461331f5782816040517fb04a7806000000000000000000000000000000000000000000000000000000008152600401613316929190614138565b60405180910390fd5b61332c8383836001613672565b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134b88383836001613678565b505050565b60006134c882610ea8565b90506134d8816000846001613672565b6004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560076000815480929190600101919050555081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461360e816000846001613678565b5050565b61361d84848461323f565b61362984848484613835565b61366c5782826040517ffbf98f28000000000000000000000000000000000000000000000000000000008152600401613663929190614138565b60405180910390fd5b50505050565b50505050565b50505050565b6060600c805461368d90614a43565b80601f01602080910402602001604051908101604052809291908181526020018280546136b990614a43565b80156137065780601f106136db57610100808354040283529160200191613706565b820191906000526020600020905b8154815290600101906020018083116136e957829003601f168201915b5050505050905090565b60606000600161371f846139c0565b01905060008167ffffffffffffffff81111561373e5761373d6141e5565b5b6040519080825280601f01601f1916602001820160405280156137705781602001600182028036833780820191505090505b509050600082602001820190505b6001156137d3578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816137c7576137c661553b565b5b0494506000850361377e575b819350505050919050565b6000816040516020016137f191906155d7565b604051602081830303815290604052805190602001209050919050565b600080600061381d8585613b13565b9150915061382a81613b64565b819250505092915050565b60006138568473ffffffffffffffffffffffffffffffffffffffff16613cca565b156139b3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261387f6124a4565b8786866040518563ffffffff1660e01b81526004016138a19493929190615652565b6020604051808303816000875af19250505080156138dd57506040513d601f19601f820116820180604052508101906138da91906156b3565b60015b613963573d806000811461390d576040519150601f19603f3d011682016040523d82523d6000602084013e613912565b606091505b50600081510361395b5784846040517ffbf98f28000000000000000000000000000000000000000000000000000000008152600401613952929190614138565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506139b8565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613a1e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613a1457613a1361553b565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613a5b576d04ee2d6d415b85acef81000000008381613a5157613a5061553b565b5b0492506020810190505b662386f26fc100008310613a8a57662386f26fc100008381613a8057613a7f61553b565b5b0492506010810190505b6305f5e1008310613ab3576305f5e1008381613aa957613aa861553b565b5b0492506008810190505b6127108310613ad8576127108381613ace57613acd61553b565b5b0492506004810190505b60648310613afb5760648381613af157613af061553b565b5b0492506002810190505b600a8310613b0a576001810190505b80915050919050565b6000806041835103613b545760008060006020860151925060408601519150606086015160001a9050613b4887828585613ced565b94509450505050613b5d565b60006002915091505b9250929050565b60006004811115613b7857613b776156e0565b5b816004811115613b8b57613b8a6156e0565b5b0315613cc75760016004811115613ba557613ba46156e0565b5b816004811115613bb857613bb76156e0565b5b03613bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bef9061575b565b60405180910390fd5b60026004811115613c0c57613c0b6156e0565b5b816004811115613c1f57613c1e6156e0565b5b03613c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c56906157c7565b60405180910390fd5b60036004811115613c7357613c726156e0565b5b816004811115613c8657613c856156e0565b5b03613cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cbd90615859565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613d28576000600391509150613dc6565b600060018787878760405160008152602001604052604051613d4d9493929190615888565b6020604051602081039080840390855afa158015613d6f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613dbd57600060019250925050613dc6565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e0e82613de3565b9050919050565b613e1e81613e03565b8114613e2957600080fd5b50565b600081359050613e3b81613e15565b92915050565b6000819050919050565b613e5481613e41565b8114613e5f57600080fd5b50565b600081359050613e7181613e4b565b92915050565b600080600060608486031215613e9057613e8f613dd9565b5b6000613e9e86828701613e2c565b9350506020613eaf86828701613e2c565b9250506040613ec086828701613e62565b9150509250925092565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613eff81613eca565b8114613f0a57600080fd5b50565b600081359050613f1c81613ef6565b92915050565b600060208284031215613f3857613f37613dd9565b5b6000613f4684828501613f0d565b91505092915050565b60008115159050919050565b613f6481613f4f565b82525050565b6000602082019050613f7f6000830184613f5b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fbf578082015181840152602081019050613fa4565b60008484015250505050565b6000601f19601f8301169050919050565b6000613fe782613f85565b613ff18185613f90565b9350614001818560208601613fa1565b61400a81613fcb565b840191505092915050565b6000602082019050818103600083015261402f8184613fdc565b905092915050565b60006020828403121561404d5761404c613dd9565b5b600061405b84828501613e62565b91505092915050565b61406d81613e03565b82525050565b60006020820190506140886000830184614064565b92915050565b600080604083850312156140a5576140a4613dd9565b5b60006140b385828601613e2c565b92505060206140c485828601613e62565b9150509250929050565b6140d781613e41565b82525050565b60006020820190506140f260008301846140ce565b92915050565b6000806040838503121561410f5761410e613dd9565b5b600061411d85828601613e62565b925050602061412e85828601613e62565b9150509250929050565b600060408201905061414d6000830185614064565b61415a60208301846140ce565b9392505050565b6000819050919050565b600061418661418161417c84613de3565b614161565b613de3565b9050919050565b60006141988261416b565b9050919050565b60006141aa8261418d565b9050919050565b6141ba8161419f565b82525050565b60006020820190506141d560008301846141b1565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61421d82613fcb565b810181811067ffffffffffffffff8211171561423c5761423b6141e5565b5b80604052505050565b600061424f613dcf565b905061425b8282614214565b919050565b600067ffffffffffffffff82111561427b5761427a6141e5565b5b61428482613fcb565b9050602081019050919050565b82818337600083830152505050565b60006142b36142ae84614260565b614245565b9050828152602081018484840111156142cf576142ce6141e0565b5b6142da848285614291565b509392505050565b600082601f8301126142f7576142f66141db565b5b81356143078482602086016142a0565b91505092915050565b60006020828403121561432657614325613dd9565b5b600082013567ffffffffffffffff81111561434457614343613dde565b5b614350848285016142e2565b91505092915050565b60006020828403121561436f5761436e613dd9565b5b600061437d84828501613e2c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6143bb81613e41565b82525050565b60006143cd83836143b2565b60208301905092915050565b6000602082019050919050565b60006143f182614386565b6143fb8185614391565b9350614406836143a2565b8060005b8381101561443757815161441e88826143c1565b9750614429836143d9565b92505060018101905061440a565b5085935050505092915050565b6000602082019050818103600083015261445e81846143e6565b905092915050565b60008060006060848603121561447f5761447e613dd9565b5b600061448d86828701613e2c565b935050602061449e86828701613e62565b92505060406144af86828701613e62565b9150509250925092565b6144c281613f4f565b81146144cd57600080fd5b50565b6000813590506144df816144b9565b92915050565b600080604083850312156144fc576144fb613dd9565b5b600061450a85828601613e2c565b925050602061451b858286016144d0565b9150509250929050565b6000819050919050565b61453881614525565b82525050565b6000602082019050614553600083018461452f565b92915050565b600067ffffffffffffffff821115614574576145736141e5565b5b61457d82613fcb565b9050602081019050919050565b600061459d61459884614559565b614245565b9050828152602081018484840111156145b9576145b86141e0565b5b6145c4848285614291565b509392505050565b600082601f8301126145e1576145e06141db565b5b81356145f184826020860161458a565b91505092915050565b6000806000806080858703121561461457614613613dd9565b5b600061462287828801613e2c565b945050602061463387828801613e2c565b935050604061464487828801613e62565b925050606085013567ffffffffffffffff81111561466557614664613dde565b5b614671878288016145cc565b91505092959194509250565b600060ff82169050919050565b6146938161467d565b811461469e57600080fd5b50565b6000813590506146b08161468a565b92915050565b600080604083850312156146cd576146cc613dd9565b5b60006146db85828601613e2c565b92505060206146ec858286016146a1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61472b81614525565b82525050565b600061473d8383614722565b60208301905092915050565b6000602082019050919050565b6000614761826146f6565b61476b8185614701565b935061477683614712565b8060005b838110156147a757815161478e8882614731565b975061479983614749565b92505060018101905061477a565b5085935050505092915050565b600060208201905081810360008301526147ce8184614756565b905092915050565b600080fd5b600080fd5b60008083601f8401126147f6576147f56141db565b5b8235905067ffffffffffffffff811115614813576148126147d6565b5b60208301915083600182028301111561482f5761482e6147db565b5b9250929050565b60008083601f84011261484c5761484b6141db565b5b8235905067ffffffffffffffff811115614869576148686147d6565b5b602083019150836020820283011115614885576148846147db565b5b9250929050565b60008083601f8401126148a2576148a16141db565b5b8235905067ffffffffffffffff8111156148bf576148be6147d6565b5b6020830191508360018202830111156148db576148da6147db565b5b9250929050565b60008060008060008060006080888a03121561490157614900613dd9565b5b600088013567ffffffffffffffff81111561491f5761491e613dde565b5b61492b8a828b016147e0565b9750975050602088013567ffffffffffffffff81111561494e5761494d613dde565b5b61495a8a828b01614836565b9550955050604061496d8a828b01613e62565b935050606088013567ffffffffffffffff81111561498e5761498d613dde565b5b61499a8a828b0161488c565b925092505092959891949750929550565b600080604083850312156149c2576149c1613dd9565b5b60006149d085828601613e2c565b92505060206149e185828601613e2c565b9150509250929050565b6000604082019050614a00600083018561452f565b614a0d6020830184614064565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a5b57607f821691505b602082108103614a6e57614a6d614a14565b5b50919050565b6000606082019050614a8960008301866140ce565b614a966020830185614064565b614aa360408301846140ce565b949350505050565b600081519050614aba81613e15565b92915050565b600081519050614acf81613e4b565b92915050565b60008060408385031215614aec57614aeb613dd9565b5b6000614afa85828601614aab565b9250506020614b0b85828601614ac0565b9150509250929050565b6000614b28614b2384614260565b614245565b905082815260208101848484011115614b4457614b436141e0565b5b614b4f848285613fa1565b509392505050565b600082601f830112614b6c57614b6b6141db565b5b8151614b7c848260208601614b15565b91505092915050565b600060208284031215614b9b57614b9a613dd9565b5b600082015167ffffffffffffffff811115614bb957614bb8613dde565b5b614bc584828501614b57565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614c307fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614bf3565b614c3a8683614bf3565b95508019841693508086168417925050509392505050565b6000614c6d614c68614c6384613e41565b614161565b613e41565b9050919050565b6000819050919050565b614c8783614c52565b614c9b614c9382614c74565b848454614c00565b825550505050565b600090565b614cb0614ca3565b614cbb818484614c7e565b505050565b5b81811015614cdf57614cd4600082614ca8565b600181019050614cc1565b5050565b601f821115614d2457614cf581614bce565b614cfe84614be3565b81016020851015614d0d578190505b614d21614d1985614be3565b830182614cc0565b50505b505050565b600082821c905092915050565b6000614d4760001984600802614d29565b1980831691505092915050565b6000614d608383614d36565b9150826002028217905092915050565b614d7982613f85565b67ffffffffffffffff811115614d9257614d916141e5565b5b614d9c8254614a43565b614da7828285614ce3565b600060209050601f831160018114614dda5760008415614dc8578287015190505b614dd28582614d54565b865550614e3a565b601f198416614de886614bce565b60005b82811015614e1057848901518255600182019150602085019450602081019050614deb565b86831015614e2d5784890151614e29601f891682614d36565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614e7c82613e41565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614eae57614ead614e42565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b614ef181614525565b8114614efc57600080fd5b50565b600081519050614f0e81614ee8565b92915050565b600060208284031215614f2a57614f29613dd9565b5b6000614f3884828501614eff565b91505092915050565b600081519050614f50816144b9565b92915050565b600060208284031215614f6c57614f6b613dd9565b5b6000614f7a84828501614f41565b91505092915050565b7f4d697373696e6720726571756972656420726f6c650000000000000000000000600082015250565b6000614fb9601583613f90565b9150614fc482614f83565b602082019050919050565b60006020820190508181036000830152614fe881614fac565b9050919050565b6000614ffa82613e41565b915061500583613e41565b925082820190508082111561501d5761501c614e42565b5b92915050565b61502c81613eca565b82525050565b60006020820190506150476000830184615023565b92915050565b7f436f6e747261637420646f6573206e6f7420737570706f72742072657175697260008201527f656420696e746572666163650000000000000000000000000000000000000000602082015250565b60006150a9602c83613f90565b91506150b48261504d565b604082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b600067ffffffffffffffff8211156150fa576150f96141e5565b5b602082029050602081019050919050565b600061511e615119846150df565b614245565b90508083825260208201905060208402830185811115615141576151406147db565b5b835b8181101561516a57806151568882614eff565b845260208401935050602081019050615143565b5050509392505050565b600082601f830112615189576151886141db565b5b815161519984826020860161510b565b91505092915050565b6000602082840312156151b8576151b7613dd9565b5b600082015167ffffffffffffffff8111156151d6576151d5613dde565b5b6151e284828501615174565b91505092915050565b60006060820190506152006000830186614064565b61520d6020830185614064565b61521a60408301846140ce565b949350505050565b600061522d82613e41565b915061523883613e41565b925082820261524681613e41565b9150828204841483151761525d5761525c614e42565b5b5092915050565b600061526f82613e41565b91506000820361528257615281614e42565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006152c3602083613f90565b91506152ce8261528d565b602082019050919050565b600060208201905081810360008301526152f2816152b6565b9050919050565b600060408201905061530e6000830185614064565b61531b6020830184614064565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615358601f83613f90565b915061536382615322565b602082019050919050565b600060208201905081810360008301526153878161534b565b9050919050565b600081905092915050565b60006153a482613f85565b6153ae818561538e565b93506153be818560208601613fa1565b80840191505092915050565b60006153d68285615399565b91506153e28284615399565b91508190509392505050565b60006153fa838561538e565b9350615407838584614291565b82840190509392505050565b60008160601b9050919050565b600061542b82615413565b9050919050565b600061543d82615420565b9050919050565b61545561545082613e03565b615432565b82525050565b600081905092915050565b600080fd5b82818337505050565b6000615480838561545b565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156154b3576154b2615466565b5b6020830292506154c483858461546b565b82840190509392505050565b6000819050919050565b6154eb6154e682613e41565b6154d0565b82525050565b60006154fe82888a6153ee565b915061550a8287615444565b60148201915061551b828587615474565b915061552782846154da565b602082019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006155a0601c8361538e565b91506155ab8261556a565b601c82019050919050565b6000819050919050565b6155d16155cc82614525565b6155b6565b82525050565b60006155e282615593565b91506155ee82846155c0565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000615624826155fd565b61562e8185615608565b935061563e818560208601613fa1565b61564781613fcb565b840191505092915050565b60006080820190506156676000830187614064565b6156746020830186614064565b61568160408301856140ce565b81810360608301526156938184615619565b905095945050505050565b6000815190506156ad81613ef6565b92915050565b6000602082840312156156c9576156c8613dd9565b5b60006156d78482850161569e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615745601883613f90565b91506157508261570f565b602082019050919050565b6000602082019050818103600083015261577481615738565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006157b1601f83613f90565b91506157bc8261577b565b602082019050919050565b600060208201905081810360008301526157e0816157a4565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615843602283613f90565b915061584e826157e7565b604082019050919050565b6000602082019050818103600083015261587281615836565b9050919050565b6158828161467d565b82525050565b600060808201905061589d600083018761452f565b6158aa6020830186615879565b6158b7604083018561452f565b6158c4606083018461452f565b9594505050505056fea2646970667358221220756b4cdf3000d24bfaf105737b0564141009be424ceea06f2785fa31d1515c3a64736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000cdf831868185c4e92433b2f66a88123523011ecf00000000000000000000000021bbb2f84053197a2455a6c230c2883030b15d0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000091e29c8cfdc161217d75286188507f07a576629b0000000000000000000000004d928fada59f3446627c5bea707a81e006cf676f000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f76322f636f6c6c656374696f6e732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017506c656173652054616b6520612053746570204261636b0000000000000000000000000000000000000000000000000000000000000000000000000000000009504c5353545042434b0000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialBaseUri (string): https://metadata.veefriends.com/v2/collections/
Arg [1] : name (string): Please Take a Step Back
Arg [2] : symbol (string): PLSSTPBCK
Arg [3] : controlContractAddress (address): 0xcDf831868185C4e92433B2f66a88123523011ecf
Arg [4] : royaltiesContractAddress (address): 0x21bbB2F84053197A2455a6C230C2883030B15d0c
Arg [5] : renderingContractAddress (address): 0x0000000000000000000000000000000000000000
Arg [6] : mintSigner (address): 0x91e29C8cfDC161217d75286188507f07a576629b
Arg [7] : burnFromContractAddress (address): 0x4d928Fada59F3446627C5bea707A81e006Cf676f

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 000000000000000000000000cdf831868185c4e92433b2f66a88123523011ecf
Arg [4] : 00000000000000000000000021bbb2f84053197a2455a6c230c2883030b15d0c
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 00000000000000000000000091e29c8cfdc161217d75286188507f07a576629b
Arg [7] : 0000000000000000000000004d928fada59f3446627c5bea707a81e006cf676f
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [9] : 68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f
Arg [10] : 76322f636f6c6c656374696f6e732f0000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [12] : 506c656173652054616b6520612053746570204261636b000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [14] : 504c5353545042434b0000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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