ETH Price: $3,193.77 (+1.19%)
 

Overview

Max Total Supply

1,537 MYSTERYPOD

Holders

349

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 MYSTERYPOD
0x841a0ef611267a3e2700f5747b2d43b4e6f28a57
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MysteryPod

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 31 : MysteryPod.sol
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/extensions/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/interfaces/IERC4906.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

interface IRedeemer {
    function redeemToken(address to, uint256[] calldata tokenIds) external;
}

error LastAdminRole();
error InvalidSignRequest(string errMsg);
error InvalidPaymentData(string errMsg);
error FailedToCollectPayment();
error UIDAlreadyMinted();
error NotAllowedToList();
error InvalidRecipientAddress();
error RedeemNotAllowed();
error RedeemImplError();
error RedeemImplNotSet();
error InvalidRedeemImplAddress();
error AdminRedeemOwnerUnAuthorized();
error InvalidMaxTokenId();
error MaxTokenIdReached();

contract MysteryPod is ERC721Enumerable, AccessControlEnumerable, EIP712, ERC721Pausable, IERC4906, ReentrancyGuard {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant REDEEMER_ROLE = keccak256("REDEEMER_ROLE");
    bool public isAllowToRedeem;
    address private _redeemImplAddress;
    uint256 private _nextTokenId;
    string private _collectionUri;
    address private _primarySaleRecipient;
    uint256 private _maxTokenId;

    bytes32 private constant SIGN_MINT_TYPEHASH =
        keccak256("MintRequest(address to,uint256 price,uint256 validityStartTimestamp,uint256 validityEndTimestamp,bytes32 uid)");
    mapping(bytes32 => bool) private _minted;
    struct MintRequest {
        address to;
        uint256 price;
        uint256 validityStartTimestamp;
        uint256 validityEndTimestamp;
        bytes32 uid;
    }
    bool private _isAllowToList = false;

    event TokensMinted(address indexed mintedTo, uint256 indexed tokenIdMinted);
    event TokensRedeemed(address indexed redeemedTo, uint256[] indexed tokenIds);
    event PrimarySaleRecipientUpdated(address indexed recipient);
    event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 mintedTokenId, MintRequest mintRequest);

    constructor(string memory name, string memory symbol, address admin, address primarySaleRecipient_, string memory collectionUri)
        ERC721(name, symbol)
        EIP712(name, "1.0.0")
    {
        _grantRole(DEFAULT_ADMIN_ROLE, admin);
        _primarySaleRecipient = primarySaleRecipient_;
        _collectionUri = collectionUri;
        _maxTokenId = 888;
    }

    modifier whenAllowedToList() {
        if (!_isAllowToList) revert NotAllowedToList();
        _;
    }

    function setMaxTokenId(uint256 value) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (value < _nextTokenId) revert InvalidMaxTokenId();
        _maxTokenId = value;
    }

    function redeem(uint256[] calldata tokenIds) external nonReentrant {
        if(!isAllowToRedeem) {
            revert RedeemNotAllowed();
        }
        _redeemImpl(_msgSender(), tokenIds, _msgSender());
    }

    function adminRedeem(address owner, uint256[] calldata tokenIds) 
        external 
        onlyRole(REDEEMER_ROLE) 
    {
        if(!isAllowToRedeem) {
            revert RedeemNotAllowed();
        }

        for (uint256 i; i < tokenIds.length; ) {
            if (ownerOf(tokenIds[i]) != owner) {
                revert AdminRedeemOwnerUnAuthorized();
            }
            unchecked {
                ++i;
            }
        }

        _redeemImpl(owner, tokenIds, address(0));
    }

    function _redeemImpl(
        address tokenOwner, 
        uint256[] memory tokenIds, 
        address authAddress
    ) private {
        if (_redeemImplAddress == address(0)) {
            revert RedeemImplError();
        }
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _update(address(0), tokenIds[i], authAddress);
        }
        IRedeemer(_redeemImplAddress).redeemToken(tokenOwner, tokenIds);
        emit TokensRedeemed(tokenOwner, tokenIds);
    }

    function setRedeemImpl(address _redeemer) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if(_redeemer == address(0)) revert InvalidRedeemImplAddress();
        if(!_isContractAddress(_redeemer)) revert InvalidRedeemImplAddress();
        _redeemImplAddress = _redeemer;
    }

    function allowToRedeem(bool _isAllow) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (_isAllow && _redeemImplAddress == address(0)) {
            revert RedeemImplNotSet();
        }
        isAllowToRedeem = _isAllow;
    }

    function mint(address to, bytes32 uid) public onlyRole(MINTER_ROLE) {
        if ( _nextTokenId >= _maxTokenId) revert MaxTokenIdReached();
        _checkUID(uid);
        uint256 tokenId = _nextTokenId++;
        _safeMint(to, tokenId);
        
        emit TokensMinted(to, tokenId);
    }

    function mintWithSignature(MintRequest calldata _req, bytes calldata _signature) external payable {
        if ( _nextTokenId >= _maxTokenId) revert MaxTokenIdReached();
        address signer = _processRequest(_req, _signature);
        address receiver = _req.to;
        _collectPayment(_req.price);
        uint256 tokenId = _nextTokenId++;
        _safeMint(receiver, tokenId);

        emit TokensMintedWithSignature(signer, receiver, tokenId, _req);
    }

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        _requireOwned(tokenId);
        return string.concat(_collectionUri, Strings.toString(tokenId));
    }

    function pause() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _unpause();
    }

    function setCollectionURI(string calldata _newUri) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _collectionUri = _newUri;
        emit BatchMetadataUpdate(0, _nextTokenId - 1);
    }

    function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) onlyRole(DEFAULT_ADMIN_ROLE) {
        super.revokeRole(role, account);
        if (role == DEFAULT_ADMIN_ROLE && getRoleMemberCount(DEFAULT_ADMIN_ROLE) <= 0) {
            revert LastAdminRole();
        }
    }

    function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) {
        super.renounceRole(role, account);
        if (role == DEFAULT_ADMIN_ROLE && getRoleMemberCount(DEFAULT_ADMIN_ROLE) <= 0) {
            revert LastAdminRole();
        }
    }

    function setAllowToList(bool isAllow) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _isAllowToList = isAllow;
    }

    function approve(address to, uint256 tokenId) public override(ERC721, IERC721) whenAllowedToList {
        super.approve(to, tokenId);
    }

    function setApprovalForAll(address operator, bool approved) public override(ERC721, IERC721) whenAllowedToList {
        super.setApprovalForAll(operator, approved);
    }

    function primarySaleRecipient() public view returns (address) {
        return _primarySaleRecipient;
    }

    function setPrimarySaleRecipient(address _saleRecipient) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _setupPrimarySaleRecipient(_saleRecipient);
    }

    function _checkUID(bytes32 uid) internal {
        if (_minted[uid]) {
            revert UIDAlreadyMinted();
        }
        _minted[uid] = true;
    }

    function _checkAddress(address addr) internal view {
        if (addr == address(0)) revert InvalidRecipientAddress();
        if (_isContractAddress(addr)) revert InvalidRecipientAddress();
    }

    function _isContractAddress(address addr) internal view returns (bool) {
        uint size;
        assembly {
            size := extcodesize(addr)
        }
        return (size > 0);
    }

    // The following functions are overrides required by Solidity.

    function _update(address to, uint256 tokenId, address auth)
        internal
        override(ERC721Enumerable, ERC721Pausable)
        returns (address)
    {
        return super._update(to, tokenId, auth);
    }

    function _increaseBalance(address account, uint128 value)
        internal
        override(ERC721, ERC721Enumerable)
    {
        super._increaseBalance(account, value);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, AccessControlEnumerable, IERC165)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function _setupPrimarySaleRecipient(address _saleRecipient) internal {
        _checkAddress(_saleRecipient);
        _primarySaleRecipient = _saleRecipient;
        emit PrimarySaleRecipientUpdated(_saleRecipient);
    }

    function _encodeMintRequest(MintRequest calldata req) internal pure returns (bytes memory) {
        return abi.encode(
            SIGN_MINT_TYPEHASH,
            req.to,
            req.price,
            req.validityStartTimestamp,
            req.validityEndTimestamp,
            req.uid
        );
    }

    function _processRequest(MintRequest calldata req, bytes calldata signature) internal returns (address signer) {
        if (req.to == address(0) || req.to != msg.sender) {
            revert InvalidSignRequest("Invalid recipient");
        }

        signer = ECDSA.recover(_hashTypedDataV4(keccak256(_encodeMintRequest(req))), signature);

        if (!hasRole(MINTER_ROLE, signer)) {
            revert InvalidSignRequest("Invalid signer");
        }

        if (req.validityStartTimestamp > block.timestamp || req.validityEndTimestamp < block.timestamp) {
            revert InvalidSignRequest("Invalid time");
        }

        _checkUID(req.uid);

        return signer;
    }

    function _collectPayment(uint256 price) internal {
        if (price <= 0) {
            revert InvalidPaymentData("Invalid price");
        }

        if(msg.value != price) {
            revert InvalidPaymentData("msg value not match with total price");
        }

        address recipient = primarySaleRecipient();

        (bool success,) = recipient.call{value: price}("");
        if(!success) {
            revert FailedToCollectPayment();
        }
    }
}

File 2 of 31 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

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

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

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

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

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

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

        _revokeRole(role, callerConfirmation);
    }

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

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

File 3 of 31 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

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

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

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

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

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

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

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

File 4 of 31 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/AccessControlEnumerable.sol)

pragma solidity ^0.8.20;

import {IAccessControlEnumerable} from "./IAccessControlEnumerable.sol";
import {AccessControl} from "../AccessControl.sol";
import {EnumerableSet} from "../../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 role => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {AccessControl-_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override returns (bool) {
        bool granted = super._grantRole(role, account);
        if (granted) {
            _roleMembers[role].add(account);
        }
        return granted;
    }

    /**
     * @dev Overload {AccessControl-_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) {
        bool revoked = super._revokeRole(role, account);
        if (revoked) {
            _roleMembers[role].remove(account);
        }
        return revoked;
    }
}

File 5 of 31 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/IAccessControlEnumerable.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 6 of 31 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 7 of 31 : IERC4906.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC4906.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";
import {IERC721} from "./IERC721.sol";

/// @title EIP-721 Metadata Update Extension
interface IERC4906 is IERC165, IERC721 {
    /// @dev This event emits when the metadata of a token is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFT.
    event MetadataUpdate(uint256 _tokenId);

    /// @dev This event emits when the metadata of a range of tokens is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFTs.
    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}

File 8 of 31 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.20;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 9 of 31 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../token/ERC721/IERC721.sol";

File 10 of 31 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 11 of 31 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.20;

import {IERC721} from "./IERC721.sol";
import {IERC721Receiver} from "./IERC721Receiver.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual returns (uint256) {
        if (owner == address(0)) {
            revert ERC721InvalidOwner(address(0));
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return _requireOwned(tokenId);
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        _approve(to, tokenId, _msgSender());
    }

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

        return _getApproved(tokenId);
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

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

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

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

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

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

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

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

File 12 of 31 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../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 address zero.
     *
     * 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 13 of 31 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @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 14 of 31 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {ERC721} from "../ERC721.sol";
import {IERC721Enumerable} from "./IERC721Enumerable.sol";
import {IERC165} from "../../../utils/introspection/ERC165.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability
 * of all the token ids in the contract as well as all token ids owned by each account.
 *
 * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`,
 * interfere with enumerability and should not be used together with `ERC721Enumerable`.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens;
    mapping(uint256 tokenId => uint256) private _ownedTokensIndex;

    uint256[] private _allTokens;
    mapping(uint256 tokenId => uint256) private _allTokensIndex;

    /**
     * @dev An `owner`'s token query was out of bounds for `index`.
     *
     * NOTE: The owner being `address(0)` indicates a global out of bounds index.
     */
    error ERC721OutOfBoundsIndex(address owner, uint256 index);

    /**
     * @dev Batch mint is not allowed.
     */
    error ERC721EnumerableForbiddenBatchMint();

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) {
        if (index >= balanceOf(owner)) {
            revert ERC721OutOfBoundsIndex(owner, index);
        }
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual returns (uint256) {
        if (index >= totalSupply()) {
            revert ERC721OutOfBoundsIndex(address(0), index);
        }
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_update}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) {
        address previousOwner = super._update(to, tokenId, auth);

        if (previousOwner == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (previousOwner != to) {
            _removeTokenFromOwnerEnumeration(previousOwner, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (previousOwner != to) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }

        return previousOwner;
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = balanceOf(to) - 1;
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = balanceOf(from);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }

    /**
     * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch
     */
    function _increaseBalance(address account, uint128 amount) internal virtual override {
        if (amount > 0) {
            revert ERC721EnumerableForbiddenBatchMint();
        }
        super._increaseBalance(account, amount);
    }
}

File 15 of 31 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.20;

import {ERC721} from "../ERC721.sol";
import {Pausable} from "../../../utils/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * IMPORTANT: This contract does not include public pause and unpause functions. In
 * addition to inheriting this contract, you must define both functions, invoking the
 * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate
 * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will
 * make the contract pause mechanism of the contract unreachable, and thus unusable.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_update}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _update(
        address to,
        uint256 tokenId,
        address auth
    ) internal virtual override whenNotPaused returns (address) {
        return super._update(to, tokenId, auth);
    }
}

File 16 of 31 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../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 17 of 31 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../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 18 of 31 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 19 of 31 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

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

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

File 20 of 31 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 21 of 31 : ShortStrings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.20;

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

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using
     * {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 22 of 31 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

File 23 of 31 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @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) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        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);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 24 of 31 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.20;

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

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

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

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

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            uint8 v = uint8((uint256(vs) >> 255) + 27);
            return tryRecover(hash, v, r, s);
        }
    }

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

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

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

        return (signer, RecoverError.NoError, bytes32(0));
    }

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

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}

File 25 of 31 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.20;

import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
 * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
 * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
 * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {IERC-5267}.
     */
    function eip712Domain()
        public
        view
        virtual
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _EIP712Name(),
            _EIP712Version(),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }

    /**
     * @dev The name parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _name which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Name() internal view returns (string memory) {
        return _name.toStringWithFallback(_nameFallback);
    }

    /**
     * @dev The version parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _version which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Version() internal view returns (string memory) {
        return _version.toStringWithFallback(_versionFallback);
    }
}

File 26 of 31 : MessageHashUtils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}

File 27 of 31 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 28 of 31 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 29 of 31 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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.

            uint256 twos = denominator & (0 - denominator);
            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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 30 of 31 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 31 of 31 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position is the index of the value in the `values` array plus 1.
        // Position 0 is used to mean a value is not in the set.
        mapping(bytes32 value => uint256) _positions;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._positions[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We cache the value's position to prevent multiple reads from the same storage slot
        uint256 position = set._positions[value];

        if (position != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 valueIndex = position - 1;
            uint256 lastIndex = set._values.length - 1;

            if (valueIndex != lastIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the lastValue to the index where the value to delete is
                set._values[valueIndex] = lastValue;
                // Update the tracked position of the lastValue (that was just moved)
                set._positions[lastValue] = position;
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the tracked position for the deleted slot
            delete set._positions[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._positions[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"primarySaleRecipient_","type":"address"},{"internalType":"string","name":"collectionUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AdminRedeemOwnerUnAuthorized","type":"error"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedToCollectPayment","type":"error"},{"inputs":[],"name":"InvalidMaxTokenId","type":"error"},{"inputs":[{"internalType":"string","name":"errMsg","type":"string"}],"name":"InvalidPaymentData","type":"error"},{"inputs":[],"name":"InvalidRecipientAddress","type":"error"},{"inputs":[],"name":"InvalidRedeemImplAddress","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"errMsg","type":"string"}],"name":"InvalidSignRequest","type":"error"},{"inputs":[],"name":"LastAdminRole","type":"error"},{"inputs":[],"name":"MaxTokenIdReached","type":"error"},{"inputs":[],"name":"NotAllowedToList","type":"error"},{"inputs":[],"name":"RedeemImplError","type":"error"},{"inputs":[],"name":"RedeemImplNotSet","type":"error"},{"inputs":[],"name":"RedeemNotAllowed","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"UIDAlreadyMinted","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"}],"name":"PrimarySaleRecipientUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintedTo","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenIdMinted","type":"uint256"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"indexed":true,"internalType":"address","name":"mintedTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintedTokenId","type":"uint256"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"validityStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"validityEndTimestamp","type":"uint256"},{"internalType":"bytes32","name":"uid","type":"bytes32"}],"indexed":false,"internalType":"struct MysteryPod.MintRequest","name":"mintRequest","type":"tuple"}],"name":"TokensMintedWithSignature","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"redeemedTo","type":"address"},{"indexed":true,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"TokensRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REDEEMER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"adminRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllow","type":"bool"}],"name":"allowToRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowToRedeem","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32","name":"uid","type":"bytes32"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"validityStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"validityEndTimestamp","type":"uint256"},{"internalType":"bytes32","name":"uid","type":"bytes32"}],"internalType":"struct MysteryPod.MintRequest","name":"_req","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintWithSignature","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"primarySaleRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"bool","name":"isAllow","type":"bool"}],"name":"setAllowToList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newUri","type":"string"}],"name":"setCollectionURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_saleRecipient","type":"address"}],"name":"setPrimarySaleRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_redeemer","type":"address"}],"name":"setRedeemImpl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101606040526000601660006101000a81548160ff0219169083151502179055503480156200002d57600080fd5b5060405162006940380380620069408339818101604052810190620000539190620007c3565b846040518060400160405280600581526020017f312e302e30000000000000000000000000000000000000000000000000000000815250868681600090816200009d919062000af3565b508060019081620000af919062000af3565b505050620000c8600c836200020260201b90919060201c565b6101208181525050620000e6600d826200020260201b90919060201c565b6101408181525050818051906020012060e08181525050808051906020012061010081815250504660a08181525050620001256200025a60201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505050506000600e60006101000a81548160ff0219169083151502179055506001600f819055506200019a6000801b84620002b760201b60201c565b5081601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060129081620001ed919062000af3565b50610378601481905550505050505062000d8c565b6000602083511015620002285762000220836200030860201b60201c565b905062000254565b826200023a836200037560201b60201c565b60000190816200024b919062000af3565b5060ff60001b90505b92915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60e0516101005146306040516020016200029c95949392919062000c17565b60405160208183030381529060405280519060200120905090565b600080620002cc84846200037f60201b60201c565b90508015620002fe57620002fc83600b60008781526020019081526020016000206200048360201b90919060201c565b505b8091505092915050565b600080829050601f815111156200035857826040517f305a27a90000000000000000000000000000000000000000000000000000000081526004016200034f919062000cc6565b60405180910390fd5b805181620003669062000d1c565b60001c1760001b915050919050565b6000819050919050565b6000620003938383620004bb60201b60201c565b62000478576001600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004146200052660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506200047d565b600090505b92915050565b6000620004b3836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200052e60201b60201c565b905092915050565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000620005428383620005a860201b60201c565b6200059d578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620005a2565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200063482620005e9565b810181811067ffffffffffffffff82111715620006565762000655620005fa565b5b80604052505050565b60006200066b620005cb565b905062000679828262000629565b919050565b600067ffffffffffffffff8211156200069c576200069b620005fa565b5b620006a782620005e9565b9050602081019050919050565b60005b83811015620006d4578082015181840152602081019050620006b7565b60008484015250505050565b6000620006f7620006f1846200067e565b6200065f565b905082815260208101848484011115620007165762000715620005e4565b5b62000723848285620006b4565b509392505050565b600082601f830112620007435762000742620005df565b5b815162000755848260208601620006e0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200078b826200075e565b9050919050565b6200079d816200077e565b8114620007a957600080fd5b50565b600081519050620007bd8162000792565b92915050565b600080600080600060a08688031215620007e257620007e1620005d5565b5b600086015167ffffffffffffffff811115620008035762000802620005da565b5b62000811888289016200072b565b955050602086015167ffffffffffffffff811115620008355762000834620005da565b5b62000843888289016200072b565b94505060406200085688828901620007ac565b93505060606200086988828901620007ac565b925050608086015167ffffffffffffffff8111156200088d576200088c620005da565b5b6200089b888289016200072b565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008fb57607f821691505b602082108103620009115762000910620008b3565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200097b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200093c565b6200098786836200093c565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009d4620009ce620009c8846200099f565b620009a9565b6200099f565b9050919050565b6000819050919050565b620009f083620009b3565b62000a08620009ff82620009db565b84845462000949565b825550505050565b600090565b62000a1f62000a10565b62000a2c818484620009e5565b505050565b5b8181101562000a545762000a4860008262000a15565b60018101905062000a32565b5050565b601f82111562000aa35762000a6d8162000917565b62000a78846200092c565b8101602085101562000a88578190505b62000aa062000a97856200092c565b83018262000a31565b50505b505050565b600082821c905092915050565b600062000ac86000198460080262000aa8565b1980831691505092915050565b600062000ae3838362000ab5565b9150826002028217905092915050565b62000afe82620008a8565b67ffffffffffffffff81111562000b1a5762000b19620005fa565b5b62000b268254620008e2565b62000b3382828562000a58565b600060209050601f83116001811462000b6b576000841562000b56578287015190505b62000b62858262000ad5565b86555062000bd2565b601f19841662000b7b8662000917565b60005b8281101562000ba55784890151825560018201915060208501945060208101905062000b7e565b8683101562000bc5578489015162000bc1601f89168262000ab5565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b62000bef8162000bda565b82525050565b62000c00816200099f565b82525050565b62000c11816200077e565b82525050565b600060a08201905062000c2e600083018862000be4565b62000c3d602083018762000be4565b62000c4c604083018662000be4565b62000c5b606083018562000bf5565b62000c6a608083018462000c06565b9695505050505050565b600082825260208201905092915050565b600062000c9282620008a8565b62000c9e818562000c74565b935062000cb0818560208601620006b4565b62000cbb81620005e9565b840191505092915050565b6000602082019050818103600083015262000ce2818462000c85565b905092915050565b600081519050919050565b6000819050602082019050919050565b600062000d13825162000bda565b80915050919050565b600062000d298262000cea565b8262000d358462000cf5565b905062000d428162000d05565b9250602082101562000d855762000d807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff836020036008026200093c565b831692505b5050919050565b60805160a05160c05160e051610100516101205161014051615b5962000de760003960006123710152600061233601526000613fd401526000613fb30152600061352d01526000613583015260006135ac0152615b596000f3fe6080604052600436106102515760003560e01c80635c975abb1161013957806395d89b41116100b6578063ca15c8731161007a578063ca15c873146108c9578063d539139314610906578063d547741f14610931578063d8713db71461095a578063e985e9c514610983578063f9afb26a146109c057610251565b806395d89b41146107e4578063a217fddf1461080f578063a22cb4651461083a578063b88d4fde14610863578063c87b56dd1461088c57610251565b80637fa46ab4116100fd5780637fa46ab4146106f75780638456cb591461072257806384b0196e146107395780639010d07c1461076a57806391d14854146107a757610251565b80635c975abb1461060d5780636116fa47146106385780636352211e146106545780636f4f28371461069157806370a08231146106ba57610251565b80632cfd3005116101d257806336568abe1161019657806336568abe146105135780633f4ba83a1461053c57806342842e0e146105535780634d815bae1461057c5780634f60f38b146105a55780634f6ccce7146105d057610251565b80632cfd3005146104325780632db1e2ed1461045b5780632f2ff15d146104845780632f482655146104ad5780632f745c59146104d657610251565b806318160ddd1161021957806318160ddd1461034f578063202fcbbd1461037a57806323b872dd146103a3578063248a9ca3146103cc5780632639f4601461040957610251565b806301ffc9a71461025657806306fdde0314610293578063079fe40e146102be578063081812fc146102e9578063095ea7b314610326575b600080fd5b34801561026257600080fd5b5061027d600480360381019061027891906143c3565b6109e9565b60405161028a919061440b565b60405180910390f35b34801561029f57600080fd5b506102a86109fb565b6040516102b591906144b6565b60405180910390f35b3480156102ca57600080fd5b506102d3610a8d565b6040516102e09190614519565b60405180910390f35b3480156102f557600080fd5b50610310600480360381019061030b919061456a565b610ab7565b60405161031d9190614519565b60405180910390f35b34801561033257600080fd5b5061034d600480360381019061034891906145c3565b610ad3565b005b34801561035b57600080fd5b50610364610b27565b6040516103719190614612565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c919061456a565b610b34565b005b3480156103af57600080fd5b506103ca60048036038101906103c5919061462d565b610b88565b005b3480156103d857600080fd5b506103f360048036038101906103ee91906146b6565b610c8a565b60405161040091906146f2565b60405180910390f35b34801561041557600080fd5b50610430600480360381019061042b9190614772565b610caa565b005b34801561043e57600080fd5b50610459600480360381019061045491906147bf565b610d16565b005b34801561046757600080fd5b50610482600480360381019061047d919061482b565b610df5565b005b34801561049057600080fd5b506104ab60048036038101906104a69190614858565b610eb2565b005b3480156104b957600080fd5b506104d460048036038101906104cf919061482b565b610ed4565b005b3480156104e257600080fd5b506104fd60048036038101906104f891906145c3565b610eff565b60405161050a9190614612565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190614858565b610fa8565b005b34801561054857600080fd5b5061055161100b565b005b34801561055f57600080fd5b5061057a6004803603810190610575919061462d565b611023565b005b34801561058857600080fd5b506105a3600480360381019061059e91906148ee565b611043565b005b3480156105b157600080fd5b506105ba6111a6565b6040516105c7919061440b565b60405180910390f35b3480156105dc57600080fd5b506105f760048036038101906105f2919061456a565b6111b9565b6040516106049190614612565b60405180910390f35b34801561061957600080fd5b5061062261122f565b60405161062f919061440b565b60405180910390f35b610652600480360381019061064d91906149c8565b611246565b005b34801561066057600080fd5b5061067b6004803603810190610676919061456a565b61134a565b6040516106889190614519565b60405180910390f35b34801561069d57600080fd5b506106b860048036038101906106b39190614a28565b61135c565b005b3480156106c657600080fd5b506106e160048036038101906106dc9190614a28565b611376565b6040516106ee9190614612565b60405180910390f35b34801561070357600080fd5b5061070c611430565b60405161071991906146f2565b60405180910390f35b34801561072e57600080fd5b50610737611454565b005b34801561074557600080fd5b5061074e61146c565b6040516107619796959493929190614b4e565b60405180910390f35b34801561077657600080fd5b50610791600480360381019061078c9190614bd2565b611516565b60405161079e9190614519565b60405180910390f35b3480156107b357600080fd5b506107ce60048036038101906107c99190614858565b611545565b6040516107db919061440b565b60405180910390f35b3480156107f057600080fd5b506107f96115b0565b60405161080691906144b6565b60405180910390f35b34801561081b57600080fd5b50610824611642565b60405161083191906146f2565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190614c12565b611649565b005b34801561086f57600080fd5b5061088a60048036038101906108859190614d82565b61169d565b005b34801561089857600080fd5b506108b360048036038101906108ae919061456a565b6116ba565b6040516108c091906144b6565b60405180910390f35b3480156108d557600080fd5b506108f060048036038101906108eb91906146b6565b6116f8565b6040516108fd9190614612565b60405180910390f35b34801561091257600080fd5b5061091b61171c565b60405161092891906146f2565b60405180910390f35b34801561093d57600080fd5b5061095860048036038101906109539190614858565b611740565b005b34801561096657600080fd5b50610981600480360381019061097c9190614a28565b6117b1565b005b34801561098f57600080fd5b506109aa60048036038101906109a59190614e05565b6118a8565b6040516109b7919061440b565b60405180910390f35b3480156109cc57600080fd5b506109e760048036038101906109e29190614e45565b61193c565b005b60006109f4826119f0565b9050919050565b606060008054610a0a90614ec1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690614ec1565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b5050505050905090565b6000601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610ac282611a6a565b50610acc82611af2565b9050919050565b601660009054906101000a900460ff16610b19576040517f687d0d1b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b238282611b2f565b5050565b6000600880549050905090565b6000801b610b4181611b45565b601154821015610b7d576040517f49e6681600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816014819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610bfa5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610bf19190614519565b60405180910390fd5b6000610c0e8383610c09611b59565b611b61565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c84578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610c7b93929190614ef2565b60405180910390fd5b50505050565b6000600a6000838152602001908152602001600020600101549050919050565b6000801b610cb781611b45565b828260129182610cc89291906150e0565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c60006001601154610cfb91906151df565b604051610d0992919061524e565b60405180910390a1505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d4081611b45565b60145460115410610d7d576040517fbd6cd4b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d8682611b77565b600060116000815480929190610d9b90615277565b919050559050610dab8482611bfe565b808473ffffffffffffffffffffffffffffffffffffffff167f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427360405160405180910390a350505050565b6000801b610e0281611b45565b818015610e5d5750600073ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b15610e94576040517fc9e10cec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601060006101000a81548160ff0219169083151502179055505050565b610ebb82610c8a565b610ec481611b45565b610ece8383611c1c565b50505050565b6000801b610ee181611b45565b81601660006101000a81548160ff0219169083151502179055505050565b6000610f0a83611376565b8210610f4f5782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610f469291906152bf565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610fb28282611c62565b6000801b82148015610fd057506000610fcd6000801b6116f8565b11155b15611007576040517fc0b3105e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6000801b61101881611b45565b611020611cdd565b50565b61103e8383836040518060200160405280600081525061169d565b505050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc61106d81611b45565b601060009054906101000a900460ff166110b3576040517fedcb7b3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83839050811015611152578473ffffffffffffffffffffffffffffffffffffffff166110fa8585848181106110ee576110ed6152e8565b5b9050602002013561134a565b73ffffffffffffffffffffffffffffffffffffffff1614611147576040517fcce320e600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010190506110b6565b506111a084848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506000611d40565b50505050565b601060009054906101000a900460ff1681565b60006111c3610b27565b8210611209576000826040517fa57d13dc0000000000000000000000000000000000000000000000000000000081526004016112009291906152bf565b60405180910390fd5b6008828154811061121d5761121c6152e8565b5b90600052602060002001549050919050565b6000600e60009054906101000a900460ff16905090565b60145460115410611283576040517fbd6cd4b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611290848484611efc565b905060008460000160208101906112a79190614a28565b90506112b68560200135612101565b6000601160008154809291906112cb90615277565b9190505590506112db8282611bfe565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fcd5eb2645bfebad70d63fae09b861ff0251dd6d5ae2abd270d77664c7a8b76c5838960405161133a92919061540a565b60405180910390a3505050505050565b600061135582611a6a565b9050919050565b6000801b61136981611b45565b6113728261223a565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113e95760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016113e09190614519565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc81565b6000801b61146181611b45565b6114696122ca565b50565b60006060806000806000606061148061232d565b611488612368565b46306000801b600067ffffffffffffffff8111156114a9576114a8614c57565b5b6040519080825280602002602001820160405280156114d75781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b600061153d82600b60008681526020019081526020016000206123a390919063ffffffff16565b905092915050565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546115bf90614ec1565b80601f01602080910402602001604051908101604052809291908181526020018280546115eb90614ec1565b80156116385780601f1061160d57610100808354040283529160200191611638565b820191906000526020600020905b81548152906001019060200180831161161b57829003601f168201915b5050505050905090565b6000801b81565b601660009054906101000a900460ff1661168f576040517f687d0d1b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61169982826123bd565b5050565b6116a8848484610b88565b6116b4848484846123d3565b50505050565b60606116c582611a6a565b5060126116d18361258a565b6040516020016116e29291906154f2565b6040516020818303038152906040529050919050565b6000611715600b6000848152602001908152602001600020612658565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6000801b61174d81611b45565b611757838361266d565b6000801b83148015611775575060006117726000801b6116f8565b11155b156117ac576040517fc0b3105e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000801b6117be81611b45565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611824576040517f370ec39900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61182d8261268f565b611863576040517f370ec39900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119446126a2565b601060009054906101000a900460ff1661198a576040517fedcb7b3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119e4611995611b59565b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506119df611b59565b611d40565b6119ec6126e8565b5050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a635750611a62826126f2565b5b9050919050565b600080611a768361276c565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ae957826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611ae09190614612565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611b418282611b3c611b59565b6127a9565b5050565b611b5681611b51611b59565b6127bb565b50565b600033905090565b6000611b6e84848461280c565b90509392505050565b6015600082815260200190815260200160002060009054906101000a900460ff1615611bcf576040517feced38d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016015600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611c1882826040518060200160405280600081525061282a565b5050565b600080611c298484612846565b90508015611c5857611c5683600b600087815260200190815260200160002061293890919063ffffffff16565b505b8091505092915050565b611c6a611b59565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611cce576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd88282612968565b505050565b611ce56129ae565b6000600e60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d29611b59565b604051611d369190614519565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611dc8576040517f4965f27200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8251811015611e0e57611dfa6000848381518110611dec57611deb6152e8565b5b602002602001015184611b61565b508080611e0690615277565b915050611dcb565b50601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166307047d8084846040518363ffffffff1660e01b8152600401611e6c929190615516565b600060405180830381600087803b158015611e8657600080fd5b505af1158015611e9a573d6000803e3d6000fd5b5050505081604051611eac91906155d6565b60405180910390208373ffffffffffffffffffffffffffffffffffffffff167f68386d6ab91b5f8ee336f499afc5b1808c12daf4c1a14cc9807911010a44516460405160405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff16846000016020810190611f289190614a28565b73ffffffffffffffffffffffffffffffffffffffff161480611f8857503373ffffffffffffffffffffffffffffffffffffffff16846000016020810190611f6f9190614a28565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611fc8576040517ffade93a5000000000000000000000000000000000000000000000000000000008152600401611fbf90615639565b60405180910390fd5b61202d611fe3611fd7866129ee565b80519060200120612a63565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612a7d565b90506120597f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611545565b612098576040517ffade93a500000000000000000000000000000000000000000000000000000000815260040161208f906156a5565b60405180910390fd5b42846040013511806120ad5750428460600135105b156120ed576040517ffade93a50000000000000000000000000000000000000000000000000000000081526004016120e490615711565b60405180910390fd5b6120fa8460800135611b77565b9392505050565b60008111612144576040517fa015a50c00000000000000000000000000000000000000000000000000000000815260040161213b9061577d565b60405180910390fd5b803414612186576040517fa015a50c00000000000000000000000000000000000000000000000000000000815260040161217d9061580f565b60405180910390fd5b6000612190610a8d565b905060008173ffffffffffffffffffffffffffffffffffffffff16836040516121b890615860565b60006040518083038185875af1925050503d80600081146121f5576040519150601f19603f3d011682016040523d82523d6000602084013e6121fa565b606091505b5050905080612235576040517f8c5c290800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b61224381612aa9565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33360405160405180910390a250565b6122d2612b52565b6001600e60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612316611b59565b6040516123239190614519565b60405180910390a1565b6060612363600c7f0000000000000000000000000000000000000000000000000000000000000000612b9390919063ffffffff16565b905090565b606061239e600d7f0000000000000000000000000000000000000000000000000000000000000000612b9390919063ffffffff16565b905090565b60006123b28360000183612c43565b60001c905092915050565b6123cf6123c8611b59565b8383612c6e565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115612584578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02612417611b59565b8685856040518563ffffffff1660e01b815260040161243994939291906158ca565b6020604051808303816000875af192505050801561247557506040513d601f19601f82011682018060405250810190612472919061592b565b60015b6124f9573d80600081146124a5576040519150601f19603f3d011682016040523d82523d6000602084013e6124aa565b606091505b5060008151036124f157836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016124e89190614519565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461258257836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016125799190614519565b60405180910390fd5b505b50505050565b60606000600161259984612ddd565b01905060008167ffffffffffffffff8111156125b8576125b7614c57565b5b6040519080825280601f01601f1916602001820160405280156125ea5781602001600182028036833780820191505090505b509050600082602001820190505b60011561264d578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161264157612640615958565b5b049450600085036125f8575b819350505050919050565b600061266682600001612f30565b9050919050565b61267682610c8a565b61267f81611b45565b6126898383612968565b50505050565b600080823b905060008111915050919050565b6002600f54036126de576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600f81905550565b6001600f81905550565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612765575061276482612f41565b5b9050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6127b68383836001612fbb565b505050565b6127c58282611545565b6128085780826040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526004016127ff929190615987565b60405180910390fd5b5050565b6000612816612b52565b612821848484613180565b90509392505050565b612834838361329d565b61284160008484846123d3565b505050565b60006128528383611545565b61292d576001600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506128ca611b59565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612932565b600090505b92915050565b6000612960836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613396565b905092915050565b6000806129758484613406565b905080156129a4576129a283600b60008781526020019081526020016000206134f990919063ffffffff16565b505b8091505092915050565b6129b661122f565b6129ec576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60607f5801c30c6c200e10beb4e8fa9d1c108608f21a64d1aa0812c084cbbd807d2d09826000016020810190612a249190614a28565b8360200135846040013585606001358660800135604051602001612a4d969594939291906159b0565b6040516020818303038152906040529050919050565b6000612a76612a70613529565b836135e0565b9050919050565b600080600080612a8d8686613621565b925092509250612a9d828261367d565b82935050505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612b0f576040517f44d99fea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b188161268f565b15612b4f576040517f44d99fea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b612b5a61122f565b15612b91576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b606060ff60001b8314612bb057612ba9836137e1565b9050612c3d565b818054612bbc90614ec1565b80601f0160208091040260200160405190810160405280929190818152602001828054612be890614ec1565b8015612c355780601f10612c0a57610100808354040283529160200191612c35565b820191906000526020600020905b815481529060010190602001808311612c1857829003601f168201915b505050505090505b92915050565b6000826000018281548110612c5b57612c5a6152e8565b5b9060005260206000200154905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cdf57816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401612cd69190614519565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612dd0919061440b565b60405180910390a3505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612e3b577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612e3157612e30615958565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612e78576d04ee2d6d415b85acef81000000008381612e6e57612e6d615958565b5b0492506020810190505b662386f26fc100008310612ea757662386f26fc100008381612e9d57612e9c615958565b5b0492506010810190505b6305f5e1008310612ed0576305f5e1008381612ec657612ec5615958565b5b0492506008810190505b6127108310612ef5576127108381612eeb57612eea615958565b5b0492506004810190505b60648310612f185760648381612f0e57612f0d615958565b5b0492506002810190505b600a8310612f27576001810190505b80915050919050565b600081600001805490509050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612fb45750612fb382613855565b5b9050919050565b8080612ff45750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561312857600061300484611a6a565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561306f57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015613082575061308081846118a8565b155b156130c457826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016130bb9190614519565b60405180910390fd5b811561312657838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b60008061318e858585613937565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131d2576131cd84613b51565b613211565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146132105761320f8185613b9a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036132535761324e84613cfb565b613292565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613291576132908585613dcc565b5b5b809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361330f5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016133069190614519565b60405180910390fd5b600061331d83836000611b61565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146133915760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016133889190614519565b60405180910390fd5b505050565b60006133a28383613e57565b6133fb578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613400565b600090505b92915050565b60006134128383611545565b156134ee576000600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061348b611b59565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506134f3565b600090505b92915050565b6000613521836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613e7a565b905092915050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156135a557507f000000000000000000000000000000000000000000000000000000000000000046145b156135d2577f000000000000000000000000000000000000000000000000000000000000000090506135dd565b6135da613f8e565b90505b90565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b600080600060418451036136665760008060006020870151925060408701519150606087015160001a905061365888828585614024565b955095509550505050613676565b60006002855160001b9250925092505b9250925092565b6000600381111561369157613690615a11565b5b8260038111156136a4576136a3615a11565b5b03156137dd57600160038111156136be576136bd615a11565b5b8260038111156136d1576136d0615a11565b5b03613708576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600381111561371c5761371b615a11565b5b82600381111561372f5761372e615a11565b5b03613774578060001c6040517ffce698f700000000000000000000000000000000000000000000000000000000815260040161376b9190614612565b60405180910390fd5b60038081111561378757613786615a11565b5b82600381111561379a57613799615a11565b5b036137dc57806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016137d391906146f2565b60405180910390fd5b5b5050565b606060006137ee83614118565b90506000602067ffffffffffffffff81111561380d5761380c614c57565b5b6040519080825280601f01601f19166020018201604052801561383f5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061392057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613930575061392f82614168565b5b9050919050565b6000806139438461276c565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613985576139848184866141d2565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613a16576139c7600085600080612fbb565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614613a99576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000613ba583611376565b9050600060076000848152602001908152602001600020549050818114613c8a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613d0f91906151df565b9050600060096000848152602001908152602001600020549050600060088381548110613d3f57613d3e6152e8565b5b906000526020600020015490508060088381548110613d6157613d606152e8565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613db057613daf615a40565b5b6001900381819060005260206000200160009055905550505050565b60006001613dd984611376565b613de391906151df565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114613f82576000600182613eac91906151df565b9050600060018660000180549050613ec491906151df565b9050808214613f33576000866000018281548110613ee557613ee46152e8565b5b9060005260206000200154905080876000018481548110613f0957613f086152e8565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613f4757613f46615a40565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050613f88565b60009150505b92915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000004630604051602001614009959493929190615a6f565b60405160208183030381529060405280519060200120905090565b60008060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08460001c111561406457600060038592509250925061410e565b6000600188888888604051600081526020016040526040516140899493929190615ade565b6020604051602081039080840390855afa1580156140ab573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036140ff57600060016000801b9350935093505061410e565b8060008060001b935093509350505b9450945094915050565b60008060ff8360001c169050601f81111561415f576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6141dd838383614296565b61429157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361425257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016142499190614612565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016142889291906152bf565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561434e57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061430f575061430e84846118a8565b5b8061434d57508273ffffffffffffffffffffffffffffffffffffffff1661433583611af2565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6143a08161436b565b81146143ab57600080fd5b50565b6000813590506143bd81614397565b92915050565b6000602082840312156143d9576143d8614361565b5b60006143e7848285016143ae565b91505092915050565b60008115159050919050565b614405816143f0565b82525050565b600060208201905061442060008301846143fc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614460578082015181840152602081019050614445565b60008484015250505050565b6000601f19601f8301169050919050565b600061448882614426565b6144928185614431565b93506144a2818560208601614442565b6144ab8161446c565b840191505092915050565b600060208201905081810360008301526144d0818461447d565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614503826144d8565b9050919050565b614513816144f8565b82525050565b600060208201905061452e600083018461450a565b92915050565b6000819050919050565b61454781614534565b811461455257600080fd5b50565b6000813590506145648161453e565b92915050565b6000602082840312156145805761457f614361565b5b600061458e84828501614555565b91505092915050565b6145a0816144f8565b81146145ab57600080fd5b50565b6000813590506145bd81614597565b92915050565b600080604083850312156145da576145d9614361565b5b60006145e8858286016145ae565b92505060206145f985828601614555565b9150509250929050565b61460c81614534565b82525050565b60006020820190506146276000830184614603565b92915050565b60008060006060848603121561464657614645614361565b5b6000614654868287016145ae565b9350506020614665868287016145ae565b925050604061467686828701614555565b9150509250925092565b6000819050919050565b61469381614680565b811461469e57600080fd5b50565b6000813590506146b08161468a565b92915050565b6000602082840312156146cc576146cb614361565b5b60006146da848285016146a1565b91505092915050565b6146ec81614680565b82525050565b600060208201905061470760008301846146e3565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147325761473161470d565b5b8235905067ffffffffffffffff81111561474f5761474e614712565b5b60208301915083600182028301111561476b5761476a614717565b5b9250929050565b6000806020838503121561478957614788614361565b5b600083013567ffffffffffffffff8111156147a7576147a6614366565b5b6147b38582860161471c565b92509250509250929050565b600080604083850312156147d6576147d5614361565b5b60006147e4858286016145ae565b92505060206147f5858286016146a1565b9150509250929050565b614808816143f0565b811461481357600080fd5b50565b600081359050614825816147ff565b92915050565b60006020828403121561484157614840614361565b5b600061484f84828501614816565b91505092915050565b6000806040838503121561486f5761486e614361565b5b600061487d858286016146a1565b925050602061488e858286016145ae565b9150509250929050565b60008083601f8401126148ae576148ad61470d565b5b8235905067ffffffffffffffff8111156148cb576148ca614712565b5b6020830191508360208202830111156148e7576148e6614717565b5b9250929050565b60008060006040848603121561490757614906614361565b5b6000614915868287016145ae565b935050602084013567ffffffffffffffff81111561493657614935614366565b5b61494286828701614898565b92509250509250925092565b600080fd5b600060a082840312156149695761496861494e565b5b81905092915050565b60008083601f8401126149885761498761470d565b5b8235905067ffffffffffffffff8111156149a5576149a4614712565b5b6020830191508360018202830111156149c1576149c0614717565b5b9250929050565b600080600060c084860312156149e1576149e0614361565b5b60006149ef86828701614953565b93505060a084013567ffffffffffffffff811115614a1057614a0f614366565b5b614a1c86828701614972565b92509250509250925092565b600060208284031215614a3e57614a3d614361565b5b6000614a4c848285016145ae565b91505092915050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b614a8a81614a55565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614ac581614534565b82525050565b6000614ad78383614abc565b60208301905092915050565b6000602082019050919050565b6000614afb82614a90565b614b058185614a9b565b9350614b1083614aac565b8060005b83811015614b41578151614b288882614acb565b9750614b3383614ae3565b925050600181019050614b14565b5085935050505092915050565b600060e082019050614b63600083018a614a81565b8181036020830152614b75818961447d565b90508181036040830152614b89818861447d565b9050614b986060830187614603565b614ba5608083018661450a565b614bb260a08301856146e3565b81810360c0830152614bc48184614af0565b905098975050505050505050565b60008060408385031215614be957614be8614361565b5b6000614bf7858286016146a1565b9250506020614c0885828601614555565b9150509250929050565b60008060408385031215614c2957614c28614361565b5b6000614c37858286016145ae565b9250506020614c4885828601614816565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614c8f8261446c565b810181811067ffffffffffffffff82111715614cae57614cad614c57565b5b80604052505050565b6000614cc1614357565b9050614ccd8282614c86565b919050565b600067ffffffffffffffff821115614ced57614cec614c57565b5b614cf68261446c565b9050602081019050919050565b82818337600083830152505050565b6000614d25614d2084614cd2565b614cb7565b905082815260208101848484011115614d4157614d40614c52565b5b614d4c848285614d03565b509392505050565b600082601f830112614d6957614d6861470d565b5b8135614d79848260208601614d12565b91505092915050565b60008060008060808587031215614d9c57614d9b614361565b5b6000614daa878288016145ae565b9450506020614dbb878288016145ae565b9350506040614dcc87828801614555565b925050606085013567ffffffffffffffff811115614ded57614dec614366565b5b614df987828801614d54565b91505092959194509250565b60008060408385031215614e1c57614e1b614361565b5b6000614e2a858286016145ae565b9250506020614e3b858286016145ae565b9150509250929050565b60008060208385031215614e5c57614e5b614361565b5b600083013567ffffffffffffffff811115614e7a57614e79614366565b5b614e8685828601614898565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614ed957607f821691505b602082108103614eec57614eeb614e92565b5b50919050565b6000606082019050614f07600083018661450a565b614f146020830185614603565b614f21604083018461450a565b949350505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614f967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614f59565b614fa08683614f59565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614fdd614fd8614fd384614534565b614fb8565b614534565b9050919050565b6000819050919050565b614ff783614fc2565b61500b61500382614fe4565b848454614f66565b825550505050565b600090565b615020615013565b61502b818484614fee565b505050565b5b8181101561504f57615044600082615018565b600181019050615031565b5050565b601f8211156150945761506581614f34565b61506e84614f49565b8101602085101561507d578190505b61509161508985614f49565b830182615030565b50505b505050565b600082821c905092915050565b60006150b760001984600802615099565b1980831691505092915050565b60006150d083836150a6565b9150826002028217905092915050565b6150ea8383614f29565b67ffffffffffffffff81111561510357615102614c57565b5b61510d8254614ec1565b615118828285615053565b6000601f8311600181146151475760008415615135578287013590505b61513f85826150c4565b8655506151a7565b601f19841661515586614f34565b60005b8281101561517d57848901358255600182019150602085019450602081019050615158565b8683101561519a5784890135615196601f8916826150a6565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006151ea82614534565b91506151f583614534565b925082820390508181111561520d5761520c6151b0565b5b92915050565b6000819050919050565b600061523861523361522e84615213565b614fb8565b614534565b9050919050565b6152488161521d565b82525050565b6000604082019050615263600083018561523f565b6152706020830184614603565b9392505050565b600061528282614534565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036152b4576152b36151b0565b5b600182019050919050565b60006040820190506152d4600083018561450a565b6152e16020830184614603565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061532660208401846145ae565b905092915050565b615337816144f8565b82525050565b600061534c6020840184614555565b905092915050565b600061536360208401846146a1565b905092915050565b61537481614680565b82525050565b60a0820161538b6000830183615317565b615398600085018261532e565b506153a6602083018361533d565b6153b36020850182614abc565b506153c1604083018361533d565b6153ce6040850182614abc565b506153dc606083018361533d565b6153e96060850182614abc565b506153f76080830183615354565b615404608085018261536b565b50505050565b600060c08201905061541f6000830185614603565b61542c602083018461537a565b9392505050565b600081905092915050565b6000815461544b81614ec1565b6154558186615433565b945060018216600081146154705760018114615485576154b8565b60ff19831686528115158202860193506154b8565b61548e85614f34565b60005b838110156154b057815481890152600182019150602081019050615491565b838801955050505b50505092915050565b60006154cc82614426565b6154d68185615433565b93506154e6818560208601614442565b80840191505092915050565b60006154fe828561543e565b915061550a82846154c1565b91508190509392505050565b600060408201905061552b600083018561450a565b818103602083015261553d8184614af0565b90509392505050565b600081905092915050565b61555a81614534565b82525050565b600061556c8383615551565b60208301905092915050565b600061558382614a90565b61558d8185615546565b935061559883614aac565b8060005b838110156155c95781516155b08882615560565b97506155bb83614ae3565b92505060018101905061559c565b5085935050505092915050565b60006155e28284615578565b915081905092915050565b7f496e76616c696420726563697069656e74000000000000000000000000000000600082015250565b6000615623601183614431565b915061562e826155ed565b602082019050919050565b6000602082019050818103600083015261565281615616565b9050919050565b7f496e76616c6964207369676e6572000000000000000000000000000000000000600082015250565b600061568f600e83614431565b915061569a82615659565b602082019050919050565b600060208201905081810360008301526156be81615682565b9050919050565b7f496e76616c69642074696d650000000000000000000000000000000000000000600082015250565b60006156fb600c83614431565b9150615706826156c5565b602082019050919050565b6000602082019050818103600083015261572a816156ee565b9050919050565b7f496e76616c696420707269636500000000000000000000000000000000000000600082015250565b6000615767600d83614431565b915061577282615731565b602082019050919050565b600060208201905081810360008301526157968161575a565b9050919050565b7f6d73672076616c7565206e6f74206d61746368207769746820746f74616c207060008201527f7269636500000000000000000000000000000000000000000000000000000000602082015250565b60006157f9602483614431565b91506158048261579d565b604082019050919050565b60006020820190508181036000830152615828816157ec565b9050919050565b600081905092915050565b50565b600061584a60008361582f565b91506158558261583a565b600082019050919050565b600061586b8261583d565b9150819050919050565b600081519050919050565b600082825260208201905092915050565b600061589c82615875565b6158a68185615880565b93506158b6818560208601614442565b6158bf8161446c565b840191505092915050565b60006080820190506158df600083018761450a565b6158ec602083018661450a565b6158f96040830185614603565b818103606083015261590b8184615891565b905095945050505050565b60008151905061592581614397565b92915050565b60006020828403121561594157615940614361565b5b600061594f84828501615916565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600060408201905061599c600083018561450a565b6159a960208301846146e3565b9392505050565b600060c0820190506159c560008301896146e3565b6159d2602083018861450a565b6159df6040830187614603565b6159ec6060830186614603565b6159f96080830185614603565b615a0660a08301846146e3565b979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060a082019050615a8460008301886146e3565b615a9160208301876146e3565b615a9e60408301866146e3565b615aab6060830185614603565b615ab8608083018461450a565b9695505050505050565b600060ff82169050919050565b615ad881615ac2565b82525050565b6000608082019050615af360008301876146e3565b615b006020830186615acf565b615b0d60408301856146e3565b615b1a60608301846146e3565b9594505050505056fea264697066735822122025acb133ed3a20b246882aa14610f830908333af25ba86a7f89a0b1be0488dfd64736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000d46d5d0f4e39da031a0ca6137d2a528aab32db860000000000000000000000004ebbf1ea0b218ac7fc28ee2b9c057994e341db880000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000b4d79737465727920506f64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4d595354455259504f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d657a533462564d5355717871434346556371444d6f4b4d33756b6877656a623463486f52524a794d6b5455622f00000000000000000000

Deployed Bytecode

0x6080604052600436106102515760003560e01c80635c975abb1161013957806395d89b41116100b6578063ca15c8731161007a578063ca15c873146108c9578063d539139314610906578063d547741f14610931578063d8713db71461095a578063e985e9c514610983578063f9afb26a146109c057610251565b806395d89b41146107e4578063a217fddf1461080f578063a22cb4651461083a578063b88d4fde14610863578063c87b56dd1461088c57610251565b80637fa46ab4116100fd5780637fa46ab4146106f75780638456cb591461072257806384b0196e146107395780639010d07c1461076a57806391d14854146107a757610251565b80635c975abb1461060d5780636116fa47146106385780636352211e146106545780636f4f28371461069157806370a08231146106ba57610251565b80632cfd3005116101d257806336568abe1161019657806336568abe146105135780633f4ba83a1461053c57806342842e0e146105535780634d815bae1461057c5780634f60f38b146105a55780634f6ccce7146105d057610251565b80632cfd3005146104325780632db1e2ed1461045b5780632f2ff15d146104845780632f482655146104ad5780632f745c59146104d657610251565b806318160ddd1161021957806318160ddd1461034f578063202fcbbd1461037a57806323b872dd146103a3578063248a9ca3146103cc5780632639f4601461040957610251565b806301ffc9a71461025657806306fdde0314610293578063079fe40e146102be578063081812fc146102e9578063095ea7b314610326575b600080fd5b34801561026257600080fd5b5061027d600480360381019061027891906143c3565b6109e9565b60405161028a919061440b565b60405180910390f35b34801561029f57600080fd5b506102a86109fb565b6040516102b591906144b6565b60405180910390f35b3480156102ca57600080fd5b506102d3610a8d565b6040516102e09190614519565b60405180910390f35b3480156102f557600080fd5b50610310600480360381019061030b919061456a565b610ab7565b60405161031d9190614519565b60405180910390f35b34801561033257600080fd5b5061034d600480360381019061034891906145c3565b610ad3565b005b34801561035b57600080fd5b50610364610b27565b6040516103719190614612565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c919061456a565b610b34565b005b3480156103af57600080fd5b506103ca60048036038101906103c5919061462d565b610b88565b005b3480156103d857600080fd5b506103f360048036038101906103ee91906146b6565b610c8a565b60405161040091906146f2565b60405180910390f35b34801561041557600080fd5b50610430600480360381019061042b9190614772565b610caa565b005b34801561043e57600080fd5b50610459600480360381019061045491906147bf565b610d16565b005b34801561046757600080fd5b50610482600480360381019061047d919061482b565b610df5565b005b34801561049057600080fd5b506104ab60048036038101906104a69190614858565b610eb2565b005b3480156104b957600080fd5b506104d460048036038101906104cf919061482b565b610ed4565b005b3480156104e257600080fd5b506104fd60048036038101906104f891906145c3565b610eff565b60405161050a9190614612565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190614858565b610fa8565b005b34801561054857600080fd5b5061055161100b565b005b34801561055f57600080fd5b5061057a6004803603810190610575919061462d565b611023565b005b34801561058857600080fd5b506105a3600480360381019061059e91906148ee565b611043565b005b3480156105b157600080fd5b506105ba6111a6565b6040516105c7919061440b565b60405180910390f35b3480156105dc57600080fd5b506105f760048036038101906105f2919061456a565b6111b9565b6040516106049190614612565b60405180910390f35b34801561061957600080fd5b5061062261122f565b60405161062f919061440b565b60405180910390f35b610652600480360381019061064d91906149c8565b611246565b005b34801561066057600080fd5b5061067b6004803603810190610676919061456a565b61134a565b6040516106889190614519565b60405180910390f35b34801561069d57600080fd5b506106b860048036038101906106b39190614a28565b61135c565b005b3480156106c657600080fd5b506106e160048036038101906106dc9190614a28565b611376565b6040516106ee9190614612565b60405180910390f35b34801561070357600080fd5b5061070c611430565b60405161071991906146f2565b60405180910390f35b34801561072e57600080fd5b50610737611454565b005b34801561074557600080fd5b5061074e61146c565b6040516107619796959493929190614b4e565b60405180910390f35b34801561077657600080fd5b50610791600480360381019061078c9190614bd2565b611516565b60405161079e9190614519565b60405180910390f35b3480156107b357600080fd5b506107ce60048036038101906107c99190614858565b611545565b6040516107db919061440b565b60405180910390f35b3480156107f057600080fd5b506107f96115b0565b60405161080691906144b6565b60405180910390f35b34801561081b57600080fd5b50610824611642565b60405161083191906146f2565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190614c12565b611649565b005b34801561086f57600080fd5b5061088a60048036038101906108859190614d82565b61169d565b005b34801561089857600080fd5b506108b360048036038101906108ae919061456a565b6116ba565b6040516108c091906144b6565b60405180910390f35b3480156108d557600080fd5b506108f060048036038101906108eb91906146b6565b6116f8565b6040516108fd9190614612565b60405180910390f35b34801561091257600080fd5b5061091b61171c565b60405161092891906146f2565b60405180910390f35b34801561093d57600080fd5b5061095860048036038101906109539190614858565b611740565b005b34801561096657600080fd5b50610981600480360381019061097c9190614a28565b6117b1565b005b34801561098f57600080fd5b506109aa60048036038101906109a59190614e05565b6118a8565b6040516109b7919061440b565b60405180910390f35b3480156109cc57600080fd5b506109e760048036038101906109e29190614e45565b61193c565b005b60006109f4826119f0565b9050919050565b606060008054610a0a90614ec1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690614ec1565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b5050505050905090565b6000601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610ac282611a6a565b50610acc82611af2565b9050919050565b601660009054906101000a900460ff16610b19576040517f687d0d1b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b238282611b2f565b5050565b6000600880549050905090565b6000801b610b4181611b45565b601154821015610b7d576040517f49e6681600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816014819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610bfa5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610bf19190614519565b60405180910390fd5b6000610c0e8383610c09611b59565b611b61565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c84578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610c7b93929190614ef2565b60405180910390fd5b50505050565b6000600a6000838152602001908152602001600020600101549050919050565b6000801b610cb781611b45565b828260129182610cc89291906150e0565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c60006001601154610cfb91906151df565b604051610d0992919061524e565b60405180910390a1505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d4081611b45565b60145460115410610d7d576040517fbd6cd4b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d8682611b77565b600060116000815480929190610d9b90615277565b919050559050610dab8482611bfe565b808473ffffffffffffffffffffffffffffffffffffffff167f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427360405160405180910390a350505050565b6000801b610e0281611b45565b818015610e5d5750600073ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b15610e94576040517fc9e10cec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601060006101000a81548160ff0219169083151502179055505050565b610ebb82610c8a565b610ec481611b45565b610ece8383611c1c565b50505050565b6000801b610ee181611b45565b81601660006101000a81548160ff0219169083151502179055505050565b6000610f0a83611376565b8210610f4f5782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610f469291906152bf565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610fb28282611c62565b6000801b82148015610fd057506000610fcd6000801b6116f8565b11155b15611007576040517fc0b3105e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6000801b61101881611b45565b611020611cdd565b50565b61103e8383836040518060200160405280600081525061169d565b505050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc61106d81611b45565b601060009054906101000a900460ff166110b3576040517fedcb7b3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b83839050811015611152578473ffffffffffffffffffffffffffffffffffffffff166110fa8585848181106110ee576110ed6152e8565b5b9050602002013561134a565b73ffffffffffffffffffffffffffffffffffffffff1614611147576040517fcce320e600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060010190506110b6565b506111a084848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506000611d40565b50505050565b601060009054906101000a900460ff1681565b60006111c3610b27565b8210611209576000826040517fa57d13dc0000000000000000000000000000000000000000000000000000000081526004016112009291906152bf565b60405180910390fd5b6008828154811061121d5761121c6152e8565b5b90600052602060002001549050919050565b6000600e60009054906101000a900460ff16905090565b60145460115410611283576040517fbd6cd4b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611290848484611efc565b905060008460000160208101906112a79190614a28565b90506112b68560200135612101565b6000601160008154809291906112cb90615277565b9190505590506112db8282611bfe565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fcd5eb2645bfebad70d63fae09b861ff0251dd6d5ae2abd270d77664c7a8b76c5838960405161133a92919061540a565b60405180910390a3505050505050565b600061135582611a6a565b9050919050565b6000801b61136981611b45565b6113728261223a565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113e95760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016113e09190614519565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc81565b6000801b61146181611b45565b6114696122ca565b50565b60006060806000806000606061148061232d565b611488612368565b46306000801b600067ffffffffffffffff8111156114a9576114a8614c57565b5b6040519080825280602002602001820160405280156114d75781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b600061153d82600b60008681526020019081526020016000206123a390919063ffffffff16565b905092915050565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546115bf90614ec1565b80601f01602080910402602001604051908101604052809291908181526020018280546115eb90614ec1565b80156116385780601f1061160d57610100808354040283529160200191611638565b820191906000526020600020905b81548152906001019060200180831161161b57829003601f168201915b5050505050905090565b6000801b81565b601660009054906101000a900460ff1661168f576040517f687d0d1b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61169982826123bd565b5050565b6116a8848484610b88565b6116b4848484846123d3565b50505050565b60606116c582611a6a565b5060126116d18361258a565b6040516020016116e29291906154f2565b6040516020818303038152906040529050919050565b6000611715600b6000848152602001908152602001600020612658565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6000801b61174d81611b45565b611757838361266d565b6000801b83148015611775575060006117726000801b6116f8565b11155b156117ac576040517fc0b3105e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b6000801b6117be81611b45565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611824576040517f370ec39900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61182d8261268f565b611863576040517f370ec39900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119446126a2565b601060009054906101000a900460ff1661198a576040517fedcb7b3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119e4611995611b59565b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506119df611b59565b611d40565b6119ec6126e8565b5050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a635750611a62826126f2565b5b9050919050565b600080611a768361276c565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ae957826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611ae09190614612565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611b418282611b3c611b59565b6127a9565b5050565b611b5681611b51611b59565b6127bb565b50565b600033905090565b6000611b6e84848461280c565b90509392505050565b6015600082815260200190815260200160002060009054906101000a900460ff1615611bcf576040517feced38d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016015600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611c1882826040518060200160405280600081525061282a565b5050565b600080611c298484612846565b90508015611c5857611c5683600b600087815260200190815260200160002061293890919063ffffffff16565b505b8091505092915050565b611c6a611b59565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611cce576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd88282612968565b505050565b611ce56129ae565b6000600e60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d29611b59565b604051611d369190614519565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff16601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611dc8576040517f4965f27200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8251811015611e0e57611dfa6000848381518110611dec57611deb6152e8565b5b602002602001015184611b61565b508080611e0690615277565b915050611dcb565b50601060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166307047d8084846040518363ffffffff1660e01b8152600401611e6c929190615516565b600060405180830381600087803b158015611e8657600080fd5b505af1158015611e9a573d6000803e3d6000fd5b5050505081604051611eac91906155d6565b60405180910390208373ffffffffffffffffffffffffffffffffffffffff167f68386d6ab91b5f8ee336f499afc5b1808c12daf4c1a14cc9807911010a44516460405160405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff16846000016020810190611f289190614a28565b73ffffffffffffffffffffffffffffffffffffffff161480611f8857503373ffffffffffffffffffffffffffffffffffffffff16846000016020810190611f6f9190614a28565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611fc8576040517ffade93a5000000000000000000000000000000000000000000000000000000008152600401611fbf90615639565b60405180910390fd5b61202d611fe3611fd7866129ee565b80519060200120612a63565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612a7d565b90506120597f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611545565b612098576040517ffade93a500000000000000000000000000000000000000000000000000000000815260040161208f906156a5565b60405180910390fd5b42846040013511806120ad5750428460600135105b156120ed576040517ffade93a50000000000000000000000000000000000000000000000000000000081526004016120e490615711565b60405180910390fd5b6120fa8460800135611b77565b9392505050565b60008111612144576040517fa015a50c00000000000000000000000000000000000000000000000000000000815260040161213b9061577d565b60405180910390fd5b803414612186576040517fa015a50c00000000000000000000000000000000000000000000000000000000815260040161217d9061580f565b60405180910390fd5b6000612190610a8d565b905060008173ffffffffffffffffffffffffffffffffffffffff16836040516121b890615860565b60006040518083038185875af1925050503d80600081146121f5576040519150601f19603f3d011682016040523d82523d6000602084013e6121fa565b606091505b5050905080612235576040517f8c5c290800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b61224381612aa9565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33360405160405180910390a250565b6122d2612b52565b6001600e60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612316611b59565b6040516123239190614519565b60405180910390a1565b6060612363600c7f4d79737465727920506f6400000000000000000000000000000000000000000b612b9390919063ffffffff16565b905090565b606061239e600d7f312e302e30000000000000000000000000000000000000000000000000000005612b9390919063ffffffff16565b905090565b60006123b28360000183612c43565b60001c905092915050565b6123cf6123c8611b59565b8383612c6e565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115612584578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02612417611b59565b8685856040518563ffffffff1660e01b815260040161243994939291906158ca565b6020604051808303816000875af192505050801561247557506040513d601f19601f82011682018060405250810190612472919061592b565b60015b6124f9573d80600081146124a5576040519150601f19603f3d011682016040523d82523d6000602084013e6124aa565b606091505b5060008151036124f157836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016124e89190614519565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461258257836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016125799190614519565b60405180910390fd5b505b50505050565b60606000600161259984612ddd565b01905060008167ffffffffffffffff8111156125b8576125b7614c57565b5b6040519080825280601f01601f1916602001820160405280156125ea5781602001600182028036833780820191505090505b509050600082602001820190505b60011561264d578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161264157612640615958565b5b049450600085036125f8575b819350505050919050565b600061266682600001612f30565b9050919050565b61267682610c8a565b61267f81611b45565b6126898383612968565b50505050565b600080823b905060008111915050919050565b6002600f54036126de576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600f81905550565b6001600f81905550565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612765575061276482612f41565b5b9050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6127b68383836001612fbb565b505050565b6127c58282611545565b6128085780826040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526004016127ff929190615987565b60405180910390fd5b5050565b6000612816612b52565b612821848484613180565b90509392505050565b612834838361329d565b61284160008484846123d3565b505050565b60006128528383611545565b61292d576001600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506128ca611b59565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050612932565b600090505b92915050565b6000612960836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613396565b905092915050565b6000806129758484613406565b905080156129a4576129a283600b60008781526020019081526020016000206134f990919063ffffffff16565b505b8091505092915050565b6129b661122f565b6129ec576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60607f5801c30c6c200e10beb4e8fa9d1c108608f21a64d1aa0812c084cbbd807d2d09826000016020810190612a249190614a28565b8360200135846040013585606001358660800135604051602001612a4d969594939291906159b0565b6040516020818303038152906040529050919050565b6000612a76612a70613529565b836135e0565b9050919050565b600080600080612a8d8686613621565b925092509250612a9d828261367d565b82935050505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612b0f576040517f44d99fea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b188161268f565b15612b4f576040517f44d99fea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b612b5a61122f565b15612b91576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b606060ff60001b8314612bb057612ba9836137e1565b9050612c3d565b818054612bbc90614ec1565b80601f0160208091040260200160405190810160405280929190818152602001828054612be890614ec1565b8015612c355780601f10612c0a57610100808354040283529160200191612c35565b820191906000526020600020905b815481529060010190602001808311612c1857829003601f168201915b505050505090505b92915050565b6000826000018281548110612c5b57612c5a6152e8565b5b9060005260206000200154905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cdf57816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401612cd69190614519565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612dd0919061440b565b60405180910390a3505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612e3b577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612e3157612e30615958565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612e78576d04ee2d6d415b85acef81000000008381612e6e57612e6d615958565b5b0492506020810190505b662386f26fc100008310612ea757662386f26fc100008381612e9d57612e9c615958565b5b0492506010810190505b6305f5e1008310612ed0576305f5e1008381612ec657612ec5615958565b5b0492506008810190505b6127108310612ef5576127108381612eeb57612eea615958565b5b0492506004810190505b60648310612f185760648381612f0e57612f0d615958565b5b0492506002810190505b600a8310612f27576001810190505b80915050919050565b600081600001805490509050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612fb45750612fb382613855565b5b9050919050565b8080612ff45750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561312857600061300484611a6a565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561306f57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015613082575061308081846118a8565b155b156130c457826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016130bb9190614519565b60405180910390fd5b811561312657838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b60008061318e858585613937565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131d2576131cd84613b51565b613211565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146132105761320f8185613b9a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036132535761324e84613cfb565b613292565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613291576132908585613dcc565b5b5b809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361330f5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016133069190614519565b60405180910390fd5b600061331d83836000611b61565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146133915760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016133889190614519565b60405180910390fd5b505050565b60006133a28383613e57565b6133fb578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613400565b600090505b92915050565b60006134128383611545565b156134ee576000600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061348b611b59565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506134f3565b600090505b92915050565b6000613521836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613e7a565b905092915050565b60007f0000000000000000000000003860ab2305473ba35502a97f5743dad763352b2b73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156135a557507f000000000000000000000000000000000000000000000000000000000000000146145b156135d2577fa0214208a8a2d166f780ae2924f450cef397c589441471ee92952b168cc95fc990506135dd565b6135da613f8e565b90505b90565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b600080600060418451036136665760008060006020870151925060408701519150606087015160001a905061365888828585614024565b955095509550505050613676565b60006002855160001b9250925092505b9250925092565b6000600381111561369157613690615a11565b5b8260038111156136a4576136a3615a11565b5b03156137dd57600160038111156136be576136bd615a11565b5b8260038111156136d1576136d0615a11565b5b03613708576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600381111561371c5761371b615a11565b5b82600381111561372f5761372e615a11565b5b03613774578060001c6040517ffce698f700000000000000000000000000000000000000000000000000000000815260040161376b9190614612565b60405180910390fd5b60038081111561378757613786615a11565b5b82600381111561379a57613799615a11565b5b036137dc57806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016137d391906146f2565b60405180910390fd5b5b5050565b606060006137ee83614118565b90506000602067ffffffffffffffff81111561380d5761380c614c57565b5b6040519080825280601f01601f19166020018201604052801561383f5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061392057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613930575061392f82614168565b5b9050919050565b6000806139438461276c565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613985576139848184866141d2565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613a16576139c7600085600080612fbb565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614613a99576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000613ba583611376565b9050600060076000848152602001908152602001600020549050818114613c8a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613d0f91906151df565b9050600060096000848152602001908152602001600020549050600060088381548110613d3f57613d3e6152e8565b5b906000526020600020015490508060088381548110613d6157613d606152e8565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613db057613daf615a40565b5b6001900381819060005260206000200160009055905550505050565b60006001613dd984611376565b613de391906151df565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114613f82576000600182613eac91906151df565b9050600060018660000180549050613ec491906151df565b9050808214613f33576000866000018281548110613ee557613ee46152e8565b5b9060005260206000200154905080876000018481548110613f0957613f086152e8565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613f4757613f46615a40565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050613f88565b60009150505b92915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f8965a8c217013b6d682c5b60f0c7c4fab7a24e4427d25840a4ffd108f68426c37f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c4630604051602001614009959493929190615a6f565b60405160208183030381529060405280519060200120905090565b60008060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08460001c111561406457600060038592509250925061410e565b6000600188888888604051600081526020016040526040516140899493929190615ade565b6020604051602081039080840390855afa1580156140ab573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036140ff57600060016000801b9350935093505061410e565b8060008060001b935093509350505b9450945094915050565b60008060ff8360001c169050601f81111561415f576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6141dd838383614296565b61429157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361425257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016142499190614612565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016142889291906152bf565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561434e57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061430f575061430e84846118a8565b5b8061434d57508273ffffffffffffffffffffffffffffffffffffffff1661433583611af2565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6143a08161436b565b81146143ab57600080fd5b50565b6000813590506143bd81614397565b92915050565b6000602082840312156143d9576143d8614361565b5b60006143e7848285016143ae565b91505092915050565b60008115159050919050565b614405816143f0565b82525050565b600060208201905061442060008301846143fc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614460578082015181840152602081019050614445565b60008484015250505050565b6000601f19601f8301169050919050565b600061448882614426565b6144928185614431565b93506144a2818560208601614442565b6144ab8161446c565b840191505092915050565b600060208201905081810360008301526144d0818461447d565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614503826144d8565b9050919050565b614513816144f8565b82525050565b600060208201905061452e600083018461450a565b92915050565b6000819050919050565b61454781614534565b811461455257600080fd5b50565b6000813590506145648161453e565b92915050565b6000602082840312156145805761457f614361565b5b600061458e84828501614555565b91505092915050565b6145a0816144f8565b81146145ab57600080fd5b50565b6000813590506145bd81614597565b92915050565b600080604083850312156145da576145d9614361565b5b60006145e8858286016145ae565b92505060206145f985828601614555565b9150509250929050565b61460c81614534565b82525050565b60006020820190506146276000830184614603565b92915050565b60008060006060848603121561464657614645614361565b5b6000614654868287016145ae565b9350506020614665868287016145ae565b925050604061467686828701614555565b9150509250925092565b6000819050919050565b61469381614680565b811461469e57600080fd5b50565b6000813590506146b08161468a565b92915050565b6000602082840312156146cc576146cb614361565b5b60006146da848285016146a1565b91505092915050565b6146ec81614680565b82525050565b600060208201905061470760008301846146e3565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147325761473161470d565b5b8235905067ffffffffffffffff81111561474f5761474e614712565b5b60208301915083600182028301111561476b5761476a614717565b5b9250929050565b6000806020838503121561478957614788614361565b5b600083013567ffffffffffffffff8111156147a7576147a6614366565b5b6147b38582860161471c565b92509250509250929050565b600080604083850312156147d6576147d5614361565b5b60006147e4858286016145ae565b92505060206147f5858286016146a1565b9150509250929050565b614808816143f0565b811461481357600080fd5b50565b600081359050614825816147ff565b92915050565b60006020828403121561484157614840614361565b5b600061484f84828501614816565b91505092915050565b6000806040838503121561486f5761486e614361565b5b600061487d858286016146a1565b925050602061488e858286016145ae565b9150509250929050565b60008083601f8401126148ae576148ad61470d565b5b8235905067ffffffffffffffff8111156148cb576148ca614712565b5b6020830191508360208202830111156148e7576148e6614717565b5b9250929050565b60008060006040848603121561490757614906614361565b5b6000614915868287016145ae565b935050602084013567ffffffffffffffff81111561493657614935614366565b5b61494286828701614898565b92509250509250925092565b600080fd5b600060a082840312156149695761496861494e565b5b81905092915050565b60008083601f8401126149885761498761470d565b5b8235905067ffffffffffffffff8111156149a5576149a4614712565b5b6020830191508360018202830111156149c1576149c0614717565b5b9250929050565b600080600060c084860312156149e1576149e0614361565b5b60006149ef86828701614953565b93505060a084013567ffffffffffffffff811115614a1057614a0f614366565b5b614a1c86828701614972565b92509250509250925092565b600060208284031215614a3e57614a3d614361565b5b6000614a4c848285016145ae565b91505092915050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b614a8a81614a55565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614ac581614534565b82525050565b6000614ad78383614abc565b60208301905092915050565b6000602082019050919050565b6000614afb82614a90565b614b058185614a9b565b9350614b1083614aac565b8060005b83811015614b41578151614b288882614acb565b9750614b3383614ae3565b925050600181019050614b14565b5085935050505092915050565b600060e082019050614b63600083018a614a81565b8181036020830152614b75818961447d565b90508181036040830152614b89818861447d565b9050614b986060830187614603565b614ba5608083018661450a565b614bb260a08301856146e3565b81810360c0830152614bc48184614af0565b905098975050505050505050565b60008060408385031215614be957614be8614361565b5b6000614bf7858286016146a1565b9250506020614c0885828601614555565b9150509250929050565b60008060408385031215614c2957614c28614361565b5b6000614c37858286016145ae565b9250506020614c4885828601614816565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614c8f8261446c565b810181811067ffffffffffffffff82111715614cae57614cad614c57565b5b80604052505050565b6000614cc1614357565b9050614ccd8282614c86565b919050565b600067ffffffffffffffff821115614ced57614cec614c57565b5b614cf68261446c565b9050602081019050919050565b82818337600083830152505050565b6000614d25614d2084614cd2565b614cb7565b905082815260208101848484011115614d4157614d40614c52565b5b614d4c848285614d03565b509392505050565b600082601f830112614d6957614d6861470d565b5b8135614d79848260208601614d12565b91505092915050565b60008060008060808587031215614d9c57614d9b614361565b5b6000614daa878288016145ae565b9450506020614dbb878288016145ae565b9350506040614dcc87828801614555565b925050606085013567ffffffffffffffff811115614ded57614dec614366565b5b614df987828801614d54565b91505092959194509250565b60008060408385031215614e1c57614e1b614361565b5b6000614e2a858286016145ae565b9250506020614e3b858286016145ae565b9150509250929050565b60008060208385031215614e5c57614e5b614361565b5b600083013567ffffffffffffffff811115614e7a57614e79614366565b5b614e8685828601614898565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614ed957607f821691505b602082108103614eec57614eeb614e92565b5b50919050565b6000606082019050614f07600083018661450a565b614f146020830185614603565b614f21604083018461450a565b949350505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614f967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614f59565b614fa08683614f59565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614fdd614fd8614fd384614534565b614fb8565b614534565b9050919050565b6000819050919050565b614ff783614fc2565b61500b61500382614fe4565b848454614f66565b825550505050565b600090565b615020615013565b61502b818484614fee565b505050565b5b8181101561504f57615044600082615018565b600181019050615031565b5050565b601f8211156150945761506581614f34565b61506e84614f49565b8101602085101561507d578190505b61509161508985614f49565b830182615030565b50505b505050565b600082821c905092915050565b60006150b760001984600802615099565b1980831691505092915050565b60006150d083836150a6565b9150826002028217905092915050565b6150ea8383614f29565b67ffffffffffffffff81111561510357615102614c57565b5b61510d8254614ec1565b615118828285615053565b6000601f8311600181146151475760008415615135578287013590505b61513f85826150c4565b8655506151a7565b601f19841661515586614f34565b60005b8281101561517d57848901358255600182019150602085019450602081019050615158565b8683101561519a5784890135615196601f8916826150a6565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006151ea82614534565b91506151f583614534565b925082820390508181111561520d5761520c6151b0565b5b92915050565b6000819050919050565b600061523861523361522e84615213565b614fb8565b614534565b9050919050565b6152488161521d565b82525050565b6000604082019050615263600083018561523f565b6152706020830184614603565b9392505050565b600061528282614534565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036152b4576152b36151b0565b5b600182019050919050565b60006040820190506152d4600083018561450a565b6152e16020830184614603565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061532660208401846145ae565b905092915050565b615337816144f8565b82525050565b600061534c6020840184614555565b905092915050565b600061536360208401846146a1565b905092915050565b61537481614680565b82525050565b60a0820161538b6000830183615317565b615398600085018261532e565b506153a6602083018361533d565b6153b36020850182614abc565b506153c1604083018361533d565b6153ce6040850182614abc565b506153dc606083018361533d565b6153e96060850182614abc565b506153f76080830183615354565b615404608085018261536b565b50505050565b600060c08201905061541f6000830185614603565b61542c602083018461537a565b9392505050565b600081905092915050565b6000815461544b81614ec1565b6154558186615433565b945060018216600081146154705760018114615485576154b8565b60ff19831686528115158202860193506154b8565b61548e85614f34565b60005b838110156154b057815481890152600182019150602081019050615491565b838801955050505b50505092915050565b60006154cc82614426565b6154d68185615433565b93506154e6818560208601614442565b80840191505092915050565b60006154fe828561543e565b915061550a82846154c1565b91508190509392505050565b600060408201905061552b600083018561450a565b818103602083015261553d8184614af0565b90509392505050565b600081905092915050565b61555a81614534565b82525050565b600061556c8383615551565b60208301905092915050565b600061558382614a90565b61558d8185615546565b935061559883614aac565b8060005b838110156155c95781516155b08882615560565b97506155bb83614ae3565b92505060018101905061559c565b5085935050505092915050565b60006155e28284615578565b915081905092915050565b7f496e76616c696420726563697069656e74000000000000000000000000000000600082015250565b6000615623601183614431565b915061562e826155ed565b602082019050919050565b6000602082019050818103600083015261565281615616565b9050919050565b7f496e76616c6964207369676e6572000000000000000000000000000000000000600082015250565b600061568f600e83614431565b915061569a82615659565b602082019050919050565b600060208201905081810360008301526156be81615682565b9050919050565b7f496e76616c69642074696d650000000000000000000000000000000000000000600082015250565b60006156fb600c83614431565b9150615706826156c5565b602082019050919050565b6000602082019050818103600083015261572a816156ee565b9050919050565b7f496e76616c696420707269636500000000000000000000000000000000000000600082015250565b6000615767600d83614431565b915061577282615731565b602082019050919050565b600060208201905081810360008301526157968161575a565b9050919050565b7f6d73672076616c7565206e6f74206d61746368207769746820746f74616c207060008201527f7269636500000000000000000000000000000000000000000000000000000000602082015250565b60006157f9602483614431565b91506158048261579d565b604082019050919050565b60006020820190508181036000830152615828816157ec565b9050919050565b600081905092915050565b50565b600061584a60008361582f565b91506158558261583a565b600082019050919050565b600061586b8261583d565b9150819050919050565b600081519050919050565b600082825260208201905092915050565b600061589c82615875565b6158a68185615880565b93506158b6818560208601614442565b6158bf8161446c565b840191505092915050565b60006080820190506158df600083018761450a565b6158ec602083018661450a565b6158f96040830185614603565b818103606083015261590b8184615891565b905095945050505050565b60008151905061592581614397565b92915050565b60006020828403121561594157615940614361565b5b600061594f84828501615916565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600060408201905061599c600083018561450a565b6159a960208301846146e3565b9392505050565b600060c0820190506159c560008301896146e3565b6159d2602083018861450a565b6159df6040830187614603565b6159ec6060830186614603565b6159f96080830185614603565b615a0660a08301846146e3565b979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060a082019050615a8460008301886146e3565b615a9160208301876146e3565b615a9e60408301866146e3565b615aab6060830185614603565b615ab8608083018461450a565b9695505050505050565b600060ff82169050919050565b615ad881615ac2565b82525050565b6000608082019050615af360008301876146e3565b615b006020830186615acf565b615b0d60408301856146e3565b615b1a60608301846146e3565b9594505050505056fea264697066735822122025acb133ed3a20b246882aa14610f830908333af25ba86a7f89a0b1be0488dfd64736f6c63430008140033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000d46d5d0f4e39da031a0ca6137d2a528aab32db860000000000000000000000004ebbf1ea0b218ac7fc28ee2b9c057994e341db880000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000b4d79737465727920506f64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4d595354455259504f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d657a533462564d5355717871434346556371444d6f4b4d33756b6877656a623463486f52524a794d6b5455622f00000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Mystery Pod
Arg [1] : symbol (string): MYSTERYPOD
Arg [2] : admin (address): 0xd46d5d0f4E39dA031a0cA6137D2A528aAB32dB86
Arg [3] : primarySaleRecipient_ (address): 0x4eBbf1EA0b218aC7Fc28EE2B9C057994E341DB88
Arg [4] : collectionUri (string): ipfs://QmezS4bVMSUqxqCCFUcqDMoKM3ukhwejb4cHoRRJyMkTUb/

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000d46d5d0f4e39da031a0ca6137d2a528aab32db86
Arg [3] : 0000000000000000000000004ebbf1ea0b218ac7fc28ee2b9c057994e341db88
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 4d79737465727920506f64000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [8] : 4d595354455259504f4400000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [10] : 697066733a2f2f516d657a533462564d5355717871434346556371444d6f4b4d
Arg [11] : 33756b6877656a623463486f52524a794d6b5455622f00000000000000000000


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

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