Contract 0x9586b2201344ad1c9c1a63fb3f8340acc7af1be3

Contract Overview

Balance:
0 BTT
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6e751c2c7334f1d8893b2bb7196bf2049e5361cc8963a6ca871566601edb20800x60806040148422042022-11-22 8:05:39492 days 11 hrs ago0x31003c2d5685c7d28d7174c3255307eb9a0f3015 IN  Create: Voucher0 BTT1,564.1331
[ Download CSV Export 
Parent Txn Hash Block From To Value
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Voucher

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 2 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

File 3 of 17 : 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 4 of 17 : 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 5 of 17 : 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 6 of 17 : 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 7 of 17 : 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 8 of 17 : 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 9 of 17 : 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 10 of 17 : 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 11 of 17 : IERC3525.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title ERC-3525 Semi-Fungible Token Standard
 * @dev See https://eips.ethereum.org/EIPS/eip-3525
 * Note: the ERC-165 identifier for this interface is 0xc97ae3d5.
 */
interface IERC3525 is IERC165, IERC721 {
    /**
     * @dev MUST emit when value of a token is transferred to another token with the same slot,
     *  including zero value transfers (_value == 0) as well as transfers when tokens are created
     *  (`_fromTokenId` == 0) or destroyed (`_toTokenId` == 0).
     * @param _fromTokenId The token id to transfer value from
     * @param _toTokenId The token id to transfer value to
     * @param _value The transferred value
     */
    event TransferValue(
        uint256 indexed _fromTokenId,
        uint256 indexed _toTokenId,
        uint256 _value
    );

    /**
     * @dev MUST emits when the approval value of a token is set or changed.
     * @param _tokenId The token to approve
     * @param _operator The operator to approve for
     * @param _value The maximum value that `_operator` is allowed to manage
     */
    event ApprovalValue(
        uint256 indexed _tokenId,
        address indexed _operator,
        uint256 _value
    );

    /**
     * @dev MUST emit when the slot of a token is set or changed.
     * @param _tokenId The token of which slot is set or changed
     * @param _oldSlot The previous slot of the token
     * @param _newSlot The updated slot of the token
     */
    event SlotChanged(
        uint256 indexed _tokenId,
        uint256 indexed _oldSlot,
        uint256 indexed _newSlot
    );

    /**
     * @notice Get the number of decimals the token uses for value - e.g. 6, means the user
     *  representation of the value of a token can be calculated by dividing it by 1,000,000.
     *  Considering the compatibility with third-party wallets, this function is defined as
     *  `valueDecimals()` instead of `decimals()` to avoid conflict with ERC20 tokens.
     * @return The number of decimals for value
     */
    function valueDecimals() external view returns (uint8);

    /**
     * @notice Get the value of a token.
     * @param _tokenId The token for which to query the balance
     * @return The value of `_tokenId`
     */
    function balanceOf(uint256 _tokenId) external view returns (uint256);

    /**
     * @notice Get the slot of a token.
     * @param _tokenId The identifier for a token
     * @return The slot of the token
     */
    function slotOf(uint256 _tokenId) external view returns (uint256);

    /**
     * @notice Allow an operator to manage the value of a token, up to the `_value` amount.
     * @dev MUST revert unless caller is the current owner, an authorized operator, or the approved
     *  address for `_tokenId`.
     *  MUST emit ApprovalValue event.
     * @param _tokenId The token to approve
     * @param _operator The operator to be approved
     * @param _value The maximum value of `_toTokenId` that `_operator` is allowed to manage
     */
    function approve(
        uint256 _tokenId,
        address _operator,
        uint256 _value
    ) external;

    /**
     * @notice Get the maximum value of a token that an operator is allowed to manage.
     * @param _tokenId The token for which to query the allowance
     * @param _operator The address of an operator
     * @return The current approval value of `_tokenId` that `_operator` is allowed to manage
     */
    function allowance(
        uint256 _tokenId,
        address _operator
    ) external view returns (uint256);

    /**
     * @notice Transfer value from a specified token to another specified token with the same slot.
     * @dev Caller MUST be the current owner, an authorized operator or an operator who has been
     *  approved the whole `_fromTokenId` or part of it.
     *  MUST revert if `_fromTokenId` or `_toTokenId` is zero token id or does not exist.
     *  MUST revert if slots of `_fromTokenId` and `_toTokenId` do not match.
     *  MUST revert if `_value` exceeds the balance of `_fromTokenId` or its allowance to the
     *  operator.
     *  MUST emit `TransferValue` event.
     * @param _fromTokenId The token to transfer value from
     * @param _toTokenId The token to transfer value to
     * @param _value The transferred value
     */
    function transferFrom(
        uint256 _fromTokenId,
        uint256 _toTokenId,
        uint256 _value
    ) external;

    /**
     * @notice Transfer value from a specified token to an address. The caller should confirm that
     *  `_to` is capable of receiving ERC3525 tokens.
     * @dev This function MUST create a new ERC3525 token with the same slot for `_to` to receive
     *  the transferred value.
     *  MUST revert if `_fromTokenId` is zero token id or does not exist.
     *  MUST revert if `_to` is zero address.
     *  MUST revert if `_value` exceeds the balance of `_fromTokenId` or its allowance to the
     *  operator.
     *  MUST emit `Transfer` and `TransferValue` events.
     * @param _fromTokenId The token to transfer value from
     * @param _to The address to transfer value to
     * @param _value The transferred value
     * @return ID of the new token created for `_to` which receives the transferred value
     */
    function transferFrom(
        uint256 _fromTokenId,
        address _to,
        uint256 _value
    ) external returns (uint256);
}

File 12 of 17 : IERC3525Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "./IERC3525.sol";

/**
 * @title ERC-3525 Semi-Fungible Token Standard, optional extension for metadata
 * @dev Interfaces for any contract that wants to support query of the Uniform Resource Identifier
 *  (URI) for the ERC3525 contract as well as a specified slot.
 *  Because of the higher reliability of data stored in smart contracts compared to data stored in
 *  centralized systems, it is recommended that metadata, including `contractURI`, `slotURI` and
 *  `tokenURI`, be directly returned in JSON format, instead of being returned with a url pointing
 *  to any resource stored in a centralized system.
 *  See https://eips.ethereum.org/EIPS/eip-3525
 * Note: the ERC-165 identifier for this interface is 0xe1600902.
 */
interface IERC3525Metadata is IERC3525, IERC721Metadata {
    /**
     * @notice Returns the Uniform Resource Identifier (URI) for the current ERC3525 contract.
     * @dev This function SHOULD return the URI for this contract in JSON format, starting with
     *  header `data:application/json;`.
     *  See https://eips.ethereum.org/EIPS/eip-3525 for the JSON schema for contract URI.
     * @return The JSON formatted URI of the current ERC3525 contract
     */
    function contractURI() external view returns (string memory);

    /**
     * @notice Returns the Uniform Resource Identifier (URI) for the specified slot.
     * @dev This function SHOULD return the URI for `_slot` in JSON format, starting with header
     *  `data:application/json;`.
     *  See https://eips.ethereum.org/EIPS/eip-3525 for the JSON schema for slot URI.
     * @return The JSON formatted URI of `_slot`
     */
    function slotURI(uint256 _slot) external view returns (string memory);
}

File 13 of 17 : IERC3525MetadataDescriptor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC3525MetadataDescriptor {
    function constructContractURI() external view returns (string memory);

    function constructSlotURI(
        uint256 slot
    ) external view returns (string memory);

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

File 14 of 17 : IERC3525Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title EIP-3525 token receiver interface
 * @dev Interface for a smart contract that wants to be informed by EIP-3525 contracts when
 *  receiving values from ANY addresses or EIP-3525 tokens.
 * Note: the EIP-165 identifier for this interface is 0x009ce20b.
 */
interface IERC3525Receiver {
    /**
     * @notice Handle the receipt of an EIP-3525 token value.
     * @dev An EIP-3525 smart contract MUST check whether this function is implemented by the
     *  recipient contract, if the recipient contract implements this function, the EIP-3525
     *  contract MUST call this function after a value transfer (i.e. `transferFrom(uint256,
     *  uint256,uint256,bytes)`).
     *  MUST return 0x009ce20b (i.e. `bytes4(keccak256('onERC3525Received(address,uint256,uint256,
     *  uint256,bytes)'))`) if the transfer is accepted.
     *  MUST revert or return any value other than 0x009ce20b if the transfer is rejected.
     * @param _operator The address which triggered the transfer
     * @param _fromTokenId The token id to transfer value from
     * @param _toTokenId The token id to transfer value to
     * @param _value The transferred value
     * @param _data Additional data with no specified format
     * @return `bytes4(keccak256('onERC3525Received(address,uint256,uint256,uint256,bytes)'))`
     *  unless the transfer is rejected.
     */
    function onERC3525Received(
        address _operator,
        uint256 _fromTokenId,
        uint256 _toTokenId,
        uint256 _value,
        bytes calldata _data
    ) external returns (bytes4);
}

File 15 of 17 : IManagement.sol
// SPDX-License-Identifier: None
pragma solidity ^0.8.0;

/**
   @title IManagement contract
   @dev Provide interfaces that allow interaction to Management contract
*/
interface IManagement {
    function treasury() external view returns (address);

    function hasRole(
        bytes32 role,
        address account
    ) external view returns (bool);

    function paymentTokens(address _token) external view returns (bool);

    function paused() external view returns (bool);
}

File 16 of 17 : ERC3525.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "../interfaces/IERC3525.sol";
import "../interfaces/IERC3525Receiver.sol";
import "../interfaces/IERC3525Metadata.sol";
import "../interfaces/IERC3525MetadataDescriptor.sol";

contract ERC3525 is Context, IERC3525Metadata, IERC721Enumerable {
    using Strings for address;
    using Strings for uint256;
    using Address for address;

    event SetMetadataDescriptor(address indexed metadataDescriptor);

    struct TokenData {
        uint256 id;
        uint256 slot;
        uint256 balance;
        address owner;
        address approved;
        address[] valueApprovals;
    }

    struct AddressData {
        uint256[] ownedTokens;
        mapping(uint256 => uint256) ownedTokensIndex;
        mapping(address => bool) approvals;
    }

    string private _name;
    string private _symbol;
    uint8 private _decimals;
    mapping(uint256 => mapping(address => uint256)) private _approvedValues;
    TokenData[] private _allTokens;
    mapping(uint256 => uint256) private _allTokensIndex;
    mapping(address => AddressData) private _addressData;
    IERC3525MetadataDescriptor public metadataDescriptor;

    constructor(string memory name_, string memory symbol_, uint8 decimals_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override returns (bool) {
        return
            interfaceId == type(IERC165).interfaceId ||
            interfaceId == type(IERC3525).interfaceId ||
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC3525Metadata).interfaceId ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function valueDecimals() public view virtual override returns (uint8) {
        return _decimals;
    }

    function balanceOf(
        uint256 tokenId_
    ) public view virtual override returns (uint256) {
        _requireMinted(tokenId_);
        return _allTokens[_allTokensIndex[tokenId_]].balance;
    }

    function ownerOf(
        uint256 tokenId_
    ) public view virtual override returns (address owner_) {
        _requireMinted(tokenId_);
        owner_ = _allTokens[_allTokensIndex[tokenId_]].owner;
        require(owner_ != address(0), "ERC3525: invalid token ID");
    }

    function slotOf(
        uint256 tokenId_
    ) public view virtual override returns (uint256) {
        _requireMinted(tokenId_);
        return _allTokens[_allTokensIndex[tokenId_]].slot;
    }

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

    function contractURI()
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory baseURI = _baseURI();
        return
            address(metadataDescriptor) != address(0)
                ? metadataDescriptor.constructContractURI()
                : bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        "contract/",
                        Strings.toHexString(address(this))
                    )
                )
                : "";
    }

    function slotURI(
        uint256 slot_
    ) public view virtual override returns (string memory) {
        string memory baseURI = _baseURI();
        return
            address(metadataDescriptor) != address(0)
                ? metadataDescriptor.constructSlotURI(slot_)
                : bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, "slot/", slot_.toString()))
                : "";
    }

    function tokenURI(
        uint256 tokenId_
    ) public view virtual override returns (string memory) {
        _requireMinted(tokenId_);
        string memory baseURI = _baseURI();
        return
            address(metadataDescriptor) != address(0)
                ? metadataDescriptor.constructTokenURI(tokenId_)
                : bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId_.toString()))
                : "";
    }

    function approve(
        uint256 tokenId_,
        address to_,
        uint256 value_
    ) public virtual override {
        address owner = ERC3525.ownerOf(tokenId_);
        require(to_ != owner, "ERC3525: approval to current owner");

        require(
            _msgSender() == owner ||
                ERC3525.isApprovedForAll(owner, _msgSender()),
            "ERC3525: approve caller is not owner nor approved for all"
        );

        _approveValue(tokenId_, to_, value_);
    }

    function allowance(
        uint256 tokenId_,
        address operator_
    ) public view virtual override returns (uint256) {
        _requireMinted(tokenId_);
        return _approvedValues[tokenId_][operator_];
    }

    function transferFrom(
        uint256 fromTokenId_,
        address to_,
        uint256 value_
    ) public virtual override returns (uint256) {
        _spendAllowance(_msgSender(), fromTokenId_, value_);

        uint256 newTokenId = _createDerivedTokenId(fromTokenId_);
        _mint(to_, newTokenId, ERC3525.slotOf(fromTokenId_), 0);
        _transferValue(fromTokenId_, newTokenId, value_);

        return newTokenId;
    }

    function transferFrom(
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 value_
    ) public virtual override {
        _spendAllowance(_msgSender(), fromTokenId_, value_);
        _transferValue(fromTokenId_, toTokenId_, value_);
    }

    function balanceOf(
        address owner_
    ) public view virtual override returns (uint256 balance) {
        require(
            owner_ != address(0),
            "ERC3525: balance query for the zero address"
        );
        return _addressData[owner_].ownedTokens.length;
    }

    function transferFrom(
        address from_,
        address to_,
        uint256 tokenId_
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId_),
            "ERC3525: transfer caller is not owner nor approved"
        );
        _transferTokenId(from_, to_, tokenId_);
    }

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 tokenId_,
        bytes memory data_
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId_),
            "ERC3525: transfer caller is not owner nor approved"
        );
        _safeTransferTokenId(from_, to_, tokenId_, data_);
    }

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 tokenId_
    ) public virtual override {
        safeTransferFrom(from_, to_, tokenId_, "");
    }

    function approve(address to_, uint256 tokenId_) public virtual override {
        address owner = ERC3525.ownerOf(tokenId_);
        require(to_ != owner, "ERC3525: approval to current owner");

        require(
            _msgSender() == owner ||
                ERC3525.isApprovedForAll(owner, _msgSender()),
            "ERC3525: approve caller is not owner nor approved for all"
        );

        _approve(to_, tokenId_);
    }

    function getApproved(
        uint256 tokenId_
    ) public view virtual override returns (address) {
        _requireMinted(tokenId_);
        return _allTokens[_allTokensIndex[tokenId_]].approved;
    }

    function setApprovalForAll(
        address operator_,
        bool approved_
    ) public virtual override {
        _setApprovalForAll(_msgSender(), operator_, approved_);
    }

    function isApprovedForAll(
        address owner_,
        address operator_
    ) public view virtual override returns (bool) {
        return _addressData[owner_].approvals[operator_];
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    function tokenByIndex(
        uint256 index_
    ) public view virtual override returns (uint256) {
        require(
            index_ < ERC3525.totalSupply(),
            "ERC3525: global index out of bounds"
        );
        return _allTokens[index_].id;
    }

    function tokenOfOwnerByIndex(
        address owner_,
        uint256 index_
    ) public view virtual override returns (uint256) {
        require(
            index_ < ERC3525.balanceOf(owner_),
            "ERC3525: owner index out of bounds"
        );
        return _addressData[owner_].ownedTokens[index_];
    }

    function _setApprovalForAll(
        address owner_,
        address operator_,
        bool approved_
    ) internal virtual {
        require(owner_ != operator_, "ERC3525: approve to caller");

        _addressData[owner_].approvals[operator_] = approved_;

        emit ApprovalForAll(owner_, operator_, approved_);
    }

    function _isApprovedOrOwner(
        address operator_,
        uint256 tokenId_
    ) internal view virtual returns (bool) {
        _requireMinted(tokenId_);
        address owner = ERC3525.ownerOf(tokenId_);
        return (operator_ == owner ||
            ERC3525.isApprovedForAll(owner, operator_) ||
            ERC3525.getApproved(tokenId_) == operator_);
    }

    function _spendAllowance(
        address operator_,
        uint256 tokenId_,
        uint256 value_
    ) internal virtual {
        uint256 currentAllowance = ERC3525.allowance(tokenId_, operator_);
        if (
            !_isApprovedOrOwner(operator_, tokenId_) &&
            currentAllowance != type(uint256).max
        ) {
            require(
                currentAllowance >= value_,
                "ERC3525: insufficient allowance"
            );
            _approveValue(tokenId_, operator_, currentAllowance - value_);
        }
    }

    function _exists(uint256 tokenId_) internal view virtual returns (bool) {
        return
            _allTokens.length != 0 &&
            _allTokens[_allTokensIndex[tokenId_]].id == tokenId_;
    }

    function _requireMinted(uint256 tokenId_) internal view virtual {
        require(_exists(tokenId_), "ERC3525: invalid token ID");
    }

    function _mint(
        address to_,
        uint256 slot_,
        uint256 value_
    ) internal virtual returns (uint256) {
        uint256 tokenId = _createOriginalTokenId();
        _mint(to_, tokenId, slot_, value_);
        return tokenId;
    }

    function _mint(
        address to_,
        uint256 tokenId_,
        uint256 slot_,
        uint256 value_
    ) internal virtual {
        require(to_ != address(0), "ERC3525: mint to the zero address");
        require(tokenId_ != 0, "ERC3525: cannot mint zero tokenId");
        require(!_exists(tokenId_), "ERC3525: token already minted");

        _beforeValueTransfer(address(0), to_, 0, tokenId_, slot_, value_);
        __mintToken(to_, tokenId_, slot_);
        __mintValue(tokenId_, value_);
        _afterValueTransfer(address(0), to_, 0, tokenId_, slot_, value_);
    }

    function _mintValue(uint256 tokenId_, uint256 value_) internal virtual {
        _requireMinted(tokenId_);

        address owner = ERC3525.ownerOf(tokenId_);
        uint256 slot = ERC3525.slotOf(tokenId_);
        _beforeValueTransfer(address(0), owner, 0, tokenId_, slot, value_);
        __mintValue(tokenId_, value_);
        _afterValueTransfer(address(0), owner, 0, tokenId_, slot, value_);
    }

    function __mintValue(uint256 tokenId_, uint256 value_) private {
        _allTokens[_allTokensIndex[tokenId_]].balance += value_;
        emit TransferValue(0, tokenId_, value_);
    }

    function __mintToken(address to_, uint256 tokenId_, uint256 slot_) private {
        TokenData memory tokenData = TokenData({
            id: tokenId_,
            slot: slot_,
            balance: 0,
            owner: to_,
            approved: address(0),
            valueApprovals: new address[](0)
        });

        _addTokenToAllTokensEnumeration(tokenData);
        _addTokenToOwnerEnumeration(to_, tokenId_);

        emit Transfer(address(0), to_, tokenId_);
        emit SlotChanged(tokenId_, 0, slot_);
    }

    function _burn(uint256 tokenId_) internal virtual {
        _requireMinted(tokenId_);

        TokenData storage tokenData = _allTokens[_allTokensIndex[tokenId_]];
        address owner = tokenData.owner;
        uint256 slot = tokenData.slot;
        uint256 value = tokenData.balance;

        _beforeValueTransfer(owner, address(0), tokenId_, 0, slot, value);

        _clearApprovedValues(tokenId_);
        _removeTokenFromOwnerEnumeration(owner, tokenId_);
        _removeTokenFromAllTokensEnumeration(tokenId_);

        emit TransferValue(tokenId_, 0, value);
        emit SlotChanged(tokenId_, slot, 0);
        emit Transfer(owner, address(0), tokenId_);

        _afterValueTransfer(owner, address(0), tokenId_, 0, slot, value);
    }

    function _burnValue(uint256 tokenId_, uint256 burnValue_) internal virtual {
        _requireMinted(tokenId_);

        TokenData storage tokenData = _allTokens[_allTokensIndex[tokenId_]];
        address owner = tokenData.owner;
        uint256 slot = tokenData.slot;
        uint256 value = tokenData.balance;

        require(value >= burnValue_, "ERC3525: burn value exceeds balance");

        _beforeValueTransfer(owner, address(0), tokenId_, 0, slot, burnValue_);

        tokenData.balance -= burnValue_;
        emit TransferValue(tokenId_, 0, burnValue_);

        _afterValueTransfer(owner, address(0), tokenId_, 0, slot, burnValue_);
    }

    function _addTokenToOwnerEnumeration(
        address to_,
        uint256 tokenId_
    ) private {
        _allTokens[_allTokensIndex[tokenId_]].owner = to_;

        _addressData[to_].ownedTokensIndex[tokenId_] = _addressData[to_]
            .ownedTokens
            .length;
        _addressData[to_].ownedTokens.push(tokenId_);
    }

    function _removeTokenFromOwnerEnumeration(
        address from_,
        uint256 tokenId_
    ) private {
        _allTokens[_allTokensIndex[tokenId_]].owner = address(0);

        AddressData storage ownerData = _addressData[from_];
        uint256 lastTokenIndex = ownerData.ownedTokens.length - 1;
        uint256 lastTokenId = ownerData.ownedTokens[lastTokenIndex];
        uint256 tokenIndex = ownerData.ownedTokensIndex[tokenId_];

        ownerData.ownedTokens[tokenIndex] = lastTokenId;
        ownerData.ownedTokensIndex[lastTokenId] = tokenIndex;

        delete ownerData.ownedTokensIndex[tokenId_];
        ownerData.ownedTokens.pop();
    }

    function _addTokenToAllTokensEnumeration(
        TokenData memory tokenData_
    ) private {
        _allTokensIndex[tokenData_.id] = _allTokens.length;
        _allTokens.push(tokenData_);
    }

    function _removeTokenFromAllTokensEnumeration(uint256 tokenId_) private {
        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId_];

        TokenData memory lastTokenData = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenData;
        _allTokensIndex[lastTokenData.id] = tokenIndex;

        delete _allTokensIndex[tokenId_];
        _allTokens.pop();
    }

    function _approve(address to_, uint256 tokenId_) internal virtual {
        _allTokens[_allTokensIndex[tokenId_]].approved = to_;
        emit Approval(ERC3525.ownerOf(tokenId_), to_, tokenId_);
    }

    function _approveValue(
        uint256 tokenId_,
        address to_,
        uint256 value_
    ) internal virtual {
        require(
            to_ != address(0),
            "ERC3525: approve value to the zero address"
        );
        if (!_existApproveValue(to_, tokenId_)) {
            _allTokens[_allTokensIndex[tokenId_]].valueApprovals.push(to_);
        }
        _approvedValues[tokenId_][to_] = value_;

        emit ApprovalValue(tokenId_, to_, value_);
    }

    function _clearApprovedValues(uint256 tokenId_) internal virtual {
        TokenData storage tokenData = _allTokens[_allTokensIndex[tokenId_]];
        uint256 length = tokenData.valueApprovals.length;
        for (uint256 i = 0; i < length; i++) {
            address approval = tokenData.valueApprovals[i];
            delete _approvedValues[tokenId_][approval];
        }
    }

    function _existApproveValue(
        address to_,
        uint256 tokenId_
    ) internal view virtual returns (bool) {
        uint256 length = _allTokens[_allTokensIndex[tokenId_]]
            .valueApprovals
            .length;
        for (uint256 i = 0; i < length; i++) {
            if (
                _allTokens[_allTokensIndex[tokenId_]].valueApprovals[i] == to_
            ) {
                return true;
            }
        }
        return false;
    }

    function _transferValue(
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 value_
    ) internal virtual {
        require(
            _exists(fromTokenId_),
            "ERC3525: transfer from invalid token ID"
        );
        require(_exists(toTokenId_), "ERC3525: transfer to invalid token ID");

        TokenData storage fromTokenData = _allTokens[
            _allTokensIndex[fromTokenId_]
        ];
        TokenData storage toTokenData = _allTokens[_allTokensIndex[toTokenId_]];

        require(
            fromTokenData.balance >= value_,
            "ERC3525: insufficient balance for transfer"
        );
        require(
            fromTokenData.slot == toTokenData.slot,
            "ERC3525: transfer to token with different slot"
        );

        _beforeValueTransfer(
            fromTokenData.owner,
            toTokenData.owner,
            fromTokenId_,
            toTokenId_,
            fromTokenData.slot,
            value_
        );

        fromTokenData.balance -= value_;
        toTokenData.balance += value_;

        emit TransferValue(fromTokenId_, toTokenId_, value_);

        _afterValueTransfer(
            fromTokenData.owner,
            toTokenData.owner,
            fromTokenId_,
            toTokenId_,
            fromTokenData.slot,
            value_
        );

        require(
            _checkOnERC3525Received(fromTokenId_, toTokenId_, value_, ""),
            "ERC3525: transfer to non ERC3525Receiver"
        );
    }

    function _transferTokenId(
        address from_,
        address to_,
        uint256 tokenId_
    ) internal virtual {
        require(
            ERC3525.ownerOf(tokenId_) == from_,
            "ERC3525: transfer from invalid owner"
        );
        require(to_ != address(0), "ERC3525: transfer to the zero address");

        uint256 slot = ERC3525.slotOf(tokenId_);
        uint256 value = ERC3525.balanceOf(tokenId_);

        _beforeValueTransfer(from_, to_, tokenId_, tokenId_, slot, value);

        _approve(address(0), tokenId_);
        _clearApprovedValues(tokenId_);

        _removeTokenFromOwnerEnumeration(from_, tokenId_);
        _addTokenToOwnerEnumeration(to_, tokenId_);

        emit Transfer(from_, to_, tokenId_);

        _afterValueTransfer(from_, to_, tokenId_, tokenId_, slot, value);
    }

    function _safeTransferTokenId(
        address from_,
        address to_,
        uint256 tokenId_,
        bytes memory data_
    ) internal virtual {
        _transferTokenId(from_, to_, tokenId_);
        require(
            _checkOnERC721Received(from_, to_, tokenId_, data_),
            "ERC3525: transfer to non ERC721Receiver"
        );
    }

    function _checkOnERC3525Received(
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 value_,
        bytes memory data_
    ) private returns (bool) {
        address to = ERC3525.ownerOf(toTokenId_);
        if (
            to.isContract() &&
            IERC165(to).supportsInterface(type(IERC3525Receiver).interfaceId)
        ) {
            try
                IERC3525Receiver(to).onERC3525Received(
                    _msgSender(),
                    fromTokenId_,
                    toTokenId_,
                    value_,
                    data_
                )
            returns (bytes4 retval) {
                return retval == IERC3525Receiver.onERC3525Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC3525: transfer to non ERC3525Receiver");
                } else {
                    // solhint-disable-next-line
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    function _checkOnERC721Received(
        address from_,
        address to_,
        uint256 tokenId_,
        bytes memory data_
    ) private returns (bool) {
        if (
            to_.isContract() &&
            IERC165(to_).supportsInterface(type(IERC721Receiver).interfaceId)
        ) {
            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("ERC721: transfer to non ERC721Receiver");
                } else {
                    // solhint-disable-next-line
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /* solhint-disable */
    function _beforeValueTransfer(
        address from_,
        address to_,
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 slot_,
        uint256 value_
    ) internal virtual {}

    function _afterValueTransfer(
        address from_,
        address to_,
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 slot_,
        uint256 value_
    ) internal virtual {}

    /* solhint-enable */

    function _setMetadataDescriptor(
        address metadataDescriptor_
    ) internal virtual {
        metadataDescriptor = IERC3525MetadataDescriptor(metadataDescriptor_);
        emit SetMetadataDescriptor(metadataDescriptor_);
    }

    function _createOriginalTokenId() internal virtual returns (uint256) {
        return _createDefaultTokenId();
    }

    function _createDerivedTokenId(
        uint256 fromTokenId_
    ) internal virtual returns (uint256) {
        fromTokenId_;
        return _createDefaultTokenId();
    }

    function _createDefaultTokenId() private view returns (uint256) {
        return ERC3525.totalSupply() + 1;
    }
}

File 17 of 17 : Voucher.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interfaces/IManagement.sol";
import "./utils/ERC3525.sol";

contract Voucher is ERC3525 {
    bytes32 private constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
    bytes32 private constant MINTER_ROLE = keccak256("MINTER_ROLE");

    IManagement public management;

    //  TokenURI = baseURI + tokenId.toString()
    string private baseURI_;

    event Issue(
        address indexed to,
        uint256 indexed ticketId,
        uint256 indexed typeOf,
        uint256 value
    );
    event UpdateValue(
        uint256 indexed ticketId,
        uint256 indexed oValue,
        uint256 indexed nValue
    );

    modifier onlyManager() {
        require(management.hasRole(MANAGER_ROLE, _msgSender()), "Only Manager");
        _;
    }

    modifier onlyMinter() {
        require(management.hasRole(MINTER_ROLE, _msgSender()), "Only Minter");
        _;
    }

    modifier onPaused() {
        require(!management.paused(), "On Paused");
        _;
    }

    constructor(
        IManagement _management,
        string memory name_,
        string memory symbol_,
        string memory _uri,
        uint8 decimals_
    ) ERC3525(name_, symbol_, decimals_) {
        management = _management;
        baseURI_ = _uri;
    }

    function updateBaseURI(string calldata _uri) external onlyManager {
        baseURI_ = _uri;
    }

    function issue(
        address _account,
        uint256 _ticketId,
        uint256 _type,
        uint256 _value
    ) external onlyMinter {
        _mint(_account, _ticketId, _type, _value);

        emit Issue(_account, _ticketId, _type, _value);
    }

    function updateValue(
        uint256 _ticketId,
        uint256 _value,
        bool _isAdded
    ) external onlyMinter {
        uint256 _oValue = balanceOf(_ticketId);
        if (_isAdded) _mintValue(_ticketId, _value);
        else _burnValue(_ticketId, _value);
        uint256 _nValue = balanceOf(_ticketId);

        emit UpdateValue(_ticketId, _oValue, _nValue);
    }

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

    function _beforeValueTransfer(
        address _from,
        address _to,
        uint256 _fromTokenId,
        uint256 _toTokenId,
        uint256 _slot,
        uint256 _value
    ) internal override onPaused {
        super._beforeValueTransfer(
            _from,
            _to,
            _fromTokenId,
            _toTokenId,
            _slot,
            _value
        );
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IManagement","name":"_management","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"ApprovalValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"ticketId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"typeOf","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Issue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"metadataDescriptor","type":"address"}],"name":"SetMetadataDescriptor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_oldSlot","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_newSlot","type":"uint256"}],"name":"SlotChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_toTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"TransferValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"ticketId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"nValue","type":"uint256"}],"name":"UpdateValue","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"operator_","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"operator_","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_ticketId","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"issue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"management","outputs":[{"internalType":"contract IManagement","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataDescriptor","outputs":[{"internalType":"contract IERC3525MetadataDescriptor","name":"","type":"address"}],"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":"owner_","type":"address"}],"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":"uint256","name":"tokenId_","type":"uint256"}],"name":"slotOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"slot_","type":"uint256"}],"name":"slotURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTokenId_","type":"uint256"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromTokenId_","type":"uint256"},{"internalType":"uint256","name":"toTokenId_","type":"uint256"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ticketId","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bool","name":"_isAdded","type":"bool"}],"name":"updateValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"valueDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620060a7380380620060a78339818101604052810190620000379190620003f3565b838382826000908051906020019062000052929190620000ef565b5081600190805190602001906200006b929190620000ef565b5080600260006101000a81548160ff021916908360ff16021790555050505084600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160099080519060200190620000e3929190620000ef565b5050505050506200053d565b828054620000fd9062000507565b90600052602060002090601f0160209004810192826200012157600085556200016d565b82601f106200013c57805160ff19168380011785556200016d565b828001600101855582156200016d579182015b828111156200016c5782518255916020019190600101906200014f565b5b5090506200017c919062000180565b5090565b5b808211156200019b57600081600090555060010162000181565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001e082620001b3565b9050919050565b6000620001f482620001d3565b9050919050565b6200020681620001e7565b81146200021257600080fd5b50565b6000815190506200022681620001fb565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002818262000236565b810181811067ffffffffffffffff82111715620002a357620002a262000247565b5b80604052505050565b6000620002b86200019f565b9050620002c6828262000276565b919050565b600067ffffffffffffffff821115620002e957620002e862000247565b5b620002f48262000236565b9050602081019050919050565b60005b838110156200032157808201518184015260208101905062000304565b8381111562000331576000848401525b50505050565b60006200034e6200034884620002cb565b620002ac565b9050828152602081018484840111156200036d576200036c62000231565b5b6200037a84828562000301565b509392505050565b600082601f8301126200039a57620003996200022c565b5b8151620003ac84826020860162000337565b91505092915050565b600060ff82169050919050565b620003cd81620003b5565b8114620003d957600080fd5b50565b600081519050620003ed81620003c2565b92915050565b600080600080600060a08688031215620004125762000411620001a9565b5b6000620004228882890162000215565b955050602086015167ffffffffffffffff811115620004465762000445620001ae565b5b620004548882890162000382565b945050604086015167ffffffffffffffff811115620004785762000477620001ae565b5b620004868882890162000382565b935050606086015167ffffffffffffffff811115620004aa57620004a9620001ae565b5b620004b88882890162000382565b9250506080620004cb88828901620003dc565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200052057607f821691505b60208210811415620005375762000536620004d8565b5b50919050565b615b5a806200054d6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80636352211e1161010457806395d89b41116100a2578063c87b56dd11610071578063c87b56dd1461058b578063e345e0bc146105bb578063e8a3d485146105eb578063e985e9c514610609576101da565b806395d89b41146105055780639cc7f70814610523578063a22cb46514610553578063b88d4fde1461056f576101da565b8063840f7113116100de578063840f71131461049157806388a8d602146104af5780638cb0a511146104cd578063931688cb146104e9576101da565b80636352211e146104155780636e23218f1461044557806370a0823114610461576101da565b806323b872dd1161017c5780633e7e86691161014b5780633e7e86691461038f57806342842e0e146103ad57806347401a93146103c95780634f6ccce7146103e5576101da565b806323b872dd146102f7578063263f3e7e146103135780632f745c5914610343578063310ed7f014610373576101da565b8063095ea7b3116101b8578063095ea7b31461025d57806309c3dd87146102795780630f485c02146102a957806318160ddd146102d9576101da565b806301ffc9a7146101df57806306fdde031461020f578063081812fc1461022d575b600080fd5b6101f960048036038101906101f49190613dbe565b610639565b6040516102069190613e06565b60405180910390f35b6102176108ab565b6040516102249190613eba565b60405180910390f35b61024760048036038101906102429190613f12565b61093d565b6040516102549190613f80565b60405180910390f35b61027760048036038101906102729190613fc7565b6109a8565b005b610293600480360381019061028e9190613f12565b610ac0565b6040516102a09190613eba565b60405180910390f35b6102c360048036038101906102be9190614007565b610c2c565b6040516102d09190614069565b60405180910390f35b6102e1610c78565b6040516102ee9190614069565b60405180910390f35b610311600480360381019061030c9190614084565b610c85565b005b61032d60048036038101906103289190613f12565b610ce5565b60405161033a9190614069565b60405180910390f35b61035d60048036038101906103589190613fc7565b610d30565b60405161036a9190614069565b60405180910390f35b61038d600480360381019061038891906140d7565b610de3565b005b610397610e05565b6040516103a49190614146565b60405180910390f35b6103c760048036038101906103c29190614084565b610e1c565b005b6103e360048036038101906103de9190614161565b610e3c565b005b6103ff60048036038101906103fa9190613f12565b610fb1565b60405161040c9190614069565b60405180910390f35b61042f600480360381019061042a9190613f12565b611029565b60405161043c9190613f80565b60405180910390f35b61045f600480360381019061045a91906141f4565b611104565b005b61047b60048036038101906104769190614247565b611287565b6040516104889190614069565b60405180910390f35b610499611345565b6040516104a691906142d3565b60405180910390f35b6104b761136b565b6040516104c4919061430f565b60405180910390f35b6104e760048036038101906104e29190614007565b611391565b005b61050360048036038101906104fe919061438f565b6114ab565b005b61050d6115d4565b60405161051a9190613eba565b60405180910390f35b61053d60048036038101906105389190613f12565b611666565b60405161054a9190614069565b60405180910390f35b61056d600480360381019061056891906143dc565b6116b1565b005b6105896004803603810190610584919061454c565b6116c7565b005b6105a560048036038101906105a09190613f12565b611729565b6040516105b29190613eba565b60405180910390f35b6105d560048036038101906105d091906145cf565b61189e565b6040516105e29190614069565b60405180910390f35b6105f3611902565b6040516106009190613eba565b60405180910390f35b610623600480360381019061061e919061460f565b611a61565b6040516106309190613e06565b60405180910390f35b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070457507fd5358140000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076c57507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d457507fe1600902000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061083c57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600080546108ba9061467e565b80601f01602080910402602001604051908101604052809291908181526020018280546108e69061467e565b80156109335780601f1061090857610100808354040283529160200191610933565b820191906000526020600020905b81548152906001019060200180831161091657829003601f168201915b5050505050905090565b600061094882611af8565b600460056000848152602001908152602001600020548154811061096f5761096e6146b0565b5b906000526020600020906006020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109b382611029565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1b90614751565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a43611b43565b73ffffffffffffffffffffffffffffffffffffffff161480610a725750610a7181610a6c611b43565b611a61565b5b610ab1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa8906147e3565b60405180910390fd5b610abb8383611b4b565b505050565b60606000610acc611c29565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610b73576000815111610b435760405180602001604052806000815250610b6e565b80610b4d84611cbb565b604051602001610b5e92919061488b565b6040516020818303038152906040525b610c24565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636c037f8a846040518263ffffffff1660e01b8152600401610bce9190614069565b60006040518083038186803b158015610be657600080fd5b505afa158015610bfa573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c23919061495b565b5b915050919050565b6000610c40610c39611b43565b8584611d93565b6000610c4b85611e3d565b9050610c628482610c5b88610ce5565b6000611e4e565b610c6d858285611f86565b809150509392505050565b6000600480549050905090565b610c96610c90611b43565b8261229d565b610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc90614a16565b60405180910390fd5b610ce083838361233c565b505050565b6000610cf082611af8565b6004600560008481526020019081526020016000205481548110610d1757610d166146b0565b5b9060005260206000209060060201600101549050919050565b6000610d3b83611287565b8210610d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7390614aa8565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018281548110610dd057610dcf6146b0565b5b9060005260206000200154905092915050565b610df5610dee611b43565b8483611d93565b610e00838383611f86565b505050565b6000600260009054906101000a900460ff16905090565b610e37838383604051806020016040528060008152506116c7565b505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ea3611b43565b6040518363ffffffff1660e01b8152600401610ec0929190614ae1565b60206040518083038186803b158015610ed857600080fd5b505afa158015610eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f109190614b1f565b610f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4690614b98565b60405180910390fd5b610f5b84848484611e4e565b81838573ffffffffffffffffffffffffffffffffffffffff167fbb7b96662acd9eb8f347cd94cdc6bb2d9d2be8741aea36dcabde5aa7e0c536c184604051610fa39190614069565b60405180910390a450505050565b6000610fbb610c78565b8210610ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff390614c2a565b60405180910390fd5b600482815481106110105761100f6146b0565b5b9060005260206000209060060201600001549050919050565b600061103482611af8565b600460056000848152602001908152602001600020548154811061105b5761105a6146b0565b5b906000526020600020906006020160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f690614c96565b60405180910390fd5b919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661116b611b43565b6040518363ffffffff1660e01b8152600401611188929190614ae1565b60206040518083038186803b1580156111a057600080fd5b505afa1580156111b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d89190614b1f565b611217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120e90614b98565b60405180910390fd5b600061122284611666565b905081156112395761123484846124e2565b611244565b6112438484612535565b5b600061124f85611666565b90508082867f725c0becb1fa4669d7269565bb18c5dd3d4d6a6701a7ca562a9dc0974bcce43560405160405180910390a45050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90614d28565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001805490509050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061139c84611029565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490614751565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661142c611b43565b73ffffffffffffffffffffffffffffffffffffffff16148061145b575061145a81611455611b43565b611a61565b5b61149a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611491906147e3565b60405180910390fd5b6114a5848484612672565b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611512611b43565b6040518363ffffffff1660e01b815260040161152f929190614ae1565b60206040518083038186803b15801561154757600080fd5b505afa15801561155b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157f9190614b1f565b6115be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b590614d94565b60405180910390fd5b8181600991906115cf929190613c25565b505050565b6060600180546115e39061467e565b80601f016020809104026020016040519081016040528092919081815260200182805461160f9061467e565b801561165c5780601f106116315761010080835404028352916020019161165c565b820191906000526020600020905b81548152906001019060200180831161163f57829003601f168201915b5050505050905090565b600061167182611af8565b6004600560008481526020019081526020016000205481548110611698576116976146b0565b5b9060005260206000209060060201600201549050919050565b6116c36116bc611b43565b8383612833565b5050565b6116d86116d2611b43565b8361229d565b611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e90614a16565b60405180910390fd5b611723848484846129a3565b50505050565b606061173482611af8565b600061173e611c29565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156117e55760008151116117b557604051806020016040528060008152506117e0565b806117bf84611cbb565b6040516020016117d0929190614db4565b6040516020818303038152906040525b611896565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663894b4c2e846040518263ffffffff1660e01b81526004016118409190614069565b60006040518083038186803b15801561185857600080fd5b505afa15801561186c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611895919061495b565b5b915050919050565b60006118a983611af8565b6003600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6060600061190e611c29565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156119b557600081511161198557604051806020016040528060008152506119b0565b8061198f306129ff565b6040516020016119a0929190614e24565b6040516020818303038152906040525b611a5b565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663725fa09c6040518163ffffffff1660e01b815260040160006040518083038186803b158015611a1d57600080fd5b505afa158015611a31573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a5a919061495b565b5b91505090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b0181612a2c565b611b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3790614c96565b60405180910390fd5b50565b600033905090565b816004600560008481526020019081526020016000205481548110611b7357611b726146b0565b5b906000526020600020906006020160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611be383611029565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060098054611c389061467e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c649061467e565b8015611cb15780601f10611c8657610100808354040283529160200191611cb1565b820191906000526020600020905b815481529060010190602001808311611c9457829003601f168201915b5050505050905090565b606060006001611cca84612a81565b01905060008167ffffffffffffffff811115611ce957611ce8614421565b5b6040519080825280601f01601f191660200182016040528015611d1b5781602001600182028036833780820191505090505b509050600082602001820190505b600115611d88578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611d7257611d71614e53565b5b0494506000851415611d8357611d88565b611d29565b819350505050919050565b6000611d9f838561189e565b9050611dab848461229d565b158015611dd857507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114155b15611e375781811015611e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1790614ece565b60405180910390fd5b611e3683858484611e319190614f1d565b612672565b5b50505050565b6000611e47612bd4565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb590614fc3565b60405180910390fd5b6000831415611f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef990615055565b60405180910390fd5b611f0b83612a2c565b15611f4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f42906150c1565b60405180910390fd5b611f5b6000856000868686612bef565b611f66848484612ce5565b611f708382612e32565b611f806000856000868686612ebf565b50505050565b611f8f83612a2c565b611fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc590615153565b60405180910390fd5b611fd782612a2c565b612016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200d906151e5565b60405180910390fd5b6000600460056000868152602001908152602001600020548154811061203f5761203e6146b0565b5b9060005260206000209060060201905060006004600560008681526020019081526020016000205481548110612078576120776146b0565b5b9060005260206000209060060201905082826002015410156120cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c690615277565b60405180910390fd5b8060010154826001015414612119576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211090615309565b60405180910390fd5b6121738260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168787866001015488612bef565b828260020160008282546121879190614f1d565b92505081905550828160020160008282546121a29190615329565b9250508190555083857f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc6856040516121da9190614069565b60405180910390a361223c8260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168787866001015488612ebf565b61225785858560405180602001604052806000815250612ec7565b612296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228d906153f1565b60405180910390fd5b5050505050565b60006122a882611af8565b60006122b383611029565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122f557506122f48185611a61565b5b8061233357508373ffffffffffffffffffffffffffffffffffffffff1661231b8461093d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661235c82611029565b73ffffffffffffffffffffffffffffffffffffffff16146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a990615483565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241990615515565b60405180910390fd5b600061242d82610ce5565b9050600061243a83611666565b905061244a858585868686612bef565b612455600084611b4b565b61245e8361311c565b612468858461321f565b61247284846133bb565b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124db858585868686612ebf565b5050505050565b6124eb82611af8565b60006124f683611029565b9050600061250384610ce5565b90506125156000836000878588612bef565b61251f8484612e32565b61252f6000836000878588612ebf565b50505050565b61253e82611af8565b60006004600560008581526020019081526020016000205481548110612567576125666146b0565b5b9060005260206000209060060201905060008160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600082600101549050600083600201549050848110156125f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ec906155a7565b60405180910390fd5b612605836000886000868a612bef565b848460020160008282546126199190614f1d565b925050819055506000867f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc6876040516126529190614069565b60405180910390a361266a836000886000868a612ebf565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d990615639565b60405180910390fd5b6126ec828461353c565b61278a576004600560008581526020019081526020016000205481548110612717576127166146b0565b5b9060005260206000209060060201600501829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b806003600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16837f621b050de0ad08b51d19b48b3e6df75348c4de6bdd93e81b252ca62e28265b1b836040516128269190614069565b60405180910390a3505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156128a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612899906156a5565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129969190613e06565b60405180910390a3505050565b6129ae84848461233c565b6129ba8484848461365b565b6129f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f090615737565b60405180910390fd5b50505050565b6060612a258273ffffffffffffffffffffffffffffffffffffffff16601460ff166138a3565b9050919050565b60008060048054905014158015612a7a5750816004600560008581526020019081526020016000205481548110612a6657612a656146b0565b5b906000526020600020906006020160000154145b9050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612adf577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612ad557612ad4614e53565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612b1c576d04ee2d6d415b85acef81000000008381612b1257612b11614e53565b5b0492506020810190505b662386f26fc100008310612b4b57662386f26fc100008381612b4157612b40614e53565b5b0492506010810190505b6305f5e1008310612b74576305f5e1008381612b6a57612b69614e53565b5b0492506008810190505b6127108310612b99576127108381612b8f57612b8e614e53565b5b0492506004810190505b60648310612bbc5760648381612bb257612bb1614e53565b5b0492506002810190505b600a8310612bcb576001810190505b80915050919050565b60006001612be0610c78565b612bea9190615329565b905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015612c5757600080fd5b505afa158015612c6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8f9190614b1f565b15612ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc6906157a3565b60405180910390fd5b612cdd868686868686613adf565b505050505050565b60006040518060c00160405280848152602001838152602001600081526020018573ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff811115612d5957612d58614421565b5b604051908082528060200260200182016040528015612d875781602001602082028036833780820191505090505b508152509050612d9681613ae7565b612da084846133bb565b828473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4816000847fe4f48c240d3b994948aa54f3e2f5fca59263dfe1d52b6e4cf39a5d249b5ccb6560405160405180910390a450505050565b806004600560008581526020019081526020016000205481548110612e5a57612e596146b0565b5b90600052602060002090600602016002016000828254612e7a9190615329565b925050819055508160007f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc683604051612eb39190614069565b60405180910390a35050565b505050505050565b600080612ed385611029565b9050612ef48173ffffffffffffffffffffffffffffffffffffffff16613c02565b8015612fa457508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77e9ce20b000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612f5391906157d2565b60206040518083038186803b158015612f6b57600080fd5b505afa158015612f7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa39190614b1f565b5b1561310e578073ffffffffffffffffffffffffffffffffffffffff16629ce20b612fcc611b43565b888888886040518663ffffffff1660e01b8152600401612ff0959493929190615842565b602060405180830381600087803b15801561300a57600080fd5b505af192505050801561303b57506040513d601f19601f8201168201806040525081019061303891906158b1565b60015b6130be573d806000811461306b576040519150601f19603f3d011682016040523d82523d6000602084013e613070565b606091505b506000815114156130b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ad906153f1565b60405180910390fd5b805181602001fd5b629ce20b60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161492505050613114565b60019150505b949350505050565b60006004600560008481526020019081526020016000205481548110613145576131446146b0565b5b9060005260206000209060060201905060008160050180549050905060005b81811015613219576000836005018281548110613184576131836146b0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506003600086815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055508080613211906158de565b915050613164565b50505050565b60006004600560008481526020019081526020016000205481548110613248576132476146b0565b5b906000526020600020906006020160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001805490506132f09190614f1d565b9050600082600001828154811061330a576133096146b0565b5b90600052602060002001549050600083600101600086815260200190815260200160002054905081846000018281548110613348576133476146b0565b5b90600052602060002001819055508084600101600084815260200190815260200160002081905550836001016000868152602001908152602001600020600090558360000180548061339d5761339c615927565b5b60019003818190600052602060002001600090559055505050505050565b8160046005600084815260200190815260200160002054815481106133e3576133e26146b0565b5b906000526020600020906006020160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000180549050600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600083815260200190815260200160002081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190806001815401808255809150506001900390600052602060002001600090919091909150555050565b6000806004600560008581526020019081526020016000205481548110613566576135656146b0565b5b906000526020600020906006020160050180549050905060005b8181101561364e578473ffffffffffffffffffffffffffffffffffffffff1660046005600087815260200190815260200160002054815481106135c6576135c56146b0565b5b906000526020600020906006020160050182815481106135e9576135e86146b0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561363b57600192505050613655565b8080613646906158de565b915050613580565b5060009150505b92915050565b600061367c8473ffffffffffffffffffffffffffffffffffffffff16613c02565b801561372d57508373ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f150b7a02000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016136dc91906157d2565b60206040518083038186803b1580156136f457600080fd5b505afa158015613708573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061372c9190614b1f565b5b15613896578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613756611b43565b8786866040518563ffffffff1660e01b81526004016137789493929190615956565b602060405180830381600087803b15801561379257600080fd5b505af19250505080156137c357506040513d601f19601f820116820180604052508101906137c091906158b1565b60015b613846573d80600081146137f3576040519150601f19603f3d011682016040523d82523d6000602084013e6137f8565b606091505b5060008151141561383e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383590615a14565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061389b565b600190505b949350505050565b6060600060028360026138b69190615a34565b6138c09190615329565b67ffffffffffffffff8111156138d9576138d8614421565b5b6040519080825280601f01601f19166020018201604052801561390b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613943576139426146b0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106139a7576139a66146b0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026139e79190615a34565b6139f19190615329565b90505b6001811115613a91577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613a3357613a326146b0565b5b1a60f81b828281518110613a4a57613a496146b0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613a8a90615a8e565b90506139f4565b5060008414613ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613acc90615b04565b60405180910390fd5b8091505092915050565b505050505050565b600480549050600560008360000151815260200190815260200160002081905550600481908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a0820151816005019080519060200190613bfc929190613cab565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613c319061467e565b90600052602060002090601f016020900481019282613c535760008555613c9a565b82601f10613c6c57803560ff1916838001178555613c9a565b82800160010185558215613c9a579182015b82811115613c99578235825591602001919060010190613c7e565b5b509050613ca79190613d35565b5090565b828054828255906000526020600020908101928215613d24579160200282015b82811115613d235782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613ccb565b5b509050613d319190613d35565b5090565b5b80821115613d4e576000816000905550600101613d36565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d9b81613d66565b8114613da657600080fd5b50565b600081359050613db881613d92565b92915050565b600060208284031215613dd457613dd3613d5c565b5b6000613de284828501613da9565b91505092915050565b60008115159050919050565b613e0081613deb565b82525050565b6000602082019050613e1b6000830184613df7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e5b578082015181840152602081019050613e40565b83811115613e6a576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e8c82613e21565b613e968185613e2c565b9350613ea6818560208601613e3d565b613eaf81613e70565b840191505092915050565b60006020820190508181036000830152613ed48184613e81565b905092915050565b6000819050919050565b613eef81613edc565b8114613efa57600080fd5b50565b600081359050613f0c81613ee6565b92915050565b600060208284031215613f2857613f27613d5c565b5b6000613f3684828501613efd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f6a82613f3f565b9050919050565b613f7a81613f5f565b82525050565b6000602082019050613f956000830184613f71565b92915050565b613fa481613f5f565b8114613faf57600080fd5b50565b600081359050613fc181613f9b565b92915050565b60008060408385031215613fde57613fdd613d5c565b5b6000613fec85828601613fb2565b9250506020613ffd85828601613efd565b9150509250929050565b6000806000606084860312156140205761401f613d5c565b5b600061402e86828701613efd565b935050602061403f86828701613fb2565b925050604061405086828701613efd565b9150509250925092565b61406381613edc565b82525050565b600060208201905061407e600083018461405a565b92915050565b60008060006060848603121561409d5761409c613d5c565b5b60006140ab86828701613fb2565b93505060206140bc86828701613fb2565b92505060406140cd86828701613efd565b9150509250925092565b6000806000606084860312156140f0576140ef613d5c565b5b60006140fe86828701613efd565b935050602061410f86828701613efd565b925050604061412086828701613efd565b9150509250925092565b600060ff82169050919050565b6141408161412a565b82525050565b600060208201905061415b6000830184614137565b92915050565b6000806000806080858703121561417b5761417a613d5c565b5b600061418987828801613fb2565b945050602061419a87828801613efd565b93505060406141ab87828801613efd565b92505060606141bc87828801613efd565b91505092959194509250565b6141d181613deb565b81146141dc57600080fd5b50565b6000813590506141ee816141c8565b92915050565b60008060006060848603121561420d5761420c613d5c565b5b600061421b86828701613efd565b935050602061422c86828701613efd565b925050604061423d868287016141df565b9150509250925092565b60006020828403121561425d5761425c613d5c565b5b600061426b84828501613fb2565b91505092915050565b6000819050919050565b600061429961429461428f84613f3f565b614274565b613f3f565b9050919050565b60006142ab8261427e565b9050919050565b60006142bd826142a0565b9050919050565b6142cd816142b2565b82525050565b60006020820190506142e860008301846142c4565b92915050565b60006142f9826142a0565b9050919050565b614309816142ee565b82525050565b60006020820190506143246000830184614300565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261434f5761434e61432a565b5b8235905067ffffffffffffffff81111561436c5761436b61432f565b5b60208301915083600182028301111561438857614387614334565b5b9250929050565b600080602083850312156143a6576143a5613d5c565b5b600083013567ffffffffffffffff8111156143c4576143c3613d61565b5b6143d085828601614339565b92509250509250929050565b600080604083850312156143f3576143f2613d5c565b5b600061440185828601613fb2565b9250506020614412858286016141df565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61445982613e70565b810181811067ffffffffffffffff8211171561447857614477614421565b5b80604052505050565b600061448b613d52565b90506144978282614450565b919050565b600067ffffffffffffffff8211156144b7576144b6614421565b5b6144c082613e70565b9050602081019050919050565b82818337600083830152505050565b60006144ef6144ea8461449c565b614481565b90508281526020810184848401111561450b5761450a61441c565b5b6145168482856144cd565b509392505050565b600082601f8301126145335761453261432a565b5b81356145438482602086016144dc565b91505092915050565b6000806000806080858703121561456657614565613d5c565b5b600061457487828801613fb2565b945050602061458587828801613fb2565b935050604061459687828801613efd565b925050606085013567ffffffffffffffff8111156145b7576145b6613d61565b5b6145c38782880161451e565b91505092959194509250565b600080604083850312156145e6576145e5613d5c565b5b60006145f485828601613efd565b925050602061460585828601613fb2565b9150509250929050565b6000806040838503121561462657614625613d5c565b5b600061463485828601613fb2565b925050602061464585828601613fb2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061469657607f821691505b602082108114156146aa576146a961464f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243333532353a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061473b602283613e2c565b9150614746826146df565b604082019050919050565b6000602082019050818103600083015261476a8161472e565b9050919050565b7f455243333532353a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006147cd603983613e2c565b91506147d882614771565b604082019050919050565b600060208201905081810360008301526147fc816147c0565b9050919050565b600081905092915050565b600061481982613e21565b6148238185614803565b9350614833818560208601613e3d565b80840191505092915050565b7f736c6f742f000000000000000000000000000000000000000000000000000000600082015250565b6000614875600583614803565b91506148808261483f565b600582019050919050565b6000614897828561480e565b91506148a282614868565b91506148ae828461480e565b91508190509392505050565b600067ffffffffffffffff8211156148d5576148d4614421565b5b6148de82613e70565b9050602081019050919050565b60006148fe6148f9846148ba565b614481565b90508281526020810184848401111561491a5761491961441c565b5b614925848285613e3d565b509392505050565b600082601f8301126149425761494161432a565b5b81516149528482602086016148eb565b91505092915050565b60006020828403121561497157614970613d5c565b5b600082015167ffffffffffffffff81111561498f5761498e613d61565b5b61499b8482850161492d565b91505092915050565b7f455243333532353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614a00603283613e2c565b9150614a0b826149a4565b604082019050919050565b60006020820190508181036000830152614a2f816149f3565b9050919050565b7f455243333532353a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a92602283613e2c565b9150614a9d82614a36565b604082019050919050565b60006020820190508181036000830152614ac181614a85565b9050919050565b6000819050919050565b614adb81614ac8565b82525050565b6000604082019050614af66000830185614ad2565b614b036020830184613f71565b9392505050565b600081519050614b19816141c8565b92915050565b600060208284031215614b3557614b34613d5c565b5b6000614b4384828501614b0a565b91505092915050565b7f4f6e6c79204d696e746572000000000000000000000000000000000000000000600082015250565b6000614b82600b83613e2c565b9150614b8d82614b4c565b602082019050919050565b60006020820190508181036000830152614bb181614b75565b9050919050565b7f455243333532353a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614c14602383613e2c565b9150614c1f82614bb8565b604082019050919050565b60006020820190508181036000830152614c4381614c07565b9050919050565b7f455243333532353a20696e76616c696420746f6b656e20494400000000000000600082015250565b6000614c80601983613e2c565b9150614c8b82614c4a565b602082019050919050565b60006020820190508181036000830152614caf81614c73565b9050919050565b7f455243333532353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614d12602b83613e2c565b9150614d1d82614cb6565b604082019050919050565b60006020820190508181036000830152614d4181614d05565b9050919050565b7f4f6e6c79204d616e616765720000000000000000000000000000000000000000600082015250565b6000614d7e600c83613e2c565b9150614d8982614d48565b602082019050919050565b60006020820190508181036000830152614dad81614d71565b9050919050565b6000614dc0828561480e565b9150614dcc828461480e565b91508190509392505050565b7f636f6e74726163742f0000000000000000000000000000000000000000000000600082015250565b6000614e0e600983614803565b9150614e1982614dd8565b600982019050919050565b6000614e30828561480e565b9150614e3b82614e01565b9150614e47828461480e565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243333532353a20696e73756666696369656e7420616c6c6f77616e636500600082015250565b6000614eb8601f83613e2c565b9150614ec382614e82565b602082019050919050565b60006020820190508181036000830152614ee781614eab565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f2882613edc565b9150614f3383613edc565b925082821015614f4657614f45614eee565b5b828203905092915050565b7f455243333532353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614fad602183613e2c565b9150614fb882614f51565b604082019050919050565b60006020820190508181036000830152614fdc81614fa0565b9050919050565b7f455243333532353a2063616e6e6f74206d696e74207a65726f20746f6b656e4960008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061503f602183613e2c565b915061504a82614fe3565b604082019050919050565b6000602082019050818103600083015261506e81615032565b9050919050565b7f455243333532353a20746f6b656e20616c7265616479206d696e746564000000600082015250565b60006150ab601d83613e2c565b91506150b682615075565b602082019050919050565b600060208201905081810360008301526150da8161509e565b9050919050565b7f455243333532353a207472616e736665722066726f6d20696e76616c6964207460008201527f6f6b656e20494400000000000000000000000000000000000000000000000000602082015250565b600061513d602783613e2c565b9150615148826150e1565b604082019050919050565b6000602082019050818103600083015261516c81615130565b9050919050565b7f455243333532353a207472616e7366657220746f20696e76616c696420746f6b60008201527f656e204944000000000000000000000000000000000000000000000000000000602082015250565b60006151cf602583613e2c565b91506151da82615173565b604082019050919050565b600060208201905081810360008301526151fe816151c2565b9050919050565b7f455243333532353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000615261602a83613e2c565b915061526c82615205565b604082019050919050565b6000602082019050818103600083015261529081615254565b9050919050565b7f455243333532353a207472616e7366657220746f20746f6b656e20776974682060008201527f646966666572656e7420736c6f74000000000000000000000000000000000000602082015250565b60006152f3602e83613e2c565b91506152fe82615297565b604082019050919050565b60006020820190508181036000830152615322816152e6565b9050919050565b600061533482613edc565b915061533f83613edc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561537457615373614eee565b5b828201905092915050565b7f455243333532353a207472616e7366657220746f206e6f6e204552433335323560008201527f5265636569766572000000000000000000000000000000000000000000000000602082015250565b60006153db602883613e2c565b91506153e68261537f565b604082019050919050565b6000602082019050818103600083015261540a816153ce565b9050919050565b7f455243333532353a207472616e736665722066726f6d20696e76616c6964206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b600061546d602483613e2c565b915061547882615411565b604082019050919050565b6000602082019050818103600083015261549c81615460565b9050919050565b7f455243333532353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006154ff602583613e2c565b915061550a826154a3565b604082019050919050565b6000602082019050818103600083015261552e816154f2565b9050919050565b7f455243333532353a206275726e2076616c756520657863656564732062616c6160008201527f6e63650000000000000000000000000000000000000000000000000000000000602082015250565b6000615591602383613e2c565b915061559c82615535565b604082019050919050565b600060208201905081810360008301526155c081615584565b9050919050565b7f455243333532353a20617070726f76652076616c756520746f20746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000615623602a83613e2c565b915061562e826155c7565b604082019050919050565b6000602082019050818103600083015261565281615616565b9050919050565b7f455243333532353a20617070726f766520746f2063616c6c6572000000000000600082015250565b600061568f601a83613e2c565b915061569a82615659565b602082019050919050565b600060208201905081810360008301526156be81615682565b9050919050565b7f455243333532353a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657200000000000000000000000000000000000000000000000000602082015250565b6000615721602783613e2c565b915061572c826156c5565b604082019050919050565b6000602082019050818103600083015261575081615714565b9050919050565b7f4f6e205061757365640000000000000000000000000000000000000000000000600082015250565b600061578d600983613e2c565b915061579882615757565b602082019050919050565b600060208201905081810360008301526157bc81615780565b9050919050565b6157cc81613d66565b82525050565b60006020820190506157e760008301846157c3565b92915050565b600081519050919050565b600082825260208201905092915050565b6000615814826157ed565b61581e81856157f8565b935061582e818560208601613e3d565b61583781613e70565b840191505092915050565b600060a0820190506158576000830188613f71565b615864602083018761405a565b615871604083018661405a565b61587e606083018561405a565b81810360808301526158908184615809565b90509695505050505050565b6000815190506158ab81613d92565b92915050565b6000602082840312156158c7576158c6613d5c565b5b60006158d58482850161589c565b91505092915050565b60006158e982613edc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561591c5761591b614eee565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060808201905061596b6000830187613f71565b6159786020830186613f71565b615985604083018561405a565b81810360608301526159978184615809565b905095945050505050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f6365697665720000000000000000000000000000000000000000000000000000602082015250565b60006159fe602683613e2c565b9150615a09826159a2565b604082019050919050565b60006020820190508181036000830152615a2d816159f1565b9050919050565b6000615a3f82613edc565b9150615a4a83613edc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615a8357615a82614eee565b5b828202905092915050565b6000615a9982613edc565b91506000821415615aad57615aac614eee565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615aee602083613e2c565b9150615af982615ab8565b602082019050919050565b60006020820190508181036000830152615b1d81615ae1565b905091905056fea2646970667358221220f1aa6b5ea32ce2a7c5bbfd53fd09ec367f1141d91ce4e233ceac30f3b6917f4064736f6c634300080900330000000000000000000000002f295e191147d406bc7c1b732243ff5d437ce71600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000c566f75636865722054657374000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044142434400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f6578616d706c652e636f6d00000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80636352211e1161010457806395d89b41116100a2578063c87b56dd11610071578063c87b56dd1461058b578063e345e0bc146105bb578063e8a3d485146105eb578063e985e9c514610609576101da565b806395d89b41146105055780639cc7f70814610523578063a22cb46514610553578063b88d4fde1461056f576101da565b8063840f7113116100de578063840f71131461049157806388a8d602146104af5780638cb0a511146104cd578063931688cb146104e9576101da565b80636352211e146104155780636e23218f1461044557806370a0823114610461576101da565b806323b872dd1161017c5780633e7e86691161014b5780633e7e86691461038f57806342842e0e146103ad57806347401a93146103c95780634f6ccce7146103e5576101da565b806323b872dd146102f7578063263f3e7e146103135780632f745c5914610343578063310ed7f014610373576101da565b8063095ea7b3116101b8578063095ea7b31461025d57806309c3dd87146102795780630f485c02146102a957806318160ddd146102d9576101da565b806301ffc9a7146101df57806306fdde031461020f578063081812fc1461022d575b600080fd5b6101f960048036038101906101f49190613dbe565b610639565b6040516102069190613e06565b60405180910390f35b6102176108ab565b6040516102249190613eba565b60405180910390f35b61024760048036038101906102429190613f12565b61093d565b6040516102549190613f80565b60405180910390f35b61027760048036038101906102729190613fc7565b6109a8565b005b610293600480360381019061028e9190613f12565b610ac0565b6040516102a09190613eba565b60405180910390f35b6102c360048036038101906102be9190614007565b610c2c565b6040516102d09190614069565b60405180910390f35b6102e1610c78565b6040516102ee9190614069565b60405180910390f35b610311600480360381019061030c9190614084565b610c85565b005b61032d60048036038101906103289190613f12565b610ce5565b60405161033a9190614069565b60405180910390f35b61035d60048036038101906103589190613fc7565b610d30565b60405161036a9190614069565b60405180910390f35b61038d600480360381019061038891906140d7565b610de3565b005b610397610e05565b6040516103a49190614146565b60405180910390f35b6103c760048036038101906103c29190614084565b610e1c565b005b6103e360048036038101906103de9190614161565b610e3c565b005b6103ff60048036038101906103fa9190613f12565b610fb1565b60405161040c9190614069565b60405180910390f35b61042f600480360381019061042a9190613f12565b611029565b60405161043c9190613f80565b60405180910390f35b61045f600480360381019061045a91906141f4565b611104565b005b61047b60048036038101906104769190614247565b611287565b6040516104889190614069565b60405180910390f35b610499611345565b6040516104a691906142d3565b60405180910390f35b6104b761136b565b6040516104c4919061430f565b60405180910390f35b6104e760048036038101906104e29190614007565b611391565b005b61050360048036038101906104fe919061438f565b6114ab565b005b61050d6115d4565b60405161051a9190613eba565b60405180910390f35b61053d60048036038101906105389190613f12565b611666565b60405161054a9190614069565b60405180910390f35b61056d600480360381019061056891906143dc565b6116b1565b005b6105896004803603810190610584919061454c565b6116c7565b005b6105a560048036038101906105a09190613f12565b611729565b6040516105b29190613eba565b60405180910390f35b6105d560048036038101906105d091906145cf565b61189e565b6040516105e29190614069565b60405180910390f35b6105f3611902565b6040516106009190613eba565b60405180910390f35b610623600480360381019061061e919061460f565b611a61565b6040516106309190613e06565b60405180910390f35b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070457507fd5358140000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076c57507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d457507fe1600902000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061083c57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600080546108ba9061467e565b80601f01602080910402602001604051908101604052809291908181526020018280546108e69061467e565b80156109335780601f1061090857610100808354040283529160200191610933565b820191906000526020600020905b81548152906001019060200180831161091657829003601f168201915b5050505050905090565b600061094882611af8565b600460056000848152602001908152602001600020548154811061096f5761096e6146b0565b5b906000526020600020906006020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109b382611029565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1b90614751565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a43611b43565b73ffffffffffffffffffffffffffffffffffffffff161480610a725750610a7181610a6c611b43565b611a61565b5b610ab1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa8906147e3565b60405180910390fd5b610abb8383611b4b565b505050565b60606000610acc611c29565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610b73576000815111610b435760405180602001604052806000815250610b6e565b80610b4d84611cbb565b604051602001610b5e92919061488b565b6040516020818303038152906040525b610c24565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636c037f8a846040518263ffffffff1660e01b8152600401610bce9190614069565b60006040518083038186803b158015610be657600080fd5b505afa158015610bfa573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c23919061495b565b5b915050919050565b6000610c40610c39611b43565b8584611d93565b6000610c4b85611e3d565b9050610c628482610c5b88610ce5565b6000611e4e565b610c6d858285611f86565b809150509392505050565b6000600480549050905090565b610c96610c90611b43565b8261229d565b610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc90614a16565b60405180910390fd5b610ce083838361233c565b505050565b6000610cf082611af8565b6004600560008481526020019081526020016000205481548110610d1757610d166146b0565b5b9060005260206000209060060201600101549050919050565b6000610d3b83611287565b8210610d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7390614aa8565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018281548110610dd057610dcf6146b0565b5b9060005260206000200154905092915050565b610df5610dee611b43565b8483611d93565b610e00838383611f86565b505050565b6000600260009054906101000a900460ff16905090565b610e37838383604051806020016040528060008152506116c7565b505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ea3611b43565b6040518363ffffffff1660e01b8152600401610ec0929190614ae1565b60206040518083038186803b158015610ed857600080fd5b505afa158015610eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f109190614b1f565b610f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4690614b98565b60405180910390fd5b610f5b84848484611e4e565b81838573ffffffffffffffffffffffffffffffffffffffff167fbb7b96662acd9eb8f347cd94cdc6bb2d9d2be8741aea36dcabde5aa7e0c536c184604051610fa39190614069565b60405180910390a450505050565b6000610fbb610c78565b8210610ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff390614c2a565b60405180910390fd5b600482815481106110105761100f6146b0565b5b9060005260206000209060060201600001549050919050565b600061103482611af8565b600460056000848152602001908152602001600020548154811061105b5761105a6146b0565b5b906000526020600020906006020160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f690614c96565b60405180910390fd5b919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661116b611b43565b6040518363ffffffff1660e01b8152600401611188929190614ae1565b60206040518083038186803b1580156111a057600080fd5b505afa1580156111b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d89190614b1f565b611217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120e90614b98565b60405180910390fd5b600061122284611666565b905081156112395761123484846124e2565b611244565b6112438484612535565b5b600061124f85611666565b90508082867f725c0becb1fa4669d7269565bb18c5dd3d4d6a6701a7ca562a9dc0974bcce43560405160405180910390a45050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90614d28565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001805490509050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061139c84611029565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490614751565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661142c611b43565b73ffffffffffffffffffffffffffffffffffffffff16148061145b575061145a81611455611b43565b611a61565b5b61149a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611491906147e3565b60405180910390fd5b6114a5848484612672565b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148547f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611512611b43565b6040518363ffffffff1660e01b815260040161152f929190614ae1565b60206040518083038186803b15801561154757600080fd5b505afa15801561155b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157f9190614b1f565b6115be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b590614d94565b60405180910390fd5b8181600991906115cf929190613c25565b505050565b6060600180546115e39061467e565b80601f016020809104026020016040519081016040528092919081815260200182805461160f9061467e565b801561165c5780601f106116315761010080835404028352916020019161165c565b820191906000526020600020905b81548152906001019060200180831161163f57829003601f168201915b5050505050905090565b600061167182611af8565b6004600560008481526020019081526020016000205481548110611698576116976146b0565b5b9060005260206000209060060201600201549050919050565b6116c36116bc611b43565b8383612833565b5050565b6116d86116d2611b43565b8361229d565b611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e90614a16565b60405180910390fd5b611723848484846129a3565b50505050565b606061173482611af8565b600061173e611c29565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156117e55760008151116117b557604051806020016040528060008152506117e0565b806117bf84611cbb565b6040516020016117d0929190614db4565b6040516020818303038152906040525b611896565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663894b4c2e846040518263ffffffff1660e01b81526004016118409190614069565b60006040518083038186803b15801561185857600080fd5b505afa15801561186c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611895919061495b565b5b915050919050565b60006118a983611af8565b6003600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6060600061190e611c29565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156119b557600081511161198557604051806020016040528060008152506119b0565b8061198f306129ff565b6040516020016119a0929190614e24565b6040516020818303038152906040525b611a5b565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663725fa09c6040518163ffffffff1660e01b815260040160006040518083038186803b158015611a1d57600080fd5b505afa158015611a31573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a5a919061495b565b5b91505090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b0181612a2c565b611b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3790614c96565b60405180910390fd5b50565b600033905090565b816004600560008481526020019081526020016000205481548110611b7357611b726146b0565b5b906000526020600020906006020160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611be383611029565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060098054611c389061467e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c649061467e565b8015611cb15780601f10611c8657610100808354040283529160200191611cb1565b820191906000526020600020905b815481529060010190602001808311611c9457829003601f168201915b5050505050905090565b606060006001611cca84612a81565b01905060008167ffffffffffffffff811115611ce957611ce8614421565b5b6040519080825280601f01601f191660200182016040528015611d1b5781602001600182028036833780820191505090505b509050600082602001820190505b600115611d88578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611d7257611d71614e53565b5b0494506000851415611d8357611d88565b611d29565b819350505050919050565b6000611d9f838561189e565b9050611dab848461229d565b158015611dd857507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114155b15611e375781811015611e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1790614ece565b60405180910390fd5b611e3683858484611e319190614f1d565b612672565b5b50505050565b6000611e47612bd4565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb590614fc3565b60405180910390fd5b6000831415611f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef990615055565b60405180910390fd5b611f0b83612a2c565b15611f4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f42906150c1565b60405180910390fd5b611f5b6000856000868686612bef565b611f66848484612ce5565b611f708382612e32565b611f806000856000868686612ebf565b50505050565b611f8f83612a2c565b611fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc590615153565b60405180910390fd5b611fd782612a2c565b612016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200d906151e5565b60405180910390fd5b6000600460056000868152602001908152602001600020548154811061203f5761203e6146b0565b5b9060005260206000209060060201905060006004600560008681526020019081526020016000205481548110612078576120776146b0565b5b9060005260206000209060060201905082826002015410156120cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c690615277565b60405180910390fd5b8060010154826001015414612119576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211090615309565b60405180910390fd5b6121738260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168787866001015488612bef565b828260020160008282546121879190614f1d565b92505081905550828160020160008282546121a29190615329565b9250508190555083857f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc6856040516121da9190614069565b60405180910390a361223c8260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168787866001015488612ebf565b61225785858560405180602001604052806000815250612ec7565b612296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228d906153f1565b60405180910390fd5b5050505050565b60006122a882611af8565b60006122b383611029565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122f557506122f48185611a61565b5b8061233357508373ffffffffffffffffffffffffffffffffffffffff1661231b8461093d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661235c82611029565b73ffffffffffffffffffffffffffffffffffffffff16146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a990615483565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241990615515565b60405180910390fd5b600061242d82610ce5565b9050600061243a83611666565b905061244a858585868686612bef565b612455600084611b4b565b61245e8361311c565b612468858461321f565b61247284846133bb565b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124db858585868686612ebf565b5050505050565b6124eb82611af8565b60006124f683611029565b9050600061250384610ce5565b90506125156000836000878588612bef565b61251f8484612e32565b61252f6000836000878588612ebf565b50505050565b61253e82611af8565b60006004600560008581526020019081526020016000205481548110612567576125666146b0565b5b9060005260206000209060060201905060008160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600082600101549050600083600201549050848110156125f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ec906155a7565b60405180910390fd5b612605836000886000868a612bef565b848460020160008282546126199190614f1d565b925050819055506000867f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc6876040516126529190614069565b60405180910390a361266a836000886000868a612ebf565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d990615639565b60405180910390fd5b6126ec828461353c565b61278a576004600560008581526020019081526020016000205481548110612717576127166146b0565b5b9060005260206000209060060201600501829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b806003600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16837f621b050de0ad08b51d19b48b3e6df75348c4de6bdd93e81b252ca62e28265b1b836040516128269190614069565b60405180910390a3505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156128a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612899906156a5565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129969190613e06565b60405180910390a3505050565b6129ae84848461233c565b6129ba8484848461365b565b6129f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f090615737565b60405180910390fd5b50505050565b6060612a258273ffffffffffffffffffffffffffffffffffffffff16601460ff166138a3565b9050919050565b60008060048054905014158015612a7a5750816004600560008581526020019081526020016000205481548110612a6657612a656146b0565b5b906000526020600020906006020160000154145b9050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612adf577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612ad557612ad4614e53565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612b1c576d04ee2d6d415b85acef81000000008381612b1257612b11614e53565b5b0492506020810190505b662386f26fc100008310612b4b57662386f26fc100008381612b4157612b40614e53565b5b0492506010810190505b6305f5e1008310612b74576305f5e1008381612b6a57612b69614e53565b5b0492506008810190505b6127108310612b99576127108381612b8f57612b8e614e53565b5b0492506004810190505b60648310612bbc5760648381612bb257612bb1614e53565b5b0492506002810190505b600a8310612bcb576001810190505b80915050919050565b60006001612be0610c78565b612bea9190615329565b905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015612c5757600080fd5b505afa158015612c6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8f9190614b1f565b15612ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc6906157a3565b60405180910390fd5b612cdd868686868686613adf565b505050505050565b60006040518060c00160405280848152602001838152602001600081526020018573ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff811115612d5957612d58614421565b5b604051908082528060200260200182016040528015612d875781602001602082028036833780820191505090505b508152509050612d9681613ae7565b612da084846133bb565b828473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4816000847fe4f48c240d3b994948aa54f3e2f5fca59263dfe1d52b6e4cf39a5d249b5ccb6560405160405180910390a450505050565b806004600560008581526020019081526020016000205481548110612e5a57612e596146b0565b5b90600052602060002090600602016002016000828254612e7a9190615329565b925050819055508160007f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc683604051612eb39190614069565b60405180910390a35050565b505050505050565b600080612ed385611029565b9050612ef48173ffffffffffffffffffffffffffffffffffffffff16613c02565b8015612fa457508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77e9ce20b000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612f5391906157d2565b60206040518083038186803b158015612f6b57600080fd5b505afa158015612f7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa39190614b1f565b5b1561310e578073ffffffffffffffffffffffffffffffffffffffff16629ce20b612fcc611b43565b888888886040518663ffffffff1660e01b8152600401612ff0959493929190615842565b602060405180830381600087803b15801561300a57600080fd5b505af192505050801561303b57506040513d601f19601f8201168201806040525081019061303891906158b1565b60015b6130be573d806000811461306b576040519150601f19603f3d011682016040523d82523d6000602084013e613070565b606091505b506000815114156130b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ad906153f1565b60405180910390fd5b805181602001fd5b629ce20b60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161492505050613114565b60019150505b949350505050565b60006004600560008481526020019081526020016000205481548110613145576131446146b0565b5b9060005260206000209060060201905060008160050180549050905060005b81811015613219576000836005018281548110613184576131836146b0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506003600086815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055508080613211906158de565b915050613164565b50505050565b60006004600560008481526020019081526020016000205481548110613248576132476146b0565b5b906000526020600020906006020160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600182600001805490506132f09190614f1d565b9050600082600001828154811061330a576133096146b0565b5b90600052602060002001549050600083600101600086815260200190815260200160002054905081846000018281548110613348576133476146b0565b5b90600052602060002001819055508084600101600084815260200190815260200160002081905550836001016000868152602001908152602001600020600090558360000180548061339d5761339c615927565b5b60019003818190600052602060002001600090559055505050505050565b8160046005600084815260200190815260200160002054815481106133e3576133e26146b0565b5b906000526020600020906006020160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000180549050600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600083815260200190815260200160002081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190806001815401808255809150506001900390600052602060002001600090919091909150555050565b6000806004600560008581526020019081526020016000205481548110613566576135656146b0565b5b906000526020600020906006020160050180549050905060005b8181101561364e578473ffffffffffffffffffffffffffffffffffffffff1660046005600087815260200190815260200160002054815481106135c6576135c56146b0565b5b906000526020600020906006020160050182815481106135e9576135e86146b0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561363b57600192505050613655565b8080613646906158de565b915050613580565b5060009150505b92915050565b600061367c8473ffffffffffffffffffffffffffffffffffffffff16613c02565b801561372d57508373ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f150b7a02000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016136dc91906157d2565b60206040518083038186803b1580156136f457600080fd5b505afa158015613708573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061372c9190614b1f565b5b15613896578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613756611b43565b8786866040518563ffffffff1660e01b81526004016137789493929190615956565b602060405180830381600087803b15801561379257600080fd5b505af19250505080156137c357506040513d601f19601f820116820180604052508101906137c091906158b1565b60015b613846573d80600081146137f3576040519150601f19603f3d011682016040523d82523d6000602084013e6137f8565b606091505b5060008151141561383e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383590615a14565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061389b565b600190505b949350505050565b6060600060028360026138b69190615a34565b6138c09190615329565b67ffffffffffffffff8111156138d9576138d8614421565b5b6040519080825280601f01601f19166020018201604052801561390b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613943576139426146b0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106139a7576139a66146b0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026139e79190615a34565b6139f19190615329565b90505b6001811115613a91577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613a3357613a326146b0565b5b1a60f81b828281518110613a4a57613a496146b0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613a8a90615a8e565b90506139f4565b5060008414613ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613acc90615b04565b60405180910390fd5b8091505092915050565b505050505050565b600480549050600560008360000151815260200190815260200160002081905550600481908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a0820151816005019080519060200190613bfc929190613cab565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613c319061467e565b90600052602060002090601f016020900481019282613c535760008555613c9a565b82601f10613c6c57803560ff1916838001178555613c9a565b82800160010185558215613c9a579182015b82811115613c99578235825591602001919060010190613c7e565b5b509050613ca79190613d35565b5090565b828054828255906000526020600020908101928215613d24579160200282015b82811115613d235782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613ccb565b5b509050613d319190613d35565b5090565b5b80821115613d4e576000816000905550600101613d36565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d9b81613d66565b8114613da657600080fd5b50565b600081359050613db881613d92565b92915050565b600060208284031215613dd457613dd3613d5c565b5b6000613de284828501613da9565b91505092915050565b60008115159050919050565b613e0081613deb565b82525050565b6000602082019050613e1b6000830184613df7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e5b578082015181840152602081019050613e40565b83811115613e6a576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e8c82613e21565b613e968185613e2c565b9350613ea6818560208601613e3d565b613eaf81613e70565b840191505092915050565b60006020820190508181036000830152613ed48184613e81565b905092915050565b6000819050919050565b613eef81613edc565b8114613efa57600080fd5b50565b600081359050613f0c81613ee6565b92915050565b600060208284031215613f2857613f27613d5c565b5b6000613f3684828501613efd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f6a82613f3f565b9050919050565b613f7a81613f5f565b82525050565b6000602082019050613f956000830184613f71565b92915050565b613fa481613f5f565b8114613faf57600080fd5b50565b600081359050613fc181613f9b565b92915050565b60008060408385031215613fde57613fdd613d5c565b5b6000613fec85828601613fb2565b9250506020613ffd85828601613efd565b9150509250929050565b6000806000606084860312156140205761401f613d5c565b5b600061402e86828701613efd565b935050602061403f86828701613fb2565b925050604061405086828701613efd565b9150509250925092565b61406381613edc565b82525050565b600060208201905061407e600083018461405a565b92915050565b60008060006060848603121561409d5761409c613d5c565b5b60006140ab86828701613fb2565b93505060206140bc86828701613fb2565b92505060406140cd86828701613efd565b9150509250925092565b6000806000606084860312156140f0576140ef613d5c565b5b60006140fe86828701613efd565b935050602061410f86828701613efd565b925050604061412086828701613efd565b9150509250925092565b600060ff82169050919050565b6141408161412a565b82525050565b600060208201905061415b6000830184614137565b92915050565b6000806000806080858703121561417b5761417a613d5c565b5b600061418987828801613fb2565b945050602061419a87828801613efd565b93505060406141ab87828801613efd565b92505060606141bc87828801613efd565b91505092959194509250565b6141d181613deb565b81146141dc57600080fd5b50565b6000813590506141ee816141c8565b92915050565b60008060006060848603121561420d5761420c613d5c565b5b600061421b86828701613efd565b935050602061422c86828701613efd565b925050604061423d868287016141df565b9150509250925092565b60006020828403121561425d5761425c613d5c565b5b600061426b84828501613fb2565b91505092915050565b6000819050919050565b600061429961429461428f84613f3f565b614274565b613f3f565b9050919050565b60006142ab8261427e565b9050919050565b60006142bd826142a0565b9050919050565b6142cd816142b2565b82525050565b60006020820190506142e860008301846142c4565b92915050565b60006142f9826142a0565b9050919050565b614309816142ee565b82525050565b60006020820190506143246000830184614300565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261434f5761434e61432a565b5b8235905067ffffffffffffffff81111561436c5761436b61432f565b5b60208301915083600182028301111561438857614387614334565b5b9250929050565b600080602083850312156143a6576143a5613d5c565b5b600083013567ffffffffffffffff8111156143c4576143c3613d61565b5b6143d085828601614339565b92509250509250929050565b600080604083850312156143f3576143f2613d5c565b5b600061440185828601613fb2565b9250506020614412858286016141df565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61445982613e70565b810181811067ffffffffffffffff8211171561447857614477614421565b5b80604052505050565b600061448b613d52565b90506144978282614450565b919050565b600067ffffffffffffffff8211156144b7576144b6614421565b5b6144c082613e70565b9050602081019050919050565b82818337600083830152505050565b60006144ef6144ea8461449c565b614481565b90508281526020810184848401111561450b5761450a61441c565b5b6145168482856144cd565b509392505050565b600082601f8301126145335761453261432a565b5b81356145438482602086016144dc565b91505092915050565b6000806000806080858703121561456657614565613d5c565b5b600061457487828801613fb2565b945050602061458587828801613fb2565b935050604061459687828801613efd565b925050606085013567ffffffffffffffff8111156145b7576145b6613d61565b5b6145c38782880161451e565b91505092959194509250565b600080604083850312156145e6576145e5613d5c565b5b60006145f485828601613efd565b925050602061460585828601613fb2565b9150509250929050565b6000806040838503121561462657614625613d5c565b5b600061463485828601613fb2565b925050602061464585828601613fb2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061469657607f821691505b602082108114156146aa576146a961464f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243333532353a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061473b602283613e2c565b9150614746826146df565b604082019050919050565b6000602082019050818103600083015261476a8161472e565b9050919050565b7f455243333532353a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006147cd603983613e2c565b91506147d882614771565b604082019050919050565b600060208201905081810360008301526147fc816147c0565b9050919050565b600081905092915050565b600061481982613e21565b6148238185614803565b9350614833818560208601613e3d565b80840191505092915050565b7f736c6f742f000000000000000000000000000000000000000000000000000000600082015250565b6000614875600583614803565b91506148808261483f565b600582019050919050565b6000614897828561480e565b91506148a282614868565b91506148ae828461480e565b91508190509392505050565b600067ffffffffffffffff8211156148d5576148d4614421565b5b6148de82613e70565b9050602081019050919050565b60006148fe6148f9846148ba565b614481565b90508281526020810184848401111561491a5761491961441c565b5b614925848285613e3d565b509392505050565b600082601f8301126149425761494161432a565b5b81516149528482602086016148eb565b91505092915050565b60006020828403121561497157614970613d5c565b5b600082015167ffffffffffffffff81111561498f5761498e613d61565b5b61499b8482850161492d565b91505092915050565b7f455243333532353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614a00603283613e2c565b9150614a0b826149a4565b604082019050919050565b60006020820190508181036000830152614a2f816149f3565b9050919050565b7f455243333532353a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a92602283613e2c565b9150614a9d82614a36565b604082019050919050565b60006020820190508181036000830152614ac181614a85565b9050919050565b6000819050919050565b614adb81614ac8565b82525050565b6000604082019050614af66000830185614ad2565b614b036020830184613f71565b9392505050565b600081519050614b19816141c8565b92915050565b600060208284031215614b3557614b34613d5c565b5b6000614b4384828501614b0a565b91505092915050565b7f4f6e6c79204d696e746572000000000000000000000000000000000000000000600082015250565b6000614b82600b83613e2c565b9150614b8d82614b4c565b602082019050919050565b60006020820190508181036000830152614bb181614b75565b9050919050565b7f455243333532353a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614c14602383613e2c565b9150614c1f82614bb8565b604082019050919050565b60006020820190508181036000830152614c4381614c07565b9050919050565b7f455243333532353a20696e76616c696420746f6b656e20494400000000000000600082015250565b6000614c80601983613e2c565b9150614c8b82614c4a565b602082019050919050565b60006020820190508181036000830152614caf81614c73565b9050919050565b7f455243333532353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614d12602b83613e2c565b9150614d1d82614cb6565b604082019050919050565b60006020820190508181036000830152614d4181614d05565b9050919050565b7f4f6e6c79204d616e616765720000000000000000000000000000000000000000600082015250565b6000614d7e600c83613e2c565b9150614d8982614d48565b602082019050919050565b60006020820190508181036000830152614dad81614d71565b9050919050565b6000614dc0828561480e565b9150614dcc828461480e565b91508190509392505050565b7f636f6e74726163742f0000000000000000000000000000000000000000000000600082015250565b6000614e0e600983614803565b9150614e1982614dd8565b600982019050919050565b6000614e30828561480e565b9150614e3b82614e01565b9150614e47828461480e565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243333532353a20696e73756666696369656e7420616c6c6f77616e636500600082015250565b6000614eb8601f83613e2c565b9150614ec382614e82565b602082019050919050565b60006020820190508181036000830152614ee781614eab565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f2882613edc565b9150614f3383613edc565b925082821015614f4657614f45614eee565b5b828203905092915050565b7f455243333532353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614fad602183613e2c565b9150614fb882614f51565b604082019050919050565b60006020820190508181036000830152614fdc81614fa0565b9050919050565b7f455243333532353a2063616e6e6f74206d696e74207a65726f20746f6b656e4960008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061503f602183613e2c565b915061504a82614fe3565b604082019050919050565b6000602082019050818103600083015261506e81615032565b9050919050565b7f455243333532353a20746f6b656e20616c7265616479206d696e746564000000600082015250565b60006150ab601d83613e2c565b91506150b682615075565b602082019050919050565b600060208201905081810360008301526150da8161509e565b9050919050565b7f455243333532353a207472616e736665722066726f6d20696e76616c6964207460008201527f6f6b656e20494400000000000000000000000000000000000000000000000000602082015250565b600061513d602783613e2c565b9150615148826150e1565b604082019050919050565b6000602082019050818103600083015261516c81615130565b9050919050565b7f455243333532353a207472616e7366657220746f20696e76616c696420746f6b60008201527f656e204944000000000000000000000000000000000000000000000000000000602082015250565b60006151cf602583613e2c565b91506151da82615173565b604082019050919050565b600060208201905081810360008301526151fe816151c2565b9050919050565b7f455243333532353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000615261602a83613e2c565b915061526c82615205565b604082019050919050565b6000602082019050818103600083015261529081615254565b9050919050565b7f455243333532353a207472616e7366657220746f20746f6b656e20776974682060008201527f646966666572656e7420736c6f74000000000000000000000000000000000000602082015250565b60006152f3602e83613e2c565b91506152fe82615297565b604082019050919050565b60006020820190508181036000830152615322816152e6565b9050919050565b600061533482613edc565b915061533f83613edc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561537457615373614eee565b5b828201905092915050565b7f455243333532353a207472616e7366657220746f206e6f6e204552433335323560008201527f5265636569766572000000000000000000000000000000000000000000000000602082015250565b60006153db602883613e2c565b91506153e68261537f565b604082019050919050565b6000602082019050818103600083015261540a816153ce565b9050919050565b7f455243333532353a207472616e736665722066726f6d20696e76616c6964206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b600061546d602483613e2c565b915061547882615411565b604082019050919050565b6000602082019050818103600083015261549c81615460565b9050919050565b7f455243333532353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006154ff602583613e2c565b915061550a826154a3565b604082019050919050565b6000602082019050818103600083015261552e816154f2565b9050919050565b7f455243333532353a206275726e2076616c756520657863656564732062616c6160008201527f6e63650000000000000000000000000000000000000000000000000000000000602082015250565b6000615591602383613e2c565b915061559c82615535565b604082019050919050565b600060208201905081810360008301526155c081615584565b9050919050565b7f455243333532353a20617070726f76652076616c756520746f20746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000615623602a83613e2c565b915061562e826155c7565b604082019050919050565b6000602082019050818103600083015261565281615616565b9050919050565b7f455243333532353a20617070726f766520746f2063616c6c6572000000000000600082015250565b600061568f601a83613e2c565b915061569a82615659565b602082019050919050565b600060208201905081810360008301526156be81615682565b9050919050565b7f455243333532353a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657200000000000000000000000000000000000000000000000000602082015250565b6000615721602783613e2c565b915061572c826156c5565b604082019050919050565b6000602082019050818103600083015261575081615714565b9050919050565b7f4f6e205061757365640000000000000000000000000000000000000000000000600082015250565b600061578d600983613e2c565b915061579882615757565b602082019050919050565b600060208201905081810360008301526157bc81615780565b9050919050565b6157cc81613d66565b82525050565b60006020820190506157e760008301846157c3565b92915050565b600081519050919050565b600082825260208201905092915050565b6000615814826157ed565b61581e81856157f8565b935061582e818560208601613e3d565b61583781613e70565b840191505092915050565b600060a0820190506158576000830188613f71565b615864602083018761405a565b615871604083018661405a565b61587e606083018561405a565b81810360808301526158908184615809565b90509695505050505050565b6000815190506158ab81613d92565b92915050565b6000602082840312156158c7576158c6613d5c565b5b60006158d58482850161589c565b91505092915050565b60006158e982613edc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561591c5761591b614eee565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060808201905061596b6000830187613f71565b6159786020830186613f71565b615985604083018561405a565b81810360608301526159978184615809565b905095945050505050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f6365697665720000000000000000000000000000000000000000000000000000602082015250565b60006159fe602683613e2c565b9150615a09826159a2565b604082019050919050565b60006020820190508181036000830152615a2d816159f1565b9050919050565b6000615a3f82613edc565b9150615a4a83613edc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615a8357615a82614eee565b5b828202905092915050565b6000615a9982613edc565b91506000821415615aad57615aac614eee565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615aee602083613e2c565b9150615af982615ab8565b602082019050919050565b60006020820190508181036000830152615b1d81615ae1565b905091905056fea2646970667358221220f1aa6b5ea32ce2a7c5bbfd53fd09ec367f1141d91ce4e233ceac30f3b6917f4064736f6c63430008090033

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

0000000000000000000000002f295e191147d406bc7c1b732243ff5d437ce71600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000c566f75636865722054657374000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044142434400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f6578616d706c652e636f6d00000000000000000000000000

-----Decoded View---------------
Arg [0] : _management (address): 0x2f295e191147d406bc7c1b732243ff5d437ce716
Arg [1] : name_ (string): Voucher Test
Arg [2] : symbol_ (string): ABCD
Arg [3] : _uri (string): https://example.com
Arg [4] : decimals_ (uint8): 18

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f295e191147d406bc7c1b732243ff5d437ce716
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [6] : 566f756368657220546573740000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4142434400000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [10] : 68747470733a2f2f6578616d706c652e636f6d00000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading